Don't check for null after calling COFFObjectFile::toSec.
[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 OCAML_LIBDIR
792 ENABLE_VISIBILITY_INLINES_HIDDEN
793 RPATH
794 RDYNAMIC
795 program_prefix
796 LIBOBJS
797 LTLIBOBJS'
798 ac_subst_files=''
799       ac_precious_vars='build_alias
800 host_alias
801 target_alias
802 CC
803 CFLAGS
804 LDFLAGS
805 CPPFLAGS
806 CXX
807 CXXFLAGS
808 CCC
809 CPP
810 CXXCPP'
811 ac_subdirs_all='projects/test-suite
812 projects/llvm-test
813 projects/poolalloc
814 projects/llvm-poolalloc
815 projects/safecode
816 tools/polly'
817
818 # Initialize some variables set by options.
819 ac_init_help=
820 ac_init_version=false
821 # The variables have the same names as the options, with
822 # dashes changed to underlines.
823 cache_file=/dev/null
824 exec_prefix=NONE
825 no_create=
826 no_recursion=
827 prefix=NONE
828 program_prefix=NONE
829 program_suffix=NONE
830 program_transform_name=s,x,x,
831 silent=
832 site=
833 srcdir=
834 verbose=
835 x_includes=NONE
836 x_libraries=NONE
837
838 # Installation directory options.
839 # These are left unexpanded so users can "make install exec_prefix=/foo"
840 # and all the variables that are supposed to be based on exec_prefix
841 # by default will actually change.
842 # Use braces instead of parens because sh, perl, etc. also accept them.
843 # (The list follows the same order as the GNU Coding Standards.)
844 bindir='${exec_prefix}/bin'
845 sbindir='${exec_prefix}/sbin'
846 libexecdir='${exec_prefix}/libexec'
847 datarootdir='${prefix}/share'
848 datadir='${datarootdir}'
849 sysconfdir='${prefix}/etc'
850 sharedstatedir='${prefix}/com'
851 localstatedir='${prefix}/var'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868   # If the previous option needs an argument, assign it.
869   if test -n "$ac_prev"; then
870     eval $ac_prev=\$ac_option
871     ac_prev=
872     continue
873   fi
874
875   case $ac_option in
876   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877   *)    ac_optarg=yes ;;
878   esac
879
880   # Accept the important Cygnus configure options, so we can diagnose typos.
881
882   case $ac_dashdash$ac_option in
883   --)
884     ac_dashdash=yes ;;
885
886   -bindir | --bindir | --bindi | --bind | --bin | --bi)
887     ac_prev=bindir ;;
888   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889     bindir=$ac_optarg ;;
890
891   -build | --build | --buil | --bui | --bu)
892     ac_prev=build_alias ;;
893   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
894     build_alias=$ac_optarg ;;
895
896   -cache-file | --cache-file | --cache-fil | --cache-fi \
897   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898     ac_prev=cache_file ;;
899   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
901     cache_file=$ac_optarg ;;
902
903   --config-cache | -C)
904     cache_file=config.cache ;;
905
906   -datadir | --datadir | --datadi | --datad)
907     ac_prev=datadir ;;
908   -datadir=* | --datadir=* | --datadi=* | --datad=*)
909     datadir=$ac_optarg ;;
910
911   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912   | --dataroo | --dataro | --datar)
913     ac_prev=datarootdir ;;
914   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916     datarootdir=$ac_optarg ;;
917
918   -disable-* | --disable-*)
919     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
920     # Reject names that are not valid shell variable names.
921     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
922       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
923    { (exit 1); exit 1; }; }
924     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
925     eval enable_$ac_feature=no ;;
926
927   -docdir | --docdir | --docdi | --doc | --do)
928     ac_prev=docdir ;;
929   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930     docdir=$ac_optarg ;;
931
932   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933     ac_prev=dvidir ;;
934   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935     dvidir=$ac_optarg ;;
936
937   -enable-* | --enable-*)
938     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939     # Reject names that are not valid shell variable names.
940     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
941       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
942    { (exit 1); exit 1; }; }
943     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
944     eval enable_$ac_feature=\$ac_optarg ;;
945
946   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948   | --exec | --exe | --ex)
949     ac_prev=exec_prefix ;;
950   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952   | --exec=* | --exe=* | --ex=*)
953     exec_prefix=$ac_optarg ;;
954
955   -gas | --gas | --ga | --g)
956     # Obsolete; use --with-gas.
957     with_gas=yes ;;
958
959   -help | --help | --hel | --he | -h)
960     ac_init_help=long ;;
961   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962     ac_init_help=recursive ;;
963   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964     ac_init_help=short ;;
965
966   -host | --host | --hos | --ho)
967     ac_prev=host_alias ;;
968   -host=* | --host=* | --hos=* | --ho=*)
969     host_alias=$ac_optarg ;;
970
971   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972     ac_prev=htmldir ;;
973   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974   | --ht=*)
975     htmldir=$ac_optarg ;;
976
977   -includedir | --includedir | --includedi | --included | --include \
978   | --includ | --inclu | --incl | --inc)
979     ac_prev=includedir ;;
980   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981   | --includ=* | --inclu=* | --incl=* | --inc=*)
982     includedir=$ac_optarg ;;
983
984   -infodir | --infodir | --infodi | --infod | --info | --inf)
985     ac_prev=infodir ;;
986   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987     infodir=$ac_optarg ;;
988
989   -libdir | --libdir | --libdi | --libd)
990     ac_prev=libdir ;;
991   -libdir=* | --libdir=* | --libdi=* | --libd=*)
992     libdir=$ac_optarg ;;
993
994   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995   | --libexe | --libex | --libe)
996     ac_prev=libexecdir ;;
997   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998   | --libexe=* | --libex=* | --libe=*)
999     libexecdir=$ac_optarg ;;
1000
1001   -localedir | --localedir | --localedi | --localed | --locale)
1002     ac_prev=localedir ;;
1003   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004     localedir=$ac_optarg ;;
1005
1006   -localstatedir | --localstatedir | --localstatedi | --localstated \
1007   | --localstate | --localstat | --localsta | --localst | --locals)
1008     ac_prev=localstatedir ;;
1009   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011     localstatedir=$ac_optarg ;;
1012
1013   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014     ac_prev=mandir ;;
1015   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016     mandir=$ac_optarg ;;
1017
1018   -nfp | --nfp | --nf)
1019     # Obsolete; use --without-fp.
1020     with_fp=no ;;
1021
1022   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023   | --no-cr | --no-c | -n)
1024     no_create=yes ;;
1025
1026   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028     no_recursion=yes ;;
1029
1030   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032   | --oldin | --oldi | --old | --ol | --o)
1033     ac_prev=oldincludedir ;;
1034   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037     oldincludedir=$ac_optarg ;;
1038
1039   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040     ac_prev=prefix ;;
1041   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042     prefix=$ac_optarg ;;
1043
1044   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045   | --program-pre | --program-pr | --program-p)
1046     ac_prev=program_prefix ;;
1047   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049     program_prefix=$ac_optarg ;;
1050
1051   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052   | --program-suf | --program-su | --program-s)
1053     ac_prev=program_suffix ;;
1054   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056     program_suffix=$ac_optarg ;;
1057
1058   -program-transform-name | --program-transform-name \
1059   | --program-transform-nam | --program-transform-na \
1060   | --program-transform-n | --program-transform- \
1061   | --program-transform | --program-transfor \
1062   | --program-transfo | --program-transf \
1063   | --program-trans | --program-tran \
1064   | --progr-tra | --program-tr | --program-t)
1065     ac_prev=program_transform_name ;;
1066   -program-transform-name=* | --program-transform-name=* \
1067   | --program-transform-nam=* | --program-transform-na=* \
1068   | --program-transform-n=* | --program-transform-=* \
1069   | --program-transform=* | --program-transfor=* \
1070   | --program-transfo=* | --program-transf=* \
1071   | --program-trans=* | --program-tran=* \
1072   | --progr-tra=* | --program-tr=* | --program-t=*)
1073     program_transform_name=$ac_optarg ;;
1074
1075   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076     ac_prev=pdfdir ;;
1077   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078     pdfdir=$ac_optarg ;;
1079
1080   -psdir | --psdir | --psdi | --psd | --ps)
1081     ac_prev=psdir ;;
1082   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083     psdir=$ac_optarg ;;
1084
1085   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086   | -silent | --silent | --silen | --sile | --sil)
1087     silent=yes ;;
1088
1089   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090     ac_prev=sbindir ;;
1091   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092   | --sbi=* | --sb=*)
1093     sbindir=$ac_optarg ;;
1094
1095   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097   | --sharedst | --shareds | --shared | --share | --shar \
1098   | --sha | --sh)
1099     ac_prev=sharedstatedir ;;
1100   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103   | --sha=* | --sh=*)
1104     sharedstatedir=$ac_optarg ;;
1105
1106   -site | --site | --sit)
1107     ac_prev=site ;;
1108   -site=* | --site=* | --sit=*)
1109     site=$ac_optarg ;;
1110
1111   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112     ac_prev=srcdir ;;
1113   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114     srcdir=$ac_optarg ;;
1115
1116   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117   | --syscon | --sysco | --sysc | --sys | --sy)
1118     ac_prev=sysconfdir ;;
1119   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121     sysconfdir=$ac_optarg ;;
1122
1123   -target | --target | --targe | --targ | --tar | --ta | --t)
1124     ac_prev=target_alias ;;
1125   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126     target_alias=$ac_optarg ;;
1127
1128   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129     verbose=yes ;;
1130
1131   -version | --version | --versio | --versi | --vers | -V)
1132     ac_init_version=: ;;
1133
1134   -with-* | --with-*)
1135     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136     # Reject names that are not valid shell variable names.
1137     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1138       { echo "$as_me: error: invalid package name: $ac_package" >&2
1139    { (exit 1); exit 1; }; }
1140     ac_package=`echo $ac_package| sed 's/-/_/g'`
1141     eval with_$ac_package=\$ac_optarg ;;
1142
1143   -without-* | --without-*)
1144     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1147       { echo "$as_me: error: invalid package name: $ac_package" >&2
1148    { (exit 1); exit 1; }; }
1149     ac_package=`echo $ac_package | sed 's/-/_/g'`
1150     eval with_$ac_package=no ;;
1151
1152   --x)
1153     # Obsolete; use --with-x.
1154     with_x=yes ;;
1155
1156   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157   | --x-incl | --x-inc | --x-in | --x-i)
1158     ac_prev=x_includes ;;
1159   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161     x_includes=$ac_optarg ;;
1162
1163   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165     ac_prev=x_libraries ;;
1166   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168     x_libraries=$ac_optarg ;;
1169
1170   -*) { echo "$as_me: error: unrecognized option: $ac_option
1171 Try \`$0 --help' for more information." >&2
1172    { (exit 1); exit 1; }; }
1173     ;;
1174
1175   *=*)
1176     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1179       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1180    { (exit 1); exit 1; }; }
1181     eval $ac_envvar=\$ac_optarg
1182     export $ac_envvar ;;
1183
1184   *)
1185     # FIXME: should be removed in autoconf 3.0.
1186     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1190     ;;
1191
1192   esac
1193 done
1194
1195 if test -n "$ac_prev"; then
1196   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197   { echo "$as_me: error: missing argument to $ac_option" >&2
1198    { (exit 1); exit 1; }; }
1199 fi
1200
1201 # Be sure to have absolute directory names.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   case $ac_val in
1209     [\\/$]* | ?:[\\/]* )  continue;;
1210     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211   esac
1212   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213    { (exit 1); exit 1; }; }
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225   if test "x$build_alias" = x; then
1226     cross_compiling=maybe
1227     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228     If a cross compiler is detected then cross compile mode will be used." >&2
1229   elif test "x$build_alias" != "x$host_alias"; then
1230     cross_compiling=yes
1231   fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243   { echo "$as_me: error: Working directory cannot be determined" >&2
1244    { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   { echo "$as_me: error: pwd does not report name of working directory" >&2
1247    { (exit 1); exit 1; }; }
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$0" ||
1255 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$0" : 'X\(//\)[^/]' \| \
1257          X"$0" : 'X\(//\)$' \| \
1258          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1259 echo X"$0" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287    { (exit 1); exit 1; }; }
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1292    { (exit 1); exit 1; }; }
1293         pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296   srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_env_${ac_var}_value=\$${ac_var}
1307   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315   # Omit some internal or obsolete options to make the list less imposing.
1316   # This message is too long to be a string in the A/UX 3.1 sh.
1317   cat <<_ACEOF
1318 \`configure' configures LLVM 3.6.0svn to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE.  See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328   -h, --help              display this help and exit
1329       --help=short        display options specific to this package
1330       --help=recursive    display the short help of all the included packages
1331   -V, --version           display version information and exit
1332   -q, --quiet, --silent   do not print \`checking...' messages
1333       --cache-file=FILE   cache test results in FILE [disabled]
1334   -C, --config-cache      alias for \`--cache-file=config.cache'
1335   -n, --no-create         do not create output files
1336       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339   --prefix=PREFIX         install architecture-independent files in PREFIX
1340                           [$ac_default_prefix]
1341   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1342                           [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352   --bindir=DIR           user executables [EPREFIX/bin]
1353   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1354   --libexecdir=DIR       program executables [EPREFIX/libexec]
1355   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1356   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1357   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1358   --libdir=DIR           object code libraries [EPREFIX/lib]
1359   --includedir=DIR       C header files [PREFIX/include]
1360   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1361   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1362   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1363   --infodir=DIR          info documentation [DATAROOTDIR/info]
1364   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1365   --mandir=DIR           man documentation [DATAROOTDIR/man]
1366   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1367   --htmldir=DIR          html documentation [DOCDIR]
1368   --dvidir=DIR           dvi documentation [DOCDIR]
1369   --pdfdir=DIR           pdf documentation [DOCDIR]
1370   --psdir=DIR            ps documentation [DOCDIR]
1371 _ACEOF
1372
1373   cat <<\_ACEOF
1374
1375 System types:
1376   --build=BUILD     configure for building on BUILD [guessed]
1377   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378   --target=TARGET   configure for building compilers for TARGET [HOST]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383   case $ac_init_help in
1384      short | recursive ) echo "Configuration of LLVM 3.6.0svn:";;
1385    esac
1386   cat <<\_ACEOF
1387
1388 Optional Features:
1389   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391   --enable-polly          Use polly if available (default is YES)
1392   --enable-libcpp         Use libc++ if available (default is NO)
1393   --enable-compiler-version-checks
1394                           Check the version of the host compiler (default is
1395                           YES)
1396   --enable-cxx1y          Use c++1y if available (default is NO)
1397   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1398   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1399   --enable-clang-plugin-support
1400                           Enable plugin support in clang (default is YES)
1401   --enable-clang-static-analyzer
1402                           Enable building of clang Static Analyzer (default is
1403                           YES)
1404   --enable-optimized      Compile with optimizations enabled (default is NO)
1405   --enable-profiling      Compile with profiling enabled (default is NO)
1406   --enable-assertions     Compile with assertion checks enabled (default is
1407                           YES)
1408   --enable-werror         Compile with -Werror enabled (default is NO)
1409   --enable-expensive-checks
1410                           Compile with expensive debug checks enabled (default
1411                           is NO)
1412   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1413                           NO)
1414   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1415                           optimization is on and YES if it's off)
1416   --enable-keep-symbols   Do not strip installed executables)
1417   --enable-jit            Enable Just In Time Compiling (default is YES)
1418   --enable-docs           Build documents (default is YES)
1419   --enable-doxygen        Build doxygen documentation (default is NO)
1420   --enable-threads        Use threads if available (default is YES)
1421   --enable-pthreads       Use pthreads if available (default is YES)
1422   --enable-zlib           Use zlib for compression/decompression if available
1423                           (default is YES)
1424   --enable-pic            Build LLVM with Position Independent Code (default
1425                           is YES)
1426   --enable-shared         Build a shared library and link tools against it
1427                           (default is NO)
1428   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1429                           Win32 DLL (default is NO)
1430   --enable-timestamps     Enable embedding timestamp information in build
1431                           (default is YES)
1432   --enable-backtraces     Enable embedding backtraces on crash (default is
1433                           YES)
1434   --enable-crash-overrides
1435                           Enable crash handling overrides (default is YES)
1436   --enable-targets        Build specific host targets: all or
1437                           target1,target2,... Valid targets are: host, x86,
1438                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1439                           hexagon, xcore, msp430, nvptx, systemz, r600, and
1440                           cpp (default=all)
1441   --enable-experimental-targets
1442                           Build experimental host targets: disable or
1443                           target1,target2,... (default=disable)
1444   --enable-bindings       Build specific language bindings:
1445                           all,auto,none,{binding-name} (default=auto)
1446   --enable-terminfo       Query the terminfo database if available (default is
1447                           YES)
1448   --enable-libedit        Use libedit if available (default is YES)
1449   --enable-libffi         Check for the presence of libffi (default is NO)
1450
1451 Optional Packages:
1452   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1453   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1454   --with-optimize-option  Select the compiler options to use for optimized
1455                           builds
1456   --with-extra-options    Specify additional options to compile LLVM with
1457   --with-extra-ld-options Specify additional options to link LLVM with
1458   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1459                           is stdlib)
1460   --with-clang-srcdir     Directory to the out-of-tree Clang source
1461   --with-clang-resource-dir
1462                           Relative directory from the Clang binary for
1463                           resource files
1464   --with-c-include-dirs   Colon separated list of directories clang will
1465                           search for headers
1466   --with-gcc-toolchain    Directory where gcc is installed.
1467   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1468   --with-binutils-include Specify path to binutils/include/ containing
1469                           plugin-api.h file for gold plugin.
1470   --with-bug-report-url   Specify the URL where bug reports should be
1471                           submitted (default=http://llvm.org/bugs/)
1472   --with-internal-prefix  Installation directory for internal files
1473   --with-python           path to python
1474   --with-oprofile=<prefix>
1475                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1476   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1477
1478
1479 Some influential environment variables:
1480   CC          C compiler command
1481   CFLAGS      C compiler flags
1482   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1483               nonstandard directory <lib dir>
1484   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1485               you have headers in a nonstandard directory <include dir>
1486   CXX         C++ compiler command
1487   CXXFLAGS    C++ compiler flags
1488   CPP         C preprocessor
1489   CXXCPP      C++ preprocessor
1490
1491 Use these variables to override the choices made by `configure' or to help
1492 it to find libraries and programs with nonstandard names/locations.
1493
1494 Report bugs to <http://llvm.org/bugs/>.
1495 _ACEOF
1496 ac_status=$?
1497 fi
1498
1499 if test "$ac_init_help" = "recursive"; then
1500   # If there are subdirs, report their specific --help.
1501   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1502     test -d "$ac_dir" || continue
1503     ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1509   # A ".." for each directory in $ac_dir_suffix.
1510   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1511   case $ac_top_builddir_sub in
1512   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514   esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522   .)  # We are building in place.
1523     ac_srcdir=.
1524     ac_top_srcdir=$ac_top_builddir_sub
1525     ac_abs_top_srcdir=$ac_pwd ;;
1526   [\\/]* | ?:[\\/]* )  # Absolute name.
1527     ac_srcdir=$srcdir$ac_dir_suffix;
1528     ac_top_srcdir=$srcdir
1529     ac_abs_top_srcdir=$srcdir ;;
1530   *) # Relative name.
1531     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532     ac_top_srcdir=$ac_top_build_prefix$srcdir
1533     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537     cd "$ac_dir" || { ac_status=$?; continue; }
1538     # Check for guested configure.
1539     if test -f "$ac_srcdir/configure.gnu"; then
1540       echo &&
1541       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1542     elif test -f "$ac_srcdir/configure"; then
1543       echo &&
1544       $SHELL "$ac_srcdir/configure" --help=recursive
1545     else
1546       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547     fi || ac_status=$?
1548     cd "$ac_pwd" || { ac_status=$?; break; }
1549   done
1550 fi
1551
1552 test -n "$ac_init_help" && exit $ac_status
1553 if $ac_init_version; then
1554   cat <<\_ACEOF
1555 LLVM configure 3.6.0svn
1556 generated by GNU Autoconf 2.60
1557
1558 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1559 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562
1563 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1564 _ACEOF
1565   exit
1566 fi
1567 cat >config.log <<_ACEOF
1568 This file contains any messages produced by compilers while
1569 running configure, to aid debugging if configure makes a mistake.
1570
1571 It was created by LLVM $as_me 3.6.0svn, which was
1572 generated by GNU Autoconf 2.60.  Invocation command line was
1573
1574   $ $0 $@
1575
1576 _ACEOF
1577 exec 5>>config.log
1578 {
1579 cat <<_ASUNAME
1580 ## --------- ##
1581 ## Platform. ##
1582 ## --------- ##
1583
1584 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1585 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1586 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1587 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1588 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1589
1590 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1591 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1592
1593 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1594 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1595 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1596 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1597 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1598 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1599 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1600
1601 _ASUNAME
1602
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606   IFS=$as_save_IFS
1607   test -z "$as_dir" && as_dir=.
1608   echo "PATH: $as_dir"
1609 done
1610 IFS=$as_save_IFS
1611
1612 } >&5
1613
1614 cat >&5 <<_ACEOF
1615
1616
1617 ## ----------- ##
1618 ## Core tests. ##
1619 ## ----------- ##
1620
1621 _ACEOF
1622
1623
1624 # Keep a trace of the command line.
1625 # Strip out --no-create and --no-recursion so they do not pile up.
1626 # Strip out --silent because we don't want to record it for future runs.
1627 # Also quote any args containing shell meta-characters.
1628 # Make two passes to allow for proper duplicate-argument suppression.
1629 ac_configure_args=
1630 ac_configure_args0=
1631 ac_configure_args1=
1632 ac_must_keep_next=false
1633 for ac_pass in 1 2
1634 do
1635   for ac_arg
1636   do
1637     case $ac_arg in
1638     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1639     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1640     | -silent | --silent | --silen | --sile | --sil)
1641       continue ;;
1642     *\'*)
1643       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1644     esac
1645     case $ac_pass in
1646     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1647     2)
1648       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1649       if test $ac_must_keep_next = true; then
1650         ac_must_keep_next=false # Got value, back to normal.
1651       else
1652         case $ac_arg in
1653           *=* | --config-cache | -C | -disable-* | --disable-* \
1654           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1655           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1656           | -with-* | --with-* | -without-* | --without-* | --x)
1657             case "$ac_configure_args0 " in
1658               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1659             esac
1660             ;;
1661           -* ) ac_must_keep_next=true ;;
1662         esac
1663       fi
1664       ac_configure_args="$ac_configure_args '$ac_arg'"
1665       ;;
1666     esac
1667   done
1668 done
1669 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1670 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1671
1672 # When interrupted or exit'd, cleanup temporary files, and complete
1673 # config.log.  We remove comments because anyway the quotes in there
1674 # would cause problems or look ugly.
1675 # WARNING: Use '\'' to represent an apostrophe within the trap.
1676 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1677 trap 'exit_status=$?
1678   # Save into config.log some information that might help in debugging.
1679   {
1680     echo
1681
1682     cat <<\_ASBOX
1683 ## ---------------- ##
1684 ## Cache variables. ##
1685 ## ---------------- ##
1686 _ASBOX
1687     echo
1688     # The following way of writing the cache mishandles newlines in values,
1689 (
1690   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1691     eval ac_val=\$$ac_var
1692     case $ac_val in #(
1693     *${as_nl}*)
1694       case $ac_var in #(
1695       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1696 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1697       esac
1698       case $ac_var in #(
1699       _ | IFS | as_nl) ;; #(
1700       *) $as_unset $ac_var ;;
1701       esac ;;
1702     esac
1703   done
1704   (set) 2>&1 |
1705     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1706     *${as_nl}ac_space=\ *)
1707       sed -n \
1708         "s/'\''/'\''\\\\'\'''\''/g;
1709           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1710       ;; #(
1711     *)
1712       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1713       ;;
1714     esac |
1715     sort
1716 )
1717     echo
1718
1719     cat <<\_ASBOX
1720 ## ----------------- ##
1721 ## Output variables. ##
1722 ## ----------------- ##
1723 _ASBOX
1724     echo
1725     for ac_var in $ac_subst_vars
1726     do
1727       eval ac_val=\$$ac_var
1728       case $ac_val in
1729       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730       esac
1731       echo "$ac_var='\''$ac_val'\''"
1732     done | sort
1733     echo
1734
1735     if test -n "$ac_subst_files"; then
1736       cat <<\_ASBOX
1737 ## ------------------- ##
1738 ## File substitutions. ##
1739 ## ------------------- ##
1740 _ASBOX
1741       echo
1742       for ac_var in $ac_subst_files
1743       do
1744         eval ac_val=\$$ac_var
1745         case $ac_val in
1746         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747         esac
1748         echo "$ac_var='\''$ac_val'\''"
1749       done | sort
1750       echo
1751     fi
1752
1753     if test -s confdefs.h; then
1754       cat <<\_ASBOX
1755 ## ----------- ##
1756 ## confdefs.h. ##
1757 ## ----------- ##
1758 _ASBOX
1759       echo
1760       cat confdefs.h
1761       echo
1762     fi
1763     test "$ac_signal" != 0 &&
1764       echo "$as_me: caught signal $ac_signal"
1765     echo "$as_me: exit $exit_status"
1766   } >&5
1767   rm -f core *.core core.conftest.* &&
1768     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1769     exit $exit_status
1770 ' 0
1771 for ac_signal in 1 2 13 15; do
1772   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1773 done
1774 ac_signal=0
1775
1776 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1777 rm -f -r conftest* confdefs.h
1778
1779 # Predefined preprocessor variables.
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_NAME "$PACKAGE_NAME"
1783 _ACEOF
1784
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1788 _ACEOF
1789
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1793 _ACEOF
1794
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_STRING "$PACKAGE_STRING"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1803 _ACEOF
1804
1805
1806 # Let the site file select an alternate cache file if it wants to.
1807 # Prefer explicitly selected file to automatically selected ones.
1808 if test -n "$CONFIG_SITE"; then
1809   set x "$CONFIG_SITE"
1810 elif test "x$prefix" != xNONE; then
1811   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1812 else
1813   set x "$ac_default_prefix/share/config.site" \
1814         "$ac_default_prefix/etc/config.site"
1815 fi
1816 shift
1817 for ac_site_file
1818 do
1819   if test -r "$ac_site_file"; then
1820     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1821 echo "$as_me: loading site script $ac_site_file" >&6;}
1822     sed 's/^/| /' "$ac_site_file" >&5
1823     . "$ac_site_file"
1824   fi
1825 done
1826
1827 if test -r "$cache_file"; then
1828   # Some versions of bash will fail to source /dev/null (special
1829   # files actually), so we avoid doing that.
1830   if test -f "$cache_file"; then
1831     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1832 echo "$as_me: loading cache $cache_file" >&6;}
1833     case $cache_file in
1834       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1835       *)                      . "./$cache_file";;
1836     esac
1837   fi
1838 else
1839   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1840 echo "$as_me: creating cache $cache_file" >&6;}
1841   >$cache_file
1842 fi
1843
1844 # Check that the precious variables saved in the cache have kept the same
1845 # value.
1846 ac_cache_corrupted=false
1847 for ac_var in $ac_precious_vars; do
1848   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1849   eval ac_new_set=\$ac_env_${ac_var}_set
1850   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1851   eval ac_new_val=\$ac_env_${ac_var}_value
1852   case $ac_old_set,$ac_new_set in
1853     set,)
1854       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1856       ac_cache_corrupted=: ;;
1857     ,set)
1858       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1859 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1860       ac_cache_corrupted=: ;;
1861     ,);;
1862     *)
1863       if test "x$ac_old_val" != "x$ac_new_val"; then
1864         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1865 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1866         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1867 echo "$as_me:   former value:  $ac_old_val" >&2;}
1868         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1869 echo "$as_me:   current value: $ac_new_val" >&2;}
1870         ac_cache_corrupted=:
1871       fi;;
1872   esac
1873   # Pass precious variables to config.status.
1874   if test "$ac_new_set" = set; then
1875     case $ac_new_val in
1876     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1877     *) ac_arg=$ac_var=$ac_new_val ;;
1878     esac
1879     case " $ac_configure_args " in
1880       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1881       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1882     esac
1883   fi
1884 done
1885 if $ac_cache_corrupted; then
1886   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1887 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1888   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1889 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1890    { (exit 1); exit 1; }; }
1891 fi
1892
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 ac_ext=c
1918 ac_cpp='$CPP $CPPFLAGS'
1919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1922
1923
1924
1925 LLVM_VERSION_MAJOR=3
1926 LLVM_VERSION_MINOR=6
1927 LLVM_VERSION_PATCH=0
1928 LLVM_VERSION_SUFFIX=svn
1929
1930
1931 cat >>confdefs.h <<_ACEOF
1932 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1933 _ACEOF
1934
1935
1936 cat >>confdefs.h <<_ACEOF
1937 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1938 _ACEOF
1939
1940
1941 cat >>confdefs.h <<_ACEOF
1942 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1943 _ACEOF
1944
1945
1946
1947
1948
1949
1950
1951 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1952
1953
1954
1955
1956
1957
1958
1959 ac_aux_dir=
1960 for ac_dir in autoconf "$srcdir"/autoconf; do
1961   if test -f "$ac_dir/install-sh"; then
1962     ac_aux_dir=$ac_dir
1963     ac_install_sh="$ac_aux_dir/install-sh -c"
1964     break
1965   elif test -f "$ac_dir/install.sh"; then
1966     ac_aux_dir=$ac_dir
1967     ac_install_sh="$ac_aux_dir/install.sh -c"
1968     break
1969   elif test -f "$ac_dir/shtool"; then
1970     ac_aux_dir=$ac_dir
1971     ac_install_sh="$ac_aux_dir/shtool install -c"
1972     break
1973   fi
1974 done
1975 if test -z "$ac_aux_dir"; then
1976   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1977 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1978    { (exit 1); exit 1; }; }
1979 fi
1980
1981 # These three variables are undocumented and unsupported,
1982 # and are intended to be withdrawn in a future Autoconf release.
1983 # They can cause serious problems if a builder's source tree is in a directory
1984 # whose full name contains unusual characters.
1985 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1986 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1987 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1988
1989
1990
1991 if test ${srcdir} != "." ; then
1992   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1993     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1994 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1995    { (exit 1); exit 1; }; }
1996   fi
1997 fi
1998
1999 : ${CFLAGS=}
2000 : ${CXXFLAGS=}
2001
2002 ac_ext=c
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2007 if test -n "$ac_tool_prefix"; then
2008   for ac_prog in clang gcc
2009   do
2010     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_CC+set}" = set; then
2015   echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017   if test -n "$CC"; then
2018   ac_cv_prog_CC="$CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023   IFS=$as_save_IFS
2024   test -z "$as_dir" && as_dir=.
2025   for ac_exec_ext in '' $ac_executable_extensions; do
2026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2027     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029     break 2
2030   fi
2031 done
2032 done
2033 IFS=$as_save_IFS
2034
2035 fi
2036 fi
2037 CC=$ac_cv_prog_CC
2038 if test -n "$CC"; then
2039   { echo "$as_me:$LINENO: result: $CC" >&5
2040 echo "${ECHO_T}$CC" >&6; }
2041 else
2042   { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2044 fi
2045
2046
2047     test -n "$CC" && break
2048   done
2049 fi
2050 if test -z "$CC"; then
2051   ac_ct_CC=$CC
2052   for ac_prog in clang gcc
2053 do
2054   # Extract the first word of "$ac_prog", so it can be a program name with args.
2055 set dummy $ac_prog; ac_word=$2
2056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   if test -n "$ac_ct_CC"; then
2062   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2063 else
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067   IFS=$as_save_IFS
2068   test -z "$as_dir" && as_dir=.
2069   for ac_exec_ext in '' $ac_executable_extensions; do
2070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2071     ac_cv_prog_ac_ct_CC="$ac_prog"
2072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073     break 2
2074   fi
2075 done
2076 done
2077 IFS=$as_save_IFS
2078
2079 fi
2080 fi
2081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082 if test -n "$ac_ct_CC"; then
2083   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084 echo "${ECHO_T}$ac_ct_CC" >&6; }
2085 else
2086   { echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6; }
2088 fi
2089
2090
2091   test -n "$ac_ct_CC" && break
2092 done
2093
2094   if test "x$ac_ct_CC" = x; then
2095     CC=""
2096   else
2097     case $cross_compiling:$ac_tool_warned in
2098 yes:)
2099 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2100 whose name does not start with the host triplet.  If you think this
2101 configuration is useful to you, please write to autoconf@gnu.org." >&5
2102 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2103 whose name does not start with the host triplet.  If you think this
2104 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2105 ac_tool_warned=yes ;;
2106 esac
2107     CC=$ac_ct_CC
2108   fi
2109 fi
2110
2111
2112 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: no acceptable C compiler found in \$PATH
2115 See \`config.log' for more details." >&2;}
2116    { (exit 1); exit 1; }; }
2117
2118 # Provide some information about the compiler.
2119 echo "$as_me:$LINENO: checking for C compiler version" >&5
2120 ac_compiler=`set X $ac_compile; echo $2`
2121 { (ac_try="$ac_compiler --version >&5"
2122 case "(($ac_try" in
2123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2124   *) ac_try_echo=$ac_try;;
2125 esac
2126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2127   (eval "$ac_compiler --version >&5") 2>&5
2128   ac_status=$?
2129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130   (exit $ac_status); }
2131 { (ac_try="$ac_compiler -v >&5"
2132 case "(($ac_try" in
2133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2134   *) ac_try_echo=$ac_try;;
2135 esac
2136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2137   (eval "$ac_compiler -v >&5") 2>&5
2138   ac_status=$?
2139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140   (exit $ac_status); }
2141 { (ac_try="$ac_compiler -V >&5"
2142 case "(($ac_try" in
2143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2144   *) ac_try_echo=$ac_try;;
2145 esac
2146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2147   (eval "$ac_compiler -V >&5") 2>&5
2148   ac_status=$?
2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150   (exit $ac_status); }
2151
2152 cat >conftest.$ac_ext <<_ACEOF
2153 /* confdefs.h.  */
2154 _ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h.  */
2158
2159 int
2160 main ()
2161 {
2162
2163   ;
2164   return 0;
2165 }
2166 _ACEOF
2167 ac_clean_files_save=$ac_clean_files
2168 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2169 # Try to create an executable without -o first, disregard a.out.
2170 # It will help us diagnose broken compilers, and finding out an intuition
2171 # of exeext.
2172 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2173 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2174 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2175 #
2176 # List of possible output files, starting from the most likely.
2177 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2178 # only as a last resort.  b.out is created by i960 compilers.
2179 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2180 #
2181 # The IRIX 6 linker writes into existing files which may not be
2182 # executable, retaining their permissions.  Remove them first so a
2183 # subsequent execution test works.
2184 ac_rmfiles=
2185 for ac_file in $ac_files
2186 do
2187   case $ac_file in
2188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2189     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2190   esac
2191 done
2192 rm -f $ac_rmfiles
2193
2194 if { (ac_try="$ac_link_default"
2195 case "(($ac_try" in
2196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2197   *) ac_try_echo=$ac_try;;
2198 esac
2199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2200   (eval "$ac_link_default") 2>&5
2201   ac_status=$?
2202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203   (exit $ac_status); }; then
2204   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2205 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2206 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2207 # so that the user can short-circuit this test for compilers unknown to
2208 # Autoconf.
2209 for ac_file in $ac_files
2210 do
2211   test -f "$ac_file" || continue
2212   case $ac_file in
2213     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2214         ;;
2215     [ab].out )
2216         # We found the default executable, but exeext='' is most
2217         # certainly right.
2218         break;;
2219     *.* )
2220         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2221         then :; else
2222            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2223         fi
2224         # We set ac_cv_exeext here because the later test for it is not
2225         # safe: cross compilers may not add the suffix if given an `-o'
2226         # argument, so we may need to know it at that point already.
2227         # Even if this section looks crufty: it has the advantage of
2228         # actually working.
2229         break;;
2230     * )
2231         break;;
2232   esac
2233 done
2234 test "$ac_cv_exeext" = no && ac_cv_exeext=
2235
2236 else
2237   echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2241 See \`config.log' for more details." >&5
2242 echo "$as_me: error: C compiler cannot create executables
2243 See \`config.log' for more details." >&2;}
2244    { (exit 77); exit 77; }; }
2245 fi
2246
2247 ac_exeext=$ac_cv_exeext
2248 { echo "$as_me:$LINENO: result: $ac_file" >&5
2249 echo "${ECHO_T}$ac_file" >&6; }
2250
2251 # Check that the compiler produces executables we can run.  If not, either
2252 # the compiler is broken, or we cross compile.
2253 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2254 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2255 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2256 # If not cross compiling, check that we can run a simple program.
2257 if test "$cross_compiling" != yes; then
2258   if { ac_try='./$ac_file'
2259   { (case "(($ac_try" in
2260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261   *) ac_try_echo=$ac_try;;
2262 esac
2263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2264   (eval "$ac_try") 2>&5
2265   ac_status=$?
2266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267   (exit $ac_status); }; }; then
2268     cross_compiling=no
2269   else
2270     if test "$cross_compiling" = maybe; then
2271         cross_compiling=yes
2272     else
2273         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2274 If you meant to cross compile, use \`--host'.
2275 See \`config.log' for more details." >&5
2276 echo "$as_me: error: cannot run C compiled programs.
2277 If you meant to cross compile, use \`--host'.
2278 See \`config.log' for more details." >&2;}
2279    { (exit 1); exit 1; }; }
2280     fi
2281   fi
2282 fi
2283 { echo "$as_me:$LINENO: result: yes" >&5
2284 echo "${ECHO_T}yes" >&6; }
2285
2286 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2287 ac_clean_files=$ac_clean_files_save
2288 # Check that the compiler produces executables we can run.  If not, either
2289 # the compiler is broken, or we cross compile.
2290 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2291 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2292 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2293 echo "${ECHO_T}$cross_compiling" >&6; }
2294
2295 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2296 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2297 if { (ac_try="$ac_link"
2298 case "(($ac_try" in
2299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300   *) ac_try_echo=$ac_try;;
2301 esac
2302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2303   (eval "$ac_link") 2>&5
2304   ac_status=$?
2305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306   (exit $ac_status); }; then
2307   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2308 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2309 # work properly (i.e., refer to `conftest.exe'), while it won't with
2310 # `rm'.
2311 for ac_file in conftest.exe conftest conftest.*; do
2312   test -f "$ac_file" || continue
2313   case $ac_file in
2314     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2315     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2316           break;;
2317     * ) break;;
2318   esac
2319 done
2320 else
2321   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2324 See \`config.log' for more details." >&2;}
2325    { (exit 1); exit 1; }; }
2326 fi
2327
2328 rm -f conftest$ac_cv_exeext
2329 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2330 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2331
2332 rm -f conftest.$ac_ext
2333 EXEEXT=$ac_cv_exeext
2334 ac_exeext=$EXEEXT
2335 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2336 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2337 if test "${ac_cv_objext+set}" = set; then
2338   echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340   cat >conftest.$ac_ext <<_ACEOF
2341 /* confdefs.h.  */
2342 _ACEOF
2343 cat confdefs.h >>conftest.$ac_ext
2344 cat >>conftest.$ac_ext <<_ACEOF
2345 /* end confdefs.h.  */
2346
2347 int
2348 main ()
2349 {
2350
2351   ;
2352   return 0;
2353 }
2354 _ACEOF
2355 rm -f conftest.o conftest.obj
2356 if { (ac_try="$ac_compile"
2357 case "(($ac_try" in
2358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359   *) ac_try_echo=$ac_try;;
2360 esac
2361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2362   (eval "$ac_compile") 2>&5
2363   ac_status=$?
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); }; then
2366   for ac_file in conftest.o conftest.obj conftest.*; do
2367   test -f "$ac_file" || continue;
2368   case $ac_file in
2369     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2370     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2371        break;;
2372   esac
2373 done
2374 else
2375   echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2377
2378 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2381 See \`config.log' for more details." >&2;}
2382    { (exit 1); exit 1; }; }
2383 fi
2384
2385 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2386 fi
2387 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2388 echo "${ECHO_T}$ac_cv_objext" >&6; }
2389 OBJEXT=$ac_cv_objext
2390 ac_objext=$OBJEXT
2391 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2392 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2393 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2394   echo $ECHO_N "(cached) $ECHO_C" >&6
2395 else
2396   cat >conftest.$ac_ext <<_ACEOF
2397 /* confdefs.h.  */
2398 _ACEOF
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h.  */
2402
2403 int
2404 main ()
2405 {
2406 #ifndef __GNUC__
2407        choke me
2408 #endif
2409
2410   ;
2411   return 0;
2412 }
2413 _ACEOF
2414 rm -f conftest.$ac_objext
2415 if { (ac_try="$ac_compile"
2416 case "(($ac_try" in
2417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418   *) ac_try_echo=$ac_try;;
2419 esac
2420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2421   (eval "$ac_compile") 2>conftest.er1
2422   ac_status=$?
2423   grep -v '^ *+' conftest.er1 >conftest.err
2424   rm -f conftest.er1
2425   cat conftest.err >&5
2426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427   (exit $ac_status); } &&
2428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2429   { (case "(($ac_try" in
2430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431   *) ac_try_echo=$ac_try;;
2432 esac
2433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434   (eval "$ac_try") 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }; } &&
2438          { ac_try='test -s conftest.$ac_objext'
2439   { (case "(($ac_try" in
2440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441   *) ac_try_echo=$ac_try;;
2442 esac
2443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444   (eval "$ac_try") 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }; }; then
2448   ac_compiler_gnu=yes
2449 else
2450   echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2452
2453         ac_compiler_gnu=no
2454 fi
2455
2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2457 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2458
2459 fi
2460 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2461 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2462 GCC=`test $ac_compiler_gnu = yes && echo yes`
2463 ac_test_CFLAGS=${CFLAGS+set}
2464 ac_save_CFLAGS=$CFLAGS
2465 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2466 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2467 if test "${ac_cv_prog_cc_g+set}" = set; then
2468   echo $ECHO_N "(cached) $ECHO_C" >&6
2469 else
2470   ac_save_c_werror_flag=$ac_c_werror_flag
2471    ac_c_werror_flag=yes
2472    ac_cv_prog_cc_g=no
2473    CFLAGS="-g"
2474    cat >conftest.$ac_ext <<_ACEOF
2475 /* confdefs.h.  */
2476 _ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h.  */
2480
2481 int
2482 main ()
2483 {
2484
2485   ;
2486   return 0;
2487 }
2488 _ACEOF
2489 rm -f conftest.$ac_objext
2490 if { (ac_try="$ac_compile"
2491 case "(($ac_try" in
2492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493   *) ac_try_echo=$ac_try;;
2494 esac
2495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496   (eval "$ac_compile") 2>conftest.er1
2497   ac_status=$?
2498   grep -v '^ *+' conftest.er1 >conftest.err
2499   rm -f conftest.er1
2500   cat conftest.err >&5
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); } &&
2503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2504   { (case "(($ac_try" in
2505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506   *) ac_try_echo=$ac_try;;
2507 esac
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509   (eval "$ac_try") 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; } &&
2513          { ac_try='test -s conftest.$ac_objext'
2514   { (case "(($ac_try" in
2515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516   *) ac_try_echo=$ac_try;;
2517 esac
2518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519   (eval "$ac_try") 2>&5
2520   ac_status=$?
2521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522   (exit $ac_status); }; }; then
2523   ac_cv_prog_cc_g=yes
2524 else
2525   echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2527
2528         CFLAGS=""
2529       cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h.  */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h.  */
2535
2536 int
2537 main ()
2538 {
2539
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (ac_try="$ac_compile"
2546 case "(($ac_try" in
2547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548   *) ac_try_echo=$ac_try;;
2549 esac
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551   (eval "$ac_compile") 2>conftest.er1
2552   ac_status=$?
2553   grep -v '^ *+' conftest.er1 >conftest.err
2554   rm -f conftest.er1
2555   cat conftest.err >&5
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2559   { (case "(($ac_try" in
2560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561   *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564   (eval "$ac_try") 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; } &&
2568          { ac_try='test -s conftest.$ac_objext'
2569   { (case "(($ac_try" in
2570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571   *) ac_try_echo=$ac_try;;
2572 esac
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574   (eval "$ac_try") 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }; }; then
2578   :
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583         ac_c_werror_flag=$ac_save_c_werror_flag
2584          CFLAGS="-g"
2585          cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h.  */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h.  */
2591
2592 int
2593 main ()
2594 {
2595
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (ac_try="$ac_compile"
2602 case "(($ac_try" in
2603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604   *) ac_try_echo=$ac_try;;
2605 esac
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607   (eval "$ac_compile") 2>conftest.er1
2608   ac_status=$?
2609   grep -v '^ *+' conftest.er1 >conftest.err
2610   rm -f conftest.er1
2611   cat conftest.err >&5
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); } &&
2614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2615   { (case "(($ac_try" in
2616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617   *) ac_try_echo=$ac_try;;
2618 esac
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620   (eval "$ac_try") 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }; } &&
2624          { ac_try='test -s conftest.$ac_objext'
2625   { (case "(($ac_try" in
2626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627   *) ac_try_echo=$ac_try;;
2628 esac
2629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2630   (eval "$ac_try") 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; }; then
2634   ac_cv_prog_cc_g=yes
2635 else
2636   echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639
2640 fi
2641
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 fi
2644
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 fi
2647
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649    ac_c_werror_flag=$ac_save_c_werror_flag
2650 fi
2651 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2652 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2653 if test "$ac_test_CFLAGS" = set; then
2654   CFLAGS=$ac_save_CFLAGS
2655 elif test $ac_cv_prog_cc_g = yes; then
2656   if test "$GCC" = yes; then
2657     CFLAGS="-g -O2"
2658   else
2659     CFLAGS="-g"
2660   fi
2661 else
2662   if test "$GCC" = yes; then
2663     CFLAGS="-O2"
2664   else
2665     CFLAGS=
2666   fi
2667 fi
2668 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2669 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2670 if test "${ac_cv_prog_cc_c89+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   ac_cv_prog_cc_c89=no
2674 ac_save_CC=$CC
2675 cat >conftest.$ac_ext <<_ACEOF
2676 /* confdefs.h.  */
2677 _ACEOF
2678 cat confdefs.h >>conftest.$ac_ext
2679 cat >>conftest.$ac_ext <<_ACEOF
2680 /* end confdefs.h.  */
2681 #include <stdarg.h>
2682 #include <stdio.h>
2683 #include <sys/types.h>
2684 #include <sys/stat.h>
2685 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2686 struct buf { int x; };
2687 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2688 static char *e (p, i)
2689      char **p;
2690      int i;
2691 {
2692   return p[i];
2693 }
2694 static char *f (char * (*g) (char **, int), char **p, ...)
2695 {
2696   char *s;
2697   va_list v;
2698   va_start (v,p);
2699   s = g (p, va_arg (v,int));
2700   va_end (v);
2701   return s;
2702 }
2703
2704 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2705    function prototypes and stuff, but not '\xHH' hex character constants.
2706    These don't provoke an error unfortunately, instead are silently treated
2707    as 'x'.  The following induces an error, until -std is added to get
2708    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2709    array size at least.  It's necessary to write '\x00'==0 to get something
2710    that's true only with -std.  */
2711 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2712
2713 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2714    inside strings and character constants.  */
2715 #define FOO(x) 'x'
2716 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2717
2718 int test (int i, double x);
2719 struct s1 {int (*f) (int a);};
2720 struct s2 {int (*f) (double a);};
2721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2722 int argc;
2723 char **argv;
2724 int
2725 main ()
2726 {
2727 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2728   ;
2729   return 0;
2730 }
2731 _ACEOF
2732 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2733         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2734 do
2735   CC="$ac_save_CC $ac_arg"
2736   rm -f conftest.$ac_objext
2737 if { (ac_try="$ac_compile"
2738 case "(($ac_try" in
2739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740   *) ac_try_echo=$ac_try;;
2741 esac
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743   (eval "$ac_compile") 2>conftest.er1
2744   ac_status=$?
2745   grep -v '^ *+' conftest.er1 >conftest.err
2746   rm -f conftest.er1
2747   cat conftest.err >&5
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); } &&
2750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2751   { (case "(($ac_try" in
2752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753   *) ac_try_echo=$ac_try;;
2754 esac
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756   (eval "$ac_try") 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; } &&
2760          { ac_try='test -s conftest.$ac_objext'
2761   { (case "(($ac_try" in
2762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763   *) ac_try_echo=$ac_try;;
2764 esac
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766   (eval "$ac_try") 2>&5
2767   ac_status=$?
2768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769   (exit $ac_status); }; }; then
2770   ac_cv_prog_cc_c89=$ac_arg
2771 else
2772   echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775
2776 fi
2777
2778 rm -f core conftest.err conftest.$ac_objext
2779   test "x$ac_cv_prog_cc_c89" != "xno" && break
2780 done
2781 rm -f conftest.$ac_ext
2782 CC=$ac_save_CC
2783
2784 fi
2785 # AC_CACHE_VAL
2786 case "x$ac_cv_prog_cc_c89" in
2787   x)
2788     { echo "$as_me:$LINENO: result: none needed" >&5
2789 echo "${ECHO_T}none needed" >&6; } ;;
2790   xno)
2791     { echo "$as_me:$LINENO: result: unsupported" >&5
2792 echo "${ECHO_T}unsupported" >&6; } ;;
2793   *)
2794     CC="$CC $ac_cv_prog_cc_c89"
2795     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2796 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2797 esac
2798
2799
2800 ac_ext=c
2801 ac_cpp='$CPP $CPPFLAGS'
2802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2805
2806 ac_ext=cpp
2807 ac_cpp='$CXXCPP $CPPFLAGS'
2808 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2811 if test -z "$CXX"; then
2812   if test -n "$CCC"; then
2813     CXX=$CCC
2814   else
2815     if test -n "$ac_tool_prefix"; then
2816   for ac_prog in clang++ g++
2817   do
2818     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2822 if test "${ac_cv_prog_CXX+set}" = set; then
2823   echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825   if test -n "$CXX"; then
2826   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2827 else
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833   for ac_exec_ext in '' $ac_executable_extensions; do
2834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2835     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837     break 2
2838   fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi
2844 fi
2845 CXX=$ac_cv_prog_CXX
2846 if test -n "$CXX"; then
2847   { echo "$as_me:$LINENO: result: $CXX" >&5
2848 echo "${ECHO_T}$CXX" >&6; }
2849 else
2850   { echo "$as_me:$LINENO: result: no" >&5
2851 echo "${ECHO_T}no" >&6; }
2852 fi
2853
2854
2855     test -n "$CXX" && break
2856   done
2857 fi
2858 if test -z "$CXX"; then
2859   ac_ct_CXX=$CXX
2860   for ac_prog in clang++ g++
2861 do
2862   # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy $ac_prog; ac_word=$2
2864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2866 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2867   echo $ECHO_N "(cached) $ECHO_C" >&6
2868 else
2869   if test -n "$ac_ct_CXX"; then
2870   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875   IFS=$as_save_IFS
2876   test -z "$as_dir" && as_dir=.
2877   for ac_exec_ext in '' $ac_executable_extensions; do
2878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2879     ac_cv_prog_ac_ct_CXX="$ac_prog"
2880     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2881     break 2
2882   fi
2883 done
2884 done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2890 if test -n "$ac_ct_CXX"; then
2891   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2892 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2893 else
2894   { echo "$as_me:$LINENO: result: no" >&5
2895 echo "${ECHO_T}no" >&6; }
2896 fi
2897
2898
2899   test -n "$ac_ct_CXX" && break
2900 done
2901
2902   if test "x$ac_ct_CXX" = x; then
2903     CXX="g++"
2904   else
2905     case $cross_compiling:$ac_tool_warned in
2906 yes:)
2907 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2908 whose name does not start with the host triplet.  If you think this
2909 configuration is useful to you, please write to autoconf@gnu.org." >&5
2910 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2911 whose name does not start with the host triplet.  If you think this
2912 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2913 ac_tool_warned=yes ;;
2914 esac
2915     CXX=$ac_ct_CXX
2916   fi
2917 fi
2918
2919   fi
2920 fi
2921 # Provide some information about the compiler.
2922 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2923 ac_compiler=`set X $ac_compile; echo $2`
2924 { (ac_try="$ac_compiler --version >&5"
2925 case "(($ac_try" in
2926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927   *) ac_try_echo=$ac_try;;
2928 esac
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930   (eval "$ac_compiler --version >&5") 2>&5
2931   ac_status=$?
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); }
2934 { (ac_try="$ac_compiler -v >&5"
2935 case "(($ac_try" in
2936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937   *) ac_try_echo=$ac_try;;
2938 esac
2939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2940   (eval "$ac_compiler -v >&5") 2>&5
2941   ac_status=$?
2942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943   (exit $ac_status); }
2944 { (ac_try="$ac_compiler -V >&5"
2945 case "(($ac_try" in
2946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947   *) ac_try_echo=$ac_try;;
2948 esac
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950   (eval "$ac_compiler -V >&5") 2>&5
2951   ac_status=$?
2952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953   (exit $ac_status); }
2954
2955 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2956 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2957 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2958   echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960   cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966
2967 int
2968 main ()
2969 {
2970 #ifndef __GNUC__
2971        choke me
2972 #endif
2973
2974   ;
2975   return 0;
2976 }
2977 _ACEOF
2978 rm -f conftest.$ac_objext
2979 if { (ac_try="$ac_compile"
2980 case "(($ac_try" in
2981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982   *) ac_try_echo=$ac_try;;
2983 esac
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985   (eval "$ac_compile") 2>conftest.er1
2986   ac_status=$?
2987   grep -v '^ *+' conftest.er1 >conftest.err
2988   rm -f conftest.er1
2989   cat conftest.err >&5
2990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991   (exit $ac_status); } &&
2992          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2993   { (case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998   (eval "$ac_try") 2>&5
2999   ac_status=$?
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); }; } &&
3002          { ac_try='test -s conftest.$ac_objext'
3003   { (case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_try") 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }; }; then
3012   ac_compiler_gnu=yes
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017         ac_compiler_gnu=no
3018 fi
3019
3020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3022
3023 fi
3024 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3025 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3026 GXX=`test $ac_compiler_gnu = yes && echo yes`
3027 ac_test_CXXFLAGS=${CXXFLAGS+set}
3028 ac_save_CXXFLAGS=$CXXFLAGS
3029 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3030 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3031 if test "${ac_cv_prog_cxx_g+set}" = set; then
3032   echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3035    ac_cxx_werror_flag=yes
3036    ac_cv_prog_cxx_g=no
3037    CXXFLAGS="-g"
3038    cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h.  */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h.  */
3044
3045 int
3046 main ()
3047 {
3048
3049   ;
3050   return 0;
3051 }
3052 _ACEOF
3053 rm -f conftest.$ac_objext
3054 if { (ac_try="$ac_compile"
3055 case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060   (eval "$ac_compile") 2>conftest.er1
3061   ac_status=$?
3062   grep -v '^ *+' conftest.er1 >conftest.err
3063   rm -f conftest.er1
3064   cat conftest.err >&5
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); } &&
3067          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3068   { (case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073   (eval "$ac_try") 2>&5
3074   ac_status=$?
3075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076   (exit $ac_status); }; } &&
3077          { ac_try='test -s conftest.$ac_objext'
3078   { (case "(($ac_try" in
3079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080   *) ac_try_echo=$ac_try;;
3081 esac
3082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3083   (eval "$ac_try") 2>&5
3084   ac_status=$?
3085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086   (exit $ac_status); }; }; then
3087   ac_cv_prog_cxx_g=yes
3088 else
3089   echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092         CXXFLAGS=""
3093       cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099
3100 int
3101 main ()
3102 {
3103
3104   ;
3105   return 0;
3106 }
3107 _ACEOF
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3110 case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_compile") 2>conftest.er1
3116   ac_status=$?
3117   grep -v '^ *+' conftest.er1 >conftest.err
3118   rm -f conftest.er1
3119   cat conftest.err >&5
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); } &&
3122          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3123   { (case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_try") 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; } &&
3132          { ac_try='test -s conftest.$ac_objext'
3133   { (case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_try") 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; }; then
3142   :
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3148          CXXFLAGS="-g"
3149          cat >conftest.$ac_ext <<_ACEOF
3150 /* confdefs.h.  */
3151 _ACEOF
3152 cat confdefs.h >>conftest.$ac_ext
3153 cat >>conftest.$ac_ext <<_ACEOF
3154 /* end confdefs.h.  */
3155
3156 int
3157 main ()
3158 {
3159
3160   ;
3161   return 0;
3162 }
3163 _ACEOF
3164 rm -f conftest.$ac_objext
3165 if { (ac_try="$ac_compile"
3166 case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_compile") 2>conftest.er1
3172   ac_status=$?
3173   grep -v '^ *+' conftest.er1 >conftest.err
3174   rm -f conftest.er1
3175   cat conftest.err >&5
3176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177   (exit $ac_status); } &&
3178          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3179   { (case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184   (eval "$ac_try") 2>&5
3185   ac_status=$?
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); }; } &&
3188          { ac_try='test -s conftest.$ac_objext'
3189   { (case "(($ac_try" in
3190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191   *) ac_try_echo=$ac_try;;
3192 esac
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194   (eval "$ac_try") 2>&5
3195   ac_status=$?
3196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); }; }; then
3198   ac_cv_prog_cxx_g=yes
3199 else
3200   echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203
3204 fi
3205
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 fi
3208
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 fi
3211
3212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3214 fi
3215 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3216 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3217 if test "$ac_test_CXXFLAGS" = set; then
3218   CXXFLAGS=$ac_save_CXXFLAGS
3219 elif test $ac_cv_prog_cxx_g = yes; then
3220   if test "$GXX" = yes; then
3221     CXXFLAGS="-g -O2"
3222   else
3223     CXXFLAGS="-g"
3224   fi
3225 else
3226   if test "$GXX" = yes; then
3227     CXXFLAGS="-O2"
3228   else
3229     CXXFLAGS=
3230   fi
3231 fi
3232 ac_ext=c
3233 ac_cpp='$CPP $CPPFLAGS'
3234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237
3238 ac_ext=c
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3244 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3245 # On Suns, sometimes $CPP names a directory.
3246 if test -n "$CPP" && test -d "$CPP"; then
3247   CPP=
3248 fi
3249 if test -z "$CPP"; then
3250   if test "${ac_cv_prog_CPP+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253       # Double quotes because CPP needs to be expanded
3254     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3255     do
3256       ac_preproc_ok=false
3257 for ac_c_preproc_warn_flag in '' yes
3258 do
3259   # Use a header file that comes with gcc, so configuring glibc
3260   # with a fresh cross-compiler works.
3261   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3262   # <limits.h> exists even on freestanding compilers.
3263   # On the NeXT, cc -E runs the code through the compiler's parser,
3264   # not just through cpp. "Syntax error" is here to catch this case.
3265   cat >conftest.$ac_ext <<_ACEOF
3266 /* confdefs.h.  */
3267 _ACEOF
3268 cat confdefs.h >>conftest.$ac_ext
3269 cat >>conftest.$ac_ext <<_ACEOF
3270 /* end confdefs.h.  */
3271 #ifdef __STDC__
3272 # include <limits.h>
3273 #else
3274 # include <assert.h>
3275 #endif
3276                      Syntax error
3277 _ACEOF
3278 if { (ac_try="$ac_cpp conftest.$ac_ext"
3279 case "(($ac_try" in
3280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281   *) ac_try_echo=$ac_try;;
3282 esac
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3285   ac_status=$?
3286   grep -v '^ *+' conftest.er1 >conftest.err
3287   rm -f conftest.er1
3288   cat conftest.err >&5
3289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290   (exit $ac_status); } >/dev/null; then
3291   if test -s conftest.err; then
3292     ac_cpp_err=$ac_c_preproc_warn_flag
3293     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3294   else
3295     ac_cpp_err=
3296   fi
3297 else
3298   ac_cpp_err=yes
3299 fi
3300 if test -z "$ac_cpp_err"; then
3301   :
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306   # Broken: fails on valid input.
3307 continue
3308 fi
3309
3310 rm -f conftest.err conftest.$ac_ext
3311
3312   # OK, works on sane cases.  Now check whether nonexistent headers
3313   # can be detected and how.
3314   cat >conftest.$ac_ext <<_ACEOF
3315 /* confdefs.h.  */
3316 _ACEOF
3317 cat confdefs.h >>conftest.$ac_ext
3318 cat >>conftest.$ac_ext <<_ACEOF
3319 /* end confdefs.h.  */
3320 #include <ac_nonexistent.h>
3321 _ACEOF
3322 if { (ac_try="$ac_cpp conftest.$ac_ext"
3323 case "(($ac_try" in
3324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325   *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3329   ac_status=$?
3330   grep -v '^ *+' conftest.er1 >conftest.err
3331   rm -f conftest.er1
3332   cat conftest.err >&5
3333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334   (exit $ac_status); } >/dev/null; then
3335   if test -s conftest.err; then
3336     ac_cpp_err=$ac_c_preproc_warn_flag
3337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3338   else
3339     ac_cpp_err=
3340   fi
3341 else
3342   ac_cpp_err=yes
3343 fi
3344 if test -z "$ac_cpp_err"; then
3345   # Broken: success on invalid input.
3346 continue
3347 else
3348   echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3350
3351   # Passes both tests.
3352 ac_preproc_ok=:
3353 break
3354 fi
3355
3356 rm -f conftest.err conftest.$ac_ext
3357
3358 done
3359 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3360 rm -f conftest.err conftest.$ac_ext
3361 if $ac_preproc_ok; then
3362   break
3363 fi
3364
3365     done
3366     ac_cv_prog_CPP=$CPP
3367
3368 fi
3369   CPP=$ac_cv_prog_CPP
3370 else
3371   ac_cv_prog_CPP=$CPP
3372 fi
3373 { echo "$as_me:$LINENO: result: $CPP" >&5
3374 echo "${ECHO_T}$CPP" >&6; }
3375 ac_preproc_ok=false
3376 for ac_c_preproc_warn_flag in '' yes
3377 do
3378   # Use a header file that comes with gcc, so configuring glibc
3379   # with a fresh cross-compiler works.
3380   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381   # <limits.h> exists even on freestanding compilers.
3382   # On the NeXT, cc -E runs the code through the compiler's parser,
3383   # not just through cpp. "Syntax error" is here to catch this case.
3384   cat >conftest.$ac_ext <<_ACEOF
3385 /* confdefs.h.  */
3386 _ACEOF
3387 cat confdefs.h >>conftest.$ac_ext
3388 cat >>conftest.$ac_ext <<_ACEOF
3389 /* end confdefs.h.  */
3390 #ifdef __STDC__
3391 # include <limits.h>
3392 #else
3393 # include <assert.h>
3394 #endif
3395                      Syntax error
3396 _ACEOF
3397 if { (ac_try="$ac_cpp conftest.$ac_ext"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404   ac_status=$?
3405   grep -v '^ *+' conftest.er1 >conftest.err
3406   rm -f conftest.er1
3407   cat conftest.err >&5
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); } >/dev/null; then
3410   if test -s conftest.err; then
3411     ac_cpp_err=$ac_c_preproc_warn_flag
3412     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413   else
3414     ac_cpp_err=
3415   fi
3416 else
3417   ac_cpp_err=yes
3418 fi
3419 if test -z "$ac_cpp_err"; then
3420   :
3421 else
3422   echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3424
3425   # Broken: fails on valid input.
3426 continue
3427 fi
3428
3429 rm -f conftest.err conftest.$ac_ext
3430
3431   # OK, works on sane cases.  Now check whether nonexistent headers
3432   # can be detected and how.
3433   cat >conftest.$ac_ext <<_ACEOF
3434 /* confdefs.h.  */
3435 _ACEOF
3436 cat confdefs.h >>conftest.$ac_ext
3437 cat >>conftest.$ac_ext <<_ACEOF
3438 /* end confdefs.h.  */
3439 #include <ac_nonexistent.h>
3440 _ACEOF
3441 if { (ac_try="$ac_cpp conftest.$ac_ext"
3442 case "(($ac_try" in
3443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444   *) ac_try_echo=$ac_try;;
3445 esac
3446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3447   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3448   ac_status=$?
3449   grep -v '^ *+' conftest.er1 >conftest.err
3450   rm -f conftest.er1
3451   cat conftest.err >&5
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); } >/dev/null; then
3454   if test -s conftest.err; then
3455     ac_cpp_err=$ac_c_preproc_warn_flag
3456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3457   else
3458     ac_cpp_err=
3459   fi
3460 else
3461   ac_cpp_err=yes
3462 fi
3463 if test -z "$ac_cpp_err"; then
3464   # Broken: success on invalid input.
3465 continue
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470   # Passes both tests.
3471 ac_preproc_ok=:
3472 break
3473 fi
3474
3475 rm -f conftest.err conftest.$ac_ext
3476
3477 done
3478 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3479 rm -f conftest.err conftest.$ac_ext
3480 if $ac_preproc_ok; then
3481   :
3482 else
3483   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3484 See \`config.log' for more details." >&5
3485 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3486 See \`config.log' for more details." >&2;}
3487    { (exit 1); exit 1; }; }
3488 fi
3489
3490 ac_ext=c
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495
3496
3497 if test "$CXX" = "clang++" ; then
3498   { echo "$as_me:$LINENO: checking whether clang works" >&5
3499 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3500   ac_ext=cpp
3501 ac_cpp='$CXXCPP $CPPFLAGS'
3502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3505
3506
3507 cat >conftest.$ac_ext <<_ACEOF
3508 /* confdefs.h.  */
3509 _ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h.  */
3513 #include <limits>
3514 #if __has_include (<cxxabi.h>)
3515 #include <cxxabi.h>
3516 #endif
3517 #if __has_include (<unwind.h>)
3518 #include <unwind.h>
3519 #endif
3520
3521 int
3522 main ()
3523 {
3524
3525   ;
3526   return 0;
3527 }
3528 _ACEOF
3529 rm -f conftest.$ac_objext
3530 if { (ac_try="$ac_compile"
3531 case "(($ac_try" in
3532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533   *) ac_try_echo=$ac_try;;
3534 esac
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536   (eval "$ac_compile") 2>conftest.er1
3537   ac_status=$?
3538   grep -v '^ *+' conftest.er1 >conftest.err
3539   rm -f conftest.er1
3540   cat conftest.err >&5
3541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542   (exit $ac_status); } &&
3543          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3544   { (case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549   (eval "$ac_try") 2>&5
3550   ac_status=$?
3551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552   (exit $ac_status); }; } &&
3553          { ac_try='test -s conftest.$ac_objext'
3554   { (case "(($ac_try" in
3555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556   *) ac_try_echo=$ac_try;;
3557 esac
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559   (eval "$ac_try") 2>&5
3560   ac_status=$?
3561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562   (exit $ac_status); }; }; then
3563
3564   { echo "$as_me:$LINENO: result: yes" >&5
3565 echo "${ECHO_T}yes" >&6; }
3566
3567 else
3568   echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571
3572   { echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6; }
3574   { { 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
3575 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;}
3576    { (exit 1); exit 1; }; }
3577
3578 fi
3579
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581   ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
3587 fi
3588
3589 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3590 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3591 ac_ext=cpp
3592 ac_cpp='$CXXCPP $CPPFLAGS'
3593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3596
3597 llvm_cv_cxx_compiler=unknown
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h.  */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h.  */
3604 #if ! __clang__
3605                                     #error
3606                                     #endif
3607
3608 _ACEOF
3609 rm -f conftest.$ac_objext
3610 if { (ac_try="$ac_compile"
3611 case "(($ac_try" in
3612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613   *) ac_try_echo=$ac_try;;
3614 esac
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616   (eval "$ac_compile") 2>conftest.er1
3617   ac_status=$?
3618   grep -v '^ *+' conftest.er1 >conftest.err
3619   rm -f conftest.er1
3620   cat conftest.err >&5
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); } &&
3623          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3624   { (case "(($ac_try" in
3625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626   *) ac_try_echo=$ac_try;;
3627 esac
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629   (eval "$ac_try") 2>&5
3630   ac_status=$?
3631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632   (exit $ac_status); }; } &&
3633          { ac_try='test -s conftest.$ac_objext'
3634   { (case "(($ac_try" in
3635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636   *) ac_try_echo=$ac_try;;
3637 esac
3638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3639   (eval "$ac_try") 2>&5
3640   ac_status=$?
3641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642   (exit $ac_status); }; }; then
3643   llvm_cv_cxx_compiler=clang
3644 else
3645   echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3647
3648         cat >conftest.$ac_ext <<_ACEOF
3649 /* confdefs.h.  */
3650 _ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h.  */
3654 #if ! __GNUC__
3655                                                        #error
3656                                                        #endif
3657
3658 _ACEOF
3659 rm -f conftest.$ac_objext
3660 if { (ac_try="$ac_compile"
3661 case "(($ac_try" in
3662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663   *) ac_try_echo=$ac_try;;
3664 esac
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666   (eval "$ac_compile") 2>conftest.er1
3667   ac_status=$?
3668   grep -v '^ *+' conftest.er1 >conftest.err
3669   rm -f conftest.er1
3670   cat conftest.err >&5
3671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672   (exit $ac_status); } &&
3673          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3674   { (case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679   (eval "$ac_try") 2>&5
3680   ac_status=$?
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); }; } &&
3683          { ac_try='test -s conftest.$ac_objext'
3684   { (case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689   (eval "$ac_try") 2>&5
3690   ac_status=$?
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); }; }; then
3693   llvm_cv_cxx_compiler=gcc
3694 else
3695   echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698
3699 fi
3700
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 fi
3703
3704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 ac_ext=c
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710
3711 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3712 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3713
3714
3715
3716 if test -d ${srcdir}/projects/test-suite ; then
3717   subdirs="$subdirs projects/test-suite"
3718
3719 fi
3720
3721 if test -d ${srcdir}/projects/llvm-test ; then
3722   subdirs="$subdirs projects/llvm-test"
3723
3724 fi
3725
3726 if test -d ${srcdir}/projects/poolalloc ; then
3727   subdirs="$subdirs projects/poolalloc"
3728
3729 fi
3730
3731 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3732   subdirs="$subdirs projects/llvm-poolalloc"
3733
3734 fi
3735
3736 for i in `ls ${srcdir}/projects`
3737 do
3738   if test -d ${srcdir}/projects/${i} ; then
3739     case ${i} in
3740       safecode)     subdirs="$subdirs projects/safecode"
3741  ;;
3742       compiler-rt)       ;;
3743       test-suite)     ;;
3744       llvm-test)      ;;
3745       poolalloc)      ;;
3746       llvm-poolalloc) ;;
3747       *)
3748         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3749 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3750         ;;
3751     esac
3752   fi
3753 done
3754
3755 # Check whether --enable-polly was given.
3756 if test "${enable_polly+set}" = set; then
3757   enableval=$enable_polly;
3758 else
3759   enableval=default
3760 fi
3761
3762 case "$enableval" in
3763   yes) ENABLE_POLLY=1
3764  ;;
3765   no)  ENABLE_POLLY=0
3766  ;;
3767   default) ENABLE_POLLY=1
3768  ;;
3769   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3770 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3771    { (exit 1); exit 1; }; } ;;
3772 esac
3773
3774
3775 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3776   LLVM_HAS_POLLY=1
3777
3778   subdirs="$subdirs tools/polly"
3779
3780 fi
3781
3782
3783 # Make sure we can run config.sub.
3784 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3785   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3786 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3787    { (exit 1); exit 1; }; }
3788
3789 { echo "$as_me:$LINENO: checking build system type" >&5
3790 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3791 if test "${ac_cv_build+set}" = set; then
3792   echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794   ac_build_alias=$build_alias
3795 test "x$ac_build_alias" = x &&
3796   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3797 test "x$ac_build_alias" = x &&
3798   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3799 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3800    { (exit 1); exit 1; }; }
3801 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3802   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3803 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3804    { (exit 1); exit 1; }; }
3805
3806 fi
3807 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3808 echo "${ECHO_T}$ac_cv_build" >&6; }
3809 case $ac_cv_build in
3810 *-*-*) ;;
3811 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3812 echo "$as_me: error: invalid value of canonical build" >&2;}
3813    { (exit 1); exit 1; }; };;
3814 esac
3815 build=$ac_cv_build
3816 ac_save_IFS=$IFS; IFS='-'
3817 set x $ac_cv_build
3818 shift
3819 build_cpu=$1
3820 build_vendor=$2
3821 shift; shift
3822 # Remember, the first character of IFS is used to create $*,
3823 # except with old shells:
3824 build_os=$*
3825 IFS=$ac_save_IFS
3826 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3827
3828
3829 { echo "$as_me:$LINENO: checking host system type" >&5
3830 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3831 if test "${ac_cv_host+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   if test "x$host_alias" = x; then
3835   ac_cv_host=$ac_cv_build
3836 else
3837   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3838     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3839 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3840    { (exit 1); exit 1; }; }
3841 fi
3842
3843 fi
3844 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3845 echo "${ECHO_T}$ac_cv_host" >&6; }
3846 case $ac_cv_host in
3847 *-*-*) ;;
3848 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3849 echo "$as_me: error: invalid value of canonical host" >&2;}
3850    { (exit 1); exit 1; }; };;
3851 esac
3852 host=$ac_cv_host
3853 ac_save_IFS=$IFS; IFS='-'
3854 set x $ac_cv_host
3855 shift
3856 host_cpu=$1
3857 host_vendor=$2
3858 shift; shift
3859 # Remember, the first character of IFS is used to create $*,
3860 # except with old shells:
3861 host_os=$*
3862 IFS=$ac_save_IFS
3863 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3864
3865
3866 { echo "$as_me:$LINENO: checking target system type" >&5
3867 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3868 if test "${ac_cv_target+set}" = set; then
3869   echo $ECHO_N "(cached) $ECHO_C" >&6
3870 else
3871   if test "x$target_alias" = x; then
3872   ac_cv_target=$ac_cv_host
3873 else
3874   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3875     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3876 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3877    { (exit 1); exit 1; }; }
3878 fi
3879
3880 fi
3881 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3882 echo "${ECHO_T}$ac_cv_target" >&6; }
3883 case $ac_cv_target in
3884 *-*-*) ;;
3885 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3886 echo "$as_me: error: invalid value of canonical target" >&2;}
3887    { (exit 1); exit 1; }; };;
3888 esac
3889 target=$ac_cv_target
3890 ac_save_IFS=$IFS; IFS='-'
3891 set x $ac_cv_target
3892 shift
3893 target_cpu=$1
3894 target_vendor=$2
3895 shift; shift
3896 # Remember, the first character of IFS is used to create $*,
3897 # except with old shells:
3898 target_os=$*
3899 IFS=$ac_save_IFS
3900 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3901
3902
3903 # The aliases save the names the user supplied, while $host etc.
3904 # will get canonicalized.
3905 test -n "$target_alias" &&
3906   test "$program_prefix$program_suffix$program_transform_name" = \
3907     NONENONEs,x,x, &&
3908   program_prefix=${target_alias}-
3909
3910 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3911 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3912 if test "${llvm_cv_os_type+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   case $host in
3916   *-*-aix*)
3917     llvm_cv_link_all_option="-Wl,--whole-archive"
3918     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3919     llvm_cv_os_type="AIX"
3920     llvm_cv_platform_type="Unix" ;;
3921   *-*-irix*)
3922     llvm_cv_link_all_option="-Wl,--whole-archive"
3923     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3924     llvm_cv_os_type="IRIX"
3925     llvm_cv_platform_type="Unix" ;;
3926   *-*-cygwin*)
3927     llvm_cv_link_all_option="-Wl,--whole-archive"
3928     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3929     llvm_cv_os_type="Cygwin"
3930     llvm_cv_platform_type="Unix" ;;
3931   *-*-darwin*)
3932     llvm_cv_link_all_option="-Wl,-all_load"
3933     llvm_cv_no_link_all_option="-Wl,-noall_load"
3934     llvm_cv_os_type="Darwin"
3935     llvm_cv_platform_type="Unix" ;;
3936   *-*-minix*)
3937     llvm_cv_link_all_option="-Wl,-all_load"
3938     llvm_cv_no_link_all_option="-Wl,-noall_load"
3939     llvm_cv_os_type="Minix"
3940     llvm_cv_platform_type="Unix" ;;
3941   *-*-freebsd*)
3942     llvm_cv_link_all_option="-Wl,--whole-archive"
3943     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3944     llvm_cv_os_type="FreeBSD"
3945     llvm_cv_platform_type="Unix" ;;
3946   *-*-kfreebsd-gnu)
3947     llvm_cv_link_all_option="-Wl,--whole-archive"
3948     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3949     llvm_cv_os_type="GNU/kFreeBSD"
3950     llvm_cv_platform_type="Unix" ;;
3951   *-*-openbsd*)
3952     llvm_cv_link_all_option="-Wl,--whole-archive"
3953     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3954     llvm_cv_os_type="OpenBSD"
3955     llvm_cv_platform_type="Unix" ;;
3956   *-*-netbsd*)
3957     llvm_cv_link_all_option="-Wl,--whole-archive"
3958     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3959     llvm_cv_os_type="NetBSD"
3960     llvm_cv_platform_type="Unix" ;;
3961   *-*-dragonfly*)
3962     llvm_cv_link_all_option="-Wl,--whole-archive"
3963     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3964     llvm_cv_os_type="DragonFly"
3965     llvm_cv_platform_type="Unix" ;;
3966   *-*-hpux*)
3967     llvm_cv_link_all_option="-Wl,--whole-archive"
3968     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3969     llvm_cv_os_type="HP-UX"
3970     llvm_cv_platform_type="Unix" ;;
3971   *-*-interix*)
3972     llvm_cv_link_all_option="-Wl,--whole-archive"
3973     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3974     llvm_cv_os_type="Interix"
3975     llvm_cv_platform_type="Unix" ;;
3976   *-*-linux*)
3977     llvm_cv_link_all_option="-Wl,--whole-archive"
3978     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3979     llvm_cv_os_type="Linux"
3980     llvm_cv_platform_type="Unix" ;;
3981   *-*-gnu*)
3982     llvm_cv_link_all_option="-Wl,--whole-archive"
3983     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3984     llvm_cv_os_type="GNU"
3985     llvm_cv_platform_type="Unix" ;;
3986   *-*-solaris*)
3987     llvm_cv_link_all_option="-Wl,-z,allextract"
3988     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3989     llvm_cv_os_type="SunOS"
3990     llvm_cv_platform_type="Unix" ;;
3991   *-*-win32*)
3992     llvm_cv_link_all_option="-Wl,--whole-archive"
3993     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3994     llvm_cv_os_type="Win32"
3995     llvm_cv_platform_type="Win32" ;;
3996   *-*-mingw*)
3997     llvm_cv_link_all_option="-Wl,--whole-archive"
3998     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3999     llvm_cv_os_type="MingW"
4000     llvm_cv_platform_type="Win32" ;;
4001   *-*-haiku*)
4002     llvm_cv_link_all_option="-Wl,--whole-archive"
4003     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4004     llvm_cv_os_type="Haiku"
4005     llvm_cv_platform_type="Unix" ;;
4006   *-unknown-eabi*)
4007     llvm_cv_link_all_option="-Wl,--whole-archive"
4008     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4009     llvm_cv_os_type="Freestanding"
4010     llvm_cv_platform_type="Unix" ;;
4011   *-unknown-elf*)
4012     llvm_cv_link_all_option="-Wl,--whole-archive"
4013     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4014     llvm_cv_os_type="Freestanding"
4015     llvm_cv_platform_type="Unix" ;;
4016   *)
4017     llvm_cv_link_all_option=""
4018     llvm_cv_no_link_all_option=""
4019     llvm_cv_os_type="Unknown"
4020     llvm_cv_platform_type="Unknown" ;;
4021 esac
4022 fi
4023 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4024 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4025
4026 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4027 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4028 if test "${llvm_cv_target_os_type+set}" = set; then
4029   echo $ECHO_N "(cached) $ECHO_C" >&6
4030 else
4031   case $target in
4032   *-*-aix*)
4033     llvm_cv_target_os_type="AIX" ;;
4034   *-*-irix*)
4035     llvm_cv_target_os_type="IRIX" ;;
4036   *-*-cygwin*)
4037     llvm_cv_target_os_type="Cygwin" ;;
4038   *-*-darwin*)
4039     llvm_cv_target_os_type="Darwin" ;;
4040   *-*-minix*)
4041     llvm_cv_target_os_type="Minix" ;;
4042   *-*-freebsd*)
4043     llvm_cv_target_os_type="FreeBSD" ;;
4044   *-*-kfreebsd-gnu)
4045     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4046   *-*-openbsd*)
4047     llvm_cv_target_os_type="OpenBSD" ;;
4048   *-*-netbsd*)
4049     llvm_cv_target_os_type="NetBSD" ;;
4050   *-*-dragonfly*)
4051     llvm_cv_target_os_type="DragonFly" ;;
4052   *-*-hpux*)
4053     llvm_cv_target_os_type="HP-UX" ;;
4054   *-*-interix*)
4055     llvm_cv_target_os_type="Interix" ;;
4056   *-*-linux*)
4057     llvm_cv_target_os_type="Linux" ;;
4058   *-*-gnu*)
4059     llvm_cv_target_os_type="GNU" ;;
4060   *-*-solaris*)
4061     llvm_cv_target_os_type="SunOS" ;;
4062   *-*-win32*)
4063     llvm_cv_target_os_type="Win32" ;;
4064   *-*-mingw*)
4065     llvm_cv_target_os_type="MingW" ;;
4066   *-*-haiku*)
4067     llvm_cv_target_os_type="Haiku" ;;
4068   *-*-rtems*)
4069     llvm_cv_target_os_type="RTEMS" ;;
4070   *-*-nacl*)
4071     llvm_cv_target_os_type="NativeClient" ;;
4072   *-unknown-eabi*)
4073     llvm_cv_target_os_type="Freestanding" ;;
4074   *)
4075     llvm_cv_target_os_type="Unknown" ;;
4076 esac
4077 fi
4078 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4079 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4080
4081 if test "$llvm_cv_os_type" = "Unknown" ; then
4082   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4083 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4084    { (exit 1); exit 1; }; }
4085 fi
4086
4087 OS=$llvm_cv_os_type
4088
4089 HOST_OS=$llvm_cv_os_type
4090
4091 TARGET_OS=$llvm_cv_target_os_type
4092
4093
4094 LINKALL=$llvm_cv_link_all_option
4095
4096 NOLINKALL=$llvm_cv_no_link_all_option
4097
4098
4099 case $llvm_cv_platform_type in
4100   Unix)
4101
4102 cat >>confdefs.h <<\_ACEOF
4103 #define LLVM_ON_UNIX 1
4104 _ACEOF
4105
4106     LLVM_ON_UNIX=1
4107
4108     LLVM_ON_WIN32=0
4109
4110     ;;
4111   Win32)
4112
4113 cat >>confdefs.h <<\_ACEOF
4114 #define LLVM_ON_WIN32 1
4115 _ACEOF
4116
4117     LLVM_ON_UNIX=0
4118
4119     LLVM_ON_WIN32=1
4120
4121     ;;
4122 esac
4123
4124 { echo "$as_me:$LINENO: checking target architecture" >&5
4125 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4126 if test "${llvm_cv_target_arch+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   case $target in
4130   i?86-*)                 llvm_cv_target_arch="x86" ;;
4131   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4132   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4133   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4134   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4135   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4136   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4137   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4138   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4139   xcore-*)                llvm_cv_target_arch="XCore" ;;
4140   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4141   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4142   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4143   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4144   *)                      llvm_cv_target_arch="Unknown" ;;
4145 esac
4146 fi
4147 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4148 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4149
4150 if test "$llvm_cv_target_arch" = "Unknown" ; then
4151   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4152 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4153 fi
4154
4155 case "$llvm_cv_target_arch" in
4156     x86)     LLVM_NATIVE_ARCH="X86" ;;
4157     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4158     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4159 esac
4160
4161 ARCH=$llvm_cv_target_arch
4162
4163 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4164
4165
4166 case $host in
4167   i?86-*)                 host_arch="x86" ;;
4168   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4169   sparc*-*)               host_arch="Sparc" ;;
4170   powerpc*-*)             host_arch="PowerPC" ;;
4171   arm64*-*)               host_arch="AArch64" ;;
4172   arm*-*)                 host_arch="ARM" ;;
4173   aarch64*-*)             host_arch="AArch64" ;;
4174   mips-* | mips64-*)      host_arch="Mips" ;;
4175   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4176   xcore-*)                host_arch="XCore" ;;
4177   msp430-*)               host_arch="MSP430" ;;
4178   hexagon-*)              host_arch="Hexagon" ;;
4179   s390x-*)                host_arch="SystemZ" ;;
4180   *)                      host_arch="Unknown" ;;
4181 esac
4182
4183 if test "$host_arch" = "Unknown" ; then
4184   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4185 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4186 fi
4187
4188 HOST_ARCH=$host_arch
4189
4190
4191 if test "$cross_compiling" = yes; then
4192   LLVM_CROSS_COMPILING=1
4193
4194
4195 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4196 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4197 if test "${ac_cv_build_exeext+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4201   ac_cv_build_exeext=.exe
4202 else
4203   ac_build_prefix=${build_alias}-
4204
4205   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4206 set dummy ${ac_build_prefix}gcc; ac_word=$2
4207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4209 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4210   echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212   if test -n "$BUILD_CC"; then
4213   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4214 else
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218   IFS=$as_save_IFS
4219   test -z "$as_dir" && as_dir=.
4220   for ac_exec_ext in '' $ac_executable_extensions; do
4221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4222     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224     break 2
4225   fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 fi
4231 fi
4232 BUILD_CC=$ac_cv_prog_BUILD_CC
4233 if test -n "$BUILD_CC"; then
4234   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4235 echo "${ECHO_T}$BUILD_CC" >&6; }
4236 else
4237   { echo "$as_me:$LINENO: result: no" >&5
4238 echo "${ECHO_T}no" >&6; }
4239 fi
4240
4241
4242   if test -z "$BUILD_CC"; then
4243      # Extract the first word of "gcc", so it can be a program name with args.
4244 set dummy gcc; ac_word=$2
4245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4247 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   if test -n "$BUILD_CC"; then
4251   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256   IFS=$as_save_IFS
4257   test -z "$as_dir" && as_dir=.
4258   for ac_exec_ext in '' $ac_executable_extensions; do
4259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4260     ac_cv_prog_BUILD_CC="gcc"
4261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262     break 2
4263   fi
4264 done
4265 done
4266 IFS=$as_save_IFS
4267
4268 fi
4269 fi
4270 BUILD_CC=$ac_cv_prog_BUILD_CC
4271 if test -n "$BUILD_CC"; then
4272   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4273 echo "${ECHO_T}$BUILD_CC" >&6; }
4274 else
4275   { echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6; }
4277 fi
4278
4279
4280      if test -z "$BUILD_CC"; then
4281        # Extract the first word of "cc", so it can be a program name with args.
4282 set dummy cc; ac_word=$2
4283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4285 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   if test -n "$BUILD_CC"; then
4289   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4290 else
4291   ac_prog_rejected=no
4292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293 for as_dir in $PATH
4294 do
4295   IFS=$as_save_IFS
4296   test -z "$as_dir" && as_dir=.
4297   for ac_exec_ext in '' $ac_executable_extensions; do
4298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4299     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4300        ac_prog_rejected=yes
4301        continue
4302      fi
4303     ac_cv_prog_BUILD_CC="cc"
4304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4305     break 2
4306   fi
4307 done
4308 done
4309 IFS=$as_save_IFS
4310
4311 if test $ac_prog_rejected = yes; then
4312   # We found a bogon in the path, so make sure we never use it.
4313   set dummy $ac_cv_prog_BUILD_CC
4314   shift
4315   if test $# != 0; then
4316     # We chose a different compiler from the bogus one.
4317     # However, it has the same basename, so the bogon will be chosen
4318     # first if we set BUILD_CC to just the basename; use the full file name.
4319     shift
4320     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4321   fi
4322 fi
4323 fi
4324 fi
4325 BUILD_CC=$ac_cv_prog_BUILD_CC
4326 if test -n "$BUILD_CC"; then
4327   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4328 echo "${ECHO_T}$BUILD_CC" >&6; }
4329 else
4330   { echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6; }
4332 fi
4333
4334
4335      fi
4336   fi
4337   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4338 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4339    { (exit 1); exit 1; }; }
4340   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4341   rm -f conftest*
4342   echo 'int main () { return 0; }' > conftest.$ac_ext
4343   ac_cv_build_exeext=
4344   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4345   (eval $ac_build_link) 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }; then
4349     for file in conftest.*; do
4350       case $file in
4351       *.c | *.o | *.obj | *.dSYM) ;;
4352       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4353       esac
4354     done
4355   else
4356     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4357 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4358    { (exit 1); exit 1; }; }
4359   fi
4360   rm -f conftest*
4361   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4362 fi
4363 fi
4364
4365 BUILD_EXEEXT=""
4366 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4367 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4368 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4369 ac_build_exeext=$BUILD_EXEEXT
4370
4371   ac_build_prefix=${build_alias}-
4372   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4373 set dummy ${ac_build_prefix}g++; ac_word=$2
4374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   if test -n "$BUILD_CXX"; then
4380   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4384 do
4385   IFS=$as_save_IFS
4386   test -z "$as_dir" && as_dir=.
4387   for ac_exec_ext in '' $ac_executable_extensions; do
4388   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4389     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4390     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391     break 2
4392   fi
4393 done
4394 done
4395 IFS=$as_save_IFS
4396
4397 fi
4398 fi
4399 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4400 if test -n "$BUILD_CXX"; then
4401   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4402 echo "${ECHO_T}$BUILD_CXX" >&6; }
4403 else
4404   { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4406 fi
4407
4408
4409   if test -z "$BUILD_CXX"; then
4410      # Extract the first word of "g++", so it can be a program name with args.
4411 set dummy g++; ac_word=$2
4412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4415   echo $ECHO_N "(cached) $ECHO_C" >&6
4416 else
4417   if test -n "$BUILD_CXX"; then
4418   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4419 else
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423   IFS=$as_save_IFS
4424   test -z "$as_dir" && as_dir=.
4425   for ac_exec_ext in '' $ac_executable_extensions; do
4426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4427     ac_cv_prog_BUILD_CXX="g++"
4428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429     break 2
4430   fi
4431 done
4432 done
4433 IFS=$as_save_IFS
4434
4435 fi
4436 fi
4437 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4438 if test -n "$BUILD_CXX"; then
4439   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4440 echo "${ECHO_T}$BUILD_CXX" >&6; }
4441 else
4442   { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }
4444 fi
4445
4446
4447      if test -z "$BUILD_CXX"; then
4448        # Extract the first word of "c++", so it can be a program name with args.
4449 set dummy c++; ac_word=$2
4450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4452 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4453   echo $ECHO_N "(cached) $ECHO_C" >&6
4454 else
4455   if test -n "$BUILD_CXX"; then
4456   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4457 else
4458   ac_prog_rejected=no
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462   IFS=$as_save_IFS
4463   test -z "$as_dir" && as_dir=.
4464   for ac_exec_ext in '' $ac_executable_extensions; do
4465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4466     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4467        ac_prog_rejected=yes
4468        continue
4469      fi
4470     ac_cv_prog_BUILD_CXX="c++"
4471     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472     break 2
4473   fi
4474 done
4475 done
4476 IFS=$as_save_IFS
4477
4478 if test $ac_prog_rejected = yes; then
4479   # We found a bogon in the path, so make sure we never use it.
4480   set dummy $ac_cv_prog_BUILD_CXX
4481   shift
4482   if test $# != 0; then
4483     # We chose a different compiler from the bogus one.
4484     # However, it has the same basename, so the bogon will be chosen
4485     # first if we set BUILD_CXX to just the basename; use the full file name.
4486     shift
4487     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4488   fi
4489 fi
4490 fi
4491 fi
4492 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4493 if test -n "$BUILD_CXX"; then
4494   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4495 echo "${ECHO_T}$BUILD_CXX" >&6; }
4496 else
4497   { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4499 fi
4500
4501
4502      fi
4503   fi
4504 else
4505   LLVM_CROSS_COMPILING=0
4506
4507 fi
4508
4509 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4510   cvsbuild="yes"
4511   optimize="no"
4512   CVSBUILD=CVSBUILD=1
4513
4514 else
4515   cvsbuild="no"
4516   optimize="yes"
4517 fi
4518
4519
4520 # Check whether --enable-libcpp was given.
4521 if test "${enable_libcpp+set}" = set; then
4522   enableval=$enable_libcpp;
4523 else
4524   enableval=default
4525 fi
4526
4527 case "$enableval" in
4528   yes) ENABLE_LIBCPP=1
4529  ;;
4530   no)  ENABLE_LIBCPP=0
4531  ;;
4532   default) ENABLE_LIBCPP=0
4533 ;;
4534   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4535 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4536    { (exit 1); exit 1; }; } ;;
4537 esac
4538
4539 # Check whether --enable-compiler-version-checks was given.
4540 if test "${enable_compiler_version_checks+set}" = set; then
4541   enableval=$enable_compiler_version_checks;
4542 else
4543   enableval=default
4544 fi
4545
4546 case "$enableval" in
4547   no)
4548     ;;
4549   yes|default)
4550     ac_ext=cpp
4551 ac_cpp='$CXXCPP $CPPFLAGS'
4552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4555
4556     case "$llvm_cv_cxx_compiler" in
4557     clang)
4558       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4559 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4560       cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566
4567 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4568 #error This version of Clang is too old to build LLVM
4569 #endif
4570
4571 _ACEOF
4572 rm -f conftest.$ac_objext
4573 if { (ac_try="$ac_compile"
4574 case "(($ac_try" in
4575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576   *) ac_try_echo=$ac_try;;
4577 esac
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579   (eval "$ac_compile") 2>conftest.er1
4580   ac_status=$?
4581   grep -v '^ *+' conftest.er1 >conftest.err
4582   rm -f conftest.er1
4583   cat conftest.err >&5
4584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585   (exit $ac_status); } &&
4586          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4587   { (case "(($ac_try" in
4588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4589   *) ac_try_echo=$ac_try;;
4590 esac
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592   (eval "$ac_try") 2>&5
4593   ac_status=$?
4594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595   (exit $ac_status); }; } &&
4596          { ac_try='test -s conftest.$ac_objext'
4597   { (case "(($ac_try" in
4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599   *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602   (eval "$ac_try") 2>&5
4603   ac_status=$?
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); }; }; then
4606   { echo "$as_me:$LINENO: result: yes" >&5
4607 echo "${ECHO_T}yes" >&6; }
4608 else
4609   echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4611
4612         { echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6; }
4614            { { echo "$as_me:$LINENO: error:
4615 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4616 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4617 bypass these sanity checks." >&5
4618 echo "$as_me: error:
4619 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4620 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4621 bypass these sanity checks." >&2;}
4622    { (exit 1); exit 1; }; }
4623 fi
4624
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626
4627                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4628         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4629 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4630         llvm_cv_old_cxxflags="$CXXFLAGS"
4631         CXXFLAGS="$CXXFLAGS -std=c++0x"
4632         cat >conftest.$ac_ext <<_ACEOF
4633 /* confdefs.h.  */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h.  */
4638
4639 #include <atomic>
4640 std::atomic<float> x(0.0f);
4641 int main() { return (float)x; }
4642
4643 _ACEOF
4644 rm -f conftest.$ac_objext conftest$ac_exeext
4645 if { (ac_try="$ac_link"
4646 case "(($ac_try" in
4647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648   *) ac_try_echo=$ac_try;;
4649 esac
4650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651   (eval "$ac_link") 2>conftest.er1
4652   ac_status=$?
4653   grep -v '^ *+' conftest.er1 >conftest.err
4654   rm -f conftest.er1
4655   cat conftest.err >&5
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); } &&
4658          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4659   { (case "(($ac_try" in
4660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661   *) ac_try_echo=$ac_try;;
4662 esac
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664   (eval "$ac_try") 2>&5
4665   ac_status=$?
4666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667   (exit $ac_status); }; } &&
4668          { ac_try='test -s conftest$ac_exeext'
4669   { (case "(($ac_try" in
4670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671   *) ac_try_echo=$ac_try;;
4672 esac
4673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4674   (eval "$ac_try") 2>&5
4675   ac_status=$?
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); }; }; then
4678   { echo "$as_me:$LINENO: result: yes" >&5
4679 echo "${ECHO_T}yes" >&6; }
4680 else
4681   echo "$as_me: failed program was:" >&5
4682 sed 's/^/| /' conftest.$ac_ext >&5
4683
4684         { echo "$as_me:$LINENO: result: no" >&5
4685 echo "${ECHO_T}no" >&6; }
4686              { { echo "$as_me:$LINENO: error:
4687 We detected a missing feature in the standard C++ library that was known to be
4688 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4689 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4690 than 4.7. You will need to update your system and ensure Clang uses the newer
4691 standard library.
4692
4693 If this error is incorrect or you need to force things to work, you may pass
4694 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4695 echo "$as_me: error:
4696 We detected a missing feature in the standard C++ library that was known to be
4697 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4698 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4699 than 4.7. You will need to update your system and ensure Clang uses the newer
4700 standard library.
4701
4702 If this error is incorrect or you need to force things to work, you may pass
4703 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4704    { (exit 1); exit 1; }; }
4705 fi
4706
4707 rm -f core conftest.err conftest.$ac_objext \
4708       conftest$ac_exeext conftest.$ac_ext
4709         CXXFLAGS="$llvm_cv_old_cxxflags"
4710       fi
4711       ;;
4712     gcc)
4713       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4714 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4715       cat >conftest.$ac_ext <<_ACEOF
4716 /* confdefs.h.  */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h.  */
4721
4722 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4723 #error This version of GCC is too old to build LLVM
4724 #endif
4725
4726 _ACEOF
4727 rm -f conftest.$ac_objext
4728 if { (ac_try="$ac_compile"
4729 case "(($ac_try" in
4730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4731   *) ac_try_echo=$ac_try;;
4732 esac
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734   (eval "$ac_compile") 2>conftest.er1
4735   ac_status=$?
4736   grep -v '^ *+' conftest.er1 >conftest.err
4737   rm -f conftest.er1
4738   cat conftest.err >&5
4739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740   (exit $ac_status); } &&
4741          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4742   { (case "(($ac_try" in
4743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744   *) ac_try_echo=$ac_try;;
4745 esac
4746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4747   (eval "$ac_try") 2>&5
4748   ac_status=$?
4749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); }; } &&
4751          { ac_try='test -s conftest.$ac_objext'
4752   { (case "(($ac_try" in
4753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754   *) ac_try_echo=$ac_try;;
4755 esac
4756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4757   (eval "$ac_try") 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }; }; then
4761   { echo "$as_me:$LINENO: result: yes" >&5
4762 echo "${ECHO_T}yes" >&6; }
4763 else
4764   echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767         { echo "$as_me:$LINENO: result: no" >&5
4768 echo "${ECHO_T}no" >&6; }
4769            { { echo "$as_me:$LINENO: error:
4770 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4771 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4772 bypass these sanity checks." >&5
4773 echo "$as_me: error:
4774 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4775 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4776 bypass these sanity checks." >&2;}
4777    { (exit 1); exit 1; }; }
4778 fi
4779
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781       ;;
4782     unknown)
4783       ;;
4784     esac
4785     ac_ext=c
4786 ac_cpp='$CPP $CPPFLAGS'
4787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4790
4791     ;;
4792   *)
4793     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4794 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4795    { (exit 1); exit 1; }; }
4796     ;;
4797 esac
4798
4799 # Check whether --enable-cxx1y was given.
4800 if test "${enable_cxx1y+set}" = set; then
4801   enableval=$enable_cxx1y;
4802 else
4803   enableval=default
4804 fi
4805
4806 case "$enableval" in
4807   yes) ENABLE_CXX1Y=1
4808  ;;
4809   no)  ENABLE_CXX1Y=0
4810  ;;
4811   default) ENABLE_CXX1Y=0
4812 ;;
4813   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4814 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4815    { (exit 1); exit 1; }; } ;;
4816 esac
4817
4818 # Check whether --enable-split-dwarf was given.
4819 if test "${enable_split_dwarf+set}" = set; then
4820   enableval=$enable_split_dwarf;
4821 else
4822   enableval=default
4823 fi
4824
4825 case "$enableval" in
4826   yes) ENABLE_SPLIT_DWARF=1
4827  ;;
4828   no)  ENABLE_SPLIT_DWARF=0
4829  ;;
4830   default) ENABLE_SPLIT_DWARF=0
4831 ;;
4832   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4833 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4834    { (exit 1); exit 1; }; } ;;
4835 esac
4836
4837 clang_arcmt="yes"
4838 # Check whether --enable-clang-arcmt was given.
4839 if test "${enable_clang_arcmt+set}" = set; then
4840   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4841 else
4842   enableval="yes"
4843 fi
4844
4845 case "$enableval" in
4846   yes) ENABLE_CLANG_ARCMT=1
4847  ;;
4848   no)  ENABLE_CLANG_ARCMT=0
4849  ;;
4850   default) ENABLE_CLANG_ARCMT=1
4851 ;;
4852   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4854    { (exit 1); exit 1; }; } ;;
4855 esac
4856
4857 clang_plugin_support="yes"
4858 # Check whether --enable-clang-plugin-support was given.
4859 if test "${enable_clang_plugin_support+set}" = set; then
4860   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4861 else
4862   enableval="yes"
4863 fi
4864
4865 case "$enableval" in
4866   yes) CLANG_PLUGIN_SUPPORT=1
4867  ;;
4868   no)  CLANG_PLUGIN_SUPPORT=0
4869  ;;
4870   default) CLANG_PLUGIN_SUPPORT=1
4871 ;;
4872   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4874    { (exit 1); exit 1; }; } ;;
4875 esac
4876
4877 clang_static_analyzer="yes"
4878 # Check whether --enable-clang-static-analyzer was given.
4879 if test "${enable_clang_static_analyzer+set}" = set; then
4880   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4881 else
4882   enableval="yes"
4883 fi
4884
4885 case "$enableval" in
4886   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4887  ;;
4888   no)
4889     if test ${clang_arcmt} != "no" ; then
4890       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4891 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4892    { (exit 1); exit 1; }; }
4893     fi
4894     ENABLE_CLANG_STATIC_ANALYZER=0
4895
4896     ;;
4897   default) ENABLE_CLANG_STATIC_ANALYZER=1
4898 ;;
4899   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4900 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4901    { (exit 1); exit 1; }; } ;;
4902 esac
4903
4904 # Check whether --enable-optimized was given.
4905 if test "${enable_optimized+set}" = set; then
4906   enableval=$enable_optimized;
4907 else
4908   enableval=$optimize
4909 fi
4910
4911 if test ${enableval} = "no" ; then
4912   ENABLE_OPTIMIZED=
4913
4914 else
4915   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4916
4917 fi
4918
4919 # Check whether --enable-profiling was given.
4920 if test "${enable_profiling+set}" = set; then
4921   enableval=$enable_profiling;
4922 else
4923   enableval="no"
4924 fi
4925
4926 if test ${enableval} = "no" ; then
4927   ENABLE_PROFILING=
4928
4929 else
4930   ENABLE_PROFILING=ENABLE_PROFILING=1
4931
4932 fi
4933
4934 # Check whether --enable-assertions was given.
4935 if test "${enable_assertions+set}" = set; then
4936   enableval=$enable_assertions;
4937 else
4938   enableval="yes"
4939 fi
4940
4941 if test ${enableval} = "yes" ; then
4942   DISABLE_ASSERTIONS=
4943
4944 else
4945   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4946
4947 fi
4948
4949 # Check whether --enable-werror was given.
4950 if test "${enable_werror+set}" = set; then
4951   enableval=$enable_werror;
4952 else
4953   enableval="no"
4954 fi
4955
4956 case "$enableval" in
4957   yes) ENABLE_WERROR=1
4958  ;;
4959   no)  ENABLE_WERROR=0
4960  ;;
4961   default) ENABLE_WERROR=0
4962 ;;
4963   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4964 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4965    { (exit 1); exit 1; }; } ;;
4966 esac
4967
4968 # Check whether --enable-expensive-checks was given.
4969 if test "${enable_expensive_checks+set}" = set; then
4970   enableval=$enable_expensive_checks;
4971 else
4972   enableval="no"
4973 fi
4974
4975 if test ${enableval} = "yes" ; then
4976   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4977
4978   EXPENSIVE_CHECKS=yes
4979
4980 else
4981   ENABLE_EXPENSIVE_CHECKS=
4982
4983   EXPENSIVE_CHECKS=no
4984
4985 fi
4986
4987 # Check whether --enable-debug-runtime was given.
4988 if test "${enable_debug_runtime+set}" = set; then
4989   enableval=$enable_debug_runtime;
4990 else
4991   enableval=no
4992 fi
4993
4994 if test ${enableval} = "no" ; then
4995   DEBUG_RUNTIME=
4996
4997 else
4998   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4999
5000 fi
5001
5002 # Check whether --enable-debug-symbols was given.
5003 if test "${enable_debug_symbols+set}" = set; then
5004   enableval=$enable_debug_symbols;
5005 else
5006   enableval=no
5007 fi
5008
5009 if test ${enableval} = "no" ; then
5010   DEBUG_SYMBOLS=
5011
5012 else
5013   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5014
5015 fi
5016
5017 # Check whether --enable-keep-symbols was given.
5018 if test "${enable_keep_symbols+set}" = set; then
5019   enableval=$enable_keep_symbols;
5020 else
5021   enableval=no
5022 fi
5023
5024 if test ${enableval} = "no" ; then
5025   KEEP_SYMBOLS=
5026
5027 else
5028   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5029
5030 fi
5031
5032 # Check whether --enable-jit was given.
5033 if test "${enable_jit+set}" = set; then
5034   enableval=$enable_jit;
5035 else
5036   enableval=default
5037 fi
5038
5039 if test ${enableval} = "no"
5040 then
5041   JIT=
5042
5043 else
5044   case "$llvm_cv_target_arch" in
5045     x86)         TARGET_HAS_JIT=1
5046  ;;
5047     Sparc)       TARGET_HAS_JIT=0
5048  ;;
5049     PowerPC)     TARGET_HAS_JIT=1
5050  ;;
5051     x86_64)      TARGET_HAS_JIT=1
5052  ;;
5053     ARM)         TARGET_HAS_JIT=1
5054  ;;
5055     Mips)        TARGET_HAS_JIT=1
5056  ;;
5057     XCore)       TARGET_HAS_JIT=0
5058  ;;
5059     MSP430)      TARGET_HAS_JIT=0
5060  ;;
5061     Hexagon)     TARGET_HAS_JIT=0
5062  ;;
5063     NVPTX)       TARGET_HAS_JIT=0
5064  ;;
5065     SystemZ)     TARGET_HAS_JIT=1
5066  ;;
5067     *)           TARGET_HAS_JIT=0
5068  ;;
5069   esac
5070 fi
5071
5072 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5073 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5074
5075
5076 # Check whether --enable-docs was given.
5077 if test "${enable_docs+set}" = set; then
5078   enableval=$enable_docs;
5079 else
5080   enableval=default
5081 fi
5082
5083 case "$enableval" in
5084   yes) ENABLE_DOCS=1
5085  ;;
5086   no)  ENABLE_DOCS=0
5087  ;;
5088   default) ENABLE_DOCS=1
5089  ;;
5090   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5091 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5092    { (exit 1); exit 1; }; } ;;
5093 esac
5094
5095 # Check whether --enable-doxygen was given.
5096 if test "${enable_doxygen+set}" = set; then
5097   enableval=$enable_doxygen;
5098 else
5099   enableval=default
5100 fi
5101
5102 case "$enableval" in
5103   yes) ENABLE_DOXYGEN=1
5104  ;;
5105   no)  ENABLE_DOXYGEN=0
5106  ;;
5107   default) ENABLE_DOXYGEN=0
5108  ;;
5109   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5110 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5111    { (exit 1); exit 1; }; } ;;
5112 esac
5113
5114 # Check whether --enable-threads was given.
5115 if test "${enable_threads+set}" = set; then
5116   enableval=$enable_threads;
5117 else
5118   enableval=default
5119 fi
5120
5121 case "$enableval" in
5122   yes) LLVM_ENABLE_THREADS=1
5123  ;;
5124   no)  LLVM_ENABLE_THREADS=0
5125  ;;
5126   default) LLVM_ENABLE_THREADS=1
5127  ;;
5128   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5129 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5130    { (exit 1); exit 1; }; } ;;
5131 esac
5132
5133 cat >>confdefs.h <<_ACEOF
5134 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5135 _ACEOF
5136
5137
5138 # Check whether --enable-pthreads was given.
5139 if test "${enable_pthreads+set}" = set; then
5140   enableval=$enable_pthreads;
5141 else
5142   enableval=default
5143 fi
5144
5145 case "$enableval" in
5146   yes) ENABLE_PTHREADS=1
5147  ;;
5148   no)  ENABLE_PTHREADS=0
5149  ;;
5150   default) ENABLE_PTHREADS=1
5151  ;;
5152   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5153 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5154    { (exit 1); exit 1; }; } ;;
5155 esac
5156
5157 # Check whether --enable-zlib was given.
5158 if test "${enable_zlib+set}" = set; then
5159   enableval=$enable_zlib;
5160 else
5161   enableval=default
5162 fi
5163
5164 case "$enableval" in
5165   yes) LLVM_ENABLE_ZLIB=1
5166  ;;
5167   no)  LLVM_ENABLE_ZLIB=0
5168  ;;
5169   default) LLVM_ENABLE_ZLIB=1
5170  ;;
5171   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5172 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5173    { (exit 1); exit 1; }; } ;;
5174 esac
5175
5176 cat >>confdefs.h <<_ACEOF
5177 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5178 _ACEOF
5179
5180
5181 # Check whether --enable-pic was given.
5182 if test "${enable_pic+set}" = set; then
5183   enableval=$enable_pic;
5184 else
5185   enableval=default
5186 fi
5187
5188 case "$enableval" in
5189   yes) ENABLE_PIC=1
5190  ;;
5191   no)  ENABLE_PIC=0
5192  ;;
5193   default) ENABLE_PIC=1
5194  ;;
5195   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5196 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5197    { (exit 1); exit 1; }; } ;;
5198 esac
5199
5200 cat >>confdefs.h <<_ACEOF
5201 #define ENABLE_PIC $ENABLE_PIC
5202 _ACEOF
5203
5204
5205 # Check whether --enable-shared was given.
5206 if test "${enable_shared+set}" = set; then
5207   enableval=$enable_shared;
5208 else
5209   enableval=default
5210 fi
5211
5212 case "$enableval" in
5213   yes) ENABLE_SHARED=1
5214  ;;
5215   no)  ENABLE_SHARED=0
5216  ;;
5217   default) ENABLE_SHARED=0
5218  ;;
5219   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5220 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5221    { (exit 1); exit 1; }; } ;;
5222 esac
5223
5224 # Check whether --enable-embed-stdcxx was given.
5225 if test "${enable_embed_stdcxx+set}" = set; then
5226   enableval=$enable_embed_stdcxx;
5227 else
5228   enableval=default
5229 fi
5230
5231 case "$enableval" in
5232   yes) ENABLE_EMBED_STDCXX=1
5233  ;;
5234   no)  ENABLE_EMBED_STDCXX=0
5235  ;;
5236   default) ENABLE_EMBED_STDCXX=0
5237  ;;
5238   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5239 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5240    { (exit 1); exit 1; }; } ;;
5241 esac
5242
5243 # Check whether --enable-timestamps was given.
5244 if test "${enable_timestamps+set}" = set; then
5245   enableval=$enable_timestamps;
5246 else
5247   enableval=default
5248 fi
5249
5250 case "$enableval" in
5251   yes) ENABLE_TIMESTAMPS=1
5252  ;;
5253   no)  ENABLE_TIMESTAMPS=0
5254  ;;
5255   default) ENABLE_TIMESTAMPS=1
5256  ;;
5257   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5258 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5259    { (exit 1); exit 1; }; } ;;
5260 esac
5261
5262 cat >>confdefs.h <<_ACEOF
5263 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5264 _ACEOF
5265
5266
5267 # Check whether --enable-backtraces was given.
5268 if test "${enable_backtraces+set}" = set; then
5269   enableval=$enable_backtraces; case "$enableval" in
5270     yes) llvm_cv_enable_backtraces="yes" ;;
5271     no)  llvm_cv_enable_backtraces="no"  ;;
5272     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5274    { (exit 1); exit 1; }; } ;;
5275   esac
5276 else
5277   llvm_cv_enable_backtraces="yes"
5278 fi
5279
5280 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5281
5282 cat >>confdefs.h <<\_ACEOF
5283 #define ENABLE_BACKTRACES 1
5284 _ACEOF
5285
5286 fi
5287
5288 # Check whether --enable-crash-overrides was given.
5289 if test "${enable_crash_overrides+set}" = set; then
5290   enableval=$enable_crash_overrides; case "$enableval" in
5291     yes) llvm_cv_enable_crash_overrides="yes" ;;
5292     no)  llvm_cv_enable_crash_overrides="no"  ;;
5293     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5295    { (exit 1); exit 1; }; } ;;
5296   esac
5297 else
5298   llvm_cv_enable_crash_overrides="yes"
5299 fi
5300
5301 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5302
5303 cat >>confdefs.h <<\_ACEOF
5304 #define ENABLE_CRASH_OVERRIDES 1
5305 _ACEOF
5306
5307 fi
5308
5309 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5310 ALL_TARGETS=$ALL_TARGETS
5311
5312
5313 TARGETS_TO_BUILD=""
5314 # Check whether --enable-targets was given.
5315 if test "${enable_targets+set}" = set; then
5316   enableval=$enable_targets;
5317 else
5318   enableval=all
5319 fi
5320
5321 if test "$enableval" = host-only ; then
5322   enableval=host
5323 fi
5324 case "$enableval" in
5325   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5326   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5327       case "$a_target" in
5328         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5329         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5330         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5331         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5332         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5333         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5334         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5335         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5336         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5337         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5340         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5341         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5342         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5343         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5344         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5345         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5346         host) case "$llvm_cv_target_arch" in
5347             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5348             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5349             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5350             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5351             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5352             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5353             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5354             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5355             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5356             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5357             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5358             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5359             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5360 echo "$as_me: error: Can not set target to build" >&2;}
5361    { (exit 1); exit 1; }; } ;;
5362           esac ;;
5363         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5364 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5365    { (exit 1); exit 1; }; } ;;
5366       esac
5367   done
5368   ;;
5369 esac
5370
5371 # Check whether --enable-experimental-targets was given.
5372 if test "${enable_experimental_targets+set}" = set; then
5373   enableval=$enable_experimental_targets;
5374 else
5375   enableval=disable
5376 fi
5377
5378
5379 if test ${enableval} != "disable"
5380 then
5381   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5382 fi
5383
5384 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5385
5386
5387 for a_target in $TARGETS_TO_BUILD; do
5388   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5389
5390 cat >>confdefs.h <<_ACEOF
5391 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5392 _ACEOF
5393
5394     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5395     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5396     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5397     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5398     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5399       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5400     fi
5401     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5402       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5403     fi
5404
5405 cat >>confdefs.h <<_ACEOF
5406 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5407 _ACEOF
5408
5409
5410 cat >>confdefs.h <<_ACEOF
5411 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5412 _ACEOF
5413
5414
5415 cat >>confdefs.h <<_ACEOF
5416 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5417 _ACEOF
5418
5419
5420 cat >>confdefs.h <<_ACEOF
5421 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5422 _ACEOF
5423
5424     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5425
5426 cat >>confdefs.h <<_ACEOF
5427 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5428 _ACEOF
5429
5430     fi
5431     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5432
5433 cat >>confdefs.h <<_ACEOF
5434 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5435 _ACEOF
5436
5437     fi
5438   fi
5439 done
5440
5441 LLVM_ENUM_TARGETS=""
5442 LLVM_ENUM_ASM_PRINTERS=""
5443 LLVM_ENUM_ASM_PARSERS=""
5444 LLVM_ENUM_DISASSEMBLERS=""
5445 for target_to_build in $TARGETS_TO_BUILD; do
5446   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5447   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5448     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5449   fi
5450   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5451     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5452   fi
5453   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5454     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5455   fi
5456 done
5457
5458
5459
5460
5461
5462
5463 # Check whether --with-optimize-option was given.
5464 if test "${with_optimize_option+set}" = set; then
5465   withval=$with_optimize_option;
5466 else
5467   withval=default
5468 fi
5469
5470 { echo "$as_me:$LINENO: checking optimization flags" >&5
5471 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5472 case "$withval" in
5473   default)
5474     case "$llvm_cv_os_type" in
5475     FreeBSD) optimize_option=-O2 ;;
5476     MingW) optimize_option=-O2 ;;
5477     *)     optimize_option=-O3 ;;
5478     esac ;;
5479   *) optimize_option="$withval" ;;
5480 esac
5481 OPTIMIZE_OPTION=$optimize_option
5482
5483 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5484 echo "${ECHO_T}$optimize_option" >&6; }
5485
5486
5487 # Check whether --with-extra-options was given.
5488 if test "${with_extra_options+set}" = set; then
5489   withval=$with_extra_options;
5490 else
5491   withval=default
5492 fi
5493
5494 case "$withval" in
5495   default) EXTRA_OPTIONS= ;;
5496   *) EXTRA_OPTIONS=$withval ;;
5497 esac
5498 EXTRA_OPTIONS=$EXTRA_OPTIONS
5499
5500
5501
5502 # Check whether --with-extra-ld-options was given.
5503 if test "${with_extra_ld_options+set}" = set; then
5504   withval=$with_extra_ld_options;
5505 else
5506   withval=default
5507 fi
5508
5509 case "$withval" in
5510   default) EXTRA_LD_OPTIONS= ;;
5511   *) EXTRA_LD_OPTIONS=$withval ;;
5512 esac
5513 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5514
5515
5516 # Check whether --enable-bindings was given.
5517 if test "${enable_bindings+set}" = set; then
5518   enableval=$enable_bindings;
5519 else
5520   enableval=default
5521 fi
5522
5523 BINDINGS_TO_BUILD=""
5524 case "$enableval" in
5525   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5526   all ) BINDINGS_TO_BUILD="ocaml" ;;
5527   none | no) BINDINGS_TO_BUILD="" ;;
5528   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5529       case "$a_binding" in
5530         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5531         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5532 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5533    { (exit 1); exit 1; }; } ;;
5534       esac
5535   done
5536   ;;
5537 esac
5538
5539
5540 # Check whether --with-ocaml-libdir was given.
5541 if test "${with_ocaml_libdir+set}" = set; then
5542   withval=$with_ocaml_libdir;
5543 else
5544   withval=auto
5545 fi
5546
5547 case "$withval" in
5548   auto) with_ocaml_libdir="$withval" ;;
5549   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5550   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5551 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5552    { (exit 1); exit 1; }; } ;;
5553 esac
5554
5555
5556 # Check whether --with-clang-srcdir was given.
5557 if test "${with_clang_srcdir+set}" = set; then
5558   withval=$with_clang_srcdir;
5559 else
5560   withval="-"
5561 fi
5562
5563 case "$withval" in
5564   -) clang_src_root="" ;;
5565   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5566   *) clang_src_root="$ac_pwd/$withval" ;;
5567 esac
5568 CLANG_SRC_ROOT=$clang_src_root
5569
5570
5571
5572 # Check whether --with-clang-resource-dir was given.
5573 if test "${with_clang_resource_dir+set}" = set; then
5574   withval=$with_clang_resource_dir;
5575 else
5576   withval=""
5577 fi
5578
5579
5580 cat >>confdefs.h <<_ACEOF
5581 #define CLANG_RESOURCE_DIR "$withval"
5582 _ACEOF
5583
5584
5585
5586 # Check whether --with-c-include-dirs was given.
5587 if test "${with_c_include_dirs+set}" = set; then
5588   withval=$with_c_include_dirs;
5589 else
5590   withval=""
5591 fi
5592
5593
5594 cat >>confdefs.h <<_ACEOF
5595 #define C_INCLUDE_DIRS "$withval"
5596 _ACEOF
5597
5598
5599 # Clang normally uses the system c++ headers and libraries. With this option,
5600 # clang will use the ones provided by a gcc installation instead. This option should
5601 # be passed the same value that was used with --prefix when configuring gcc.
5602
5603 # Check whether --with-gcc-toolchain was given.
5604 if test "${with_gcc_toolchain+set}" = set; then
5605   withval=$with_gcc_toolchain;
5606 else
5607   withval=""
5608 fi
5609
5610
5611 cat >>confdefs.h <<_ACEOF
5612 #define GCC_INSTALL_PREFIX "$withval"
5613 _ACEOF
5614
5615
5616
5617 # Check whether --with-default-sysroot was given.
5618 if test "${with_default_sysroot+set}" = set; then
5619   withval=$with_default_sysroot;
5620 else
5621   withval=""
5622 fi
5623
5624
5625 cat >>confdefs.h <<_ACEOF
5626 #define DEFAULT_SYSROOT "$withval"
5627 _ACEOF
5628
5629
5630
5631 # Check whether --with-binutils-include was given.
5632 if test "${with_binutils_include+set}" = set; then
5633   withval=$with_binutils_include;
5634 else
5635   withval=default
5636 fi
5637
5638 case "$withval" in
5639   default) WITH_BINUTILS_INCDIR=default ;;
5640   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5641   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5642 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5643    { (exit 1); exit 1; }; } ;;
5644 esac
5645 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5646   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5647
5648   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5649      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5650      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5651 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5652    { (exit 1); exit 1; }; };
5653   fi
5654 fi
5655
5656
5657 # Check whether --with-bug-report-url was given.
5658 if test "${with_bug_report_url+set}" = set; then
5659   withval=$with_bug_report_url;
5660 else
5661   withval="http://llvm.org/bugs/"
5662 fi
5663
5664
5665 cat >>confdefs.h <<_ACEOF
5666 #define BUG_REPORT_URL "$withval"
5667 _ACEOF
5668
5669
5670 # Check whether --enable-terminfo was given.
5671 if test "${enable_terminfo+set}" = set; then
5672   enableval=$enable_terminfo; case "$enableval" in
5673     yes) llvm_cv_enable_terminfo="yes" ;;
5674     no)  llvm_cv_enable_terminfo="no"  ;;
5675     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5676 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5677    { (exit 1); exit 1; }; } ;;
5678   esac
5679 else
5680   llvm_cv_enable_terminfo="yes"
5681 fi
5682
5683 case "$llvm_cv_enable_terminfo" in
5684   yes) ENABLE_TERMINFO=1
5685  ;;
5686   no)  ENABLE_TERMINFO=0
5687  ;;
5688 esac
5689
5690 # Check whether --enable-libedit was given.
5691 if test "${enable_libedit+set}" = set; then
5692   enableval=$enable_libedit; case "$enableval" in
5693     yes) llvm_cv_enable_libedit="yes" ;;
5694     no)  llvm_cv_enable_libedit="no"  ;;
5695     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5696 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5697    { (exit 1); exit 1; }; } ;;
5698   esac
5699 else
5700   llvm_cv_enable_libedit="yes"
5701 fi
5702
5703
5704 # Check whether --enable-libffi was given.
5705 if test "${enable_libffi+set}" = set; then
5706   enableval=$enable_libffi; case "$enableval" in
5707     yes) llvm_cv_enable_libffi="yes" ;;
5708     no)  llvm_cv_enable_libffi="no"  ;;
5709     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5710 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5711    { (exit 1); exit 1; }; } ;;
5712   esac
5713 else
5714   llvm_cv_enable_libffi=no
5715 fi
5716
5717
5718
5719 # Check whether --with-internal-prefix was given.
5720 if test "${with_internal_prefix+set}" = set; then
5721   withval=$with_internal_prefix;
5722 else
5723   withval=""
5724 fi
5725
5726 INTERNAL_PREFIX=$withval
5727
5728
5729
5730 { echo "$as_me:$LINENO: checking for GNU make" >&5
5731 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5732 if test "${llvm_cv_gnu_make_command+set}" = set; then
5733   echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735   llvm_cv_gnu_make_command=''
5736  for a in "$MAKE" make gmake gnumake ; do
5737   if test -z "$a" ; then continue ; fi ;
5738   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5739   then
5740    llvm_cv_gnu_make_command=$a ;
5741    break;
5742   fi
5743  done
5744 fi
5745 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5746 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5747  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5748    ifGNUmake='' ;
5749  else
5750    ifGNUmake='#' ;
5751    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5752 echo "${ECHO_T}\"Not found\"" >&6; };
5753  fi
5754
5755
5756 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5757 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5758 LN_S=$as_ln_s
5759 if test "$LN_S" = "ln -s"; then
5760   { echo "$as_me:$LINENO: result: yes" >&5
5761 echo "${ECHO_T}yes" >&6; }
5762 else
5763   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5764 echo "${ECHO_T}no, using $LN_S" >&6; }
5765 fi
5766
5767 # Extract the first word of "nm", so it can be a program name with args.
5768 set dummy nm; ac_word=$2
5769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5771 if test "${ac_cv_path_NM+set}" = set; then
5772   echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774   case $NM in
5775   [\\/]* | ?:[\\/]*)
5776   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5777   ;;
5778   *)
5779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5781 do
5782   IFS=$as_save_IFS
5783   test -z "$as_dir" && as_dir=.
5784   for ac_exec_ext in '' $ac_executable_extensions; do
5785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5786     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788     break 2
5789   fi
5790 done
5791 done
5792 IFS=$as_save_IFS
5793
5794   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5795   ;;
5796 esac
5797 fi
5798 NM=$ac_cv_path_NM
5799 if test -n "$NM"; then
5800   { echo "$as_me:$LINENO: result: $NM" >&5
5801 echo "${ECHO_T}$NM" >&6; }
5802 else
5803   { echo "$as_me:$LINENO: result: no" >&5
5804 echo "${ECHO_T}no" >&6; }
5805 fi
5806
5807
5808 # Extract the first word of "cmp", so it can be a program name with args.
5809 set dummy cmp; ac_word=$2
5810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5812 if test "${ac_cv_path_CMP+set}" = set; then
5813   echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815   case $CMP in
5816   [\\/]* | ?:[\\/]*)
5817   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5818   ;;
5819   *)
5820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823   IFS=$as_save_IFS
5824   test -z "$as_dir" && as_dir=.
5825   for ac_exec_ext in '' $ac_executable_extensions; do
5826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5827     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829     break 2
5830   fi
5831 done
5832 done
5833 IFS=$as_save_IFS
5834
5835   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5836   ;;
5837 esac
5838 fi
5839 CMP=$ac_cv_path_CMP
5840 if test -n "$CMP"; then
5841   { echo "$as_me:$LINENO: result: $CMP" >&5
5842 echo "${ECHO_T}$CMP" >&6; }
5843 else
5844   { echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6; }
5846 fi
5847
5848
5849 # Extract the first word of "cp", so it can be a program name with args.
5850 set dummy cp; ac_word=$2
5851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5853 if test "${ac_cv_path_CP+set}" = set; then
5854   echo $ECHO_N "(cached) $ECHO_C" >&6
5855 else
5856   case $CP in
5857   [\\/]* | ?:[\\/]*)
5858   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5859   ;;
5860   *)
5861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864   IFS=$as_save_IFS
5865   test -z "$as_dir" && as_dir=.
5866   for ac_exec_ext in '' $ac_executable_extensions; do
5867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5868     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870     break 2
5871   fi
5872 done
5873 done
5874 IFS=$as_save_IFS
5875
5876   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5877   ;;
5878 esac
5879 fi
5880 CP=$ac_cv_path_CP
5881 if test -n "$CP"; then
5882   { echo "$as_me:$LINENO: result: $CP" >&5
5883 echo "${ECHO_T}$CP" >&6; }
5884 else
5885   { echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6; }
5887 fi
5888
5889
5890 # Extract the first word of "date", so it can be a program name with args.
5891 set dummy date; ac_word=$2
5892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5894 if test "${ac_cv_path_DATE+set}" = set; then
5895   echo $ECHO_N "(cached) $ECHO_C" >&6
5896 else
5897   case $DATE in
5898   [\\/]* | ?:[\\/]*)
5899   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5900   ;;
5901   *)
5902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 for as_dir in $PATH
5904 do
5905   IFS=$as_save_IFS
5906   test -z "$as_dir" && as_dir=.
5907   for ac_exec_ext in '' $ac_executable_extensions; do
5908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5909     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911     break 2
5912   fi
5913 done
5914 done
5915 IFS=$as_save_IFS
5916
5917   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5918   ;;
5919 esac
5920 fi
5921 DATE=$ac_cv_path_DATE
5922 if test -n "$DATE"; then
5923   { echo "$as_me:$LINENO: result: $DATE" >&5
5924 echo "${ECHO_T}$DATE" >&6; }
5925 else
5926   { echo "$as_me:$LINENO: result: no" >&5
5927 echo "${ECHO_T}no" >&6; }
5928 fi
5929
5930
5931 # Extract the first word of "find", so it can be a program name with args.
5932 set dummy find; ac_word=$2
5933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5935 if test "${ac_cv_path_FIND+set}" = set; then
5936   echo $ECHO_N "(cached) $ECHO_C" >&6
5937 else
5938   case $FIND in
5939   [\\/]* | ?:[\\/]*)
5940   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5941   ;;
5942   *)
5943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5945 do
5946   IFS=$as_save_IFS
5947   test -z "$as_dir" && as_dir=.
5948   for ac_exec_ext in '' $ac_executable_extensions; do
5949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5950     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952     break 2
5953   fi
5954 done
5955 done
5956 IFS=$as_save_IFS
5957
5958   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5959   ;;
5960 esac
5961 fi
5962 FIND=$ac_cv_path_FIND
5963 if test -n "$FIND"; then
5964   { echo "$as_me:$LINENO: result: $FIND" >&5
5965 echo "${ECHO_T}$FIND" >&6; }
5966 else
5967   { echo "$as_me:$LINENO: result: no" >&5
5968 echo "${ECHO_T}no" >&6; }
5969 fi
5970
5971
5972 # Extract the first word of "grep", so it can be a program name with args.
5973 set dummy grep; ac_word=$2
5974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5976 if test "${ac_cv_path_GREP+set}" = set; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979   case $GREP in
5980   [\\/]* | ?:[\\/]*)
5981   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5982   ;;
5983   *)
5984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987   IFS=$as_save_IFS
5988   test -z "$as_dir" && as_dir=.
5989   for ac_exec_ext in '' $ac_executable_extensions; do
5990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5991     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993     break 2
5994   fi
5995 done
5996 done
5997 IFS=$as_save_IFS
5998
5999   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6000   ;;
6001 esac
6002 fi
6003 GREP=$ac_cv_path_GREP
6004 if test -n "$GREP"; then
6005   { echo "$as_me:$LINENO: result: $GREP" >&5
6006 echo "${ECHO_T}$GREP" >&6; }
6007 else
6008   { echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6; }
6010 fi
6011
6012
6013 # Extract the first word of "mkdir", so it can be a program name with args.
6014 set dummy mkdir; ac_word=$2
6015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6017 if test "${ac_cv_path_MKDIR+set}" = set; then
6018   echo $ECHO_N "(cached) $ECHO_C" >&6
6019 else
6020   case $MKDIR in
6021   [\\/]* | ?:[\\/]*)
6022   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6023   ;;
6024   *)
6025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028   IFS=$as_save_IFS
6029   test -z "$as_dir" && as_dir=.
6030   for ac_exec_ext in '' $ac_executable_extensions; do
6031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6032     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034     break 2
6035   fi
6036 done
6037 done
6038 IFS=$as_save_IFS
6039
6040   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6041   ;;
6042 esac
6043 fi
6044 MKDIR=$ac_cv_path_MKDIR
6045 if test -n "$MKDIR"; then
6046   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6047 echo "${ECHO_T}$MKDIR" >&6; }
6048 else
6049   { echo "$as_me:$LINENO: result: no" >&5
6050 echo "${ECHO_T}no" >&6; }
6051 fi
6052
6053
6054 # Extract the first word of "mv", so it can be a program name with args.
6055 set dummy mv; ac_word=$2
6056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6058 if test "${ac_cv_path_MV+set}" = set; then
6059   echo $ECHO_N "(cached) $ECHO_C" >&6
6060 else
6061   case $MV in
6062   [\\/]* | ?:[\\/]*)
6063   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6064   ;;
6065   *)
6066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069   IFS=$as_save_IFS
6070   test -z "$as_dir" && as_dir=.
6071   for ac_exec_ext in '' $ac_executable_extensions; do
6072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6073     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6075     break 2
6076   fi
6077 done
6078 done
6079 IFS=$as_save_IFS
6080
6081   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6082   ;;
6083 esac
6084 fi
6085 MV=$ac_cv_path_MV
6086 if test -n "$MV"; then
6087   { echo "$as_me:$LINENO: result: $MV" >&5
6088 echo "${ECHO_T}$MV" >&6; }
6089 else
6090   { echo "$as_me:$LINENO: result: no" >&5
6091 echo "${ECHO_T}no" >&6; }
6092 fi
6093
6094
6095 if test -n "$ac_tool_prefix"; then
6096   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6097 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6100 if test "${ac_cv_prog_RANLIB+set}" = set; then
6101   echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103   if test -n "$RANLIB"; then
6104   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6105 else
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6108 do
6109   IFS=$as_save_IFS
6110   test -z "$as_dir" && as_dir=.
6111   for ac_exec_ext in '' $ac_executable_extensions; do
6112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6113     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115     break 2
6116   fi
6117 done
6118 done
6119 IFS=$as_save_IFS
6120
6121 fi
6122 fi
6123 RANLIB=$ac_cv_prog_RANLIB
6124 if test -n "$RANLIB"; then
6125   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6126 echo "${ECHO_T}$RANLIB" >&6; }
6127 else
6128   { echo "$as_me:$LINENO: result: no" >&5
6129 echo "${ECHO_T}no" >&6; }
6130 fi
6131
6132
6133 fi
6134 if test -z "$ac_cv_prog_RANLIB"; then
6135   ac_ct_RANLIB=$RANLIB
6136   # Extract the first word of "ranlib", so it can be a program name with args.
6137 set dummy ranlib; ac_word=$2
6138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6140 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6141   echo $ECHO_N "(cached) $ECHO_C" >&6
6142 else
6143   if test -n "$ac_ct_RANLIB"; then
6144   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151   for ac_exec_ext in '' $ac_executable_extensions; do
6152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6153     ac_cv_prog_ac_ct_RANLIB="ranlib"
6154     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158 done
6159 IFS=$as_save_IFS
6160
6161 fi
6162 fi
6163 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6164 if test -n "$ac_ct_RANLIB"; then
6165   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6166 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6167 else
6168   { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6170 fi
6171
6172   if test "x$ac_ct_RANLIB" = x; then
6173     RANLIB=":"
6174   else
6175     case $cross_compiling:$ac_tool_warned in
6176 yes:)
6177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6178 whose name does not start with the host triplet.  If you think this
6179 configuration is useful to you, please write to autoconf@gnu.org." >&5
6180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6181 whose name does not start with the host triplet.  If you think this
6182 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6183 ac_tool_warned=yes ;;
6184 esac
6185     RANLIB=$ac_ct_RANLIB
6186   fi
6187 else
6188   RANLIB="$ac_cv_prog_RANLIB"
6189 fi
6190
6191 if test -n "$ac_tool_prefix"; then
6192   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}ar; ac_word=$2
6194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6196 if test "${ac_cv_prog_AR+set}" = set; then
6197   echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199   if test -n "$AR"; then
6200   ac_cv_prog_AR="$AR" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207   for ac_exec_ext in '' $ac_executable_extensions; do
6208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6209     ac_cv_prog_AR="${ac_tool_prefix}ar"
6210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 AR=$ac_cv_prog_AR
6220 if test -n "$AR"; then
6221   { echo "$as_me:$LINENO: result: $AR" >&5
6222 echo "${ECHO_T}$AR" >&6; }
6223 else
6224   { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6226 fi
6227
6228
6229 fi
6230 if test -z "$ac_cv_prog_AR"; then
6231   ac_ct_AR=$AR
6232   # Extract the first word of "ar", so it can be a program name with args.
6233 set dummy ar; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   if test -n "$ac_ct_AR"; then
6240   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245   IFS=$as_save_IFS
6246   test -z "$as_dir" && as_dir=.
6247   for ac_exec_ext in '' $ac_executable_extensions; do
6248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6249     ac_cv_prog_ac_ct_AR="ar"
6250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251     break 2
6252   fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6260 if test -n "$ac_ct_AR"; then
6261   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6262 echo "${ECHO_T}$ac_ct_AR" >&6; }
6263 else
6264   { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6266 fi
6267
6268   if test "x$ac_ct_AR" = x; then
6269     AR="false"
6270   else
6271     case $cross_compiling:$ac_tool_warned in
6272 yes:)
6273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6274 whose name does not start with the host triplet.  If you think this
6275 configuration is useful to you, please write to autoconf@gnu.org." >&5
6276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6277 whose name does not start with the host triplet.  If you think this
6278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281     AR=$ac_ct_AR
6282   fi
6283 else
6284   AR="$ac_cv_prog_AR"
6285 fi
6286
6287 # Extract the first word of "rm", so it can be a program name with args.
6288 set dummy rm; ac_word=$2
6289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6291 if test "${ac_cv_path_RM+set}" = set; then
6292   echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294   case $RM in
6295   [\\/]* | ?:[\\/]*)
6296   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6297   ;;
6298   *)
6299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302   IFS=$as_save_IFS
6303   test -z "$as_dir" && as_dir=.
6304   for ac_exec_ext in '' $ac_executable_extensions; do
6305   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6306     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308     break 2
6309   fi
6310 done
6311 done
6312 IFS=$as_save_IFS
6313
6314   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6315   ;;
6316 esac
6317 fi
6318 RM=$ac_cv_path_RM
6319 if test -n "$RM"; then
6320   { echo "$as_me:$LINENO: result: $RM" >&5
6321 echo "${ECHO_T}$RM" >&6; }
6322 else
6323   { echo "$as_me:$LINENO: result: no" >&5
6324 echo "${ECHO_T}no" >&6; }
6325 fi
6326
6327
6328 # Extract the first word of "sed", so it can be a program name with args.
6329 set dummy sed; ac_word=$2
6330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332 if test "${ac_cv_path_SED+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   case $SED in
6336   [\\/]* | ?:[\\/]*)
6337   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6338   ;;
6339   *)
6340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343   IFS=$as_save_IFS
6344   test -z "$as_dir" && as_dir=.
6345   for ac_exec_ext in '' $ac_executable_extensions; do
6346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6347     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6348     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349     break 2
6350   fi
6351 done
6352 done
6353 IFS=$as_save_IFS
6354
6355   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6356   ;;
6357 esac
6358 fi
6359 SED=$ac_cv_path_SED
6360 if test -n "$SED"; then
6361   { echo "$as_me:$LINENO: result: $SED" >&5
6362 echo "${ECHO_T}$SED" >&6; }
6363 else
6364   { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6366 fi
6367
6368
6369 # Extract the first word of "tar", so it can be a program name with args.
6370 set dummy tar; ac_word=$2
6371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6373 if test "${ac_cv_path_TAR+set}" = set; then
6374   echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376   case $TAR in
6377   [\\/]* | ?:[\\/]*)
6378   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6379   ;;
6380   *)
6381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384   IFS=$as_save_IFS
6385   test -z "$as_dir" && as_dir=.
6386   for ac_exec_ext in '' $ac_executable_extensions; do
6387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6388     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6389     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390     break 2
6391   fi
6392 done
6393 done
6394 IFS=$as_save_IFS
6395
6396   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6397   ;;
6398 esac
6399 fi
6400 TAR=$ac_cv_path_TAR
6401 if test -n "$TAR"; then
6402   { echo "$as_me:$LINENO: result: $TAR" >&5
6403 echo "${ECHO_T}$TAR" >&6; }
6404 else
6405   { echo "$as_me:$LINENO: result: no" >&5
6406 echo "${ECHO_T}no" >&6; }
6407 fi
6408
6409
6410 # Extract the first word of "pwd", so it can be a program name with args.
6411 set dummy pwd; ac_word=$2
6412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6414 if test "${ac_cv_path_BINPWD+set}" = set; then
6415   echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417   case $BINPWD in
6418   [\\/]* | ?:[\\/]*)
6419   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6420   ;;
6421   *)
6422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6424 do
6425   IFS=$as_save_IFS
6426   test -z "$as_dir" && as_dir=.
6427   for ac_exec_ext in '' $ac_executable_extensions; do
6428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6429     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6431     break 2
6432   fi
6433 done
6434 done
6435 IFS=$as_save_IFS
6436
6437   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6438   ;;
6439 esac
6440 fi
6441 BINPWD=$ac_cv_path_BINPWD
6442 if test -n "$BINPWD"; then
6443   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6444 echo "${ECHO_T}$BINPWD" >&6; }
6445 else
6446   { echo "$as_me:$LINENO: result: no" >&5
6447 echo "${ECHO_T}no" >&6; }
6448 fi
6449
6450
6451
6452 # Extract the first word of "dot", so it can be a program name with args.
6453 set dummy dot; ac_word=$2
6454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6456 if test "${ac_cv_path_DOT+set}" = set; then
6457   echo $ECHO_N "(cached) $ECHO_C" >&6
6458 else
6459   case $DOT in
6460   [\\/]* | ?:[\\/]*)
6461   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6462   ;;
6463   *)
6464   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH
6466 do
6467   IFS=$as_save_IFS
6468   test -z "$as_dir" && as_dir=.
6469   for ac_exec_ext in '' $ac_executable_extensions; do
6470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6471     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473     break 2
6474   fi
6475 done
6476 done
6477 IFS=$as_save_IFS
6478
6479   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6480   ;;
6481 esac
6482 fi
6483 DOT=$ac_cv_path_DOT
6484 if test -n "$DOT"; then
6485   { echo "$as_me:$LINENO: result: $DOT" >&5
6486 echo "${ECHO_T}$DOT" >&6; }
6487 else
6488   { echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6; }
6490 fi
6491
6492
6493 if test "$DOT" != "echo dot" ; then
6494
6495 cat >>confdefs.h <<\_ACEOF
6496 #define HAVE_DOT 1
6497 _ACEOF
6498
6499     if test "$llvm_cv_os_type" = "MingW" ; then
6500     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6501   fi
6502
6503 cat >>confdefs.h <<_ACEOF
6504 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6505 _ACEOF
6506
6507 fi
6508
6509 # Find a good install program.  We prefer a C program (faster),
6510 # so one script is as good as another.  But avoid the broken or
6511 # incompatible versions:
6512 # SysV /etc/install, /usr/sbin/install
6513 # SunOS /usr/etc/install
6514 # IRIX /sbin/install
6515 # AIX /bin/install
6516 # AmigaOS /C/install, which installs bootblocks on floppy discs
6517 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6518 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6519 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6520 # OS/2's system install, which has a completely different semantic
6521 # ./install, which can be erroneously created by make from ./install.sh.
6522 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6523 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6524 if test -z "$INSTALL"; then
6525 if test "${ac_cv_path_install+set}" = set; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533   # Account for people who put trailing slashes in PATH elements.
6534 case $as_dir/ in
6535   ./ | .// | /cC/* | \
6536   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6537   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6538   /usr/ucb/* ) ;;
6539   *)
6540     # OSF1 and SCO ODT 3.0 have their own names for install.
6541     # Don't use installbsd from OSF since it installs stuff as root
6542     # by default.
6543     for ac_prog in ginstall scoinst install; do
6544       for ac_exec_ext in '' $ac_executable_extensions; do
6545         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6546           if test $ac_prog = install &&
6547             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6548             # AIX install.  It has an incompatible calling convention.
6549             :
6550           elif test $ac_prog = install &&
6551             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6552             # program-specific install script used by HP pwplus--don't use.
6553             :
6554           else
6555             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6556             break 3
6557           fi
6558         fi
6559       done
6560     done
6561     ;;
6562 esac
6563 done
6564 IFS=$as_save_IFS
6565
6566
6567 fi
6568   if test "${ac_cv_path_install+set}" = set; then
6569     INSTALL=$ac_cv_path_install
6570   else
6571     # As a last resort, use the slow shell script.  Don't cache a
6572     # value for INSTALL within a source directory, because that will
6573     # break other packages using the cache if that directory is
6574     # removed, or if the value is a relative name.
6575     INSTALL=$ac_install_sh
6576   fi
6577 fi
6578 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6579 echo "${ECHO_T}$INSTALL" >&6; }
6580
6581 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6582 # It thinks the first close brace ends the variable substitution.
6583 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6584
6585 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6586
6587 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6588
6589 case "$INSTALL" in
6590  [\\/$]* | ?:[\\/]* ) ;;
6591  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6592 esac
6593
6594 # Extract the first word of "bzip2", so it can be a program name with args.
6595 set dummy bzip2; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_path_BZIP2+set}" = set; then
6599   echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601   case $BZIP2 in
6602   [\\/]* | ?:[\\/]*)
6603   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6604   ;;
6605   *)
6606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609   IFS=$as_save_IFS
6610   test -z "$as_dir" && as_dir=.
6611   for ac_exec_ext in '' $ac_executable_extensions; do
6612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6613     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615     break 2
6616   fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621   ;;
6622 esac
6623 fi
6624 BZIP2=$ac_cv_path_BZIP2
6625 if test -n "$BZIP2"; then
6626   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6627 echo "${ECHO_T}$BZIP2" >&6; }
6628 else
6629   { echo "$as_me:$LINENO: result: no" >&5
6630 echo "${ECHO_T}no" >&6; }
6631 fi
6632
6633
6634 # Extract the first word of "cat", so it can be a program name with args.
6635 set dummy cat; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_path_CAT+set}" = set; then
6639   echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641   case $CAT in
6642   [\\/]* | ?:[\\/]*)
6643   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6644   ;;
6645   *)
6646   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649   IFS=$as_save_IFS
6650   test -z "$as_dir" && as_dir=.
6651   for ac_exec_ext in '' $ac_executable_extensions; do
6652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6653     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655     break 2
6656   fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661   ;;
6662 esac
6663 fi
6664 CAT=$ac_cv_path_CAT
6665 if test -n "$CAT"; then
6666   { echo "$as_me:$LINENO: result: $CAT" >&5
6667 echo "${ECHO_T}$CAT" >&6; }
6668 else
6669   { echo "$as_me:$LINENO: result: no" >&5
6670 echo "${ECHO_T}no" >&6; }
6671 fi
6672
6673
6674 # Extract the first word of "doxygen", so it can be a program name with args.
6675 set dummy doxygen; ac_word=$2
6676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6678 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6679   echo $ECHO_N "(cached) $ECHO_C" >&6
6680 else
6681   case $DOXYGEN in
6682   [\\/]* | ?:[\\/]*)
6683   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6684   ;;
6685   *)
6686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689   IFS=$as_save_IFS
6690   test -z "$as_dir" && as_dir=.
6691   for ac_exec_ext in '' $ac_executable_extensions; do
6692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6693     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695     break 2
6696   fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701   ;;
6702 esac
6703 fi
6704 DOXYGEN=$ac_cv_path_DOXYGEN
6705 if test -n "$DOXYGEN"; then
6706   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6707 echo "${ECHO_T}$DOXYGEN" >&6; }
6708 else
6709   { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6711 fi
6712
6713
6714 # Extract the first word of "groff", so it can be a program name with args.
6715 set dummy groff; ac_word=$2
6716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718 if test "${ac_cv_path_GROFF+set}" = set; then
6719   echo $ECHO_N "(cached) $ECHO_C" >&6
6720 else
6721   case $GROFF in
6722   [\\/]* | ?:[\\/]*)
6723   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
6724   ;;
6725   *)
6726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731   for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
6734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741   ;;
6742 esac
6743 fi
6744 GROFF=$ac_cv_path_GROFF
6745 if test -n "$GROFF"; then
6746   { echo "$as_me:$LINENO: result: $GROFF" >&5
6747 echo "${ECHO_T}$GROFF" >&6; }
6748 else
6749   { echo "$as_me:$LINENO: result: no" >&5
6750 echo "${ECHO_T}no" >&6; }
6751 fi
6752
6753
6754 # Extract the first word of "gzip", so it can be a program name with args.
6755 set dummy gzip; ac_word=$2
6756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6758 if test "${ac_cv_path_GZIPBIN+set}" = set; then
6759   echo $ECHO_N "(cached) $ECHO_C" >&6
6760 else
6761   case $GZIPBIN in
6762   [\\/]* | ?:[\\/]*)
6763   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
6764   ;;
6765   *)
6766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771   for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
6774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781   ;;
6782 esac
6783 fi
6784 GZIPBIN=$ac_cv_path_GZIPBIN
6785 if test -n "$GZIPBIN"; then
6786   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
6787 echo "${ECHO_T}$GZIPBIN" >&6; }
6788 else
6789   { echo "$as_me:$LINENO: result: no" >&5
6790 echo "${ECHO_T}no" >&6; }
6791 fi
6792
6793
6794 # Extract the first word of "pdfroff", so it can be a program name with args.
6795 set dummy pdfroff; ac_word=$2
6796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798 if test "${ac_cv_path_PDFROFF+set}" = set; then
6799   echo $ECHO_N "(cached) $ECHO_C" >&6
6800 else
6801   case $PDFROFF in
6802   [\\/]* | ?:[\\/]*)
6803   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
6804   ;;
6805   *)
6806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811   for ac_exec_ext in '' $ac_executable_extensions; do
6812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6813     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
6814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818 done
6819 IFS=$as_save_IFS
6820
6821   ;;
6822 esac
6823 fi
6824 PDFROFF=$ac_cv_path_PDFROFF
6825 if test -n "$PDFROFF"; then
6826   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
6827 echo "${ECHO_T}$PDFROFF" >&6; }
6828 else
6829   { echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6; }
6831 fi
6832
6833
6834 # Extract the first word of "zip", so it can be a program name with args.
6835 set dummy zip; ac_word=$2
6836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6838 if test "${ac_cv_path_ZIP+set}" = set; then
6839   echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841   case $ZIP in
6842   [\\/]* | ?:[\\/]*)
6843   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
6844   ;;
6845   *)
6846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849   IFS=$as_save_IFS
6850   test -z "$as_dir" && as_dir=.
6851   for ac_exec_ext in '' $ac_executable_extensions; do
6852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6853     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
6854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855     break 2
6856   fi
6857 done
6858 done
6859 IFS=$as_save_IFS
6860
6861   ;;
6862 esac
6863 fi
6864 ZIP=$ac_cv_path_ZIP
6865 if test -n "$ZIP"; then
6866   { echo "$as_me:$LINENO: result: $ZIP" >&5
6867 echo "${ECHO_T}$ZIP" >&6; }
6868 else
6869   { echo "$as_me:$LINENO: result: no" >&5
6870 echo "${ECHO_T}no" >&6; }
6871 fi
6872
6873
6874 for ac_prog in ocamlc
6875 do
6876   # Extract the first word of "$ac_prog", so it can be a program name with args.
6877 set dummy $ac_prog; ac_word=$2
6878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6880 if test "${ac_cv_path_OCAMLC+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   case $OCAMLC in
6884   [\\/]* | ?:[\\/]*)
6885   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
6886   ;;
6887   *)
6888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893   for ac_exec_ext in '' $ac_executable_extensions; do
6894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6895     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
6896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897     break 2
6898   fi
6899 done
6900 done
6901 IFS=$as_save_IFS
6902
6903   ;;
6904 esac
6905 fi
6906 OCAMLC=$ac_cv_path_OCAMLC
6907 if test -n "$OCAMLC"; then
6908   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
6909 echo "${ECHO_T}$OCAMLC" >&6; }
6910 else
6911   { echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6; }
6913 fi
6914
6915
6916   test -n "$OCAMLC" && break
6917 done
6918
6919 for ac_prog in ocamlopt
6920 do
6921   # Extract the first word of "$ac_prog", so it can be a program name with args.
6922 set dummy $ac_prog; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   case $OCAMLOPT in
6929   [\\/]* | ?:[\\/]*)
6930   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
6931   ;;
6932   *)
6933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938   for ac_exec_ext in '' $ac_executable_extensions; do
6939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
6941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948   ;;
6949 esac
6950 fi
6951 OCAMLOPT=$ac_cv_path_OCAMLOPT
6952 if test -n "$OCAMLOPT"; then
6953   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
6954 echo "${ECHO_T}$OCAMLOPT" >&6; }
6955 else
6956   { echo "$as_me:$LINENO: result: no" >&5
6957 echo "${ECHO_T}no" >&6; }
6958 fi
6959
6960
6961   test -n "$OCAMLOPT" && break
6962 done
6963
6964 for ac_prog in ocamldep
6965 do
6966   # Extract the first word of "$ac_prog", so it can be a program name with args.
6967 set dummy $ac_prog; ac_word=$2
6968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6970 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
6971   echo $ECHO_N "(cached) $ECHO_C" >&6
6972 else
6973   case $OCAMLDEP in
6974   [\\/]* | ?:[\\/]*)
6975   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
6976   ;;
6977   *)
6978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6980 do
6981   IFS=$as_save_IFS
6982   test -z "$as_dir" && as_dir=.
6983   for ac_exec_ext in '' $ac_executable_extensions; do
6984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6985     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
6986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987     break 2
6988   fi
6989 done
6990 done
6991 IFS=$as_save_IFS
6992
6993   ;;
6994 esac
6995 fi
6996 OCAMLDEP=$ac_cv_path_OCAMLDEP
6997 if test -n "$OCAMLDEP"; then
6998   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
6999 echo "${ECHO_T}$OCAMLDEP" >&6; }
7000 else
7001   { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7003 fi
7004
7005
7006   test -n "$OCAMLDEP" && break
7007 done
7008
7009 for ac_prog in ocamldoc
7010 do
7011   # Extract the first word of "$ac_prog", so it can be a program name with args.
7012 set dummy $ac_prog; ac_word=$2
7013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   case $OCAMLDOC in
7019   [\\/]* | ?:[\\/]*)
7020   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7021   ;;
7022   *)
7023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026   IFS=$as_save_IFS
7027   test -z "$as_dir" && as_dir=.
7028   for ac_exec_ext in '' $ac_executable_extensions; do
7029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7030     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032     break 2
7033   fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038   ;;
7039 esac
7040 fi
7041 OCAMLDOC=$ac_cv_path_OCAMLDOC
7042 if test -n "$OCAMLDOC"; then
7043   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7044 echo "${ECHO_T}$OCAMLDOC" >&6; }
7045 else
7046   { echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6; }
7048 fi
7049
7050
7051   test -n "$OCAMLDOC" && break
7052 done
7053
7054 for ac_prog in gas as
7055 do
7056   # Extract the first word of "$ac_prog", so it can be a program name with args.
7057 set dummy $ac_prog; ac_word=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_path_GAS+set}" = set; then
7061   echo $ECHO_N "(cached) $ECHO_C" >&6
7062 else
7063   case $GAS in
7064   [\\/]* | ?:[\\/]*)
7065   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7066   ;;
7067   *)
7068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069 for as_dir in $PATH
7070 do
7071   IFS=$as_save_IFS
7072   test -z "$as_dir" && as_dir=.
7073   for ac_exec_ext in '' $ac_executable_extensions; do
7074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7077     break 2
7078   fi
7079 done
7080 done
7081 IFS=$as_save_IFS
7082
7083   ;;
7084 esac
7085 fi
7086 GAS=$ac_cv_path_GAS
7087 if test -n "$GAS"; then
7088   { echo "$as_me:$LINENO: result: $GAS" >&5
7089 echo "${ECHO_T}$GAS" >&6; }
7090 else
7091   { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7093 fi
7094
7095
7096   test -n "$GAS" && break
7097 done
7098
7099
7100 { echo "$as_me:$LINENO: checking for linker version" >&5
7101 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7102 if test "${llvm_cv_link_version+set}" = set; then
7103   echo $ECHO_N "(cached) $ECHO_C" >&6
7104 else
7105
7106    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7107
7108    # Check for ld64.
7109    if (echo "$version_string" | grep -q "ld64"); then
7110      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7111    else
7112      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7113    fi
7114
7115 fi
7116 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7117 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7118
7119 cat >>confdefs.h <<_ACEOF
7120 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7121 _ACEOF
7122
7123
7124
7125
7126 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7127 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7128 if test "${llvm_cv_link_use_r+set}" = set; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131    ac_ext=c
7132 ac_cpp='$CPP $CPPFLAGS'
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7136
7137   oldcflags="$CFLAGS"
7138   CFLAGS="$CFLAGS -Wl,-R."
7139   cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h.  */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h.  */
7145
7146 int
7147 main ()
7148 {
7149
7150   ;
7151   return 0;
7152 }
7153 _ACEOF
7154 rm -f conftest.$ac_objext conftest$ac_exeext
7155 if { (ac_try="$ac_link"
7156 case "(($ac_try" in
7157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158   *) ac_try_echo=$ac_try;;
7159 esac
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161   (eval "$ac_link") 2>conftest.er1
7162   ac_status=$?
7163   grep -v '^ *+' conftest.er1 >conftest.err
7164   rm -f conftest.er1
7165   cat conftest.err >&5
7166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7167   (exit $ac_status); } &&
7168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7169   { (case "(($ac_try" in
7170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171   *) ac_try_echo=$ac_try;;
7172 esac
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174   (eval "$ac_try") 2>&5
7175   ac_status=$?
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); }; } &&
7178          { ac_try='test -s conftest$ac_exeext'
7179   { (case "(($ac_try" in
7180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181   *) ac_try_echo=$ac_try;;
7182 esac
7183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184   (eval "$ac_try") 2>&5
7185   ac_status=$?
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); }; }; then
7188   llvm_cv_link_use_r=yes
7189 else
7190   echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7192
7193         llvm_cv_link_use_r=no
7194 fi
7195
7196 rm -f core conftest.err conftest.$ac_objext \
7197       conftest$ac_exeext conftest.$ac_ext
7198   CFLAGS="$oldcflags"
7199   ac_ext=c
7200 ac_cpp='$CPP $CPPFLAGS'
7201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7204
7205
7206 fi
7207 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7208 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7209 if test "$llvm_cv_link_use_r" = yes ; then
7210
7211 cat >>confdefs.h <<\_ACEOF
7212 #define HAVE_LINK_R 1
7213 _ACEOF
7214
7215   fi
7216
7217
7218 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7219 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7220 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7221   echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223    ac_ext=c
7224 ac_cpp='$CPP $CPPFLAGS'
7225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7228
7229   oldcflags="$CFLAGS"
7230   CFLAGS="$CFLAGS -rdynamic"
7231   cat >conftest.$ac_ext <<_ACEOF
7232 /* confdefs.h.  */
7233 _ACEOF
7234 cat confdefs.h >>conftest.$ac_ext
7235 cat >>conftest.$ac_ext <<_ACEOF
7236 /* end confdefs.h.  */
7237
7238 int
7239 main ()
7240 {
7241
7242   ;
7243   return 0;
7244 }
7245 _ACEOF
7246 rm -f conftest.$ac_objext conftest$ac_exeext
7247 if { (ac_try="$ac_link"
7248 case "(($ac_try" in
7249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250   *) ac_try_echo=$ac_try;;
7251 esac
7252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253   (eval "$ac_link") 2>conftest.er1
7254   ac_status=$?
7255   grep -v '^ *+' conftest.er1 >conftest.err
7256   rm -f conftest.er1
7257   cat conftest.err >&5
7258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259   (exit $ac_status); } &&
7260          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7261   { (case "(($ac_try" in
7262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263   *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266   (eval "$ac_try") 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); }; } &&
7270          { ac_try='test -s conftest$ac_exeext'
7271   { (case "(($ac_try" in
7272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273   *) ac_try_echo=$ac_try;;
7274 esac
7275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276   (eval "$ac_try") 2>&5
7277   ac_status=$?
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); }; }; then
7280   llvm_cv_link_use_export_dynamic=yes
7281 else
7282   echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7284
7285         llvm_cv_link_use_export_dynamic=no
7286 fi
7287
7288 rm -f core conftest.err conftest.$ac_objext \
7289       conftest$ac_exeext conftest.$ac_ext
7290   CFLAGS="$oldcflags"
7291   ac_ext=c
7292 ac_cpp='$CPP $CPPFLAGS'
7293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7296
7297
7298 fi
7299 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7300 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7301 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7302
7303 cat >>confdefs.h <<\_ACEOF
7304 #define HAVE_LINK_EXPORT_DYNAMIC 1
7305 _ACEOF
7306
7307   fi
7308
7309
7310 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7311 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7312 if test "${llvm_cv_link_use_version_script+set}" = set; then
7313   echo $ECHO_N "(cached) $ECHO_C" >&6
7314 else
7315    ac_ext=c
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7320
7321   oldcflags="$CFLAGS"
7322
7323   # The following code is from the autoconf manual,
7324   # "11.13: Limitations of Usual Tools".
7325   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7326   # Use mktemp if possible; otherwise fall back on mkdir,
7327   # with $RANDOM to make collisions less likely.
7328   : ${TMPDIR=/tmp}
7329   {
7330     tmp=`
7331       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7332     ` &&
7333     test -n "$tmp" && test -d "$tmp"
7334   } || {
7335     tmp=$TMPDIR/foo$$-$RANDOM
7336     (umask 077 && mkdir "$tmp")
7337   } || exit $?
7338
7339   echo "{" > "$tmp/export.map"
7340   echo "  global: main;" >> "$tmp/export.map"
7341   echo "  local: *;" >> "$tmp/export.map"
7342   echo "};" >> "$tmp/export.map"
7343
7344   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7345   cat >conftest.$ac_ext <<_ACEOF
7346 /* confdefs.h.  */
7347 _ACEOF
7348 cat confdefs.h >>conftest.$ac_ext
7349 cat >>conftest.$ac_ext <<_ACEOF
7350 /* end confdefs.h.  */
7351
7352 int
7353 main ()
7354 {
7355
7356   ;
7357   return 0;
7358 }
7359 _ACEOF
7360 rm -f conftest.$ac_objext conftest$ac_exeext
7361 if { (ac_try="$ac_link"
7362 case "(($ac_try" in
7363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364   *) ac_try_echo=$ac_try;;
7365 esac
7366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367   (eval "$ac_link") 2>conftest.er1
7368   ac_status=$?
7369   grep -v '^ *+' conftest.er1 >conftest.err
7370   rm -f conftest.er1
7371   cat conftest.err >&5
7372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373   (exit $ac_status); } &&
7374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7375   { (case "(($ac_try" in
7376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7377   *) ac_try_echo=$ac_try;;
7378 esac
7379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7380   (eval "$ac_try") 2>&5
7381   ac_status=$?
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); }; } &&
7384          { ac_try='test -s conftest$ac_exeext'
7385   { (case "(($ac_try" in
7386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387   *) ac_try_echo=$ac_try;;
7388 esac
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390   (eval "$ac_try") 2>&5
7391   ac_status=$?
7392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7393   (exit $ac_status); }; }; then
7394   llvm_cv_link_use_version_script=yes
7395 else
7396   echo "$as_me: failed program was:" >&5
7397 sed 's/^/| /' conftest.$ac_ext >&5
7398
7399         llvm_cv_link_use_version_script=no
7400 fi
7401
7402 rm -f core conftest.err conftest.$ac_objext \
7403       conftest$ac_exeext conftest.$ac_ext
7404   rm "$tmp/export.map"
7405   rmdir "$tmp"
7406   CFLAGS="$oldcflags"
7407   ac_ext=c
7408 ac_cpp='$CPP $CPPFLAGS'
7409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7412
7413
7414 fi
7415 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7416 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7417 if test "$llvm_cv_link_use_version_script" = yes ; then
7418   HAVE_LINK_VERSION_SCRIPT=1
7419
7420   fi
7421
7422
7423
7424 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7425 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7426 if test "${ac_cv_path_GREP+set}" = set; then
7427   echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429   # Extract the first word of "grep ggrep" to use in msg output
7430 if test -z "$GREP"; then
7431 set dummy grep ggrep; ac_prog_name=$2
7432 if test "${ac_cv_path_GREP+set}" = set; then
7433   echo $ECHO_N "(cached) $ECHO_C" >&6
7434 else
7435   ac_path_GREP_found=false
7436 # Loop through the user's path and test for each of PROGNAME-LIST
7437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7439 do
7440   IFS=$as_save_IFS
7441   test -z "$as_dir" && as_dir=.
7442   for ac_prog in grep ggrep; do
7443   for ac_exec_ext in '' $ac_executable_extensions; do
7444     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7445     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7446     # Check for GNU ac_path_GREP and select it if it is found.
7447   # Check for GNU $ac_path_GREP
7448 case `"$ac_path_GREP" --version 2>&1` in
7449 *GNU*)
7450   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7451 *)
7452   ac_count=0
7453   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7454   while :
7455   do
7456     cat "conftest.in" "conftest.in" >"conftest.tmp"
7457     mv "conftest.tmp" "conftest.in"
7458     cp "conftest.in" "conftest.nl"
7459     echo 'GREP' >> "conftest.nl"
7460     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7461     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7462     ac_count=`expr $ac_count + 1`
7463     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7464       # Best one so far, save it but keep looking for a better one
7465       ac_cv_path_GREP="$ac_path_GREP"
7466       ac_path_GREP_max=$ac_count
7467     fi
7468     # 10*(2^10) chars as input seems more than enough
7469     test $ac_count -gt 10 && break
7470   done
7471   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7472 esac
7473
7474
7475     $ac_path_GREP_found && break 3
7476   done
7477 done
7478
7479 done
7480 IFS=$as_save_IFS
7481
7482
7483 fi
7484
7485 GREP="$ac_cv_path_GREP"
7486 if test -z "$GREP"; then
7487   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7488 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7489    { (exit 1); exit 1; }; }
7490 fi
7491
7492 else
7493   ac_cv_path_GREP=$GREP
7494 fi
7495
7496
7497 fi
7498 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7499 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7500  GREP="$ac_cv_path_GREP"
7501
7502
7503 { echo "$as_me:$LINENO: checking for egrep" >&5
7504 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7505 if test "${ac_cv_path_EGREP+set}" = set; then
7506   echo $ECHO_N "(cached) $ECHO_C" >&6
7507 else
7508   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7509    then ac_cv_path_EGREP="$GREP -E"
7510    else
7511      # Extract the first word of "egrep" to use in msg output
7512 if test -z "$EGREP"; then
7513 set dummy egrep; ac_prog_name=$2
7514 if test "${ac_cv_path_EGREP+set}" = set; then
7515   echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517   ac_path_EGREP_found=false
7518 # Loop through the user's path and test for each of PROGNAME-LIST
7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7520 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7521 do
7522   IFS=$as_save_IFS
7523   test -z "$as_dir" && as_dir=.
7524   for ac_prog in egrep; do
7525   for ac_exec_ext in '' $ac_executable_extensions; do
7526     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7527     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7528     # Check for GNU ac_path_EGREP and select it if it is found.
7529   # Check for GNU $ac_path_EGREP
7530 case `"$ac_path_EGREP" --version 2>&1` in
7531 *GNU*)
7532   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7533 *)
7534   ac_count=0
7535   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7536   while :
7537   do
7538     cat "conftest.in" "conftest.in" >"conftest.tmp"
7539     mv "conftest.tmp" "conftest.in"
7540     cp "conftest.in" "conftest.nl"
7541     echo 'EGREP' >> "conftest.nl"
7542     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7543     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7544     ac_count=`expr $ac_count + 1`
7545     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7546       # Best one so far, save it but keep looking for a better one
7547       ac_cv_path_EGREP="$ac_path_EGREP"
7548       ac_path_EGREP_max=$ac_count
7549     fi
7550     # 10*(2^10) chars as input seems more than enough
7551     test $ac_count -gt 10 && break
7552   done
7553   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7554 esac
7555
7556
7557     $ac_path_EGREP_found && break 3
7558   done
7559 done
7560
7561 done
7562 IFS=$as_save_IFS
7563
7564
7565 fi
7566
7567 EGREP="$ac_cv_path_EGREP"
7568 if test -z "$EGREP"; then
7569   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7570 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7571    { (exit 1); exit 1; }; }
7572 fi
7573
7574 else
7575   ac_cv_path_EGREP=$EGREP
7576 fi
7577
7578
7579    fi
7580 fi
7581 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7582 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7583  EGREP="$ac_cv_path_EGREP"
7584
7585
7586 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7587 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7588 if test "${ac_cv_header_stdc+set}" = set; then
7589   echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591   cat >conftest.$ac_ext <<_ACEOF
7592 /* confdefs.h.  */
7593 _ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h.  */
7597 #include <stdlib.h>
7598 #include <stdarg.h>
7599 #include <string.h>
7600 #include <float.h>
7601
7602 int
7603 main ()
7604 {
7605
7606   ;
7607   return 0;
7608 }
7609 _ACEOF
7610 rm -f conftest.$ac_objext
7611 if { (ac_try="$ac_compile"
7612 case "(($ac_try" in
7613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614   *) ac_try_echo=$ac_try;;
7615 esac
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617   (eval "$ac_compile") 2>conftest.er1
7618   ac_status=$?
7619   grep -v '^ *+' conftest.er1 >conftest.err
7620   rm -f conftest.er1
7621   cat conftest.err >&5
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); } &&
7624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7625   { (case "(($ac_try" in
7626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627   *) ac_try_echo=$ac_try;;
7628 esac
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630   (eval "$ac_try") 2>&5
7631   ac_status=$?
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); }; } &&
7634          { ac_try='test -s conftest.$ac_objext'
7635   { (case "(($ac_try" in
7636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637   *) ac_try_echo=$ac_try;;
7638 esac
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640   (eval "$ac_try") 2>&5
7641   ac_status=$?
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); }; }; then
7644   ac_cv_header_stdc=yes
7645 else
7646   echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7648
7649         ac_cv_header_stdc=no
7650 fi
7651
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653
7654 if test $ac_cv_header_stdc = yes; then
7655   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7656   cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h.  */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h.  */
7662 #include <string.h>
7663
7664 _ACEOF
7665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7666   $EGREP "memchr" >/dev/null 2>&1; then
7667   :
7668 else
7669   ac_cv_header_stdc=no
7670 fi
7671 rm -f conftest*
7672
7673 fi
7674
7675 if test $ac_cv_header_stdc = yes; then
7676   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7677   cat >conftest.$ac_ext <<_ACEOF
7678 /* confdefs.h.  */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h.  */
7683 #include <stdlib.h>
7684
7685 _ACEOF
7686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7687   $EGREP "free" >/dev/null 2>&1; then
7688   :
7689 else
7690   ac_cv_header_stdc=no
7691 fi
7692 rm -f conftest*
7693
7694 fi
7695
7696 if test $ac_cv_header_stdc = yes; then
7697   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7698   if test "$cross_compiling" = yes; then
7699   :
7700 else
7701   cat >conftest.$ac_ext <<_ACEOF
7702 /* confdefs.h.  */
7703 _ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h.  */
7707 #include <ctype.h>
7708 #include <stdlib.h>
7709 #if ((' ' & 0x0FF) == 0x020)
7710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7712 #else
7713 # define ISLOWER(c) \
7714                    (('a' <= (c) && (c) <= 'i') \
7715                      || ('j' <= (c) && (c) <= 'r') \
7716                      || ('s' <= (c) && (c) <= 'z'))
7717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7718 #endif
7719
7720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7721 int
7722 main ()
7723 {
7724   int i;
7725   for (i = 0; i < 256; i++)
7726     if (XOR (islower (i), ISLOWER (i))
7727         || toupper (i) != TOUPPER (i))
7728       return 2;
7729   return 0;
7730 }
7731 _ACEOF
7732 rm -f conftest$ac_exeext
7733 if { (ac_try="$ac_link"
7734 case "(($ac_try" in
7735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736   *) ac_try_echo=$ac_try;;
7737 esac
7738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7739   (eval "$ac_link") 2>&5
7740   ac_status=$?
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7743   { (case "(($ac_try" in
7744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7745   *) ac_try_echo=$ac_try;;
7746 esac
7747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7748   (eval "$ac_try") 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); }; }; then
7752   :
7753 else
7754   echo "$as_me: program exited with status $ac_status" >&5
7755 echo "$as_me: failed program was:" >&5
7756 sed 's/^/| /' conftest.$ac_ext >&5
7757
7758 ( exit $ac_status )
7759 ac_cv_header_stdc=no
7760 fi
7761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7762 fi
7763
7764
7765 fi
7766 fi
7767 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7768 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7769 if test $ac_cv_header_stdc = yes; then
7770
7771 cat >>confdefs.h <<\_ACEOF
7772 #define STDC_HEADERS 1
7773 _ACEOF
7774
7775 fi
7776
7777 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7788                   inttypes.h stdint.h unistd.h
7789 do
7790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7794   echo $ECHO_N "(cached) $ECHO_C" >&6
7795 else
7796   cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h.  */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h.  */
7802 $ac_includes_default
7803
7804 #include <$ac_header>
7805 _ACEOF
7806 rm -f conftest.$ac_objext
7807 if { (ac_try="$ac_compile"
7808 case "(($ac_try" in
7809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810   *) ac_try_echo=$ac_try;;
7811 esac
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813   (eval "$ac_compile") 2>conftest.er1
7814   ac_status=$?
7815   grep -v '^ *+' conftest.er1 >conftest.err
7816   rm -f conftest.er1
7817   cat conftest.err >&5
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); } &&
7820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7821   { (case "(($ac_try" in
7822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823   *) ac_try_echo=$ac_try;;
7824 esac
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826   (eval "$ac_try") 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; } &&
7830          { ac_try='test -s conftest.$ac_objext'
7831   { (case "(($ac_try" in
7832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833   *) ac_try_echo=$ac_try;;
7834 esac
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836   (eval "$ac_try") 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; }; then
7840   eval "$as_ac_Header=yes"
7841 else
7842   echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845         eval "$as_ac_Header=no"
7846 fi
7847
7848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849 fi
7850 ac_res=`eval echo '${'$as_ac_Header'}'`
7851                { echo "$as_me:$LINENO: result: $ac_res" >&5
7852 echo "${ECHO_T}$ac_res" >&6; }
7853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7854   cat >>confdefs.h <<_ACEOF
7855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7856 _ACEOF
7857
7858 fi
7859
7860 done
7861
7862
7863
7864 for ac_header in errno.h
7865 do
7866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7868   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7871   echo $ECHO_N "(cached) $ECHO_C" >&6
7872 fi
7873 ac_res=`eval echo '${'$as_ac_Header'}'`
7874                { echo "$as_me:$LINENO: result: $ac_res" >&5
7875 echo "${ECHO_T}$ac_res" >&6; }
7876 else
7877   # Is the header compilable?
7878 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7880 cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h.  */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h.  */
7886 $ac_includes_default
7887 #include <$ac_header>
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (ac_try="$ac_compile"
7891 case "(($ac_try" in
7892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893   *) ac_try_echo=$ac_try;;
7894 esac
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896   (eval "$ac_compile") 2>conftest.er1
7897   ac_status=$?
7898   grep -v '^ *+' conftest.er1 >conftest.err
7899   rm -f conftest.er1
7900   cat conftest.err >&5
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); } &&
7903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7904   { (case "(($ac_try" in
7905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7906   *) ac_try_echo=$ac_try;;
7907 esac
7908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909   (eval "$ac_try") 2>&5
7910   ac_status=$?
7911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912   (exit $ac_status); }; } &&
7913          { ac_try='test -s conftest.$ac_objext'
7914   { (case "(($ac_try" in
7915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916   *) ac_try_echo=$ac_try;;
7917 esac
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919   (eval "$ac_try") 2>&5
7920   ac_status=$?
7921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922   (exit $ac_status); }; }; then
7923   ac_header_compiler=yes
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928         ac_header_compiler=no
7929 fi
7930
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7933 echo "${ECHO_T}$ac_header_compiler" >&6; }
7934
7935 # Is the header present?
7936 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h.  */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h.  */
7944 #include <$ac_header>
7945 _ACEOF
7946 if { (ac_try="$ac_cpp conftest.$ac_ext"
7947 case "(($ac_try" in
7948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949   *) ac_try_echo=$ac_try;;
7950 esac
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7953   ac_status=$?
7954   grep -v '^ *+' conftest.er1 >conftest.err
7955   rm -f conftest.er1
7956   cat conftest.err >&5
7957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958   (exit $ac_status); } >/dev/null; then
7959   if test -s conftest.err; then
7960     ac_cpp_err=$ac_c_preproc_warn_flag
7961     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7962   else
7963     ac_cpp_err=
7964   fi
7965 else
7966   ac_cpp_err=yes
7967 fi
7968 if test -z "$ac_cpp_err"; then
7969   ac_header_preproc=yes
7970 else
7971   echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7973
7974   ac_header_preproc=no
7975 fi
7976
7977 rm -f conftest.err conftest.$ac_ext
7978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7979 echo "${ECHO_T}$ac_header_preproc" >&6; }
7980
7981 # So?  What about this header?
7982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7983   yes:no: )
7984     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7988     ac_header_preproc=yes
7989     ;;
7990   no:yes:* )
7991     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7993     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7994 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7995     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7997     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7998 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7999     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8001     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8003     ( cat <<\_ASBOX
8004 ## ------------------------------------ ##
8005 ## Report this to http://llvm.org/bugs/ ##
8006 ## ------------------------------------ ##
8007 _ASBOX
8008      ) | sed "s/^/$as_me: WARNING:     /" >&2
8009     ;;
8010 esac
8011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8014   echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016   eval "$as_ac_Header=\$ac_header_preproc"
8017 fi
8018 ac_res=`eval echo '${'$as_ac_Header'}'`
8019                { echo "$as_me:$LINENO: result: $ac_res" >&5
8020 echo "${ECHO_T}$ac_res" >&6; }
8021
8022 fi
8023 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8024   cat >>confdefs.h <<_ACEOF
8025 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8026 _ACEOF
8027
8028 fi
8029
8030 done
8031
8032
8033 case "$llvm_cv_os_type" in
8034   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8035   Darwin) llvm_shlib_ext=.dylib ;;
8036   *) llvm_shlib_ext=.so ;;
8037 esac
8038
8039
8040 cat >>confdefs.h <<_ACEOF
8041 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8042 _ACEOF
8043
8044
8045 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8046 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8047
8048 ICC=no
8049 IXX=no
8050 case $CC in
8051   icc*|icpc*)
8052     ICC=yes
8053     IXX=yes
8054     ;;
8055    *)
8056     ;;
8057 esac
8058
8059 if test "$GCC" != "yes" && test "$ICC" != "yes"
8060 then
8061   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8062 echo "$as_me: error: gcc|icc required but not found" >&2;}
8063    { (exit 1); exit 1; }; }
8064 fi
8065
8066 if test "$GXX" != "yes" && test "$IXX" != "yes"
8067 then
8068   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8069 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8070    { (exit 1); exit 1; }; }
8071 fi
8072
8073 if test "$GCC" = "yes"
8074 then
8075   cat >conftest.$ac_ext <<_ACEOF
8076
8077   /* confdefs.h.  */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h.  */
8082
8083     #if !defined(__GNUC__) || __GNUC__ < 3
8084     #error Unsupported GCC version
8085     #endif
8086
8087
8088 _ACEOF
8089 rm -f conftest.$ac_objext
8090 if { (ac_try="$ac_compile"
8091 case "(($ac_try" in
8092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093   *) ac_try_echo=$ac_try;;
8094 esac
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096   (eval "$ac_compile") 2>conftest.er1
8097   ac_status=$?
8098   grep -v '^ *+' conftest.er1 >conftest.err
8099   rm -f conftest.er1
8100   cat conftest.err >&5
8101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102   (exit $ac_status); } &&
8103          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8104   { (case "(($ac_try" in
8105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106   *) ac_try_echo=$ac_try;;
8107 esac
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109   (eval "$ac_try") 2>&5
8110   ac_status=$?
8111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112   (exit $ac_status); }; } &&
8113          { ac_try='test -s conftest.$ac_objext'
8114   { (case "(($ac_try" in
8115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116   *) ac_try_echo=$ac_try;;
8117 esac
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119   (eval "$ac_try") 2>&5
8120   ac_status=$?
8121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); }; }; then
8123   :
8124 else
8125   echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8129 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8130    { (exit 1); exit 1; }; }
8131 fi
8132
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 fi
8135
8136 if test -z "$llvm_cv_gnu_make_command"
8137 then
8138   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8139 echo "$as_me: error: GNU Make required but not found" >&2;}
8140    { (exit 1); exit 1; }; }
8141 fi
8142
8143 { echo "$as_me:$LINENO: result: ok" >&5
8144 echo "${ECHO_T}ok" >&6; }
8145
8146 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8147 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8148 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8149
8150 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8151
8152 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8153
8154
8155 NO_UNINITIALIZED=
8156 NO_MAYBE_UNINITIALIZED=
8157 if test "$GXX" = "yes"
8158 then
8159   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8160
8161         if test -z "$NO_MAYBE_UNINITIALIZED"
8162   then
8163     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8164
8165   fi
8166 fi
8167 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8168 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8169
8170
8171 # Check whether --with-python was given.
8172 if test "${with_python+set}" = set; then
8173   withval=$with_python; PYTHON="$withval"
8174 fi
8175
8176
8177 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8178   { echo "$as_me:$LINENO: checking for python" >&5
8179 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8180   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8181 echo "${ECHO_T}user defined: $with_python" >&6; }
8182 else
8183   if test -n "$PYTHON" ; then
8184     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8185 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8186   fi
8187
8188   # Extract the first word of "python python2 python26", so it can be a program name with args.
8189 set dummy python python2 python26; ac_word=$2
8190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8192 if test "${ac_cv_path_PYTHON+set}" = set; then
8193   echo $ECHO_N "(cached) $ECHO_C" >&6
8194 else
8195   case $PYTHON in
8196   [\\/]* | ?:[\\/]*)
8197   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8198   ;;
8199   *)
8200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 for as_dir in $PATH
8202 do
8203   IFS=$as_save_IFS
8204   test -z "$as_dir" && as_dir=.
8205   for ac_exec_ext in '' $ac_executable_extensions; do
8206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8207     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8209     break 2
8210   fi
8211 done
8212 done
8213 IFS=$as_save_IFS
8214
8215   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8216 echo "${ECHO_T}not found" >&6; }
8217                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8218 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8219    { (exit 1); exit 1; }; }"
8220   ;;
8221 esac
8222 fi
8223 PYTHON=$ac_cv_path_PYTHON
8224 if test -n "$PYTHON"; then
8225   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8226 echo "${ECHO_T}$PYTHON" >&6; }
8227 else
8228   { echo "$as_me:$LINENO: result: no" >&5
8229 echo "${ECHO_T}no" >&6; }
8230 fi
8231
8232
8233 fi
8234
8235 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8236 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8237 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8238 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8239 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8240 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8241 if test "$ac_python_version_major" -gt "2" || \
8242    (test "$ac_python_version_major" -eq "2" && \
8243     test "$ac_python_version_minor" -ge "5") ; then
8244   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8245 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8246 else
8247   { echo "$as_me:$LINENO: result: not found" >&5
8248 echo "${ECHO_T}not found" >&6; }
8249   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8250 See \`config.log' for more details." >&5
8251 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8252 See \`config.log' for more details." >&2;}
8253    { (exit 1); exit 1; }; }
8254 fi
8255
8256
8257
8258 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8259 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8260 if test "${ac_cv_lib_m_sin+set}" = set; then
8261   echo $ECHO_N "(cached) $ECHO_C" >&6
8262 else
8263   ac_check_lib_save_LIBS=$LIBS
8264 LIBS="-lm  $LIBS"
8265 cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h.  */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h.  */
8271
8272 /* Override any GCC internal prototype to avoid an error.
8273    Use char because int might match the return type of a GCC
8274    builtin and then its argument prototype would still apply.  */
8275 #ifdef __cplusplus
8276 extern "C"
8277 #endif
8278 char sin ();
8279 int
8280 main ()
8281 {
8282 return sin ();
8283   ;
8284   return 0;
8285 }
8286 _ACEOF
8287 rm -f conftest.$ac_objext conftest$ac_exeext
8288 if { (ac_try="$ac_link"
8289 case "(($ac_try" in
8290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291   *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294   (eval "$ac_link") 2>conftest.er1
8295   ac_status=$?
8296   grep -v '^ *+' conftest.er1 >conftest.err
8297   rm -f conftest.er1
8298   cat conftest.err >&5
8299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300   (exit $ac_status); } &&
8301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8302   { (case "(($ac_try" in
8303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304   *) ac_try_echo=$ac_try;;
8305 esac
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307   (eval "$ac_try") 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); }; } &&
8311          { ac_try='test -s conftest$ac_exeext'
8312   { (case "(($ac_try" in
8313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314   *) ac_try_echo=$ac_try;;
8315 esac
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317   (eval "$ac_try") 2>&5
8318   ac_status=$?
8319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320   (exit $ac_status); }; }; then
8321   ac_cv_lib_m_sin=yes
8322 else
8323   echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8325
8326         ac_cv_lib_m_sin=no
8327 fi
8328
8329 rm -f core conftest.err conftest.$ac_objext \
8330       conftest$ac_exeext conftest.$ac_ext
8331 LIBS=$ac_check_lib_save_LIBS
8332 fi
8333 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8334 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8335 if test $ac_cv_lib_m_sin = yes; then
8336   cat >>confdefs.h <<_ACEOF
8337 #define HAVE_LIBM 1
8338 _ACEOF
8339
8340   LIBS="-lm $LIBS"
8341
8342 fi
8343
8344 if test "$llvm_cv_os_type" = "MingW" ; then
8345
8346 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8347 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8348 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8349   echo $ECHO_N "(cached) $ECHO_C" >&6
8350 else
8351   ac_check_lib_save_LIBS=$LIBS
8352 LIBS="-limagehlp  $LIBS"
8353 cat >conftest.$ac_ext <<_ACEOF
8354 /* confdefs.h.  */
8355 _ACEOF
8356 cat confdefs.h >>conftest.$ac_ext
8357 cat >>conftest.$ac_ext <<_ACEOF
8358 /* end confdefs.h.  */
8359
8360
8361 int
8362 main ()
8363 {
8364 return main ();
8365   ;
8366   return 0;
8367 }
8368 _ACEOF
8369 rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (ac_try="$ac_link"
8371 case "(($ac_try" in
8372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373   *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376   (eval "$ac_link") 2>conftest.er1
8377   ac_status=$?
8378   grep -v '^ *+' conftest.er1 >conftest.err
8379   rm -f conftest.er1
8380   cat conftest.err >&5
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } &&
8383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8384   { (case "(($ac_try" in
8385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386   *) ac_try_echo=$ac_try;;
8387 esac
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389   (eval "$ac_try") 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); }; } &&
8393          { ac_try='test -s conftest$ac_exeext'
8394   { (case "(($ac_try" in
8395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396   *) ac_try_echo=$ac_try;;
8397 esac
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399   (eval "$ac_try") 2>&5
8400   ac_status=$?
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); }; }; then
8403   ac_cv_lib_imagehlp_main=yes
8404 else
8405   echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408         ac_cv_lib_imagehlp_main=no
8409 fi
8410
8411 rm -f core conftest.err conftest.$ac_objext \
8412       conftest$ac_exeext conftest.$ac_ext
8413 LIBS=$ac_check_lib_save_LIBS
8414 fi
8415 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8416 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8417 if test $ac_cv_lib_imagehlp_main = yes; then
8418   cat >>confdefs.h <<_ACEOF
8419 #define HAVE_LIBIMAGEHLP 1
8420 _ACEOF
8421
8422   LIBS="-limagehlp $LIBS"
8423
8424 fi
8425
8426
8427 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8428 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8429 if test "${ac_cv_lib_psapi_main+set}" = set; then
8430   echo $ECHO_N "(cached) $ECHO_C" >&6
8431 else
8432   ac_check_lib_save_LIBS=$LIBS
8433 LIBS="-lpsapi  $LIBS"
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h.  */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h.  */
8440
8441
8442 int
8443 main ()
8444 {
8445 return main ();
8446   ;
8447   return 0;
8448 }
8449 _ACEOF
8450 rm -f conftest.$ac_objext conftest$ac_exeext
8451 if { (ac_try="$ac_link"
8452 case "(($ac_try" in
8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454   *) ac_try_echo=$ac_try;;
8455 esac
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457   (eval "$ac_link") 2>conftest.er1
8458   ac_status=$?
8459   grep -v '^ *+' conftest.er1 >conftest.err
8460   rm -f conftest.er1
8461   cat conftest.err >&5
8462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463   (exit $ac_status); } &&
8464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8465   { (case "(($ac_try" in
8466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467   *) ac_try_echo=$ac_try;;
8468 esac
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470   (eval "$ac_try") 2>&5
8471   ac_status=$?
8472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473   (exit $ac_status); }; } &&
8474          { ac_try='test -s conftest$ac_exeext'
8475   { (case "(($ac_try" in
8476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477   *) ac_try_echo=$ac_try;;
8478 esac
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480   (eval "$ac_try") 2>&5
8481   ac_status=$?
8482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); }; }; then
8484   ac_cv_lib_psapi_main=yes
8485 else
8486   echo "$as_me: failed program was:" >&5
8487 sed 's/^/| /' conftest.$ac_ext >&5
8488
8489         ac_cv_lib_psapi_main=no
8490 fi
8491
8492 rm -f core conftest.err conftest.$ac_objext \
8493       conftest$ac_exeext conftest.$ac_ext
8494 LIBS=$ac_check_lib_save_LIBS
8495 fi
8496 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8497 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8498 if test $ac_cv_lib_psapi_main = yes; then
8499   cat >>confdefs.h <<_ACEOF
8500 #define HAVE_LIBPSAPI 1
8501 _ACEOF
8502
8503   LIBS="-lpsapi $LIBS"
8504
8505 fi
8506
8507
8508 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8509 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8510 if test "${ac_cv_lib_shell32_main+set}" = set; then
8511   echo $ECHO_N "(cached) $ECHO_C" >&6
8512 else
8513   ac_check_lib_save_LIBS=$LIBS
8514 LIBS="-lshell32  $LIBS"
8515 cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h.  */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h.  */
8521
8522
8523 int
8524 main ()
8525 {
8526 return main ();
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (ac_try="$ac_link"
8533 case "(($ac_try" in
8534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535   *) ac_try_echo=$ac_try;;
8536 esac
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538   (eval "$ac_link") 2>conftest.er1
8539   ac_status=$?
8540   grep -v '^ *+' conftest.er1 >conftest.err
8541   rm -f conftest.er1
8542   cat conftest.err >&5
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); } &&
8545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8546   { (case "(($ac_try" in
8547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548   *) ac_try_echo=$ac_try;;
8549 esac
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551   (eval "$ac_try") 2>&5
8552   ac_status=$?
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); }; } &&
8555          { ac_try='test -s conftest$ac_exeext'
8556   { (case "(($ac_try" in
8557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558   *) ac_try_echo=$ac_try;;
8559 esac
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561   (eval "$ac_try") 2>&5
8562   ac_status=$?
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); }; }; then
8565   ac_cv_lib_shell32_main=yes
8566 else
8567   echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8569
8570         ac_cv_lib_shell32_main=no
8571 fi
8572
8573 rm -f core conftest.err conftest.$ac_objext \
8574       conftest$ac_exeext conftest.$ac_ext
8575 LIBS=$ac_check_lib_save_LIBS
8576 fi
8577 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8578 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8579 if test $ac_cv_lib_shell32_main = yes; then
8580   cat >>confdefs.h <<_ACEOF
8581 #define HAVE_LIBSHELL32 1
8582 _ACEOF
8583
8584   LIBS="-lshell32 $LIBS"
8585
8586 fi
8587
8588 fi
8589
8590 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8591 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8592 if test "${ac_cv_search_dlopen+set}" = set; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595   ac_func_search_save_LIBS=$LIBS
8596 cat >conftest.$ac_ext <<_ACEOF
8597 /* confdefs.h.  */
8598 _ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h.  */
8602
8603 /* Override any GCC internal prototype to avoid an error.
8604    Use char because int might match the return type of a GCC
8605    builtin and then its argument prototype would still apply.  */
8606 #ifdef __cplusplus
8607 extern "C"
8608 #endif
8609 char dlopen ();
8610 int
8611 main ()
8612 {
8613 return dlopen ();
8614   ;
8615   return 0;
8616 }
8617 _ACEOF
8618 for ac_lib in '' dl; do
8619   if test -z "$ac_lib"; then
8620     ac_res="none required"
8621   else
8622     ac_res=-l$ac_lib
8623     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8624   fi
8625   rm -f conftest.$ac_objext conftest$ac_exeext
8626 if { (ac_try="$ac_link"
8627 case "(($ac_try" in
8628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8629   *) ac_try_echo=$ac_try;;
8630 esac
8631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8632   (eval "$ac_link") 2>conftest.er1
8633   ac_status=$?
8634   grep -v '^ *+' conftest.er1 >conftest.err
8635   rm -f conftest.er1
8636   cat conftest.err >&5
8637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } &&
8639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8640   { (case "(($ac_try" in
8641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8642   *) ac_try_echo=$ac_try;;
8643 esac
8644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8645   (eval "$ac_try") 2>&5
8646   ac_status=$?
8647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648   (exit $ac_status); }; } &&
8649          { ac_try='test -s conftest$ac_exeext'
8650   { (case "(($ac_try" in
8651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652   *) ac_try_echo=$ac_try;;
8653 esac
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655   (eval "$ac_try") 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); }; }; then
8659   ac_cv_search_dlopen=$ac_res
8660 else
8661   echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8663
8664
8665 fi
8666
8667 rm -f core conftest.err conftest.$ac_objext \
8668       conftest$ac_exeext
8669   if test "${ac_cv_search_dlopen+set}" = set; then
8670   break
8671 fi
8672 done
8673 if test "${ac_cv_search_dlopen+set}" = set; then
8674   :
8675 else
8676   ac_cv_search_dlopen=no
8677 fi
8678 rm conftest.$ac_ext
8679 LIBS=$ac_func_search_save_LIBS
8680 fi
8681 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8682 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8683 ac_res=$ac_cv_search_dlopen
8684 if test "$ac_res" != no; then
8685   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8686
8687
8688 cat >>confdefs.h <<\_ACEOF
8689 #define HAVE_DLOPEN 1
8690 _ACEOF
8691
8692 HAVE_DLOPEN='1'
8693
8694
8695 else
8696   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8697 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8698 fi
8699
8700
8701 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8702 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8703 if test "${ac_cv_search_clock_gettime+set}" = set; then
8704   echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706   ac_func_search_save_LIBS=$LIBS
8707 cat >conftest.$ac_ext <<_ACEOF
8708 /* confdefs.h.  */
8709 _ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h.  */
8713
8714 /* Override any GCC internal prototype to avoid an error.
8715    Use char because int might match the return type of a GCC
8716    builtin and then its argument prototype would still apply.  */
8717 #ifdef __cplusplus
8718 extern "C"
8719 #endif
8720 char clock_gettime ();
8721 int
8722 main ()
8723 {
8724 return clock_gettime ();
8725   ;
8726   return 0;
8727 }
8728 _ACEOF
8729 for ac_lib in '' rt; do
8730   if test -z "$ac_lib"; then
8731     ac_res="none required"
8732   else
8733     ac_res=-l$ac_lib
8734     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8735   fi
8736   rm -f conftest.$ac_objext conftest$ac_exeext
8737 if { (ac_try="$ac_link"
8738 case "(($ac_try" in
8739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740   *) ac_try_echo=$ac_try;;
8741 esac
8742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8743   (eval "$ac_link") 2>conftest.er1
8744   ac_status=$?
8745   grep -v '^ *+' conftest.er1 >conftest.err
8746   rm -f conftest.er1
8747   cat conftest.err >&5
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); } &&
8750          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8751   { (case "(($ac_try" in
8752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753   *) ac_try_echo=$ac_try;;
8754 esac
8755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8756   (eval "$ac_try") 2>&5
8757   ac_status=$?
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); }; } &&
8760          { ac_try='test -s conftest$ac_exeext'
8761   { (case "(($ac_try" in
8762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763   *) ac_try_echo=$ac_try;;
8764 esac
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766   (eval "$ac_try") 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; }; then
8770   ac_cv_search_clock_gettime=$ac_res
8771 else
8772   echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775
8776 fi
8777
8778 rm -f core conftest.err conftest.$ac_objext \
8779       conftest$ac_exeext
8780   if test "${ac_cv_search_clock_gettime+set}" = set; then
8781   break
8782 fi
8783 done
8784 if test "${ac_cv_search_clock_gettime+set}" = set; then
8785   :
8786 else
8787   ac_cv_search_clock_gettime=no
8788 fi
8789 rm conftest.$ac_ext
8790 LIBS=$ac_func_search_save_LIBS
8791 fi
8792 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
8793 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
8794 ac_res=$ac_cv_search_clock_gettime
8795 if test "$ac_res" != no; then
8796   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8797
8798 fi
8799
8800
8801 if test "$llvm_cv_enable_terminfo" = "yes" ; then
8802     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
8803 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
8804 if test "${ac_cv_search_setupterm+set}" = set; then
8805   echo $ECHO_N "(cached) $ECHO_C" >&6
8806 else
8807   ac_func_search_save_LIBS=$LIBS
8808 cat >conftest.$ac_ext <<_ACEOF
8809 /* confdefs.h.  */
8810 _ACEOF
8811 cat confdefs.h >>conftest.$ac_ext
8812 cat >>conftest.$ac_ext <<_ACEOF
8813 /* end confdefs.h.  */
8814
8815 /* Override any GCC internal prototype to avoid an error.
8816    Use char because int might match the return type of a GCC
8817    builtin and then its argument prototype would still apply.  */
8818 #ifdef __cplusplus
8819 extern "C"
8820 #endif
8821 char setupterm ();
8822 int
8823 main ()
8824 {
8825 return setupterm ();
8826   ;
8827   return 0;
8828 }
8829 _ACEOF
8830 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
8831   if test -z "$ac_lib"; then
8832     ac_res="none required"
8833   else
8834     ac_res=-l$ac_lib
8835     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8836   fi
8837   rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (ac_try="$ac_link"
8839 case "(($ac_try" in
8840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841   *) ac_try_echo=$ac_try;;
8842 esac
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844   (eval "$ac_link") 2>conftest.er1
8845   ac_status=$?
8846   grep -v '^ *+' conftest.er1 >conftest.err
8847   rm -f conftest.er1
8848   cat conftest.err >&5
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } &&
8851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8852   { (case "(($ac_try" in
8853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854   *) ac_try_echo=$ac_try;;
8855 esac
8856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8857   (eval "$ac_try") 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); }; } &&
8861          { ac_try='test -s conftest$ac_exeext'
8862   { (case "(($ac_try" in
8863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864   *) ac_try_echo=$ac_try;;
8865 esac
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867   (eval "$ac_try") 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   ac_cv_search_setupterm=$ac_res
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876
8877 fi
8878
8879 rm -f core conftest.err conftest.$ac_objext \
8880       conftest$ac_exeext
8881   if test "${ac_cv_search_setupterm+set}" = set; then
8882   break
8883 fi
8884 done
8885 if test "${ac_cv_search_setupterm+set}" = set; then
8886   :
8887 else
8888   ac_cv_search_setupterm=no
8889 fi
8890 rm conftest.$ac_ext
8891 LIBS=$ac_func_search_save_LIBS
8892 fi
8893 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
8894 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
8895 ac_res=$ac_cv_search_setupterm
8896 if test "$ac_res" != no; then
8897   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8898
8899
8900 cat >>confdefs.h <<\_ACEOF
8901 #define HAVE_TERMINFO 1
8902 _ACEOF
8903
8904 HAVE_TERMINFO='1'
8905
8906
8907 fi
8908
8909 fi
8910
8911 if test "$llvm_cv_enable_libedit" = "yes" ; then
8912   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
8913 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
8914 if test "${ac_cv_search_el_init+set}" = set; then
8915   echo $ECHO_N "(cached) $ECHO_C" >&6
8916 else
8917   ac_func_search_save_LIBS=$LIBS
8918 cat >conftest.$ac_ext <<_ACEOF
8919 /* confdefs.h.  */
8920 _ACEOF
8921 cat confdefs.h >>conftest.$ac_ext
8922 cat >>conftest.$ac_ext <<_ACEOF
8923 /* end confdefs.h.  */
8924
8925 /* Override any GCC internal prototype to avoid an error.
8926    Use char because int might match the return type of a GCC
8927    builtin and then its argument prototype would still apply.  */
8928 #ifdef __cplusplus
8929 extern "C"
8930 #endif
8931 char el_init ();
8932 int
8933 main ()
8934 {
8935 return el_init ();
8936   ;
8937   return 0;
8938 }
8939 _ACEOF
8940 for ac_lib in '' edit; do
8941   if test -z "$ac_lib"; then
8942     ac_res="none required"
8943   else
8944     ac_res=-l$ac_lib
8945     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8946   fi
8947   rm -f conftest.$ac_objext conftest$ac_exeext
8948 if { (ac_try="$ac_link"
8949 case "(($ac_try" in
8950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951   *) ac_try_echo=$ac_try;;
8952 esac
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954   (eval "$ac_link") 2>conftest.er1
8955   ac_status=$?
8956   grep -v '^ *+' conftest.er1 >conftest.err
8957   rm -f conftest.er1
8958   cat conftest.err >&5
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); } &&
8961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8962   { (case "(($ac_try" in
8963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8964   *) ac_try_echo=$ac_try;;
8965 esac
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967   (eval "$ac_try") 2>&5
8968   ac_status=$?
8969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970   (exit $ac_status); }; } &&
8971          { ac_try='test -s conftest$ac_exeext'
8972   { (case "(($ac_try" in
8973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974   *) ac_try_echo=$ac_try;;
8975 esac
8976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977   (eval "$ac_try") 2>&5
8978   ac_status=$?
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); }; }; then
8981   ac_cv_search_el_init=$ac_res
8982 else
8983   echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8985
8986
8987 fi
8988
8989 rm -f core conftest.err conftest.$ac_objext \
8990       conftest$ac_exeext
8991   if test "${ac_cv_search_el_init+set}" = set; then
8992   break
8993 fi
8994 done
8995 if test "${ac_cv_search_el_init+set}" = set; then
8996   :
8997 else
8998   ac_cv_search_el_init=no
8999 fi
9000 rm conftest.$ac_ext
9001 LIBS=$ac_func_search_save_LIBS
9002 fi
9003 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9004 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9005 ac_res=$ac_cv_search_el_init
9006 if test "$ac_res" != no; then
9007   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9008
9009 cat >>confdefs.h <<\_ACEOF
9010 #define HAVE_LIBEDIT 1
9011 _ACEOF
9012
9013 fi
9014
9015 fi
9016
9017 if test "$llvm_cv_enable_libffi" = "yes" ; then
9018   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9019 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9020 if test "${ac_cv_search_ffi_call+set}" = set; then
9021   echo $ECHO_N "(cached) $ECHO_C" >&6
9022 else
9023   ac_func_search_save_LIBS=$LIBS
9024 cat >conftest.$ac_ext <<_ACEOF
9025 /* confdefs.h.  */
9026 _ACEOF
9027 cat confdefs.h >>conftest.$ac_ext
9028 cat >>conftest.$ac_ext <<_ACEOF
9029 /* end confdefs.h.  */
9030
9031 /* Override any GCC internal prototype to avoid an error.
9032    Use char because int might match the return type of a GCC
9033    builtin and then its argument prototype would still apply.  */
9034 #ifdef __cplusplus
9035 extern "C"
9036 #endif
9037 char ffi_call ();
9038 int
9039 main ()
9040 {
9041 return ffi_call ();
9042   ;
9043   return 0;
9044 }
9045 _ACEOF
9046 for ac_lib in '' ffi; do
9047   if test -z "$ac_lib"; then
9048     ac_res="none required"
9049   else
9050     ac_res=-l$ac_lib
9051     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9052   fi
9053   rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (ac_try="$ac_link"
9055 case "(($ac_try" in
9056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9057   *) ac_try_echo=$ac_try;;
9058 esac
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060   (eval "$ac_link") 2>conftest.er1
9061   ac_status=$?
9062   grep -v '^ *+' conftest.er1 >conftest.err
9063   rm -f conftest.er1
9064   cat conftest.err >&5
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); } &&
9067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9068   { (case "(($ac_try" in
9069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070   *) ac_try_echo=$ac_try;;
9071 esac
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073   (eval "$ac_try") 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; } &&
9077          { ac_try='test -s conftest$ac_exeext'
9078   { (case "(($ac_try" in
9079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080   *) ac_try_echo=$ac_try;;
9081 esac
9082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083   (eval "$ac_try") 2>&5
9084   ac_status=$?
9085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086   (exit $ac_status); }; }; then
9087   ac_cv_search_ffi_call=$ac_res
9088 else
9089   echo "$as_me: failed program was:" >&5
9090 sed 's/^/| /' conftest.$ac_ext >&5
9091
9092
9093 fi
9094
9095 rm -f core conftest.err conftest.$ac_objext \
9096       conftest$ac_exeext
9097   if test "${ac_cv_search_ffi_call+set}" = set; then
9098   break
9099 fi
9100 done
9101 if test "${ac_cv_search_ffi_call+set}" = set; then
9102   :
9103 else
9104   ac_cv_search_ffi_call=no
9105 fi
9106 rm conftest.$ac_ext
9107 LIBS=$ac_func_search_save_LIBS
9108 fi
9109 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9110 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9111 ac_res=$ac_cv_search_ffi_call
9112 if test "$ac_res" != no; then
9113   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9114
9115 cat >>confdefs.h <<\_ACEOF
9116 #define HAVE_FFI_CALL 1
9117 _ACEOF
9118
9119 else
9120   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9121 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9122    { (exit 1); exit 1; }; }
9123 fi
9124
9125 fi
9126
9127 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9128 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9129 if test "${ac_cv_search_mallinfo+set}" = set; then
9130   echo $ECHO_N "(cached) $ECHO_C" >&6
9131 else
9132   ac_func_search_save_LIBS=$LIBS
9133 cat >conftest.$ac_ext <<_ACEOF
9134 /* confdefs.h.  */
9135 _ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h.  */
9139
9140 /* Override any GCC internal prototype to avoid an error.
9141    Use char because int might match the return type of a GCC
9142    builtin and then its argument prototype would still apply.  */
9143 #ifdef __cplusplus
9144 extern "C"
9145 #endif
9146 char mallinfo ();
9147 int
9148 main ()
9149 {
9150 return mallinfo ();
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 for ac_lib in '' malloc; do
9156   if test -z "$ac_lib"; then
9157     ac_res="none required"
9158   else
9159     ac_res=-l$ac_lib
9160     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9161   fi
9162   rm -f conftest.$ac_objext conftest$ac_exeext
9163 if { (ac_try="$ac_link"
9164 case "(($ac_try" in
9165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166   *) ac_try_echo=$ac_try;;
9167 esac
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169   (eval "$ac_link") 2>conftest.er1
9170   ac_status=$?
9171   grep -v '^ *+' conftest.er1 >conftest.err
9172   rm -f conftest.er1
9173   cat conftest.err >&5
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); } &&
9176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9177   { (case "(($ac_try" in
9178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9179   *) ac_try_echo=$ac_try;;
9180 esac
9181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9182   (eval "$ac_try") 2>&5
9183   ac_status=$?
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); }; } &&
9186          { ac_try='test -s conftest$ac_exeext'
9187   { (case "(($ac_try" in
9188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189   *) ac_try_echo=$ac_try;;
9190 esac
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192   (eval "$ac_try") 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); }; }; then
9196   ac_cv_search_mallinfo=$ac_res
9197 else
9198   echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9200
9201
9202 fi
9203
9204 rm -f core conftest.err conftest.$ac_objext \
9205       conftest$ac_exeext
9206   if test "${ac_cv_search_mallinfo+set}" = set; then
9207   break
9208 fi
9209 done
9210 if test "${ac_cv_search_mallinfo+set}" = set; then
9211   :
9212 else
9213   ac_cv_search_mallinfo=no
9214 fi
9215 rm conftest.$ac_ext
9216 LIBS=$ac_func_search_save_LIBS
9217 fi
9218 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9219 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9220 ac_res=$ac_cv_search_mallinfo
9221 if test "$ac_res" != no; then
9222   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9223
9224 cat >>confdefs.h <<\_ACEOF
9225 #define HAVE_MALLINFO 1
9226 _ACEOF
9227
9228 fi
9229
9230
9231 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9232
9233 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9234 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9235 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9236   echo $ECHO_N "(cached) $ECHO_C" >&6
9237 else
9238   ac_check_lib_save_LIBS=$LIBS
9239 LIBS="-lpthread  $LIBS"
9240 cat >conftest.$ac_ext <<_ACEOF
9241 /* confdefs.h.  */
9242 _ACEOF
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h.  */
9246
9247 /* Override any GCC internal prototype to avoid an error.
9248    Use char because int might match the return type of a GCC
9249    builtin and then its argument prototype would still apply.  */
9250 #ifdef __cplusplus
9251 extern "C"
9252 #endif
9253 char pthread_mutex_init ();
9254 int
9255 main ()
9256 {
9257 return pthread_mutex_init ();
9258   ;
9259   return 0;
9260 }
9261 _ACEOF
9262 rm -f conftest.$ac_objext conftest$ac_exeext
9263 if { (ac_try="$ac_link"
9264 case "(($ac_try" in
9265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9266   *) ac_try_echo=$ac_try;;
9267 esac
9268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9269   (eval "$ac_link") 2>conftest.er1
9270   ac_status=$?
9271   grep -v '^ *+' conftest.er1 >conftest.err
9272   rm -f conftest.er1
9273   cat conftest.err >&5
9274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275   (exit $ac_status); } &&
9276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9277   { (case "(($ac_try" in
9278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9279   *) ac_try_echo=$ac_try;;
9280 esac
9281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282   (eval "$ac_try") 2>&5
9283   ac_status=$?
9284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285   (exit $ac_status); }; } &&
9286          { ac_try='test -s conftest$ac_exeext'
9287   { (case "(($ac_try" in
9288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9289   *) ac_try_echo=$ac_try;;
9290 esac
9291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292   (eval "$ac_try") 2>&5
9293   ac_status=$?
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); }; }; then
9296   ac_cv_lib_pthread_pthread_mutex_init=yes
9297 else
9298   echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9300
9301         ac_cv_lib_pthread_pthread_mutex_init=no
9302 fi
9303
9304 rm -f core conftest.err conftest.$ac_objext \
9305       conftest$ac_exeext conftest.$ac_ext
9306 LIBS=$ac_check_lib_save_LIBS
9307 fi
9308 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9309 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9310 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9311   cat >>confdefs.h <<_ACEOF
9312 #define HAVE_LIBPTHREAD 1
9313 _ACEOF
9314
9315   LIBS="-lpthread $LIBS"
9316
9317 fi
9318
9319   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9320 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9321 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324   ac_func_search_save_LIBS=$LIBS
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331
9332 /* Override any GCC internal prototype to avoid an error.
9333    Use char because int might match the return type of a GCC
9334    builtin and then its argument prototype would still apply.  */
9335 #ifdef __cplusplus
9336 extern "C"
9337 #endif
9338 char pthread_mutex_lock ();
9339 int
9340 main ()
9341 {
9342 return pthread_mutex_lock ();
9343   ;
9344   return 0;
9345 }
9346 _ACEOF
9347 for ac_lib in '' pthread; do
9348   if test -z "$ac_lib"; then
9349     ac_res="none required"
9350   else
9351     ac_res=-l$ac_lib
9352     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9353   fi
9354   rm -f conftest.$ac_objext conftest$ac_exeext
9355 if { (ac_try="$ac_link"
9356 case "(($ac_try" in
9357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9358   *) ac_try_echo=$ac_try;;
9359 esac
9360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9361   (eval "$ac_link") 2>conftest.er1
9362   ac_status=$?
9363   grep -v '^ *+' conftest.er1 >conftest.err
9364   rm -f conftest.er1
9365   cat conftest.err >&5
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); } &&
9368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9369   { (case "(($ac_try" in
9370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371   *) ac_try_echo=$ac_try;;
9372 esac
9373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374   (eval "$ac_try") 2>&5
9375   ac_status=$?
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); }; } &&
9378          { ac_try='test -s conftest$ac_exeext'
9379   { (case "(($ac_try" in
9380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9381   *) ac_try_echo=$ac_try;;
9382 esac
9383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9384   (eval "$ac_try") 2>&5
9385   ac_status=$?
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); }; }; then
9388   ac_cv_search_pthread_mutex_lock=$ac_res
9389 else
9390   echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393
9394 fi
9395
9396 rm -f core conftest.err conftest.$ac_objext \
9397       conftest$ac_exeext
9398   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9399   break
9400 fi
9401 done
9402 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9403   :
9404 else
9405   ac_cv_search_pthread_mutex_lock=no
9406 fi
9407 rm conftest.$ac_ext
9408 LIBS=$ac_func_search_save_LIBS
9409 fi
9410 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9411 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9412 ac_res=$ac_cv_search_pthread_mutex_lock
9413 if test "$ac_res" != no; then
9414   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9415
9416 cat >>confdefs.h <<\_ACEOF
9417 #define HAVE_PTHREAD_MUTEX_LOCK 1
9418 _ACEOF
9419
9420 fi
9421
9422   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9423 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9424 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9425   echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427   ac_func_search_save_LIBS=$LIBS
9428 cat >conftest.$ac_ext <<_ACEOF
9429 /* confdefs.h.  */
9430 _ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h.  */
9434
9435 /* Override any GCC internal prototype to avoid an error.
9436    Use char because int might match the return type of a GCC
9437    builtin and then its argument prototype would still apply.  */
9438 #ifdef __cplusplus
9439 extern "C"
9440 #endif
9441 char pthread_rwlock_init ();
9442 int
9443 main ()
9444 {
9445 return pthread_rwlock_init ();
9446   ;
9447   return 0;
9448 }
9449 _ACEOF
9450 for ac_lib in '' pthread; do
9451   if test -z "$ac_lib"; then
9452     ac_res="none required"
9453   else
9454     ac_res=-l$ac_lib
9455     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9456   fi
9457   rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (ac_try="$ac_link"
9459 case "(($ac_try" in
9460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461   *) ac_try_echo=$ac_try;;
9462 esac
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464   (eval "$ac_link") 2>conftest.er1
9465   ac_status=$?
9466   grep -v '^ *+' conftest.er1 >conftest.err
9467   rm -f conftest.er1
9468   cat conftest.err >&5
9469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470   (exit $ac_status); } &&
9471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9472   { (case "(($ac_try" in
9473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474   *) ac_try_echo=$ac_try;;
9475 esac
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477   (eval "$ac_try") 2>&5
9478   ac_status=$?
9479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); }; } &&
9481          { ac_try='test -s conftest$ac_exeext'
9482   { (case "(($ac_try" in
9483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484   *) ac_try_echo=$ac_try;;
9485 esac
9486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9487   (eval "$ac_try") 2>&5
9488   ac_status=$?
9489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490   (exit $ac_status); }; }; then
9491   ac_cv_search_pthread_rwlock_init=$ac_res
9492 else
9493   echo "$as_me: failed program was:" >&5
9494 sed 's/^/| /' conftest.$ac_ext >&5
9495
9496
9497 fi
9498
9499 rm -f core conftest.err conftest.$ac_objext \
9500       conftest$ac_exeext
9501   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9502   break
9503 fi
9504 done
9505 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9506   :
9507 else
9508   ac_cv_search_pthread_rwlock_init=no
9509 fi
9510 rm conftest.$ac_ext
9511 LIBS=$ac_func_search_save_LIBS
9512 fi
9513 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9514 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9515 ac_res=$ac_cv_search_pthread_rwlock_init
9516 if test "$ac_res" != no; then
9517   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9518
9519 cat >>confdefs.h <<\_ACEOF
9520 #define HAVE_PTHREAD_RWLOCK_INIT 1
9521 _ACEOF
9522
9523 fi
9524
9525   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9526 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9527 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9528   echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530   ac_func_search_save_LIBS=$LIBS
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h.  */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h.  */
9537
9538 /* Override any GCC internal prototype to avoid an error.
9539    Use char because int might match the return type of a GCC
9540    builtin and then its argument prototype would still apply.  */
9541 #ifdef __cplusplus
9542 extern "C"
9543 #endif
9544 char pthread_getspecific ();
9545 int
9546 main ()
9547 {
9548 return pthread_getspecific ();
9549   ;
9550   return 0;
9551 }
9552 _ACEOF
9553 for ac_lib in '' pthread; do
9554   if test -z "$ac_lib"; then
9555     ac_res="none required"
9556   else
9557     ac_res=-l$ac_lib
9558     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9559   fi
9560   rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (ac_try="$ac_link"
9562 case "(($ac_try" in
9563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9564   *) ac_try_echo=$ac_try;;
9565 esac
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567   (eval "$ac_link") 2>conftest.er1
9568   ac_status=$?
9569   grep -v '^ *+' conftest.er1 >conftest.err
9570   rm -f conftest.er1
9571   cat conftest.err >&5
9572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573   (exit $ac_status); } &&
9574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9575   { (case "(($ac_try" in
9576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577   *) ac_try_echo=$ac_try;;
9578 esac
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580   (eval "$ac_try") 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); }; } &&
9584          { ac_try='test -s conftest$ac_exeext'
9585   { (case "(($ac_try" in
9586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587   *) ac_try_echo=$ac_try;;
9588 esac
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590   (eval "$ac_try") 2>&5
9591   ac_status=$?
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); }; }; then
9594   ac_cv_search_pthread_getspecific=$ac_res
9595 else
9596   echo "$as_me: failed program was:" >&5
9597 sed 's/^/| /' conftest.$ac_ext >&5
9598
9599
9600 fi
9601
9602 rm -f core conftest.err conftest.$ac_objext \
9603       conftest$ac_exeext
9604   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9605   break
9606 fi
9607 done
9608 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9609   :
9610 else
9611   ac_cv_search_pthread_getspecific=no
9612 fi
9613 rm conftest.$ac_ext
9614 LIBS=$ac_func_search_save_LIBS
9615 fi
9616 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9617 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9618 ac_res=$ac_cv_search_pthread_getspecific
9619 if test "$ac_res" != no; then
9620   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9621
9622 cat >>confdefs.h <<\_ACEOF
9623 #define HAVE_PTHREAD_GETSPECIFIC 1
9624 _ACEOF
9625
9626 fi
9627
9628 fi
9629
9630 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9631
9632 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9633 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9634 if test "${ac_cv_lib_z_compress2+set}" = set; then
9635   echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637   ac_check_lib_save_LIBS=$LIBS
9638 LIBS="-lz  $LIBS"
9639 cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h.  */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h.  */
9645
9646 /* Override any GCC internal prototype to avoid an error.
9647    Use char because int might match the return type of a GCC
9648    builtin and then its argument prototype would still apply.  */
9649 #ifdef __cplusplus
9650 extern "C"
9651 #endif
9652 char compress2 ();
9653 int
9654 main ()
9655 {
9656 return compress2 ();
9657   ;
9658   return 0;
9659 }
9660 _ACEOF
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (ac_try="$ac_link"
9663 case "(($ac_try" in
9664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665   *) ac_try_echo=$ac_try;;
9666 esac
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668   (eval "$ac_link") 2>conftest.er1
9669   ac_status=$?
9670   grep -v '^ *+' conftest.er1 >conftest.err
9671   rm -f conftest.er1
9672   cat conftest.err >&5
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); } &&
9675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9676   { (case "(($ac_try" in
9677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678   *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681   (eval "$ac_try") 2>&5
9682   ac_status=$?
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); }; } &&
9685          { ac_try='test -s conftest$ac_exeext'
9686   { (case "(($ac_try" in
9687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688   *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691   (eval "$ac_try") 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); }; }; then
9695   ac_cv_lib_z_compress2=yes
9696 else
9697   echo "$as_me: failed program was:" >&5
9698 sed 's/^/| /' conftest.$ac_ext >&5
9699
9700         ac_cv_lib_z_compress2=no
9701 fi
9702
9703 rm -f core conftest.err conftest.$ac_objext \
9704       conftest$ac_exeext conftest.$ac_ext
9705 LIBS=$ac_check_lib_save_LIBS
9706 fi
9707 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9708 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9709 if test $ac_cv_lib_z_compress2 = yes; then
9710   cat >>confdefs.h <<_ACEOF
9711 #define HAVE_LIBZ 1
9712 _ACEOF
9713
9714   LIBS="-lz $LIBS"
9715
9716 fi
9717
9718 fi
9719
9720
9721 # Check whether --with-oprofile was given.
9722 if test "${with_oprofile+set}" = set; then
9723   withval=$with_oprofile;
9724       USE_OPROFILE=1
9725
9726       case "$withval" in
9727         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9728         no) llvm_cv_oppath=
9729             USE_OPROFILE=0
9730  ;;
9731         *) llvm_cv_oppath="${withval}/lib/oprofile"
9732            CPPFLAGS="-I${withval}/include";;
9733       esac
9734       case $llvm_cv_os_type in
9735         Linux)
9736           if test -n "$llvm_cv_oppath" ; then
9737             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9738                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9739 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9740 if test "${ac_cv_search_bfd_init+set}" = set; then
9741   echo $ECHO_N "(cached) $ECHO_C" >&6
9742 else
9743   ac_func_search_save_LIBS=$LIBS
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h.  */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h.  */
9750
9751 /* Override any GCC internal prototype to avoid an error.
9752    Use char because int might match the return type of a GCC
9753    builtin and then its argument prototype would still apply.  */
9754 #ifdef __cplusplus
9755 extern "C"
9756 #endif
9757 char bfd_init ();
9758 int
9759 main ()
9760 {
9761 return bfd_init ();
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 for ac_lib in '' bfd; do
9767   if test -z "$ac_lib"; then
9768     ac_res="none required"
9769   else
9770     ac_res=-l$ac_lib
9771     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9772   fi
9773   rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9775 case "(($ac_try" in
9776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777   *) ac_try_echo=$ac_try;;
9778 esac
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780   (eval "$ac_link") 2>conftest.er1
9781   ac_status=$?
9782   grep -v '^ *+' conftest.er1 >conftest.err
9783   rm -f conftest.er1
9784   cat conftest.err >&5
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); } &&
9787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9788   { (case "(($ac_try" in
9789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790   *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793   (eval "$ac_try") 2>&5
9794   ac_status=$?
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); }; } &&
9797          { ac_try='test -s conftest$ac_exeext'
9798   { (case "(($ac_try" in
9799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800   *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803   (eval "$ac_try") 2>&5
9804   ac_status=$?
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); }; }; then
9807   ac_cv_search_bfd_init=$ac_res
9808 else
9809   echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9811
9812
9813 fi
9814
9815 rm -f core conftest.err conftest.$ac_objext \
9816       conftest$ac_exeext
9817   if test "${ac_cv_search_bfd_init+set}" = set; then
9818   break
9819 fi
9820 done
9821 if test "${ac_cv_search_bfd_init+set}" = set; then
9822   :
9823 else
9824   ac_cv_search_bfd_init=no
9825 fi
9826 rm conftest.$ac_ext
9827 LIBS=$ac_func_search_save_LIBS
9828 fi
9829 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
9830 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
9831 ac_res=$ac_cv_search_bfd_init
9832 if test "$ac_res" != no; then
9833   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9834
9835 fi
9836
9837             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
9838 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
9839 if test "${ac_cv_search_op_open_agent+set}" = set; then
9840   echo $ECHO_N "(cached) $ECHO_C" >&6
9841 else
9842   ac_func_search_save_LIBS=$LIBS
9843 cat >conftest.$ac_ext <<_ACEOF
9844 /* confdefs.h.  */
9845 _ACEOF
9846 cat confdefs.h >>conftest.$ac_ext
9847 cat >>conftest.$ac_ext <<_ACEOF
9848 /* end confdefs.h.  */
9849
9850 /* Override any GCC internal prototype to avoid an error.
9851    Use char because int might match the return type of a GCC
9852    builtin and then its argument prototype would still apply.  */
9853 #ifdef __cplusplus
9854 extern "C"
9855 #endif
9856 char op_open_agent ();
9857 int
9858 main ()
9859 {
9860 return op_open_agent ();
9861   ;
9862   return 0;
9863 }
9864 _ACEOF
9865 for ac_lib in '' opagent; do
9866   if test -z "$ac_lib"; then
9867     ac_res="none required"
9868   else
9869     ac_res=-l$ac_lib
9870     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9871   fi
9872   rm -f conftest.$ac_objext conftest$ac_exeext
9873 if { (ac_try="$ac_link"
9874 case "(($ac_try" in
9875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9876   *) ac_try_echo=$ac_try;;
9877 esac
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879   (eval "$ac_link") 2>conftest.er1
9880   ac_status=$?
9881   grep -v '^ *+' conftest.er1 >conftest.err
9882   rm -f conftest.er1
9883   cat conftest.err >&5
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); } &&
9886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9887   { (case "(($ac_try" in
9888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889   *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892   (eval "$ac_try") 2>&5
9893   ac_status=$?
9894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895   (exit $ac_status); }; } &&
9896          { ac_try='test -s conftest$ac_exeext'
9897   { (case "(($ac_try" in
9898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899   *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902   (eval "$ac_try") 2>&5
9903   ac_status=$?
9904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905   (exit $ac_status); }; }; then
9906   ac_cv_search_op_open_agent=$ac_res
9907 else
9908   echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9910
9911
9912 fi
9913
9914 rm -f core conftest.err conftest.$ac_objext \
9915       conftest$ac_exeext
9916   if test "${ac_cv_search_op_open_agent+set}" = set; then
9917   break
9918 fi
9919 done
9920 if test "${ac_cv_search_op_open_agent+set}" = set; then
9921   :
9922 else
9923   ac_cv_search_op_open_agent=no
9924 fi
9925 rm conftest.$ac_ext
9926 LIBS=$ac_func_search_save_LIBS
9927 fi
9928 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
9929 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
9930 ac_res=$ac_cv_search_op_open_agent
9931 if test "$ac_res" != no; then
9932   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9933
9934 else
9935
9936               echo "Error! You need to have libopagent around."
9937               exit -1
9938
9939 fi
9940
9941             if test "${ac_cv_header_opagent_h+set}" = set; then
9942   { echo "$as_me:$LINENO: checking for opagent.h" >&5
9943 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
9944 if test "${ac_cv_header_opagent_h+set}" = set; then
9945   echo $ECHO_N "(cached) $ECHO_C" >&6
9946 fi
9947 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
9948 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
9949 else
9950   # Is the header compilable?
9951 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
9952 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h.  */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h.  */
9959 $ac_includes_default
9960 #include <opagent.h>
9961 _ACEOF
9962 rm -f conftest.$ac_objext
9963 if { (ac_try="$ac_compile"
9964 case "(($ac_try" in
9965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966   *) ac_try_echo=$ac_try;;
9967 esac
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969   (eval "$ac_compile") 2>conftest.er1
9970   ac_status=$?
9971   grep -v '^ *+' conftest.er1 >conftest.err
9972   rm -f conftest.er1
9973   cat conftest.err >&5
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); } &&
9976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9977   { (case "(($ac_try" in
9978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979   *) ac_try_echo=$ac_try;;
9980 esac
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982   (eval "$ac_try") 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; } &&
9986          { ac_try='test -s conftest.$ac_objext'
9987   { (case "(($ac_try" in
9988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989   *) ac_try_echo=$ac_try;;
9990 esac
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992   (eval "$ac_try") 2>&5
9993   ac_status=$?
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); }; }; then
9996   ac_header_compiler=yes
9997 else
9998   echo "$as_me: failed program was:" >&5
9999 sed 's/^/| /' conftest.$ac_ext >&5
10000
10001         ac_header_compiler=no
10002 fi
10003
10004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10006 echo "${ECHO_T}$ac_header_compiler" >&6; }
10007
10008 # Is the header present?
10009 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10010 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10011 cat >conftest.$ac_ext <<_ACEOF
10012 /* confdefs.h.  */
10013 _ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h.  */
10017 #include <opagent.h>
10018 _ACEOF
10019 if { (ac_try="$ac_cpp conftest.$ac_ext"
10020 case "(($ac_try" in
10021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022   *) ac_try_echo=$ac_try;;
10023 esac
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10026   ac_status=$?
10027   grep -v '^ *+' conftest.er1 >conftest.err
10028   rm -f conftest.er1
10029   cat conftest.err >&5
10030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031   (exit $ac_status); } >/dev/null; then
10032   if test -s conftest.err; then
10033     ac_cpp_err=$ac_c_preproc_warn_flag
10034     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10035   else
10036     ac_cpp_err=
10037   fi
10038 else
10039   ac_cpp_err=yes
10040 fi
10041 if test -z "$ac_cpp_err"; then
10042   ac_header_preproc=yes
10043 else
10044   echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10046
10047   ac_header_preproc=no
10048 fi
10049
10050 rm -f conftest.err conftest.$ac_ext
10051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10052 echo "${ECHO_T}$ac_header_preproc" >&6; }
10053
10054 # So?  What about this header?
10055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10056   yes:no: )
10057     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10058 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10059     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10060 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10061     ac_header_preproc=yes
10062     ;;
10063   no:yes:* )
10064     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10065 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10066     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10067 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10068     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10069 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10070     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10071 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10072     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10073 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10074     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10075 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10076     ( cat <<\_ASBOX
10077 ## ------------------------------------ ##
10078 ## Report this to http://llvm.org/bugs/ ##
10079 ## ------------------------------------ ##
10080 _ASBOX
10081      ) | sed "s/^/$as_me: WARNING:     /" >&2
10082     ;;
10083 esac
10084 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10085 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10086 if test "${ac_cv_header_opagent_h+set}" = set; then
10087   echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089   ac_cv_header_opagent_h=$ac_header_preproc
10090 fi
10091 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10092 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10093
10094 fi
10095 if test $ac_cv_header_opagent_h = yes; then
10096   :
10097 else
10098
10099               echo "Error! You need to have opagent.h around."
10100               exit -1
10101
10102 fi
10103
10104
10105           fi ;;
10106         *)
10107           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10108 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10109    { (exit 1); exit 1; }; } ;;
10110       esac
10111
10112 else
10113
10114       USE_OPROFILE=0
10115
10116
10117 fi
10118
10119
10120 cat >>confdefs.h <<_ACEOF
10121 #define LLVM_USE_OPROFILE $USE_OPROFILE
10122 _ACEOF
10123
10124
10125
10126 # Check whether --with-intel-jitevents was given.
10127 if test "${with_intel_jitevents+set}" = set; then
10128   withval=$with_intel_jitevents;
10129        case "$withval" in
10130           yes) USE_INTEL_JITEVENTS=1
10131 ;;
10132           no)  USE_INTEL_JITEVENTS=0
10133 ;;
10134           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10135 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10136    { (exit 1); exit 1; }; };;
10137        esac
10138
10139       case $llvm_cv_os_type in
10140         Linux|Win32|Cygwin|MingW) ;;
10141         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10142 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10143    { (exit 1); exit 1; }; };;
10144       esac
10145
10146       case "$llvm_cv_target_arch" in
10147         x86|x86_64) ;;
10148         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10149 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10150    { (exit 1); exit 1; }; };;
10151       esac
10152
10153 else
10154
10155       USE_INTEL_JITEVENTS=0
10156
10157
10158 fi
10159
10160
10161 cat >>confdefs.h <<_ACEOF
10162 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10163 _ACEOF
10164
10165
10166 for ac_prog in xml2-config
10167 do
10168   # Extract the first word of "$ac_prog", so it can be a program name with args.
10169 set dummy $ac_prog; ac_word=$2
10170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10172 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10173   echo $ECHO_N "(cached) $ECHO_C" >&6
10174 else
10175   if test -n "$XML2CONFIG"; then
10176   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10177 else
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179 for as_dir in $PATH
10180 do
10181   IFS=$as_save_IFS
10182   test -z "$as_dir" && as_dir=.
10183   for ac_exec_ext in '' $ac_executable_extensions; do
10184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10185     ac_cv_prog_XML2CONFIG="$ac_prog"
10186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10187     break 2
10188   fi
10189 done
10190 done
10191 IFS=$as_save_IFS
10192
10193 fi
10194 fi
10195 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10196 if test -n "$XML2CONFIG"; then
10197   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10198 echo "${ECHO_T}$XML2CONFIG" >&6; }
10199 else
10200   { echo "$as_me:$LINENO: result: no" >&5
10201 echo "${ECHO_T}no" >&6; }
10202 fi
10203
10204
10205   test -n "$XML2CONFIG" && break
10206 done
10207
10208
10209 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10210 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10211 if test "x$XML2CONFIG" = "x"; then
10212  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10213 echo "${ECHO_T}xml2-config not found" >&6; }
10214 else
10215  LIBXML2_INC=`$XML2CONFIG --cflags`
10216  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10217 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10218  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10219 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10220 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10221   echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223   ac_check_lib_save_LIBS=$LIBS
10224 LIBS="-lxml2  $LIBS"
10225 cat >conftest.$ac_ext <<_ACEOF
10226 /* confdefs.h.  */
10227 _ACEOF
10228 cat confdefs.h >>conftest.$ac_ext
10229 cat >>conftest.$ac_ext <<_ACEOF
10230 /* end confdefs.h.  */
10231
10232 /* Override any GCC internal prototype to avoid an error.
10233    Use char because int might match the return type of a GCC
10234    builtin and then its argument prototype would still apply.  */
10235 #ifdef __cplusplus
10236 extern "C"
10237 #endif
10238 char xmlReadFile ();
10239 int
10240 main ()
10241 {
10242 return xmlReadFile ();
10243   ;
10244   return 0;
10245 }
10246 _ACEOF
10247 rm -f conftest.$ac_objext conftest$ac_exeext
10248 if { (ac_try="$ac_link"
10249 case "(($ac_try" in
10250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251   *) ac_try_echo=$ac_try;;
10252 esac
10253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254   (eval "$ac_link") 2>conftest.er1
10255   ac_status=$?
10256   grep -v '^ *+' conftest.er1 >conftest.err
10257   rm -f conftest.er1
10258   cat conftest.err >&5
10259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260   (exit $ac_status); } &&
10261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10262   { (case "(($ac_try" in
10263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264   *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267   (eval "$ac_try") 2>&5
10268   ac_status=$?
10269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270   (exit $ac_status); }; } &&
10271          { ac_try='test -s conftest$ac_exeext'
10272   { (case "(($ac_try" in
10273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274   *) ac_try_echo=$ac_try;;
10275 esac
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277   (eval "$ac_try") 2>&5
10278   ac_status=$?
10279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280   (exit $ac_status); }; }; then
10281   ac_cv_lib_xml2_xmlReadFile=yes
10282 else
10283   echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10285
10286         ac_cv_lib_xml2_xmlReadFile=no
10287 fi
10288
10289 rm -f core conftest.err conftest.$ac_objext \
10290       conftest$ac_exeext conftest.$ac_ext
10291 LIBS=$ac_check_lib_save_LIBS
10292 fi
10293 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10294 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10295 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10296
10297 cat >>confdefs.h <<\_ACEOF
10298 #define CLANG_HAVE_LIBXML 1
10299 _ACEOF
10300
10301                                 LIBXML2_LIBS="-lxml2"
10302 fi
10303
10304 fi
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314 ac_header_dirent=no
10315 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10316   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10317 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10318 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10320   echo $ECHO_N "(cached) $ECHO_C" >&6
10321 else
10322   cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h.  */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h.  */
10328 #include <sys/types.h>
10329 #include <$ac_hdr>
10330
10331 int
10332 main ()
10333 {
10334 if ((DIR *) 0)
10335 return 0;
10336   ;
10337   return 0;
10338 }
10339 _ACEOF
10340 rm -f conftest.$ac_objext
10341 if { (ac_try="$ac_compile"
10342 case "(($ac_try" in
10343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344   *) ac_try_echo=$ac_try;;
10345 esac
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347   (eval "$ac_compile") 2>conftest.er1
10348   ac_status=$?
10349   grep -v '^ *+' conftest.er1 >conftest.err
10350   rm -f conftest.er1
10351   cat conftest.err >&5
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); } &&
10354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10355   { (case "(($ac_try" in
10356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357   *) ac_try_echo=$ac_try;;
10358 esac
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360   (eval "$ac_try") 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); }; } &&
10364          { ac_try='test -s conftest.$ac_objext'
10365   { (case "(($ac_try" in
10366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367   *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370   (eval "$ac_try") 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; }; then
10374   eval "$as_ac_Header=yes"
10375 else
10376   echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10378
10379         eval "$as_ac_Header=no"
10380 fi
10381
10382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10383 fi
10384 ac_res=`eval echo '${'$as_ac_Header'}'`
10385                { echo "$as_me:$LINENO: result: $ac_res" >&5
10386 echo "${ECHO_T}$ac_res" >&6; }
10387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10388   cat >>confdefs.h <<_ACEOF
10389 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10390 _ACEOF
10391
10392 ac_header_dirent=$ac_hdr; break
10393 fi
10394
10395 done
10396 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10397 if test $ac_header_dirent = dirent.h; then
10398   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10399 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10400 if test "${ac_cv_search_opendir+set}" = set; then
10401   echo $ECHO_N "(cached) $ECHO_C" >&6
10402 else
10403   ac_func_search_save_LIBS=$LIBS
10404 cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410
10411 /* Override any GCC internal prototype to avoid an error.
10412    Use char because int might match the return type of a GCC
10413    builtin and then its argument prototype would still apply.  */
10414 #ifdef __cplusplus
10415 extern "C"
10416 #endif
10417 char opendir ();
10418 int
10419 main ()
10420 {
10421 return opendir ();
10422   ;
10423   return 0;
10424 }
10425 _ACEOF
10426 for ac_lib in '' dir; do
10427   if test -z "$ac_lib"; then
10428     ac_res="none required"
10429   else
10430     ac_res=-l$ac_lib
10431     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10432   fi
10433   rm -f conftest.$ac_objext conftest$ac_exeext
10434 if { (ac_try="$ac_link"
10435 case "(($ac_try" in
10436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10437   *) ac_try_echo=$ac_try;;
10438 esac
10439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10440   (eval "$ac_link") 2>conftest.er1
10441   ac_status=$?
10442   grep -v '^ *+' conftest.er1 >conftest.err
10443   rm -f conftest.er1
10444   cat conftest.err >&5
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); } &&
10447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10448   { (case "(($ac_try" in
10449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450   *) ac_try_echo=$ac_try;;
10451 esac
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453   (eval "$ac_try") 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); }; } &&
10457          { ac_try='test -s conftest$ac_exeext'
10458   { (case "(($ac_try" in
10459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460   *) ac_try_echo=$ac_try;;
10461 esac
10462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463   (eval "$ac_try") 2>&5
10464   ac_status=$?
10465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466   (exit $ac_status); }; }; then
10467   ac_cv_search_opendir=$ac_res
10468 else
10469   echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472
10473 fi
10474
10475 rm -f core conftest.err conftest.$ac_objext \
10476       conftest$ac_exeext
10477   if test "${ac_cv_search_opendir+set}" = set; then
10478   break
10479 fi
10480 done
10481 if test "${ac_cv_search_opendir+set}" = set; then
10482   :
10483 else
10484   ac_cv_search_opendir=no
10485 fi
10486 rm conftest.$ac_ext
10487 LIBS=$ac_func_search_save_LIBS
10488 fi
10489 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10490 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10491 ac_res=$ac_cv_search_opendir
10492 if test "$ac_res" != no; then
10493   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10494
10495 fi
10496
10497 else
10498   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10499 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10500 if test "${ac_cv_search_opendir+set}" = set; then
10501   echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503   ac_func_search_save_LIBS=$LIBS
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h.  */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h.  */
10510
10511 /* Override any GCC internal prototype to avoid an error.
10512    Use char because int might match the return type of a GCC
10513    builtin and then its argument prototype would still apply.  */
10514 #ifdef __cplusplus
10515 extern "C"
10516 #endif
10517 char opendir ();
10518 int
10519 main ()
10520 {
10521 return opendir ();
10522   ;
10523   return 0;
10524 }
10525 _ACEOF
10526 for ac_lib in '' x; do
10527   if test -z "$ac_lib"; then
10528     ac_res="none required"
10529   else
10530     ac_res=-l$ac_lib
10531     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10532   fi
10533   rm -f conftest.$ac_objext conftest$ac_exeext
10534 if { (ac_try="$ac_link"
10535 case "(($ac_try" in
10536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537   *) ac_try_echo=$ac_try;;
10538 esac
10539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540   (eval "$ac_link") 2>conftest.er1
10541   ac_status=$?
10542   grep -v '^ *+' conftest.er1 >conftest.err
10543   rm -f conftest.er1
10544   cat conftest.err >&5
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } &&
10547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10548   { (case "(($ac_try" in
10549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550   *) ac_try_echo=$ac_try;;
10551 esac
10552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553   (eval "$ac_try") 2>&5
10554   ac_status=$?
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); }; } &&
10557          { ac_try='test -s conftest$ac_exeext'
10558   { (case "(($ac_try" in
10559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560   *) ac_try_echo=$ac_try;;
10561 esac
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563   (eval "$ac_try") 2>&5
10564   ac_status=$?
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); }; }; then
10567   ac_cv_search_opendir=$ac_res
10568 else
10569   echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10571
10572
10573 fi
10574
10575 rm -f core conftest.err conftest.$ac_objext \
10576       conftest$ac_exeext
10577   if test "${ac_cv_search_opendir+set}" = set; then
10578   break
10579 fi
10580 done
10581 if test "${ac_cv_search_opendir+set}" = set; then
10582   :
10583 else
10584   ac_cv_search_opendir=no
10585 fi
10586 rm conftest.$ac_ext
10587 LIBS=$ac_func_search_save_LIBS
10588 fi
10589 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10590 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10591 ac_res=$ac_cv_search_opendir
10592 if test "$ac_res" != no; then
10593   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10594
10595 fi
10596
10597 fi
10598
10599 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10600 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10601 if test "${ac_cv_header_mmap_anon+set}" = set; then
10602   echo $ECHO_N "(cached) $ECHO_C" >&6
10603 else
10604    ac_ext=c
10605 ac_cpp='$CPP $CPPFLAGS'
10606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10609
10610   cat >conftest.$ac_ext <<_ACEOF
10611 /* confdefs.h.  */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h.  */
10616 #include <sys/mman.h>
10617 #include <unistd.h>
10618 #include <fcntl.h>
10619 int
10620 main ()
10621 {
10622 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10623   ;
10624   return 0;
10625 }
10626 _ACEOF
10627 rm -f conftest.$ac_objext
10628 if { (ac_try="$ac_compile"
10629 case "(($ac_try" in
10630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631   *) ac_try_echo=$ac_try;;
10632 esac
10633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634   (eval "$ac_compile") 2>conftest.er1
10635   ac_status=$?
10636   grep -v '^ *+' conftest.er1 >conftest.err
10637   rm -f conftest.er1
10638   cat conftest.err >&5
10639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640   (exit $ac_status); } &&
10641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10642   { (case "(($ac_try" in
10643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644   *) ac_try_echo=$ac_try;;
10645 esac
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647   (eval "$ac_try") 2>&5
10648   ac_status=$?
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); }; } &&
10651          { ac_try='test -s conftest.$ac_objext'
10652   { (case "(($ac_try" in
10653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654   *) ac_try_echo=$ac_try;;
10655 esac
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657   (eval "$ac_try") 2>&5
10658   ac_status=$?
10659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660   (exit $ac_status); }; }; then
10661   ac_cv_header_mmap_anon=yes
10662 else
10663   echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10665
10666         ac_cv_header_mmap_anon=no
10667 fi
10668
10669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10670   ac_ext=c
10671 ac_cpp='$CPP $CPPFLAGS'
10672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10675
10676
10677 fi
10678 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10679 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10680 if test "$ac_cv_header_mmap_anon" = yes; then
10681
10682 cat >>confdefs.h <<\_ACEOF
10683 #define HAVE_MMAP_ANONYMOUS 1
10684 _ACEOF
10685
10686 fi
10687
10688 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10689 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10690 if test "${ac_cv_header_stat_broken+set}" = set; then
10691   echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10693   cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h.  */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h.  */
10699 #include <sys/types.h>
10700 #include <sys/stat.h>
10701
10702 #if defined S_ISBLK && defined S_IFDIR
10703 # if S_ISBLK (S_IFDIR)
10704 You lose.
10705 # endif
10706 #endif
10707
10708 #if defined S_ISBLK && defined S_IFCHR
10709 # if S_ISBLK (S_IFCHR)
10710 You lose.
10711 # endif
10712 #endif
10713
10714 #if defined S_ISLNK && defined S_IFREG
10715 # if S_ISLNK (S_IFREG)
10716 You lose.
10717 # endif
10718 #endif
10719
10720 #if defined S_ISSOCK && defined S_IFREG
10721 # if S_ISSOCK (S_IFREG)
10722 You lose.
10723 # endif
10724 #endif
10725
10726 _ACEOF
10727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10728   $EGREP "You lose" >/dev/null 2>&1; then
10729   ac_cv_header_stat_broken=yes
10730 else
10731   ac_cv_header_stat_broken=no
10732 fi
10733 rm -f conftest*
10734
10735 fi
10736 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10737 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10738 if test $ac_cv_header_stat_broken = yes; then
10739
10740 cat >>confdefs.h <<\_ACEOF
10741 #define STAT_MACROS_BROKEN 1
10742 _ACEOF
10743
10744 fi
10745
10746 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10747 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
10748 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10749   echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751   cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h.  */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h.  */
10757 #include <sys/types.h>
10758 #include <sys/wait.h>
10759 #ifndef WEXITSTATUS
10760 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
10761 #endif
10762 #ifndef WIFEXITED
10763 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10764 #endif
10765
10766 int
10767 main ()
10768 {
10769   int s;
10770   wait (&s);
10771   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 rm -f conftest.$ac_objext
10777 if { (ac_try="$ac_compile"
10778 case "(($ac_try" in
10779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780   *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783   (eval "$ac_compile") 2>conftest.er1
10784   ac_status=$?
10785   grep -v '^ *+' conftest.er1 >conftest.err
10786   rm -f conftest.er1
10787   cat conftest.err >&5
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } &&
10790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10791   { (case "(($ac_try" in
10792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10793   *) ac_try_echo=$ac_try;;
10794 esac
10795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10796   (eval "$ac_try") 2>&5
10797   ac_status=$?
10798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799   (exit $ac_status); }; } &&
10800          { ac_try='test -s conftest.$ac_objext'
10801   { (case "(($ac_try" in
10802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803   *) ac_try_echo=$ac_try;;
10804 esac
10805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10806   (eval "$ac_try") 2>&5
10807   ac_status=$?
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); }; }; then
10810   ac_cv_header_sys_wait_h=yes
10811 else
10812   echo "$as_me: failed program was:" >&5
10813 sed 's/^/| /' conftest.$ac_ext >&5
10814
10815         ac_cv_header_sys_wait_h=no
10816 fi
10817
10818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 fi
10820 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10821 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
10822 if test $ac_cv_header_sys_wait_h = yes; then
10823
10824 cat >>confdefs.h <<\_ACEOF
10825 #define HAVE_SYS_WAIT_H 1
10826 _ACEOF
10827
10828 fi
10829
10830 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10831 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
10832 if test "${ac_cv_header_time+set}" = set; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   cat >conftest.$ac_ext <<_ACEOF
10836 /* confdefs.h.  */
10837 _ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h.  */
10841 #include <sys/types.h>
10842 #include <sys/time.h>
10843 #include <time.h>
10844
10845 int
10846 main ()
10847 {
10848 if ((struct tm *) 0)
10849 return 0;
10850   ;
10851   return 0;
10852 }
10853 _ACEOF
10854 rm -f conftest.$ac_objext
10855 if { (ac_try="$ac_compile"
10856 case "(($ac_try" in
10857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858   *) ac_try_echo=$ac_try;;
10859 esac
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861   (eval "$ac_compile") 2>conftest.er1
10862   ac_status=$?
10863   grep -v '^ *+' conftest.er1 >conftest.err
10864   rm -f conftest.er1
10865   cat conftest.err >&5
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); } &&
10868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10869   { (case "(($ac_try" in
10870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10871   *) ac_try_echo=$ac_try;;
10872 esac
10873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10874   (eval "$ac_try") 2>&5
10875   ac_status=$?
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); }; } &&
10878          { ac_try='test -s conftest.$ac_objext'
10879   { (case "(($ac_try" in
10880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881   *) ac_try_echo=$ac_try;;
10882 esac
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884   (eval "$ac_try") 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); }; }; then
10888   ac_cv_header_time=yes
10889 else
10890   echo "$as_me: failed program was:" >&5
10891 sed 's/^/| /' conftest.$ac_ext >&5
10892
10893         ac_cv_header_time=no
10894 fi
10895
10896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897 fi
10898 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10899 echo "${ECHO_T}$ac_cv_header_time" >&6; }
10900 if test $ac_cv_header_time = yes; then
10901
10902 cat >>confdefs.h <<\_ACEOF
10903 #define TIME_WITH_SYS_TIME 1
10904 _ACEOF
10905
10906 fi
10907
10908
10909 ac_ext=cpp
10910 ac_cpp='$CXXCPP $CPPFLAGS'
10911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10914
10915 ac_ext=cpp
10916 ac_cpp='$CXXCPP $CPPFLAGS'
10917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10920 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10921 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10922 if test -z "$CXXCPP"; then
10923   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10924   echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926       # Double quotes because CXXCPP needs to be expanded
10927     for CXXCPP in "$CXX -E" "/lib/cpp"
10928     do
10929       ac_preproc_ok=false
10930 for ac_cxx_preproc_warn_flag in '' yes
10931 do
10932   # Use a header file that comes with gcc, so configuring glibc
10933   # with a fresh cross-compiler works.
10934   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10935   # <limits.h> exists even on freestanding compilers.
10936   # On the NeXT, cc -E runs the code through the compiler's parser,
10937   # not just through cpp. "Syntax error" is here to catch this case.
10938   cat >conftest.$ac_ext <<_ACEOF
10939 /* confdefs.h.  */
10940 _ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h.  */
10944 #ifdef __STDC__
10945 # include <limits.h>
10946 #else
10947 # include <assert.h>
10948 #endif
10949                      Syntax error
10950 _ACEOF
10951 if { (ac_try="$ac_cpp conftest.$ac_ext"
10952 case "(($ac_try" in
10953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954   *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10958   ac_status=$?
10959   grep -v '^ *+' conftest.er1 >conftest.err
10960   rm -f conftest.er1
10961   cat conftest.err >&5
10962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963   (exit $ac_status); } >/dev/null; then
10964   if test -s conftest.err; then
10965     ac_cpp_err=$ac_cxx_preproc_warn_flag
10966     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10967   else
10968     ac_cpp_err=
10969   fi
10970 else
10971   ac_cpp_err=yes
10972 fi
10973 if test -z "$ac_cpp_err"; then
10974   :
10975 else
10976   echo "$as_me: failed program was:" >&5
10977 sed 's/^/| /' conftest.$ac_ext >&5
10978
10979   # Broken: fails on valid input.
10980 continue
10981 fi
10982
10983 rm -f conftest.err conftest.$ac_ext
10984
10985   # OK, works on sane cases.  Now check whether nonexistent headers
10986   # can be detected and how.
10987   cat >conftest.$ac_ext <<_ACEOF
10988 /* confdefs.h.  */
10989 _ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h.  */
10993 #include <ac_nonexistent.h>
10994 _ACEOF
10995 if { (ac_try="$ac_cpp conftest.$ac_ext"
10996 case "(($ac_try" in
10997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998   *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11002   ac_status=$?
11003   grep -v '^ *+' conftest.er1 >conftest.err
11004   rm -f conftest.er1
11005   cat conftest.err >&5
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); } >/dev/null; then
11008   if test -s conftest.err; then
11009     ac_cpp_err=$ac_cxx_preproc_warn_flag
11010     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11011   else
11012     ac_cpp_err=
11013   fi
11014 else
11015   ac_cpp_err=yes
11016 fi
11017 if test -z "$ac_cpp_err"; then
11018   # Broken: success on invalid input.
11019 continue
11020 else
11021   echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11023
11024   # Passes both tests.
11025 ac_preproc_ok=:
11026 break
11027 fi
11028
11029 rm -f conftest.err conftest.$ac_ext
11030
11031 done
11032 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11033 rm -f conftest.err conftest.$ac_ext
11034 if $ac_preproc_ok; then
11035   break
11036 fi
11037
11038     done
11039     ac_cv_prog_CXXCPP=$CXXCPP
11040
11041 fi
11042   CXXCPP=$ac_cv_prog_CXXCPP
11043 else
11044   ac_cv_prog_CXXCPP=$CXXCPP
11045 fi
11046 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11047 echo "${ECHO_T}$CXXCPP" >&6; }
11048 ac_preproc_ok=false
11049 for ac_cxx_preproc_warn_flag in '' yes
11050 do
11051   # Use a header file that comes with gcc, so configuring glibc
11052   # with a fresh cross-compiler works.
11053   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11054   # <limits.h> exists even on freestanding compilers.
11055   # On the NeXT, cc -E runs the code through the compiler's parser,
11056   # not just through cpp. "Syntax error" is here to catch this case.
11057   cat >conftest.$ac_ext <<_ACEOF
11058 /* confdefs.h.  */
11059 _ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h.  */
11063 #ifdef __STDC__
11064 # include <limits.h>
11065 #else
11066 # include <assert.h>
11067 #endif
11068                      Syntax error
11069 _ACEOF
11070 if { (ac_try="$ac_cpp conftest.$ac_ext"
11071 case "(($ac_try" in
11072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073   *) ac_try_echo=$ac_try;;
11074 esac
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11077   ac_status=$?
11078   grep -v '^ *+' conftest.er1 >conftest.err
11079   rm -f conftest.er1
11080   cat conftest.err >&5
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); } >/dev/null; then
11083   if test -s conftest.err; then
11084     ac_cpp_err=$ac_cxx_preproc_warn_flag
11085     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11086   else
11087     ac_cpp_err=
11088   fi
11089 else
11090   ac_cpp_err=yes
11091 fi
11092 if test -z "$ac_cpp_err"; then
11093   :
11094 else
11095   echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11097
11098   # Broken: fails on valid input.
11099 continue
11100 fi
11101
11102 rm -f conftest.err conftest.$ac_ext
11103
11104   # OK, works on sane cases.  Now check whether nonexistent headers
11105   # can be detected and how.
11106   cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112 #include <ac_nonexistent.h>
11113 _ACEOF
11114 if { (ac_try="$ac_cpp conftest.$ac_ext"
11115 case "(($ac_try" in
11116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117   *) ac_try_echo=$ac_try;;
11118 esac
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11121   ac_status=$?
11122   grep -v '^ *+' conftest.er1 >conftest.err
11123   rm -f conftest.er1
11124   cat conftest.err >&5
11125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126   (exit $ac_status); } >/dev/null; then
11127   if test -s conftest.err; then
11128     ac_cpp_err=$ac_cxx_preproc_warn_flag
11129     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11130   else
11131     ac_cpp_err=
11132   fi
11133 else
11134   ac_cpp_err=yes
11135 fi
11136 if test -z "$ac_cpp_err"; then
11137   # Broken: success on invalid input.
11138 continue
11139 else
11140   echo "$as_me: failed program was:" >&5
11141 sed 's/^/| /' conftest.$ac_ext >&5
11142
11143   # Passes both tests.
11144 ac_preproc_ok=:
11145 break
11146 fi
11147
11148 rm -f conftest.err conftest.$ac_ext
11149
11150 done
11151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11152 rm -f conftest.err conftest.$ac_ext
11153 if $ac_preproc_ok; then
11154   :
11155 else
11156   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11157 See \`config.log' for more details." >&5
11158 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11159 See \`config.log' for more details." >&2;}
11160    { (exit 1); exit 1; }; }
11161 fi
11162
11163 ac_ext=cpp
11164 ac_cpp='$CXXCPP $CPPFLAGS'
11165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11168
11169
11170
11171 for ac_header in cxxabi.h
11172 do
11173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 fi
11180 ac_res=`eval echo '${'$as_ac_Header'}'`
11181                { echo "$as_me:$LINENO: result: $ac_res" >&5
11182 echo "${ECHO_T}$ac_res" >&6; }
11183 else
11184   # Is the header compilable?
11185 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11187 cat >conftest.$ac_ext <<_ACEOF
11188 /* confdefs.h.  */
11189 _ACEOF
11190 cat confdefs.h >>conftest.$ac_ext
11191 cat >>conftest.$ac_ext <<_ACEOF
11192 /* end confdefs.h.  */
11193 $ac_includes_default
11194 #include <$ac_header>
11195 _ACEOF
11196 rm -f conftest.$ac_objext
11197 if { (ac_try="$ac_compile"
11198 case "(($ac_try" in
11199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11200   *) ac_try_echo=$ac_try;;
11201 esac
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203   (eval "$ac_compile") 2>conftest.er1
11204   ac_status=$?
11205   grep -v '^ *+' conftest.er1 >conftest.err
11206   rm -f conftest.er1
11207   cat conftest.err >&5
11208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209   (exit $ac_status); } &&
11210          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11211   { (case "(($ac_try" in
11212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213   *) ac_try_echo=$ac_try;;
11214 esac
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216   (eval "$ac_try") 2>&5
11217   ac_status=$?
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); }; } &&
11220          { ac_try='test -s conftest.$ac_objext'
11221   { (case "(($ac_try" in
11222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223   *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226   (eval "$ac_try") 2>&5
11227   ac_status=$?
11228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229   (exit $ac_status); }; }; then
11230   ac_header_compiler=yes
11231 else
11232   echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235         ac_header_compiler=no
11236 fi
11237
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11240 echo "${ECHO_T}$ac_header_compiler" >&6; }
11241
11242 # Is the header present?
11243 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11245 cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h.  */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h.  */
11251 #include <$ac_header>
11252 _ACEOF
11253 if { (ac_try="$ac_cpp conftest.$ac_ext"
11254 case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } >/dev/null; then
11266   if test -s conftest.err; then
11267     ac_cpp_err=$ac_cxx_preproc_warn_flag
11268     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11269   else
11270     ac_cpp_err=
11271   fi
11272 else
11273   ac_cpp_err=yes
11274 fi
11275 if test -z "$ac_cpp_err"; then
11276   ac_header_preproc=yes
11277 else
11278   echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11280
11281   ac_header_preproc=no
11282 fi
11283
11284 rm -f conftest.err conftest.$ac_ext
11285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11286 echo "${ECHO_T}$ac_header_preproc" >&6; }
11287
11288 # So?  What about this header?
11289 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11290   yes:no: )
11291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11295     ac_header_preproc=yes
11296     ;;
11297   no:yes:* )
11298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11300     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11301 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11302     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11304     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11305 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11308     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11310     ( cat <<\_ASBOX
11311 ## ------------------------------------ ##
11312 ## Report this to http://llvm.org/bugs/ ##
11313 ## ------------------------------------ ##
11314 _ASBOX
11315      ) | sed "s/^/$as_me: WARNING:     /" >&2
11316     ;;
11317 esac
11318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11321   echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323   eval "$as_ac_Header=\$ac_header_preproc"
11324 fi
11325 ac_res=`eval echo '${'$as_ac_Header'}'`
11326                { echo "$as_me:$LINENO: result: $ac_res" >&5
11327 echo "${ECHO_T}$ac_res" >&6; }
11328
11329 fi
11330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11331   cat >>confdefs.h <<_ACEOF
11332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11333 _ACEOF
11334
11335 fi
11336
11337 done
11338
11339 ac_ext=c
11340 ac_cpp='$CPP $CPPFLAGS'
11341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11344
11345
11346
11347
11348
11349
11350 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11351 do
11352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11357   echo $ECHO_N "(cached) $ECHO_C" >&6
11358 fi
11359 ac_res=`eval echo '${'$as_ac_Header'}'`
11360                { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11362 else
11363   # Is the header compilable?
11364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11366 cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 $ac_includes_default
11373 #include <$ac_header>
11374 _ACEOF
11375 rm -f conftest.$ac_objext
11376 if { (ac_try="$ac_compile"
11377 case "(($ac_try" in
11378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379   *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382   (eval "$ac_compile") 2>conftest.er1
11383   ac_status=$?
11384   grep -v '^ *+' conftest.er1 >conftest.err
11385   rm -f conftest.er1
11386   cat conftest.err >&5
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); } &&
11389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11390   { (case "(($ac_try" in
11391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392   *) ac_try_echo=$ac_try;;
11393 esac
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395   (eval "$ac_try") 2>&5
11396   ac_status=$?
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); }; } &&
11399          { ac_try='test -s conftest.$ac_objext'
11400   { (case "(($ac_try" in
11401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11402   *) ac_try_echo=$ac_try;;
11403 esac
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405   (eval "$ac_try") 2>&5
11406   ac_status=$?
11407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408   (exit $ac_status); }; }; then
11409   ac_header_compiler=yes
11410 else
11411   echo "$as_me: failed program was:" >&5
11412 sed 's/^/| /' conftest.$ac_ext >&5
11413
11414         ac_header_compiler=no
11415 fi
11416
11417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11419 echo "${ECHO_T}$ac_header_compiler" >&6; }
11420
11421 # Is the header present?
11422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h.  */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h.  */
11430 #include <$ac_header>
11431 _ACEOF
11432 if { (ac_try="$ac_cpp conftest.$ac_ext"
11433 case "(($ac_try" in
11434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11435   *) ac_try_echo=$ac_try;;
11436 esac
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11439   ac_status=$?
11440   grep -v '^ *+' conftest.er1 >conftest.err
11441   rm -f conftest.er1
11442   cat conftest.err >&5
11443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444   (exit $ac_status); } >/dev/null; then
11445   if test -s conftest.err; then
11446     ac_cpp_err=$ac_c_preproc_warn_flag
11447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11448   else
11449     ac_cpp_err=
11450   fi
11451 else
11452   ac_cpp_err=yes
11453 fi
11454 if test -z "$ac_cpp_err"; then
11455   ac_header_preproc=yes
11456 else
11457   echo "$as_me: failed program was:" >&5
11458 sed 's/^/| /' conftest.$ac_ext >&5
11459
11460   ac_header_preproc=no
11461 fi
11462
11463 rm -f conftest.err conftest.$ac_ext
11464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11465 echo "${ECHO_T}$ac_header_preproc" >&6; }
11466
11467 # So?  What about this header?
11468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11469   yes:no: )
11470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11474     ac_header_preproc=yes
11475     ;;
11476   no:yes:* )
11477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11479     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11480 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11481     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11483     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11484 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11487     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11489     ( cat <<\_ASBOX
11490 ## ------------------------------------ ##
11491 ## Report this to http://llvm.org/bugs/ ##
11492 ## ------------------------------------ ##
11493 _ASBOX
11494      ) | sed "s/^/$as_me: WARNING:     /" >&2
11495     ;;
11496 esac
11497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11500   echo $ECHO_N "(cached) $ECHO_C" >&6
11501 else
11502   eval "$as_ac_Header=\$ac_header_preproc"
11503 fi
11504 ac_res=`eval echo '${'$as_ac_Header'}'`
11505                { echo "$as_me:$LINENO: result: $ac_res" >&5
11506 echo "${ECHO_T}$ac_res" >&6; }
11507
11508 fi
11509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11510   cat >>confdefs.h <<_ACEOF
11511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11512 _ACEOF
11513
11514 fi
11515
11516 done
11517
11518
11519
11520
11521
11522
11523
11524 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11525 do
11526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11528   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11531   echo $ECHO_N "(cached) $ECHO_C" >&6
11532 fi
11533 ac_res=`eval echo '${'$as_ac_Header'}'`
11534                { echo "$as_me:$LINENO: result: $ac_res" >&5
11535 echo "${ECHO_T}$ac_res" >&6; }
11536 else
11537   # Is the header compilable?
11538 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11539 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11540 cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h.  */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h.  */
11546 $ac_includes_default
11547 #include <$ac_header>
11548 _ACEOF
11549 rm -f conftest.$ac_objext
11550 if { (ac_try="$ac_compile"
11551 case "(($ac_try" in
11552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553   *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556   (eval "$ac_compile") 2>conftest.er1
11557   ac_status=$?
11558   grep -v '^ *+' conftest.er1 >conftest.err
11559   rm -f conftest.er1
11560   cat conftest.err >&5
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); } &&
11563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11564   { (case "(($ac_try" in
11565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566   *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569   (eval "$ac_try") 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; } &&
11573          { ac_try='test -s conftest.$ac_objext'
11574   { (case "(($ac_try" in
11575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576   *) ac_try_echo=$ac_try;;
11577 esac
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579   (eval "$ac_try") 2>&5
11580   ac_status=$?
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); }; }; then
11583   ac_header_compiler=yes
11584 else
11585   echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588         ac_header_compiler=no
11589 fi
11590
11591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11593 echo "${ECHO_T}$ac_header_compiler" >&6; }
11594
11595 # Is the header present?
11596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h.  */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h.  */
11604 #include <$ac_header>
11605 _ACEOF
11606 if { (ac_try="$ac_cpp conftest.$ac_ext"
11607 case "(($ac_try" in
11608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609   *) ac_try_echo=$ac_try;;
11610 esac
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11613   ac_status=$?
11614   grep -v '^ *+' conftest.er1 >conftest.err
11615   rm -f conftest.er1
11616   cat conftest.err >&5
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); } >/dev/null; then
11619   if test -s conftest.err; then
11620     ac_cpp_err=$ac_c_preproc_warn_flag
11621     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11622   else
11623     ac_cpp_err=
11624   fi
11625 else
11626   ac_cpp_err=yes
11627 fi
11628 if test -z "$ac_cpp_err"; then
11629   ac_header_preproc=yes
11630 else
11631   echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11633
11634   ac_header_preproc=no
11635 fi
11636
11637 rm -f conftest.err conftest.$ac_ext
11638 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11639 echo "${ECHO_T}$ac_header_preproc" >&6; }
11640
11641 # So?  What about this header?
11642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11643   yes:no: )
11644     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11645 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11646     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11648     ac_header_preproc=yes
11649     ;;
11650   no:yes:* )
11651     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11652 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11653     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11654 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11655     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11656 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11657     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11658 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11661     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11662 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11663     ( cat <<\_ASBOX
11664 ## ------------------------------------ ##
11665 ## Report this to http://llvm.org/bugs/ ##
11666 ## ------------------------------------ ##
11667 _ASBOX
11668      ) | sed "s/^/$as_me: WARNING:     /" >&2
11669     ;;
11670 esac
11671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11674   echo $ECHO_N "(cached) $ECHO_C" >&6
11675 else
11676   eval "$as_ac_Header=\$ac_header_preproc"
11677 fi
11678 ac_res=`eval echo '${'$as_ac_Header'}'`
11679                { echo "$as_me:$LINENO: result: $ac_res" >&5
11680 echo "${ECHO_T}$ac_res" >&6; }
11681
11682 fi
11683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11684   cat >>confdefs.h <<_ACEOF
11685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11686 _ACEOF
11687
11688 fi
11689
11690 done
11691
11692
11693 for ac_header in utime.h
11694 do
11695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11697   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11700   echo $ECHO_N "(cached) $ECHO_C" >&6
11701 fi
11702 ac_res=`eval echo '${'$as_ac_Header'}'`
11703                { echo "$as_me:$LINENO: result: $ac_res" >&5
11704 echo "${ECHO_T}$ac_res" >&6; }
11705 else
11706   # Is the header compilable?
11707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11709 cat >conftest.$ac_ext <<_ACEOF
11710 /* confdefs.h.  */
11711 _ACEOF
11712 cat confdefs.h >>conftest.$ac_ext
11713 cat >>conftest.$ac_ext <<_ACEOF
11714 /* end confdefs.h.  */
11715 $ac_includes_default
11716 #include <$ac_header>
11717 _ACEOF
11718 rm -f conftest.$ac_objext
11719 if { (ac_try="$ac_compile"
11720 case "(($ac_try" in
11721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722   *) ac_try_echo=$ac_try;;
11723 esac
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725   (eval "$ac_compile") 2>conftest.er1
11726   ac_status=$?
11727   grep -v '^ *+' conftest.er1 >conftest.err
11728   rm -f conftest.er1
11729   cat conftest.err >&5
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); } &&
11732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11733   { (case "(($ac_try" in
11734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11735   *) ac_try_echo=$ac_try;;
11736 esac
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738   (eval "$ac_try") 2>&5
11739   ac_status=$?
11740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741   (exit $ac_status); }; } &&
11742          { ac_try='test -s conftest.$ac_objext'
11743   { (case "(($ac_try" in
11744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745   *) ac_try_echo=$ac_try;;
11746 esac
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748   (eval "$ac_try") 2>&5
11749   ac_status=$?
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); }; }; then
11752   ac_header_compiler=yes
11753 else
11754   echo "$as_me: failed program was:" >&5
11755 sed 's/^/| /' conftest.$ac_ext >&5
11756
11757         ac_header_compiler=no
11758 fi
11759
11760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11762 echo "${ECHO_T}$ac_header_compiler" >&6; }
11763
11764 # Is the header present?
11765 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11767 cat >conftest.$ac_ext <<_ACEOF
11768 /* confdefs.h.  */
11769 _ACEOF
11770 cat confdefs.h >>conftest.$ac_ext
11771 cat >>conftest.$ac_ext <<_ACEOF
11772 /* end confdefs.h.  */
11773 #include <$ac_header>
11774 _ACEOF
11775 if { (ac_try="$ac_cpp conftest.$ac_ext"
11776 case "(($ac_try" in
11777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778   *) ac_try_echo=$ac_try;;
11779 esac
11780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11782   ac_status=$?
11783   grep -v '^ *+' conftest.er1 >conftest.err
11784   rm -f conftest.er1
11785   cat conftest.err >&5
11786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787   (exit $ac_status); } >/dev/null; then
11788   if test -s conftest.err; then
11789     ac_cpp_err=$ac_c_preproc_warn_flag
11790     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11791   else
11792     ac_cpp_err=
11793   fi
11794 else
11795   ac_cpp_err=yes
11796 fi
11797 if test -z "$ac_cpp_err"; then
11798   ac_header_preproc=yes
11799 else
11800   echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11802
11803   ac_header_preproc=no
11804 fi
11805
11806 rm -f conftest.err conftest.$ac_ext
11807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11808 echo "${ECHO_T}$ac_header_preproc" >&6; }
11809
11810 # So?  What about this header?
11811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11812   yes:no: )
11813     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11817     ac_header_preproc=yes
11818     ;;
11819   no:yes:* )
11820     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11822     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11823 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11824     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11826     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11827 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11828     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11830     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11832     ( cat <<\_ASBOX
11833 ## ------------------------------------ ##
11834 ## Report this to http://llvm.org/bugs/ ##
11835 ## ------------------------------------ ##
11836 _ASBOX
11837      ) | sed "s/^/$as_me: WARNING:     /" >&2
11838     ;;
11839 esac
11840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11843   echo $ECHO_N "(cached) $ECHO_C" >&6
11844 else
11845   eval "$as_ac_Header=\$ac_header_preproc"
11846 fi
11847 ac_res=`eval echo '${'$as_ac_Header'}'`
11848                { echo "$as_me:$LINENO: result: $ac_res" >&5
11849 echo "${ECHO_T}$ac_res" >&6; }
11850
11851 fi
11852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11853   cat >>confdefs.h <<_ACEOF
11854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11855 _ACEOF
11856
11857 fi
11858
11859 done
11860
11861
11862
11863
11864
11865
11866 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11867 do
11868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11870   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11873   echo $ECHO_N "(cached) $ECHO_C" >&6
11874 fi
11875 ac_res=`eval echo '${'$as_ac_Header'}'`
11876                { echo "$as_me:$LINENO: result: $ac_res" >&5
11877 echo "${ECHO_T}$ac_res" >&6; }
11878 else
11879   # Is the header compilable?
11880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h.  */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h.  */
11888 $ac_includes_default
11889 #include <$ac_header>
11890 _ACEOF
11891 rm -f conftest.$ac_objext
11892 if { (ac_try="$ac_compile"
11893 case "(($ac_try" in
11894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895   *) ac_try_echo=$ac_try;;
11896 esac
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898   (eval "$ac_compile") 2>conftest.er1
11899   ac_status=$?
11900   grep -v '^ *+' conftest.er1 >conftest.err
11901   rm -f conftest.er1
11902   cat conftest.err >&5
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); } &&
11905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11906   { (case "(($ac_try" in
11907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908   *) ac_try_echo=$ac_try;;
11909 esac
11910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911   (eval "$ac_try") 2>&5
11912   ac_status=$?
11913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914   (exit $ac_status); }; } &&
11915          { ac_try='test -s conftest.$ac_objext'
11916   { (case "(($ac_try" in
11917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918   *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921   (eval "$ac_try") 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); }; }; then
11925   ac_header_compiler=yes
11926 else
11927   echo "$as_me: failed program was:" >&5
11928 sed 's/^/| /' conftest.$ac_ext >&5
11929
11930         ac_header_compiler=no
11931 fi
11932
11933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11935 echo "${ECHO_T}$ac_header_compiler" >&6; }
11936
11937 # Is the header present?
11938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11940 cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h.  */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h.  */
11946 #include <$ac_header>
11947 _ACEOF
11948 if { (ac_try="$ac_cpp conftest.$ac_ext"
11949 case "(($ac_try" in
11950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951   *) ac_try_echo=$ac_try;;
11952 esac
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11955   ac_status=$?
11956   grep -v '^ *+' conftest.er1 >conftest.err
11957   rm -f conftest.er1
11958   cat conftest.err >&5
11959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960   (exit $ac_status); } >/dev/null; then
11961   if test -s conftest.err; then
11962     ac_cpp_err=$ac_c_preproc_warn_flag
11963     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11964   else
11965     ac_cpp_err=
11966   fi
11967 else
11968   ac_cpp_err=yes
11969 fi
11970 if test -z "$ac_cpp_err"; then
11971   ac_header_preproc=yes
11972 else
11973   echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976   ac_header_preproc=no
11977 fi
11978
11979 rm -f conftest.err conftest.$ac_ext
11980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11981 echo "${ECHO_T}$ac_header_preproc" >&6; }
11982
11983 # So?  What about this header?
11984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11985   yes:no: )
11986     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11990     ac_header_preproc=yes
11991     ;;
11992   no:yes:* )
11993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11995     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11996 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11997     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11999     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12000 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12003     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12005     ( cat <<\_ASBOX
12006 ## ------------------------------------ ##
12007 ## Report this to http://llvm.org/bugs/ ##
12008 ## ------------------------------------ ##
12009 _ASBOX
12010      ) | sed "s/^/$as_me: WARNING:     /" >&2
12011     ;;
12012 esac
12013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12016   echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018   eval "$as_ac_Header=\$ac_header_preproc"
12019 fi
12020 ac_res=`eval echo '${'$as_ac_Header'}'`
12021                { echo "$as_me:$LINENO: result: $ac_res" >&5
12022 echo "${ECHO_T}$ac_res" >&6; }
12023
12024 fi
12025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12026   cat >>confdefs.h <<_ACEOF
12027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12028 _ACEOF
12029
12030 fi
12031
12032 done
12033
12034
12035
12036
12037 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12038 do
12039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12041   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12044   echo $ECHO_N "(cached) $ECHO_C" >&6
12045 fi
12046 ac_res=`eval echo '${'$as_ac_Header'}'`
12047                { echo "$as_me:$LINENO: result: $ac_res" >&5
12048 echo "${ECHO_T}$ac_res" >&6; }
12049 else
12050   # Is the header compilable?
12051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h.  */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h.  */
12059 $ac_includes_default
12060 #include <$ac_header>
12061 _ACEOF
12062 rm -f conftest.$ac_objext
12063 if { (ac_try="$ac_compile"
12064 case "(($ac_try" in
12065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066   *) ac_try_echo=$ac_try;;
12067 esac
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069   (eval "$ac_compile") 2>conftest.er1
12070   ac_status=$?
12071   grep -v '^ *+' conftest.er1 >conftest.err
12072   rm -f conftest.er1
12073   cat conftest.err >&5
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); } &&
12076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12077   { (case "(($ac_try" in
12078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079   *) ac_try_echo=$ac_try;;
12080 esac
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082   (eval "$ac_try") 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); }; } &&
12086          { ac_try='test -s conftest.$ac_objext'
12087   { (case "(($ac_try" in
12088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12089   *) ac_try_echo=$ac_try;;
12090 esac
12091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12092   (eval "$ac_try") 2>&5
12093   ac_status=$?
12094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095   (exit $ac_status); }; }; then
12096   ac_header_compiler=yes
12097 else
12098   echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12100
12101         ac_header_compiler=no
12102 fi
12103
12104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12106 echo "${ECHO_T}$ac_header_compiler" >&6; }
12107
12108 # Is the header present?
12109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12111 cat >conftest.$ac_ext <<_ACEOF
12112 /* confdefs.h.  */
12113 _ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h.  */
12117 #include <$ac_header>
12118 _ACEOF
12119 if { (ac_try="$ac_cpp conftest.$ac_ext"
12120 case "(($ac_try" in
12121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122   *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12126   ac_status=$?
12127   grep -v '^ *+' conftest.er1 >conftest.err
12128   rm -f conftest.er1
12129   cat conftest.err >&5
12130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131   (exit $ac_status); } >/dev/null; then
12132   if test -s conftest.err; then
12133     ac_cpp_err=$ac_c_preproc_warn_flag
12134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12135   else
12136     ac_cpp_err=
12137   fi
12138 else
12139   ac_cpp_err=yes
12140 fi
12141 if test -z "$ac_cpp_err"; then
12142   ac_header_preproc=yes
12143 else
12144   echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12146
12147   ac_header_preproc=no
12148 fi
12149
12150 rm -f conftest.err conftest.$ac_ext
12151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12152 echo "${ECHO_T}$ac_header_preproc" >&6; }
12153
12154 # So?  What about this header?
12155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12156   yes:no: )
12157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12161     ac_header_preproc=yes
12162     ;;
12163   no:yes:* )
12164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12166     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12167 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12168     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12170     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12171 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12174     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12176     ( cat <<\_ASBOX
12177 ## ------------------------------------ ##
12178 ## Report this to http://llvm.org/bugs/ ##
12179 ## ------------------------------------ ##
12180 _ASBOX
12181      ) | sed "s/^/$as_me: WARNING:     /" >&2
12182     ;;
12183 esac
12184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12187   echo $ECHO_N "(cached) $ECHO_C" >&6
12188 else
12189   eval "$as_ac_Header=\$ac_header_preproc"
12190 fi
12191 ac_res=`eval echo '${'$as_ac_Header'}'`
12192                { echo "$as_me:$LINENO: result: $ac_res" >&5
12193 echo "${ECHO_T}$ac_res" >&6; }
12194
12195 fi
12196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12197   cat >>confdefs.h <<_ACEOF
12198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12199 _ACEOF
12200
12201 fi
12202
12203 done
12204
12205
12206 for ac_header in valgrind/valgrind.h
12207 do
12208 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12210   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12213   echo $ECHO_N "(cached) $ECHO_C" >&6
12214 fi
12215 ac_res=`eval echo '${'$as_ac_Header'}'`
12216                { echo "$as_me:$LINENO: result: $ac_res" >&5
12217 echo "${ECHO_T}$ac_res" >&6; }
12218 else
12219   # Is the header compilable?
12220 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12222 cat >conftest.$ac_ext <<_ACEOF
12223 /* confdefs.h.  */
12224 _ACEOF
12225 cat confdefs.h >>conftest.$ac_ext
12226 cat >>conftest.$ac_ext <<_ACEOF
12227 /* end confdefs.h.  */
12228 $ac_includes_default
12229 #include <$ac_header>
12230 _ACEOF
12231 rm -f conftest.$ac_objext
12232 if { (ac_try="$ac_compile"
12233 case "(($ac_try" in
12234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235   *) ac_try_echo=$ac_try;;
12236 esac
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238   (eval "$ac_compile") 2>conftest.er1
12239   ac_status=$?
12240   grep -v '^ *+' conftest.er1 >conftest.err
12241   rm -f conftest.er1
12242   cat conftest.err >&5
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); } &&
12245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12246   { (case "(($ac_try" in
12247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248   *) ac_try_echo=$ac_try;;
12249 esac
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251   (eval "$ac_try") 2>&5
12252   ac_status=$?
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); }; } &&
12255          { ac_try='test -s conftest.$ac_objext'
12256   { (case "(($ac_try" in
12257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258   *) ac_try_echo=$ac_try;;
12259 esac
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261   (eval "$ac_try") 2>&5
12262   ac_status=$?
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); }; }; then
12265   ac_header_compiler=yes
12266 else
12267   echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12269
12270         ac_header_compiler=no
12271 fi
12272
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12275 echo "${ECHO_T}$ac_header_compiler" >&6; }
12276
12277 # Is the header present?
12278 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12279 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h.  */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h.  */
12286 #include <$ac_header>
12287 _ACEOF
12288 if { (ac_try="$ac_cpp conftest.$ac_ext"
12289 case "(($ac_try" in
12290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291   *) ac_try_echo=$ac_try;;
12292 esac
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12295   ac_status=$?
12296   grep -v '^ *+' conftest.er1 >conftest.err
12297   rm -f conftest.er1
12298   cat conftest.err >&5
12299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300   (exit $ac_status); } >/dev/null; then
12301   if test -s conftest.err; then
12302     ac_cpp_err=$ac_c_preproc_warn_flag
12303     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12304   else
12305     ac_cpp_err=
12306   fi
12307 else
12308   ac_cpp_err=yes
12309 fi
12310 if test -z "$ac_cpp_err"; then
12311   ac_header_preproc=yes
12312 else
12313   echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12315
12316   ac_header_preproc=no
12317 fi
12318
12319 rm -f conftest.err conftest.$ac_ext
12320 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12321 echo "${ECHO_T}$ac_header_preproc" >&6; }
12322
12323 # So?  What about this header?
12324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12325   yes:no: )
12326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12330     ac_header_preproc=yes
12331     ;;
12332   no:yes:* )
12333     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12334 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12335     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12336 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12337     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12338 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12339     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12340 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12343     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12344 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12345     ( cat <<\_ASBOX
12346 ## ------------------------------------ ##
12347 ## Report this to http://llvm.org/bugs/ ##
12348 ## ------------------------------------ ##
12349 _ASBOX
12350      ) | sed "s/^/$as_me: WARNING:     /" >&2
12351     ;;
12352 esac
12353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12356   echo $ECHO_N "(cached) $ECHO_C" >&6
12357 else
12358   eval "$as_ac_Header=\$ac_header_preproc"
12359 fi
12360 ac_res=`eval echo '${'$as_ac_Header'}'`
12361                { echo "$as_me:$LINENO: result: $ac_res" >&5
12362 echo "${ECHO_T}$ac_res" >&6; }
12363
12364 fi
12365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12366   cat >>confdefs.h <<_ACEOF
12367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12368 _ACEOF
12369
12370 fi
12371
12372 done
12373
12374
12375 for ac_header in fenv.h
12376 do
12377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12379   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12382   echo $ECHO_N "(cached) $ECHO_C" >&6
12383 fi
12384 ac_res=`eval echo '${'$as_ac_Header'}'`
12385                { echo "$as_me:$LINENO: result: $ac_res" >&5
12386 echo "${ECHO_T}$ac_res" >&6; }
12387 else
12388   # Is the header compilable?
12389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12391 cat >conftest.$ac_ext <<_ACEOF
12392 /* confdefs.h.  */
12393 _ACEOF
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h.  */
12397 $ac_includes_default
12398 #include <$ac_header>
12399 _ACEOF
12400 rm -f conftest.$ac_objext
12401 if { (ac_try="$ac_compile"
12402 case "(($ac_try" in
12403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404   *) ac_try_echo=$ac_try;;
12405 esac
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407   (eval "$ac_compile") 2>conftest.er1
12408   ac_status=$?
12409   grep -v '^ *+' conftest.er1 >conftest.err
12410   rm -f conftest.er1
12411   cat conftest.err >&5
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); } &&
12414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12415   { (case "(($ac_try" in
12416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417   *) ac_try_echo=$ac_try;;
12418 esac
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420   (eval "$ac_try") 2>&5
12421   ac_status=$?
12422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423   (exit $ac_status); }; } &&
12424          { ac_try='test -s conftest.$ac_objext'
12425   { (case "(($ac_try" in
12426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12427   *) ac_try_echo=$ac_try;;
12428 esac
12429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12430   (eval "$ac_try") 2>&5
12431   ac_status=$?
12432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); }; }; then
12434   ac_header_compiler=yes
12435 else
12436   echo "$as_me: failed program was:" >&5
12437 sed 's/^/| /' conftest.$ac_ext >&5
12438
12439         ac_header_compiler=no
12440 fi
12441
12442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12444 echo "${ECHO_T}$ac_header_compiler" >&6; }
12445
12446 # Is the header present?
12447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12449 cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h.  */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h.  */
12455 #include <$ac_header>
12456 _ACEOF
12457 if { (ac_try="$ac_cpp conftest.$ac_ext"
12458 case "(($ac_try" in
12459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12460   *) ac_try_echo=$ac_try;;
12461 esac
12462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12463   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12464   ac_status=$?
12465   grep -v '^ *+' conftest.er1 >conftest.err
12466   rm -f conftest.er1
12467   cat conftest.err >&5
12468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469   (exit $ac_status); } >/dev/null; then
12470   if test -s conftest.err; then
12471     ac_cpp_err=$ac_c_preproc_warn_flag
12472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12473   else
12474     ac_cpp_err=
12475   fi
12476 else
12477   ac_cpp_err=yes
12478 fi
12479 if test -z "$ac_cpp_err"; then
12480   ac_header_preproc=yes
12481 else
12482   echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12484
12485   ac_header_preproc=no
12486 fi
12487
12488 rm -f conftest.err conftest.$ac_ext
12489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12490 echo "${ECHO_T}$ac_header_preproc" >&6; }
12491
12492 # So?  What about this header?
12493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12494   yes:no: )
12495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12499     ac_header_preproc=yes
12500     ;;
12501   no:yes:* )
12502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12514     ( cat <<\_ASBOX
12515 ## ------------------------------------ ##
12516 ## Report this to http://llvm.org/bugs/ ##
12517 ## ------------------------------------ ##
12518 _ASBOX
12519      ) | sed "s/^/$as_me: WARNING:     /" >&2
12520     ;;
12521 esac
12522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12525   echo $ECHO_N "(cached) $ECHO_C" >&6
12526 else
12527   eval "$as_ac_Header=\$ac_header_preproc"
12528 fi
12529 ac_res=`eval echo '${'$as_ac_Header'}'`
12530                { echo "$as_me:$LINENO: result: $ac_res" >&5
12531 echo "${ECHO_T}$ac_res" >&6; }
12532
12533 fi
12534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12535   cat >>confdefs.h <<_ACEOF
12536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12537 _ACEOF
12538
12539 fi
12540
12541 done
12542
12543 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12544 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12545 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12546   echo $ECHO_N "(cached) $ECHO_C" >&6
12547 else
12548   cat >conftest.$ac_ext <<_ACEOF
12549 /* confdefs.h.  */
12550 _ACEOF
12551 cat confdefs.h >>conftest.$ac_ext
12552 cat >>conftest.$ac_ext <<_ACEOF
12553 /* end confdefs.h.  */
12554 #include <fenv.h>
12555
12556 int
12557 main ()
12558 {
12559 #ifndef FE_ALL_EXCEPT
12560   char *p = (char *) FE_ALL_EXCEPT;
12561   return !p;
12562 #endif
12563
12564   ;
12565   return 0;
12566 }
12567 _ACEOF
12568 rm -f conftest.$ac_objext
12569 if { (ac_try="$ac_compile"
12570 case "(($ac_try" in
12571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572   *) ac_try_echo=$ac_try;;
12573 esac
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575   (eval "$ac_compile") 2>conftest.er1
12576   ac_status=$?
12577   grep -v '^ *+' conftest.er1 >conftest.err
12578   rm -f conftest.er1
12579   cat conftest.err >&5
12580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581   (exit $ac_status); } &&
12582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12583   { (case "(($ac_try" in
12584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585   *) ac_try_echo=$ac_try;;
12586 esac
12587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588   (eval "$ac_try") 2>&5
12589   ac_status=$?
12590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591   (exit $ac_status); }; } &&
12592          { ac_try='test -s conftest.$ac_objext'
12593   { (case "(($ac_try" in
12594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12595   *) ac_try_echo=$ac_try;;
12596 esac
12597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12598   (eval "$ac_try") 2>&5
12599   ac_status=$?
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); }; }; then
12602   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12603 else
12604   echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12606
12607         ac_cv_have_decl_FE_ALL_EXCEPT=no
12608 fi
12609
12610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12611 fi
12612 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12613 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12614 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12615
12616 cat >>confdefs.h <<_ACEOF
12617 #define HAVE_DECL_FE_ALL_EXCEPT 1
12618 _ACEOF
12619
12620
12621 else
12622   cat >>confdefs.h <<_ACEOF
12623 #define HAVE_DECL_FE_ALL_EXCEPT 0
12624 _ACEOF
12625
12626
12627 fi
12628 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12629 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12630 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12631   echo $ECHO_N "(cached) $ECHO_C" >&6
12632 else
12633   cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h.  */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h.  */
12639 #include <fenv.h>
12640
12641 int
12642 main ()
12643 {
12644 #ifndef FE_INEXACT
12645   char *p = (char *) FE_INEXACT;
12646   return !p;
12647 #endif
12648
12649   ;
12650   return 0;
12651 }
12652 _ACEOF
12653 rm -f conftest.$ac_objext
12654 if { (ac_try="$ac_compile"
12655 case "(($ac_try" in
12656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657   *) ac_try_echo=$ac_try;;
12658 esac
12659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12660   (eval "$ac_compile") 2>conftest.er1
12661   ac_status=$?
12662   grep -v '^ *+' conftest.er1 >conftest.err
12663   rm -f conftest.er1
12664   cat conftest.err >&5
12665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666   (exit $ac_status); } &&
12667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12668   { (case "(($ac_try" in
12669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670   *) ac_try_echo=$ac_try;;
12671 esac
12672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12673   (eval "$ac_try") 2>&5
12674   ac_status=$?
12675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676   (exit $ac_status); }; } &&
12677          { ac_try='test -s conftest.$ac_objext'
12678   { (case "(($ac_try" in
12679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680   *) ac_try_echo=$ac_try;;
12681 esac
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683   (eval "$ac_try") 2>&5
12684   ac_status=$?
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); }; }; then
12687   ac_cv_have_decl_FE_INEXACT=yes
12688 else
12689   echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692         ac_cv_have_decl_FE_INEXACT=no
12693 fi
12694
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 fi
12697 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12698 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12699 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12700
12701 cat >>confdefs.h <<_ACEOF
12702 #define HAVE_DECL_FE_INEXACT 1
12703 _ACEOF
12704
12705
12706 else
12707   cat >>confdefs.h <<_ACEOF
12708 #define HAVE_DECL_FE_INEXACT 0
12709 _ACEOF
12710
12711
12712 fi
12713
12714
12715 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12716
12717 for ac_header in pthread.h
12718 do
12719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12721   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12724   echo $ECHO_N "(cached) $ECHO_C" >&6
12725 fi
12726 ac_res=`eval echo '${'$as_ac_Header'}'`
12727                { echo "$as_me:$LINENO: result: $ac_res" >&5
12728 echo "${ECHO_T}$ac_res" >&6; }
12729 else
12730   # Is the header compilable?
12731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12733 cat >conftest.$ac_ext <<_ACEOF
12734 /* confdefs.h.  */
12735 _ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h.  */
12739 $ac_includes_default
12740 #include <$ac_header>
12741 _ACEOF
12742 rm -f conftest.$ac_objext
12743 if { (ac_try="$ac_compile"
12744 case "(($ac_try" in
12745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746   *) ac_try_echo=$ac_try;;
12747 esac
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749   (eval "$ac_compile") 2>conftest.er1
12750   ac_status=$?
12751   grep -v '^ *+' conftest.er1 >conftest.err
12752   rm -f conftest.er1
12753   cat conftest.err >&5
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } &&
12756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12757   { (case "(($ac_try" in
12758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759   *) ac_try_echo=$ac_try;;
12760 esac
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762   (eval "$ac_try") 2>&5
12763   ac_status=$?
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); }; } &&
12766          { ac_try='test -s conftest.$ac_objext'
12767   { (case "(($ac_try" in
12768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769   *) ac_try_echo=$ac_try;;
12770 esac
12771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12772   (eval "$ac_try") 2>&5
12773   ac_status=$?
12774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775   (exit $ac_status); }; }; then
12776   ac_header_compiler=yes
12777 else
12778   echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12780
12781         ac_header_compiler=no
12782 fi
12783
12784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12786 echo "${ECHO_T}$ac_header_compiler" >&6; }
12787
12788 # Is the header present?
12789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12791 cat >conftest.$ac_ext <<_ACEOF
12792 /* confdefs.h.  */
12793 _ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h.  */
12797 #include <$ac_header>
12798 _ACEOF
12799 if { (ac_try="$ac_cpp conftest.$ac_ext"
12800 case "(($ac_try" in
12801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802   *) ac_try_echo=$ac_try;;
12803 esac
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12806   ac_status=$?
12807   grep -v '^ *+' conftest.er1 >conftest.err
12808   rm -f conftest.er1
12809   cat conftest.err >&5
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); } >/dev/null; then
12812   if test -s conftest.err; then
12813     ac_cpp_err=$ac_c_preproc_warn_flag
12814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12815   else
12816     ac_cpp_err=
12817   fi
12818 else
12819   ac_cpp_err=yes
12820 fi
12821 if test -z "$ac_cpp_err"; then
12822   ac_header_preproc=yes
12823 else
12824   echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827   ac_header_preproc=no
12828 fi
12829
12830 rm -f conftest.err conftest.$ac_ext
12831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12832 echo "${ECHO_T}$ac_header_preproc" >&6; }
12833
12834 # So?  What about this header?
12835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12836   yes:no: )
12837     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12839     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12841     ac_header_preproc=yes
12842     ;;
12843   no:yes:* )
12844     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12846     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12847 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12848     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12850     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12851 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12852     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12854     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12856     ( cat <<\_ASBOX
12857 ## ------------------------------------ ##
12858 ## Report this to http://llvm.org/bugs/ ##
12859 ## ------------------------------------ ##
12860 _ASBOX
12861      ) | sed "s/^/$as_me: WARNING:     /" >&2
12862     ;;
12863 esac
12864 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12867   echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12869   eval "$as_ac_Header=\$ac_header_preproc"
12870 fi
12871 ac_res=`eval echo '${'$as_ac_Header'}'`
12872                { echo "$as_me:$LINENO: result: $ac_res" >&5
12873 echo "${ECHO_T}$ac_res" >&6; }
12874
12875 fi
12876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12877   cat >>confdefs.h <<_ACEOF
12878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12879 _ACEOF
12880  HAVE_PTHREAD=1
12881
12882 else
12883   HAVE_PTHREAD=0
12884
12885 fi
12886
12887 done
12888
12889 else
12890   HAVE_PTHREAD=0
12891
12892 fi
12893 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12894
12895 for ac_header in zlib.h
12896 do
12897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12899   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12902   echo $ECHO_N "(cached) $ECHO_C" >&6
12903 fi
12904 ac_res=`eval echo '${'$as_ac_Header'}'`
12905                { echo "$as_me:$LINENO: result: $ac_res" >&5
12906 echo "${ECHO_T}$ac_res" >&6; }
12907 else
12908   # Is the header compilable?
12909 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12911 cat >conftest.$ac_ext <<_ACEOF
12912 /* confdefs.h.  */
12913 _ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h.  */
12917 $ac_includes_default
12918 #include <$ac_header>
12919 _ACEOF
12920 rm -f conftest.$ac_objext
12921 if { (ac_try="$ac_compile"
12922 case "(($ac_try" in
12923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924   *) ac_try_echo=$ac_try;;
12925 esac
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927   (eval "$ac_compile") 2>conftest.er1
12928   ac_status=$?
12929   grep -v '^ *+' conftest.er1 >conftest.err
12930   rm -f conftest.er1
12931   cat conftest.err >&5
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); } &&
12934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12935   { (case "(($ac_try" in
12936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937   *) ac_try_echo=$ac_try;;
12938 esac
12939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940   (eval "$ac_try") 2>&5
12941   ac_status=$?
12942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943   (exit $ac_status); }; } &&
12944          { ac_try='test -s conftest.$ac_objext'
12945   { (case "(($ac_try" in
12946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947   *) ac_try_echo=$ac_try;;
12948 esac
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950   (eval "$ac_try") 2>&5
12951   ac_status=$?
12952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953   (exit $ac_status); }; }; then
12954   ac_header_compiler=yes
12955 else
12956   echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12958
12959         ac_header_compiler=no
12960 fi
12961
12962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12963 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12964 echo "${ECHO_T}$ac_header_compiler" >&6; }
12965
12966 # Is the header present?
12967 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12968 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12969 cat >conftest.$ac_ext <<_ACEOF
12970 /* confdefs.h.  */
12971 _ACEOF
12972 cat confdefs.h >>conftest.$ac_ext
12973 cat >>conftest.$ac_ext <<_ACEOF
12974 /* end confdefs.h.  */
12975 #include <$ac_header>
12976 _ACEOF
12977 if { (ac_try="$ac_cpp conftest.$ac_ext"
12978 case "(($ac_try" in
12979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980   *) ac_try_echo=$ac_try;;
12981 esac
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12984   ac_status=$?
12985   grep -v '^ *+' conftest.er1 >conftest.err
12986   rm -f conftest.er1
12987   cat conftest.err >&5
12988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989   (exit $ac_status); } >/dev/null; then
12990   if test -s conftest.err; then
12991     ac_cpp_err=$ac_c_preproc_warn_flag
12992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12993   else
12994     ac_cpp_err=
12995   fi
12996 else
12997   ac_cpp_err=yes
12998 fi
12999 if test -z "$ac_cpp_err"; then
13000   ac_header_preproc=yes
13001 else
13002   echo "$as_me: failed program was:" >&5
13003 sed 's/^/| /' conftest.$ac_ext >&5
13004
13005   ac_header_preproc=no
13006 fi
13007
13008 rm -f conftest.err conftest.$ac_ext
13009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13010 echo "${ECHO_T}$ac_header_preproc" >&6; }
13011
13012 # So?  What about this header?
13013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13014   yes:no: )
13015     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13019     ac_header_preproc=yes
13020     ;;
13021   no:yes:* )
13022     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13024     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13025 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13026     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13028     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13029 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13032     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13034     ( cat <<\_ASBOX
13035 ## ------------------------------------ ##
13036 ## Report this to http://llvm.org/bugs/ ##
13037 ## ------------------------------------ ##
13038 _ASBOX
13039      ) | sed "s/^/$as_me: WARNING:     /" >&2
13040     ;;
13041 esac
13042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13045   echo $ECHO_N "(cached) $ECHO_C" >&6
13046 else
13047   eval "$as_ac_Header=\$ac_header_preproc"
13048 fi
13049 ac_res=`eval echo '${'$as_ac_Header'}'`
13050                { echo "$as_me:$LINENO: result: $ac_res" >&5
13051 echo "${ECHO_T}$ac_res" >&6; }
13052
13053 fi
13054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13055   cat >>confdefs.h <<_ACEOF
13056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13057 _ACEOF
13058  HAVE_LIBZ=1
13059
13060 else
13061   HAVE_LIBZ=0
13062
13063 fi
13064
13065 done
13066
13067 else
13068   HAVE_LIBZ=0
13069
13070 fi
13071
13072 if test "$llvm_cv_enable_libffi" = "yes" ; then
13073
13074
13075 for ac_header in ffi.h ffi/ffi.h
13076 do
13077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13079   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13082   echo $ECHO_N "(cached) $ECHO_C" >&6
13083 fi
13084 ac_res=`eval echo '${'$as_ac_Header'}'`
13085                { echo "$as_me:$LINENO: result: $ac_res" >&5
13086 echo "${ECHO_T}$ac_res" >&6; }
13087 else
13088   # Is the header compilable?
13089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13091 cat >conftest.$ac_ext <<_ACEOF
13092 /* confdefs.h.  */
13093 _ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h.  */
13097 $ac_includes_default
13098 #include <$ac_header>
13099 _ACEOF
13100 rm -f conftest.$ac_objext
13101 if { (ac_try="$ac_compile"
13102 case "(($ac_try" in
13103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104   *) ac_try_echo=$ac_try;;
13105 esac
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107   (eval "$ac_compile") 2>conftest.er1
13108   ac_status=$?
13109   grep -v '^ *+' conftest.er1 >conftest.err
13110   rm -f conftest.er1
13111   cat conftest.err >&5
13112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113   (exit $ac_status); } &&
13114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13115   { (case "(($ac_try" in
13116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117   *) ac_try_echo=$ac_try;;
13118 esac
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120   (eval "$ac_try") 2>&5
13121   ac_status=$?
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); }; } &&
13124          { ac_try='test -s conftest.$ac_objext'
13125   { (case "(($ac_try" in
13126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127   *) ac_try_echo=$ac_try;;
13128 esac
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130   (eval "$ac_try") 2>&5
13131   ac_status=$?
13132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13133   (exit $ac_status); }; }; then
13134   ac_header_compiler=yes
13135 else
13136   echo "$as_me: failed program was:" >&5
13137 sed 's/^/| /' conftest.$ac_ext >&5
13138
13139         ac_header_compiler=no
13140 fi
13141
13142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13144 echo "${ECHO_T}$ac_header_compiler" >&6; }
13145
13146 # Is the header present?
13147 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13148 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13149 cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h.  */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h.  */
13155 #include <$ac_header>
13156 _ACEOF
13157 if { (ac_try="$ac_cpp conftest.$ac_ext"
13158 case "(($ac_try" in
13159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160   *) ac_try_echo=$ac_try;;
13161 esac
13162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13164   ac_status=$?
13165   grep -v '^ *+' conftest.er1 >conftest.err
13166   rm -f conftest.er1
13167   cat conftest.err >&5
13168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169   (exit $ac_status); } >/dev/null; then
13170   if test -s conftest.err; then
13171     ac_cpp_err=$ac_c_preproc_warn_flag
13172     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13173   else
13174     ac_cpp_err=
13175   fi
13176 else
13177   ac_cpp_err=yes
13178 fi
13179 if test -z "$ac_cpp_err"; then
13180   ac_header_preproc=yes
13181 else
13182   echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13184
13185   ac_header_preproc=no
13186 fi
13187
13188 rm -f conftest.err conftest.$ac_ext
13189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13190 echo "${ECHO_T}$ac_header_preproc" >&6; }
13191
13192 # So?  What about this header?
13193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13194   yes:no: )
13195     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13197     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13199     ac_header_preproc=yes
13200     ;;
13201   no:yes:* )
13202     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13204     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13205 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13206     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13208     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13209 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13212     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13214     ( cat <<\_ASBOX
13215 ## ------------------------------------ ##
13216 ## Report this to http://llvm.org/bugs/ ##
13217 ## ------------------------------------ ##
13218 _ASBOX
13219      ) | sed "s/^/$as_me: WARNING:     /" >&2
13220     ;;
13221 esac
13222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13225   echo $ECHO_N "(cached) $ECHO_C" >&6
13226 else
13227   eval "$as_ac_Header=\$ac_header_preproc"
13228 fi
13229 ac_res=`eval echo '${'$as_ac_Header'}'`
13230                { echo "$as_me:$LINENO: result: $ac_res" >&5
13231 echo "${ECHO_T}$ac_res" >&6; }
13232
13233 fi
13234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13235   cat >>confdefs.h <<_ACEOF
13236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13237 _ACEOF
13238
13239 fi
13240
13241 done
13242
13243 fi
13244
13245
13246 for ac_header in CrashReporterClient.h
13247 do
13248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13250   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13253   echo $ECHO_N "(cached) $ECHO_C" >&6
13254 fi
13255 ac_res=`eval echo '${'$as_ac_Header'}'`
13256                { echo "$as_me:$LINENO: result: $ac_res" >&5
13257 echo "${ECHO_T}$ac_res" >&6; }
13258 else
13259   # Is the header compilable?
13260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13262 cat >conftest.$ac_ext <<_ACEOF
13263 /* confdefs.h.  */
13264 _ACEOF
13265 cat confdefs.h >>conftest.$ac_ext
13266 cat >>conftest.$ac_ext <<_ACEOF
13267 /* end confdefs.h.  */
13268 $ac_includes_default
13269 #include <$ac_header>
13270 _ACEOF
13271 rm -f conftest.$ac_objext
13272 if { (ac_try="$ac_compile"
13273 case "(($ac_try" in
13274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275   *) ac_try_echo=$ac_try;;
13276 esac
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278   (eval "$ac_compile") 2>conftest.er1
13279   ac_status=$?
13280   grep -v '^ *+' conftest.er1 >conftest.err
13281   rm -f conftest.er1
13282   cat conftest.err >&5
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); } &&
13285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13286   { (case "(($ac_try" in
13287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288   *) ac_try_echo=$ac_try;;
13289 esac
13290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291   (eval "$ac_try") 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); }; } &&
13295          { ac_try='test -s conftest.$ac_objext'
13296   { (case "(($ac_try" in
13297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13298   *) ac_try_echo=$ac_try;;
13299 esac
13300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13301   (eval "$ac_try") 2>&5
13302   ac_status=$?
13303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304   (exit $ac_status); }; }; then
13305   ac_header_compiler=yes
13306 else
13307   echo "$as_me: failed program was:" >&5
13308 sed 's/^/| /' conftest.$ac_ext >&5
13309
13310         ac_header_compiler=no
13311 fi
13312
13313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13315 echo "${ECHO_T}$ac_header_compiler" >&6; }
13316
13317 # Is the header present?
13318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13320 cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h.  */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h.  */
13326 #include <$ac_header>
13327 _ACEOF
13328 if { (ac_try="$ac_cpp conftest.$ac_ext"
13329 case "(($ac_try" in
13330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331   *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13335   ac_status=$?
13336   grep -v '^ *+' conftest.er1 >conftest.err
13337   rm -f conftest.er1
13338   cat conftest.err >&5
13339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340   (exit $ac_status); } >/dev/null; then
13341   if test -s conftest.err; then
13342     ac_cpp_err=$ac_c_preproc_warn_flag
13343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13344   else
13345     ac_cpp_err=
13346   fi
13347 else
13348   ac_cpp_err=yes
13349 fi
13350 if test -z "$ac_cpp_err"; then
13351   ac_header_preproc=yes
13352 else
13353   echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356   ac_header_preproc=no
13357 fi
13358
13359 rm -f conftest.err conftest.$ac_ext
13360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13361 echo "${ECHO_T}$ac_header_preproc" >&6; }
13362
13363 # So?  What about this header?
13364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13365   yes:no: )
13366     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13370     ac_header_preproc=yes
13371     ;;
13372   no:yes:* )
13373     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13375     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13376 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13377     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13379     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13380 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13383     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13385     ( cat <<\_ASBOX
13386 ## ------------------------------------ ##
13387 ## Report this to http://llvm.org/bugs/ ##
13388 ## ------------------------------------ ##
13389 _ASBOX
13390      ) | sed "s/^/$as_me: WARNING:     /" >&2
13391     ;;
13392 esac
13393 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13396   echo $ECHO_N "(cached) $ECHO_C" >&6
13397 else
13398   eval "$as_ac_Header=\$ac_header_preproc"
13399 fi
13400 ac_res=`eval echo '${'$as_ac_Header'}'`
13401                { echo "$as_me:$LINENO: result: $ac_res" >&5
13402 echo "${ECHO_T}$ac_res" >&6; }
13403
13404 fi
13405 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13406   cat >>confdefs.h <<_ACEOF
13407 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13408 _ACEOF
13409
13410 fi
13411
13412 done
13413
13414
13415 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13416 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13417 cat >conftest.$ac_ext <<_ACEOF
13418
13419   /* confdefs.h.  */
13420 _ACEOF
13421 cat confdefs.h >>conftest.$ac_ext
13422 cat >>conftest.$ac_ext <<_ACEOF
13423 /* end confdefs.h.  */
13424
13425     extern const char *__crashreporter_info__;
13426     int main() {
13427       __crashreporter_info__ = "test";
13428       return 0;
13429     }
13430
13431
13432 _ACEOF
13433 rm -f conftest.$ac_objext conftest$ac_exeext
13434 if { (ac_try="$ac_link"
13435 case "(($ac_try" in
13436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437   *) ac_try_echo=$ac_try;;
13438 esac
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440   (eval "$ac_link") 2>conftest.er1
13441   ac_status=$?
13442   grep -v '^ *+' conftest.er1 >conftest.err
13443   rm -f conftest.er1
13444   cat conftest.err >&5
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); } &&
13447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13448   { (case "(($ac_try" in
13449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450   *) ac_try_echo=$ac_try;;
13451 esac
13452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453   (eval "$ac_try") 2>&5
13454   ac_status=$?
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); }; } &&
13457          { ac_try='test -s conftest$ac_exeext'
13458   { (case "(($ac_try" in
13459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13460   *) ac_try_echo=$ac_try;;
13461 esac
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463   (eval "$ac_try") 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); }; }; then
13467
13468   { echo "$as_me:$LINENO: result: yes" >&5
13469 echo "${ECHO_T}yes" >&6; }
13470
13471 cat >>confdefs.h <<\_ACEOF
13472 #define HAVE_CRASHREPORTER_INFO 1
13473 _ACEOF
13474
13475
13476 else
13477   echo "$as_me: failed program was:" >&5
13478 sed 's/^/| /' conftest.$ac_ext >&5
13479
13480
13481   { echo "$as_me:$LINENO: result: no" >&5
13482 echo "${ECHO_T}no" >&6; }
13483
13484 cat >>confdefs.h <<\_ACEOF
13485 #define HAVE_CRASHREPORTER_INFO 0
13486 _ACEOF
13487
13488
13489 fi
13490
13491 rm -f core conftest.err conftest.$ac_objext \
13492       conftest$ac_exeext conftest.$ac_ext
13493
13494
13495
13496   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13497 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13498 if test "${ac_cv_huge_val_sanity+set}" = set; then
13499   echo $ECHO_N "(cached) $ECHO_C" >&6
13500 else
13501
13502     ac_ext=cpp
13503 ac_cpp='$CXXCPP $CPPFLAGS'
13504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13507
13508     ac_save_CXXFLAGS=$CXXFLAGS
13509     CXXFLAGS="$CXXFLAGS -pedantic"
13510     if test "$cross_compiling" = yes; then
13511   ac_cv_huge_val_sanity=yes
13512 else
13513   cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h.  */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h.  */
13519 #include <math.h>
13520 int
13521 main ()
13522 {
13523 double x = HUGE_VAL; return x != x;
13524   ;
13525   return 0;
13526 }
13527 _ACEOF
13528 rm -f conftest$ac_exeext
13529 if { (ac_try="$ac_link"
13530 case "(($ac_try" in
13531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532   *) ac_try_echo=$ac_try;;
13533 esac
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535   (eval "$ac_link") 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13539   { (case "(($ac_try" in
13540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13541   *) ac_try_echo=$ac_try;;
13542 esac
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544   (eval "$ac_try") 2>&5
13545   ac_status=$?
13546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547   (exit $ac_status); }; }; then
13548   ac_cv_huge_val_sanity=yes
13549 else
13550   echo "$as_me: program exited with status $ac_status" >&5
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13553
13554 ( exit $ac_status )
13555 ac_cv_huge_val_sanity=no
13556 fi
13557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13558 fi
13559
13560
13561     CXXFLAGS=$ac_save_CXXFLAGS
13562     ac_ext=c
13563 ac_cpp='$CPP $CPPFLAGS'
13564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13567
13568
13569 fi
13570 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13571 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13572   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13573
13574
13575 { echo "$as_me:$LINENO: checking for pid_t" >&5
13576 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13577 if test "${ac_cv_type_pid_t+set}" = set; then
13578   echo $ECHO_N "(cached) $ECHO_C" >&6
13579 else
13580   cat >conftest.$ac_ext <<_ACEOF
13581 /* confdefs.h.  */
13582 _ACEOF
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h.  */
13586 $ac_includes_default
13587 typedef pid_t ac__type_new_;
13588 int
13589 main ()
13590 {
13591 if ((ac__type_new_ *) 0)
13592   return 0;
13593 if (sizeof (ac__type_new_))
13594   return 0;
13595   ;
13596   return 0;
13597 }
13598 _ACEOF
13599 rm -f conftest.$ac_objext
13600 if { (ac_try="$ac_compile"
13601 case "(($ac_try" in
13602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13603   *) ac_try_echo=$ac_try;;
13604 esac
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606   (eval "$ac_compile") 2>conftest.er1
13607   ac_status=$?
13608   grep -v '^ *+' conftest.er1 >conftest.err
13609   rm -f conftest.er1
13610   cat conftest.err >&5
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); } &&
13613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13614   { (case "(($ac_try" in
13615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616   *) ac_try_echo=$ac_try;;
13617 esac
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619   (eval "$ac_try") 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; } &&
13623          { ac_try='test -s conftest.$ac_objext'
13624   { (case "(($ac_try" in
13625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13626   *) ac_try_echo=$ac_try;;
13627 esac
13628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13629   (eval "$ac_try") 2>&5
13630   ac_status=$?
13631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632   (exit $ac_status); }; }; then
13633   ac_cv_type_pid_t=yes
13634 else
13635   echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638         ac_cv_type_pid_t=no
13639 fi
13640
13641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13642 fi
13643 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13644 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13645 if test $ac_cv_type_pid_t = yes; then
13646   :
13647 else
13648
13649 cat >>confdefs.h <<_ACEOF
13650 #define pid_t int
13651 _ACEOF
13652
13653 fi
13654
13655 { echo "$as_me:$LINENO: checking for size_t" >&5
13656 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13657 if test "${ac_cv_type_size_t+set}" = set; then
13658   echo $ECHO_N "(cached) $ECHO_C" >&6
13659 else
13660   cat >conftest.$ac_ext <<_ACEOF
13661 /* confdefs.h.  */
13662 _ACEOF
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h.  */
13666 $ac_includes_default
13667 typedef size_t ac__type_new_;
13668 int
13669 main ()
13670 {
13671 if ((ac__type_new_ *) 0)
13672   return 0;
13673 if (sizeof (ac__type_new_))
13674   return 0;
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 rm -f conftest.$ac_objext
13680 if { (ac_try="$ac_compile"
13681 case "(($ac_try" in
13682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683   *) ac_try_echo=$ac_try;;
13684 esac
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686   (eval "$ac_compile") 2>conftest.er1
13687   ac_status=$?
13688   grep -v '^ *+' conftest.er1 >conftest.err
13689   rm -f conftest.er1
13690   cat conftest.err >&5
13691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692   (exit $ac_status); } &&
13693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694   { (case "(($ac_try" in
13695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696   *) ac_try_echo=$ac_try;;
13697 esac
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699   (eval "$ac_try") 2>&5
13700   ac_status=$?
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); }; } &&
13703          { ac_try='test -s conftest.$ac_objext'
13704   { (case "(($ac_try" in
13705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706   *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709   (eval "$ac_try") 2>&5
13710   ac_status=$?
13711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712   (exit $ac_status); }; }; then
13713   ac_cv_type_size_t=yes
13714 else
13715   echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13717
13718         ac_cv_type_size_t=no
13719 fi
13720
13721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13722 fi
13723 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13724 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13725 if test $ac_cv_type_size_t = yes; then
13726   :
13727 else
13728
13729 cat >>confdefs.h <<_ACEOF
13730 #define size_t unsigned int
13731 _ACEOF
13732
13733 fi
13734
13735
13736 cat >>confdefs.h <<_ACEOF
13737 #define RETSIGTYPE void
13738 _ACEOF
13739
13740 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13741 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13742 if test "${ac_cv_struct_tm+set}" = set; then
13743   echo $ECHO_N "(cached) $ECHO_C" >&6
13744 else
13745   cat >conftest.$ac_ext <<_ACEOF
13746 /* confdefs.h.  */
13747 _ACEOF
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h.  */
13751 #include <sys/types.h>
13752 #include <time.h>
13753
13754 int
13755 main ()
13756 {
13757 struct tm *tp; tp->tm_sec;
13758   ;
13759   return 0;
13760 }
13761 _ACEOF
13762 rm -f conftest.$ac_objext
13763 if { (ac_try="$ac_compile"
13764 case "(($ac_try" in
13765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766   *) ac_try_echo=$ac_try;;
13767 esac
13768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13769   (eval "$ac_compile") 2>conftest.er1
13770   ac_status=$?
13771   grep -v '^ *+' conftest.er1 >conftest.err
13772   rm -f conftest.er1
13773   cat conftest.err >&5
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); } &&
13776          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13777   { (case "(($ac_try" in
13778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779   *) ac_try_echo=$ac_try;;
13780 esac
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782   (eval "$ac_try") 2>&5
13783   ac_status=$?
13784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785   (exit $ac_status); }; } &&
13786          { ac_try='test -s conftest.$ac_objext'
13787   { (case "(($ac_try" in
13788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789   *) ac_try_echo=$ac_try;;
13790 esac
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792   (eval "$ac_try") 2>&5
13793   ac_status=$?
13794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795   (exit $ac_status); }; }; then
13796   ac_cv_struct_tm=time.h
13797 else
13798   echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13800
13801         ac_cv_struct_tm=sys/time.h
13802 fi
13803
13804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13805 fi
13806 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13807 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13808 if test $ac_cv_struct_tm = sys/time.h; then
13809
13810 cat >>confdefs.h <<\_ACEOF
13811 #define TM_IN_SYS_TIME 1
13812 _ACEOF
13813
13814 fi
13815
13816 { echo "$as_me:$LINENO: checking for int64_t" >&5
13817 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13818 if test "${ac_cv_type_int64_t+set}" = set; then
13819   echo $ECHO_N "(cached) $ECHO_C" >&6
13820 else
13821   cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h.  */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h.  */
13827 $ac_includes_default
13828 typedef int64_t ac__type_new_;
13829 int
13830 main ()
13831 {
13832 if ((ac__type_new_ *) 0)
13833   return 0;
13834 if (sizeof (ac__type_new_))
13835   return 0;
13836   ;
13837   return 0;
13838 }
13839 _ACEOF
13840 rm -f conftest.$ac_objext
13841 if { (ac_try="$ac_compile"
13842 case "(($ac_try" in
13843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844   *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847   (eval "$ac_compile") 2>conftest.er1
13848   ac_status=$?
13849   grep -v '^ *+' conftest.er1 >conftest.err
13850   rm -f conftest.er1
13851   cat conftest.err >&5
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); } &&
13854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13855   { (case "(($ac_try" in
13856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857   *) ac_try_echo=$ac_try;;
13858 esac
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860   (eval "$ac_try") 2>&5
13861   ac_status=$?
13862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863   (exit $ac_status); }; } &&
13864          { ac_try='test -s conftest.$ac_objext'
13865   { (case "(($ac_try" in
13866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13867   *) ac_try_echo=$ac_try;;
13868 esac
13869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13870   (eval "$ac_try") 2>&5
13871   ac_status=$?
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); }; }; then
13874   ac_cv_type_int64_t=yes
13875 else
13876   echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879         ac_cv_type_int64_t=no
13880 fi
13881
13882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883 fi
13884 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13885 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13886 if test $ac_cv_type_int64_t = yes; then
13887
13888 cat >>confdefs.h <<_ACEOF
13889 #define HAVE_INT64_T 1
13890 _ACEOF
13891
13892
13893 else
13894   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13895 echo "$as_me: error: Type int64_t required but not found" >&2;}
13896    { (exit 1); exit 1; }; }
13897 fi
13898
13899 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13900 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13901 if test "${ac_cv_type_uint64_t+set}" = set; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h.  */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h.  */
13910 $ac_includes_default
13911 typedef uint64_t ac__type_new_;
13912 int
13913 main ()
13914 {
13915 if ((ac__type_new_ *) 0)
13916   return 0;
13917 if (sizeof (ac__type_new_))
13918   return 0;
13919   ;
13920   return 0;
13921 }
13922 _ACEOF
13923 rm -f conftest.$ac_objext
13924 if { (ac_try="$ac_compile"
13925 case "(($ac_try" in
13926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13927   *) ac_try_echo=$ac_try;;
13928 esac
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930   (eval "$ac_compile") 2>conftest.er1
13931   ac_status=$?
13932   grep -v '^ *+' conftest.er1 >conftest.err
13933   rm -f conftest.er1
13934   cat conftest.err >&5
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); } &&
13937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13938   { (case "(($ac_try" in
13939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940   *) ac_try_echo=$ac_try;;
13941 esac
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943   (eval "$ac_try") 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; } &&
13947          { ac_try='test -s conftest.$ac_objext'
13948   { (case "(($ac_try" in
13949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950   *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953   (eval "$ac_try") 2>&5
13954   ac_status=$?
13955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956   (exit $ac_status); }; }; then
13957   ac_cv_type_uint64_t=yes
13958 else
13959   echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.$ac_ext >&5
13961
13962         ac_cv_type_uint64_t=no
13963 fi
13964
13965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966 fi
13967 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13968 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13969 if test $ac_cv_type_uint64_t = yes; then
13970
13971 cat >>confdefs.h <<_ACEOF
13972 #define HAVE_UINT64_T 1
13973 _ACEOF
13974
13975
13976 else
13977   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13978 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13979 if test "${ac_cv_type_u_int64_t+set}" = set; then
13980   echo $ECHO_N "(cached) $ECHO_C" >&6
13981 else
13982   cat >conftest.$ac_ext <<_ACEOF
13983 /* confdefs.h.  */
13984 _ACEOF
13985 cat confdefs.h >>conftest.$ac_ext
13986 cat >>conftest.$ac_ext <<_ACEOF
13987 /* end confdefs.h.  */
13988 $ac_includes_default
13989 typedef u_int64_t ac__type_new_;
13990 int
13991 main ()
13992 {
13993 if ((ac__type_new_ *) 0)
13994   return 0;
13995 if (sizeof (ac__type_new_))
13996   return 0;
13997   ;
13998   return 0;
13999 }
14000 _ACEOF
14001 rm -f conftest.$ac_objext
14002 if { (ac_try="$ac_compile"
14003 case "(($ac_try" in
14004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005   *) ac_try_echo=$ac_try;;
14006 esac
14007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008   (eval "$ac_compile") 2>conftest.er1
14009   ac_status=$?
14010   grep -v '^ *+' conftest.er1 >conftest.err
14011   rm -f conftest.er1
14012   cat conftest.err >&5
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); } &&
14015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14016   { (case "(($ac_try" in
14017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018   *) ac_try_echo=$ac_try;;
14019 esac
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021   (eval "$ac_try") 2>&5
14022   ac_status=$?
14023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024   (exit $ac_status); }; } &&
14025          { ac_try='test -s conftest.$ac_objext'
14026   { (case "(($ac_try" in
14027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14028   *) ac_try_echo=$ac_try;;
14029 esac
14030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14031   (eval "$ac_try") 2>&5
14032   ac_status=$?
14033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034   (exit $ac_status); }; }; then
14035   ac_cv_type_u_int64_t=yes
14036 else
14037   echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14039
14040         ac_cv_type_u_int64_t=no
14041 fi
14042
14043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14044 fi
14045 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14046 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14047 if test $ac_cv_type_u_int64_t = yes; then
14048
14049 cat >>confdefs.h <<_ACEOF
14050 #define HAVE_U_INT64_T 1
14051 _ACEOF
14052
14053
14054 else
14055   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14056 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14057    { (exit 1); exit 1; }; }
14058 fi
14059
14060 fi
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14072 do
14073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14077   echo $ECHO_N "(cached) $ECHO_C" >&6
14078 else
14079   cat >conftest.$ac_ext <<_ACEOF
14080 /* confdefs.h.  */
14081 _ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h.  */
14085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14087 #define $ac_func innocuous_$ac_func
14088
14089 /* System header to define __stub macros and hopefully few prototypes,
14090     which can conflict with char $ac_func (); below.
14091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14092     <limits.h> exists even on freestanding compilers.  */
14093
14094 #ifdef __STDC__
14095 # include <limits.h>
14096 #else
14097 # include <assert.h>
14098 #endif
14099
14100 #undef $ac_func
14101
14102 /* Override any GCC internal prototype to avoid an error.
14103    Use char because int might match the return type of a GCC
14104    builtin and then its argument prototype would still apply.  */
14105 #ifdef __cplusplus
14106 extern "C"
14107 #endif
14108 char $ac_func ();
14109 /* The GNU C library defines this for functions which it implements
14110     to always fail with ENOSYS.  Some functions are actually named
14111     something starting with __ and the normal name is an alias.  */
14112 #if defined __stub_$ac_func || defined __stub___$ac_func
14113 choke me
14114 #endif
14115
14116 int
14117 main ()
14118 {
14119 return $ac_func ();
14120   ;
14121   return 0;
14122 }
14123 _ACEOF
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128   *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131   (eval "$ac_link") 2>conftest.er1
14132   ac_status=$?
14133   grep -v '^ *+' conftest.er1 >conftest.err
14134   rm -f conftest.er1
14135   cat conftest.err >&5
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } &&
14138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14139   { (case "(($ac_try" in
14140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141   *) ac_try_echo=$ac_try;;
14142 esac
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144   (eval "$ac_try") 2>&5
14145   ac_status=$?
14146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147   (exit $ac_status); }; } &&
14148          { ac_try='test -s conftest$ac_exeext'
14149   { (case "(($ac_try" in
14150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151   *) ac_try_echo=$ac_try;;
14152 esac
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154   (eval "$ac_try") 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); }; }; then
14158   eval "$as_ac_var=yes"
14159 else
14160   echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163         eval "$as_ac_var=no"
14164 fi
14165
14166 rm -f core conftest.err conftest.$ac_objext \
14167       conftest$ac_exeext conftest.$ac_ext
14168 fi
14169 ac_res=`eval echo '${'$as_ac_var'}'`
14170                { echo "$as_me:$LINENO: result: $ac_res" >&5
14171 echo "${ECHO_T}$ac_res" >&6; }
14172 if test `eval echo '${'$as_ac_var'}'` = yes; then
14173   cat >>confdefs.h <<_ACEOF
14174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14175 _ACEOF
14176
14177 fi
14178 done
14179
14180
14181
14182
14183
14184 for ac_func in powf fmodf strtof round
14185 do
14186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14190   echo $ECHO_N "(cached) $ECHO_C" >&6
14191 else
14192   cat >conftest.$ac_ext <<_ACEOF
14193 /* confdefs.h.  */
14194 _ACEOF
14195 cat confdefs.h >>conftest.$ac_ext
14196 cat >>conftest.$ac_ext <<_ACEOF
14197 /* end confdefs.h.  */
14198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14200 #define $ac_func innocuous_$ac_func
14201
14202 /* System header to define __stub macros and hopefully few prototypes,
14203     which can conflict with char $ac_func (); below.
14204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14205     <limits.h> exists even on freestanding compilers.  */
14206
14207 #ifdef __STDC__
14208 # include <limits.h>
14209 #else
14210 # include <assert.h>
14211 #endif
14212
14213 #undef $ac_func
14214
14215 /* Override any GCC internal prototype to avoid an error.
14216    Use char because int might match the return type of a GCC
14217    builtin and then its argument prototype would still apply.  */
14218 #ifdef __cplusplus
14219 extern "C"
14220 #endif
14221 char $ac_func ();
14222 /* The GNU C library defines this for functions which it implements
14223     to always fail with ENOSYS.  Some functions are actually named
14224     something starting with __ and the normal name is an alias.  */
14225 #if defined __stub_$ac_func || defined __stub___$ac_func
14226 choke me
14227 #endif
14228
14229 int
14230 main ()
14231 {
14232 return $ac_func ();
14233   ;
14234   return 0;
14235 }
14236 _ACEOF
14237 rm -f conftest.$ac_objext conftest$ac_exeext
14238 if { (ac_try="$ac_link"
14239 case "(($ac_try" in
14240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241   *) ac_try_echo=$ac_try;;
14242 esac
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244   (eval "$ac_link") 2>conftest.er1
14245   ac_status=$?
14246   grep -v '^ *+' conftest.er1 >conftest.err
14247   rm -f conftest.er1
14248   cat conftest.err >&5
14249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14250   (exit $ac_status); } &&
14251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14252   { (case "(($ac_try" in
14253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14254   *) ac_try_echo=$ac_try;;
14255 esac
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257   (eval "$ac_try") 2>&5
14258   ac_status=$?
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); }; } &&
14261          { ac_try='test -s conftest$ac_exeext'
14262   { (case "(($ac_try" in
14263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264   *) ac_try_echo=$ac_try;;
14265 esac
14266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267   (eval "$ac_try") 2>&5
14268   ac_status=$?
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); }; }; then
14271   eval "$as_ac_var=yes"
14272 else
14273   echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14275
14276         eval "$as_ac_var=no"
14277 fi
14278
14279 rm -f core conftest.err conftest.$ac_objext \
14280       conftest$ac_exeext conftest.$ac_ext
14281 fi
14282 ac_res=`eval echo '${'$as_ac_var'}'`
14283                { echo "$as_me:$LINENO: result: $ac_res" >&5
14284 echo "${ECHO_T}$ac_res" >&6; }
14285 if test `eval echo '${'$as_ac_var'}'` = yes; then
14286   cat >>confdefs.h <<_ACEOF
14287 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14288 _ACEOF
14289
14290 fi
14291 done
14292
14293
14294
14295
14296
14297
14298 for ac_func in log log2 log10 exp exp2
14299 do
14300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14304   echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306   cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h.  */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h.  */
14312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14314 #define $ac_func innocuous_$ac_func
14315
14316 /* System header to define __stub macros and hopefully few prototypes,
14317     which can conflict with char $ac_func (); below.
14318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14319     <limits.h> exists even on freestanding compilers.  */
14320
14321 #ifdef __STDC__
14322 # include <limits.h>
14323 #else
14324 # include <assert.h>
14325 #endif
14326
14327 #undef $ac_func
14328
14329 /* Override any GCC internal prototype to avoid an error.
14330    Use char because int might match the return type of a GCC
14331    builtin and then its argument prototype would still apply.  */
14332 #ifdef __cplusplus
14333 extern "C"
14334 #endif
14335 char $ac_func ();
14336 /* The GNU C library defines this for functions which it implements
14337     to always fail with ENOSYS.  Some functions are actually named
14338     something starting with __ and the normal name is an alias.  */
14339 #if defined __stub_$ac_func || defined __stub___$ac_func
14340 choke me
14341 #endif
14342
14343 int
14344 main ()
14345 {
14346 return $ac_func ();
14347   ;
14348   return 0;
14349 }
14350 _ACEOF
14351 rm -f conftest.$ac_objext conftest$ac_exeext
14352 if { (ac_try="$ac_link"
14353 case "(($ac_try" in
14354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355   *) ac_try_echo=$ac_try;;
14356 esac
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358   (eval "$ac_link") 2>conftest.er1
14359   ac_status=$?
14360   grep -v '^ *+' conftest.er1 >conftest.err
14361   rm -f conftest.er1
14362   cat conftest.err >&5
14363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364   (exit $ac_status); } &&
14365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14366   { (case "(($ac_try" in
14367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368   *) ac_try_echo=$ac_try;;
14369 esac
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371   (eval "$ac_try") 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); }; } &&
14375          { ac_try='test -s conftest$ac_exeext'
14376   { (case "(($ac_try" in
14377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378   *) ac_try_echo=$ac_try;;
14379 esac
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381   (eval "$ac_try") 2>&5
14382   ac_status=$?
14383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384   (exit $ac_status); }; }; then
14385   eval "$as_ac_var=yes"
14386 else
14387   echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14389
14390         eval "$as_ac_var=no"
14391 fi
14392
14393 rm -f core conftest.err conftest.$ac_objext \
14394       conftest$ac_exeext conftest.$ac_ext
14395 fi
14396 ac_res=`eval echo '${'$as_ac_var'}'`
14397                { echo "$as_me:$LINENO: result: $ac_res" >&5
14398 echo "${ECHO_T}$ac_res" >&6; }
14399 if test `eval echo '${'$as_ac_var'}'` = yes; then
14400   cat >>confdefs.h <<_ACEOF
14401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14402 _ACEOF
14403
14404 fi
14405 done
14406
14407
14408
14409
14410
14411
14412 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14413 do
14414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14418   echo $ECHO_N "(cached) $ECHO_C" >&6
14419 else
14420   cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h.  */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h.  */
14426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14428 #define $ac_func innocuous_$ac_func
14429
14430 /* System header to define __stub macros and hopefully few prototypes,
14431     which can conflict with char $ac_func (); below.
14432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14433     <limits.h> exists even on freestanding compilers.  */
14434
14435 #ifdef __STDC__
14436 # include <limits.h>
14437 #else
14438 # include <assert.h>
14439 #endif
14440
14441 #undef $ac_func
14442
14443 /* Override any GCC internal prototype to avoid an error.
14444    Use char because int might match the return type of a GCC
14445    builtin and then its argument prototype would still apply.  */
14446 #ifdef __cplusplus
14447 extern "C"
14448 #endif
14449 char $ac_func ();
14450 /* The GNU C library defines this for functions which it implements
14451     to always fail with ENOSYS.  Some functions are actually named
14452     something starting with __ and the normal name is an alias.  */
14453 #if defined __stub_$ac_func || defined __stub___$ac_func
14454 choke me
14455 #endif
14456
14457 int
14458 main ()
14459 {
14460 return $ac_func ();
14461   ;
14462   return 0;
14463 }
14464 _ACEOF
14465 rm -f conftest.$ac_objext conftest$ac_exeext
14466 if { (ac_try="$ac_link"
14467 case "(($ac_try" in
14468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469   *) ac_try_echo=$ac_try;;
14470 esac
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472   (eval "$ac_link") 2>conftest.er1
14473   ac_status=$?
14474   grep -v '^ *+' conftest.er1 >conftest.err
14475   rm -f conftest.er1
14476   cat conftest.err >&5
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); } &&
14479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14480   { (case "(($ac_try" in
14481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482   *) ac_try_echo=$ac_try;;
14483 esac
14484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485   (eval "$ac_try") 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; } &&
14489          { ac_try='test -s conftest$ac_exeext'
14490   { (case "(($ac_try" in
14491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492   *) ac_try_echo=$ac_try;;
14493 esac
14494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14495   (eval "$ac_try") 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); }; }; then
14499   eval "$as_ac_var=yes"
14500 else
14501   echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504         eval "$as_ac_var=no"
14505 fi
14506
14507 rm -f core conftest.err conftest.$ac_objext \
14508       conftest$ac_exeext conftest.$ac_ext
14509 fi
14510 ac_res=`eval echo '${'$as_ac_var'}'`
14511                { echo "$as_me:$LINENO: result: $ac_res" >&5
14512 echo "${ECHO_T}$ac_res" >&6; }
14513 if test `eval echo '${'$as_ac_var'}'` = yes; then
14514   cat >>confdefs.h <<_ACEOF
14515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14516 _ACEOF
14517
14518 fi
14519 done
14520
14521
14522
14523
14524 for ac_func in isatty mkdtemp mkstemp
14525 do
14526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14527 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14530   echo $ECHO_N "(cached) $ECHO_C" >&6
14531 else
14532   cat >conftest.$ac_ext <<_ACEOF
14533 /* confdefs.h.  */
14534 _ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h.  */
14538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14540 #define $ac_func innocuous_$ac_func
14541
14542 /* System header to define __stub macros and hopefully few prototypes,
14543     which can conflict with char $ac_func (); below.
14544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14545     <limits.h> exists even on freestanding compilers.  */
14546
14547 #ifdef __STDC__
14548 # include <limits.h>
14549 #else
14550 # include <assert.h>
14551 #endif
14552
14553 #undef $ac_func
14554
14555 /* Override any GCC internal prototype to avoid an error.
14556    Use char because int might match the return type of a GCC
14557    builtin and then its argument prototype would still apply.  */
14558 #ifdef __cplusplus
14559 extern "C"
14560 #endif
14561 char $ac_func ();
14562 /* The GNU C library defines this for functions which it implements
14563     to always fail with ENOSYS.  Some functions are actually named
14564     something starting with __ and the normal name is an alias.  */
14565 #if defined __stub_$ac_func || defined __stub___$ac_func
14566 choke me
14567 #endif
14568
14569 int
14570 main ()
14571 {
14572 return $ac_func ();
14573   ;
14574   return 0;
14575 }
14576 _ACEOF
14577 rm -f conftest.$ac_objext conftest$ac_exeext
14578 if { (ac_try="$ac_link"
14579 case "(($ac_try" in
14580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581   *) ac_try_echo=$ac_try;;
14582 esac
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584   (eval "$ac_link") 2>conftest.er1
14585   ac_status=$?
14586   grep -v '^ *+' conftest.er1 >conftest.err
14587   rm -f conftest.er1
14588   cat conftest.err >&5
14589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590   (exit $ac_status); } &&
14591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14592   { (case "(($ac_try" in
14593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594   *) ac_try_echo=$ac_try;;
14595 esac
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597   (eval "$ac_try") 2>&5
14598   ac_status=$?
14599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600   (exit $ac_status); }; } &&
14601          { ac_try='test -s conftest$ac_exeext'
14602   { (case "(($ac_try" in
14603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14604   *) ac_try_echo=$ac_try;;
14605 esac
14606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14607   (eval "$ac_try") 2>&5
14608   ac_status=$?
14609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610   (exit $ac_status); }; }; then
14611   eval "$as_ac_var=yes"
14612 else
14613   echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.$ac_ext >&5
14615
14616         eval "$as_ac_var=no"
14617 fi
14618
14619 rm -f core conftest.err conftest.$ac_objext \
14620       conftest$ac_exeext conftest.$ac_ext
14621 fi
14622 ac_res=`eval echo '${'$as_ac_var'}'`
14623                { echo "$as_me:$LINENO: result: $ac_res" >&5
14624 echo "${ECHO_T}$ac_res" >&6; }
14625 if test `eval echo '${'$as_ac_var'}'` = yes; then
14626   cat >>confdefs.h <<_ACEOF
14627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14628 _ACEOF
14629
14630 fi
14631 done
14632
14633
14634
14635
14636
14637
14638
14639 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14640 do
14641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14645   echo $ECHO_N "(cached) $ECHO_C" >&6
14646 else
14647   cat >conftest.$ac_ext <<_ACEOF
14648 /* confdefs.h.  */
14649 _ACEOF
14650 cat confdefs.h >>conftest.$ac_ext
14651 cat >>conftest.$ac_ext <<_ACEOF
14652 /* end confdefs.h.  */
14653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14655 #define $ac_func innocuous_$ac_func
14656
14657 /* System header to define __stub macros and hopefully few prototypes,
14658     which can conflict with char $ac_func (); below.
14659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14660     <limits.h> exists even on freestanding compilers.  */
14661
14662 #ifdef __STDC__
14663 # include <limits.h>
14664 #else
14665 # include <assert.h>
14666 #endif
14667
14668 #undef $ac_func
14669
14670 /* Override any GCC internal prototype to avoid an error.
14671    Use char because int might match the return type of a GCC
14672    builtin and then its argument prototype would still apply.  */
14673 #ifdef __cplusplus
14674 extern "C"
14675 #endif
14676 char $ac_func ();
14677 /* The GNU C library defines this for functions which it implements
14678     to always fail with ENOSYS.  Some functions are actually named
14679     something starting with __ and the normal name is an alias.  */
14680 #if defined __stub_$ac_func || defined __stub___$ac_func
14681 choke me
14682 #endif
14683
14684 int
14685 main ()
14686 {
14687 return $ac_func ();
14688   ;
14689   return 0;
14690 }
14691 _ACEOF
14692 rm -f conftest.$ac_objext conftest$ac_exeext
14693 if { (ac_try="$ac_link"
14694 case "(($ac_try" in
14695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696   *) ac_try_echo=$ac_try;;
14697 esac
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699   (eval "$ac_link") 2>conftest.er1
14700   ac_status=$?
14701   grep -v '^ *+' conftest.er1 >conftest.err
14702   rm -f conftest.er1
14703   cat conftest.err >&5
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); } &&
14706          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14707   { (case "(($ac_try" in
14708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709   *) ac_try_echo=$ac_try;;
14710 esac
14711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712   (eval "$ac_try") 2>&5
14713   ac_status=$?
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); }; } &&
14716          { ac_try='test -s conftest$ac_exeext'
14717   { (case "(($ac_try" in
14718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719   *) ac_try_echo=$ac_try;;
14720 esac
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722   (eval "$ac_try") 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }; then
14726   eval "$as_ac_var=yes"
14727 else
14728   echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14730
14731         eval "$as_ac_var=no"
14732 fi
14733
14734 rm -f core conftest.err conftest.$ac_objext \
14735       conftest$ac_exeext conftest.$ac_ext
14736 fi
14737 ac_res=`eval echo '${'$as_ac_var'}'`
14738                { echo "$as_me:$LINENO: result: $ac_res" >&5
14739 echo "${ECHO_T}$ac_res" >&6; }
14740 if test `eval echo '${'$as_ac_var'}'` = yes; then
14741   cat >>confdefs.h <<_ACEOF
14742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14743 _ACEOF
14744
14745 fi
14746 done
14747
14748
14749
14750
14751 for ac_func in strerror strerror_r setenv
14752 do
14753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14757   echo $ECHO_N "(cached) $ECHO_C" >&6
14758 else
14759   cat >conftest.$ac_ext <<_ACEOF
14760 /* confdefs.h.  */
14761 _ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h.  */
14765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14767 #define $ac_func innocuous_$ac_func
14768
14769 /* System header to define __stub macros and hopefully few prototypes,
14770     which can conflict with char $ac_func (); below.
14771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14772     <limits.h> exists even on freestanding compilers.  */
14773
14774 #ifdef __STDC__
14775 # include <limits.h>
14776 #else
14777 # include <assert.h>
14778 #endif
14779
14780 #undef $ac_func
14781
14782 /* Override any GCC internal prototype to avoid an error.
14783    Use char because int might match the return type of a GCC
14784    builtin and then its argument prototype would still apply.  */
14785 #ifdef __cplusplus
14786 extern "C"
14787 #endif
14788 char $ac_func ();
14789 /* The GNU C library defines this for functions which it implements
14790     to always fail with ENOSYS.  Some functions are actually named
14791     something starting with __ and the normal name is an alias.  */
14792 #if defined __stub_$ac_func || defined __stub___$ac_func
14793 choke me
14794 #endif
14795
14796 int
14797 main ()
14798 {
14799 return $ac_func ();
14800   ;
14801   return 0;
14802 }
14803 _ACEOF
14804 rm -f conftest.$ac_objext conftest$ac_exeext
14805 if { (ac_try="$ac_link"
14806 case "(($ac_try" in
14807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808   *) ac_try_echo=$ac_try;;
14809 esac
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811   (eval "$ac_link") 2>conftest.er1
14812   ac_status=$?
14813   grep -v '^ *+' conftest.er1 >conftest.err
14814   rm -f conftest.er1
14815   cat conftest.err >&5
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); } &&
14818          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14819   { (case "(($ac_try" in
14820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14821   *) ac_try_echo=$ac_try;;
14822 esac
14823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14824   (eval "$ac_try") 2>&5
14825   ac_status=$?
14826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827   (exit $ac_status); }; } &&
14828          { ac_try='test -s conftest$ac_exeext'
14829   { (case "(($ac_try" in
14830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831   *) ac_try_echo=$ac_try;;
14832 esac
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834   (eval "$ac_try") 2>&5
14835   ac_status=$?
14836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837   (exit $ac_status); }; }; then
14838   eval "$as_ac_var=yes"
14839 else
14840   echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14842
14843         eval "$as_ac_var=no"
14844 fi
14845
14846 rm -f core conftest.err conftest.$ac_objext \
14847       conftest$ac_exeext conftest.$ac_ext
14848 fi
14849 ac_res=`eval echo '${'$as_ac_var'}'`
14850                { echo "$as_me:$LINENO: result: $ac_res" >&5
14851 echo "${ECHO_T}$ac_res" >&6; }
14852 if test `eval echo '${'$as_ac_var'}'` = yes; then
14853   cat >>confdefs.h <<_ACEOF
14854 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14855 _ACEOF
14856
14857 fi
14858 done
14859
14860
14861
14862
14863
14864 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14865 do
14866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14870   echo $ECHO_N "(cached) $ECHO_C" >&6
14871 else
14872   cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h.  */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h.  */
14878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14879    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14880 #define $ac_func innocuous_$ac_func
14881
14882 /* System header to define __stub macros and hopefully few prototypes,
14883     which can conflict with char $ac_func (); below.
14884     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14885     <limits.h> exists even on freestanding compilers.  */
14886
14887 #ifdef __STDC__
14888 # include <limits.h>
14889 #else
14890 # include <assert.h>
14891 #endif
14892
14893 #undef $ac_func
14894
14895 /* Override any GCC internal prototype to avoid an error.
14896    Use char because int might match the return type of a GCC
14897    builtin and then its argument prototype would still apply.  */
14898 #ifdef __cplusplus
14899 extern "C"
14900 #endif
14901 char $ac_func ();
14902 /* The GNU C library defines this for functions which it implements
14903     to always fail with ENOSYS.  Some functions are actually named
14904     something starting with __ and the normal name is an alias.  */
14905 #if defined __stub_$ac_func || defined __stub___$ac_func
14906 choke me
14907 #endif
14908
14909 int
14910 main ()
14911 {
14912 return $ac_func ();
14913   ;
14914   return 0;
14915 }
14916 _ACEOF
14917 rm -f conftest.$ac_objext conftest$ac_exeext
14918 if { (ac_try="$ac_link"
14919 case "(($ac_try" in
14920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14921   *) ac_try_echo=$ac_try;;
14922 esac
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924   (eval "$ac_link") 2>conftest.er1
14925   ac_status=$?
14926   grep -v '^ *+' conftest.er1 >conftest.err
14927   rm -f conftest.er1
14928   cat conftest.err >&5
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); } &&
14931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14932   { (case "(($ac_try" in
14933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934   *) ac_try_echo=$ac_try;;
14935 esac
14936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937   (eval "$ac_try") 2>&5
14938   ac_status=$?
14939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940   (exit $ac_status); }; } &&
14941          { ac_try='test -s conftest$ac_exeext'
14942   { (case "(($ac_try" in
14943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944   *) ac_try_echo=$ac_try;;
14945 esac
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947   (eval "$ac_try") 2>&5
14948   ac_status=$?
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); }; }; then
14951   eval "$as_ac_var=yes"
14952 else
14953   echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14955
14956         eval "$as_ac_var=no"
14957 fi
14958
14959 rm -f core conftest.err conftest.$ac_objext \
14960       conftest$ac_exeext conftest.$ac_ext
14961 fi
14962 ac_res=`eval echo '${'$as_ac_var'}'`
14963                { echo "$as_me:$LINENO: result: $ac_res" >&5
14964 echo "${ECHO_T}$ac_res" >&6; }
14965 if test `eval echo '${'$as_ac_var'}'` = yes; then
14966   cat >>confdefs.h <<_ACEOF
14967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14968 _ACEOF
14969
14970 fi
14971 done
14972
14973
14974
14975
14976
14977
14978 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14979 do
14980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14981 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14983 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14984   echo $ECHO_N "(cached) $ECHO_C" >&6
14985 else
14986   cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h.  */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h.  */
14992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14993    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14994 #define $ac_func innocuous_$ac_func
14995
14996 /* System header to define __stub macros and hopefully few prototypes,
14997     which can conflict with char $ac_func (); below.
14998     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14999     <limits.h> exists even on freestanding compilers.  */
15000
15001 #ifdef __STDC__
15002 # include <limits.h>
15003 #else
15004 # include <assert.h>
15005 #endif
15006
15007 #undef $ac_func
15008
15009 /* Override any GCC internal prototype to avoid an error.
15010    Use char because int might match the return type of a GCC
15011    builtin and then its argument prototype would still apply.  */
15012 #ifdef __cplusplus
15013 extern "C"
15014 #endif
15015 char $ac_func ();
15016 /* The GNU C library defines this for functions which it implements
15017     to always fail with ENOSYS.  Some functions are actually named
15018     something starting with __ and the normal name is an alias.  */
15019 #if defined __stub_$ac_func || defined __stub___$ac_func
15020 choke me
15021 #endif
15022
15023 int
15024 main ()
15025 {
15026 return $ac_func ();
15027   ;
15028   return 0;
15029 }
15030 _ACEOF
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (ac_try="$ac_link"
15033 case "(($ac_try" in
15034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035   *) ac_try_echo=$ac_try;;
15036 esac
15037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038   (eval "$ac_link") 2>conftest.er1
15039   ac_status=$?
15040   grep -v '^ *+' conftest.er1 >conftest.err
15041   rm -f conftest.er1
15042   cat conftest.err >&5
15043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044   (exit $ac_status); } &&
15045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15046   { (case "(($ac_try" in
15047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048   *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051   (eval "$ac_try") 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); }; } &&
15055          { ac_try='test -s conftest$ac_exeext'
15056   { (case "(($ac_try" in
15057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058   *) ac_try_echo=$ac_try;;
15059 esac
15060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061   (eval "$ac_try") 2>&5
15062   ac_status=$?
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); }; }; then
15065   eval "$as_ac_var=yes"
15066 else
15067   echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15069
15070         eval "$as_ac_var=no"
15071 fi
15072
15073 rm -f core conftest.err conftest.$ac_objext \
15074       conftest$ac_exeext conftest.$ac_ext
15075 fi
15076 ac_res=`eval echo '${'$as_ac_var'}'`
15077                { echo "$as_me:$LINENO: result: $ac_res" >&5
15078 echo "${ECHO_T}$ac_res" >&6; }
15079 if test `eval echo '${'$as_ac_var'}'` = yes; then
15080   cat >>confdefs.h <<_ACEOF
15081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15082 _ACEOF
15083
15084 fi
15085 done
15086
15087
15088
15089 for ac_func in futimes futimens
15090 do
15091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15092 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15094 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15095   echo $ECHO_N "(cached) $ECHO_C" >&6
15096 else
15097   cat >conftest.$ac_ext <<_ACEOF
15098 /* confdefs.h.  */
15099 _ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h.  */
15103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15105 #define $ac_func innocuous_$ac_func
15106
15107 /* System header to define __stub macros and hopefully few prototypes,
15108     which can conflict with char $ac_func (); below.
15109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15110     <limits.h> exists even on freestanding compilers.  */
15111
15112 #ifdef __STDC__
15113 # include <limits.h>
15114 #else
15115 # include <assert.h>
15116 #endif
15117
15118 #undef $ac_func
15119
15120 /* Override any GCC internal prototype to avoid an error.
15121    Use char because int might match the return type of a GCC
15122    builtin and then its argument prototype would still apply.  */
15123 #ifdef __cplusplus
15124 extern "C"
15125 #endif
15126 char $ac_func ();
15127 /* The GNU C library defines this for functions which it implements
15128     to always fail with ENOSYS.  Some functions are actually named
15129     something starting with __ and the normal name is an alias.  */
15130 #if defined __stub_$ac_func || defined __stub___$ac_func
15131 choke me
15132 #endif
15133
15134 int
15135 main ()
15136 {
15137 return $ac_func ();
15138   ;
15139   return 0;
15140 }
15141 _ACEOF
15142 rm -f conftest.$ac_objext conftest$ac_exeext
15143 if { (ac_try="$ac_link"
15144 case "(($ac_try" in
15145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15146   *) ac_try_echo=$ac_try;;
15147 esac
15148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15149   (eval "$ac_link") 2>conftest.er1
15150   ac_status=$?
15151   grep -v '^ *+' conftest.er1 >conftest.err
15152   rm -f conftest.er1
15153   cat conftest.err >&5
15154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155   (exit $ac_status); } &&
15156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15157   { (case "(($ac_try" in
15158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15159   *) ac_try_echo=$ac_try;;
15160 esac
15161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15162   (eval "$ac_try") 2>&5
15163   ac_status=$?
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); }; } &&
15166          { ac_try='test -s conftest$ac_exeext'
15167   { (case "(($ac_try" in
15168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15169   *) ac_try_echo=$ac_try;;
15170 esac
15171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172   (eval "$ac_try") 2>&5
15173   ac_status=$?
15174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175   (exit $ac_status); }; }; then
15176   eval "$as_ac_var=yes"
15177 else
15178   echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15180
15181         eval "$as_ac_var=no"
15182 fi
15183
15184 rm -f core conftest.err conftest.$ac_objext \
15185       conftest$ac_exeext conftest.$ac_ext
15186 fi
15187 ac_res=`eval echo '${'$as_ac_var'}'`
15188                { echo "$as_me:$LINENO: result: $ac_res" >&5
15189 echo "${ECHO_T}$ac_res" >&6; }
15190 if test `eval echo '${'$as_ac_var'}'` = yes; then
15191   cat >>confdefs.h <<_ACEOF
15192 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15193 _ACEOF
15194
15195 fi
15196 done
15197
15198 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15199 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15200 if test "${llvm_cv_c_printf_a+set}" = set; then
15201   echo $ECHO_N "(cached) $ECHO_C" >&6
15202 else
15203   ac_ext=c
15204 ac_cpp='$CPP $CPPFLAGS'
15205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15208
15209  if test "$cross_compiling" = yes; then
15210   llvmac_cv_c_printf_a=no
15211 else
15212   cat >conftest.$ac_ext <<_ACEOF
15213
15214   /* confdefs.h.  */
15215 _ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h.  */
15219
15220 #include <stdio.h>
15221 #include <stdlib.h>
15222
15223 int
15224 main ()
15225 {
15226
15227 volatile double A, B;
15228 char Buffer[100];
15229 A = 1;
15230 A /= 10.0;
15231 sprintf(Buffer, "%a", A);
15232 B = atof(Buffer);
15233 if (A != B)
15234   return (1);
15235 if (A != 0x1.999999999999ap-4)
15236   return (1);
15237 return (0);
15238   ;
15239   return 0;
15240 }
15241 _ACEOF
15242 rm -f conftest$ac_exeext
15243 if { (ac_try="$ac_link"
15244 case "(($ac_try" in
15245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15246   *) ac_try_echo=$ac_try;;
15247 esac
15248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15249   (eval "$ac_link") 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15253   { (case "(($ac_try" in
15254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255   *) ac_try_echo=$ac_try;;
15256 esac
15257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15258   (eval "$ac_try") 2>&5
15259   ac_status=$?
15260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261   (exit $ac_status); }; }; then
15262   llvm_cv_c_printf_a=yes
15263 else
15264   echo "$as_me: program exited with status $ac_status" >&5
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15267
15268 ( exit $ac_status )
15269 llvmac_cv_c_printf_a=no
15270 fi
15271 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15272 fi
15273
15274
15275  ac_ext=c
15276 ac_cpp='$CPP $CPPFLAGS'
15277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15280
15281 fi
15282 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15283 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15284  if test "$llvm_cv_c_printf_a" = "yes"; then
15285
15286 cat >>confdefs.h <<\_ACEOF
15287 #define HAVE_PRINTF_A 1
15288 _ACEOF
15289
15290  fi
15291
15292
15293
15294   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15295 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15296 if test "${ac_cv_func_rand48+set}" = set; then
15297   echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299
15300     ac_ext=cpp
15301 ac_cpp='$CXXCPP $CPPFLAGS'
15302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15305
15306     cat >conftest.$ac_ext <<_ACEOF
15307 /* confdefs.h.  */
15308 _ACEOF
15309 cat confdefs.h >>conftest.$ac_ext
15310 cat >>conftest.$ac_ext <<_ACEOF
15311 /* end confdefs.h.  */
15312 #include <stdlib.h>
15313 int
15314 main ()
15315 {
15316 srand48(0);lrand48();drand48();
15317   ;
15318   return 0;
15319 }
15320 _ACEOF
15321 rm -f conftest.$ac_objext
15322 if { (ac_try="$ac_compile"
15323 case "(($ac_try" in
15324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325   *) ac_try_echo=$ac_try;;
15326 esac
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328   (eval "$ac_compile") 2>conftest.er1
15329   ac_status=$?
15330   grep -v '^ *+' conftest.er1 >conftest.err
15331   rm -f conftest.er1
15332   cat conftest.err >&5
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); } &&
15335          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15336   { (case "(($ac_try" in
15337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15338   *) ac_try_echo=$ac_try;;
15339 esac
15340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15341   (eval "$ac_try") 2>&5
15342   ac_status=$?
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); }; } &&
15345          { ac_try='test -s conftest.$ac_objext'
15346   { (case "(($ac_try" in
15347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348   *) ac_try_echo=$ac_try;;
15349 esac
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351   (eval "$ac_try") 2>&5
15352   ac_status=$?
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); }; }; then
15355   ac_cv_func_rand48=yes
15356 else
15357   echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15359
15360         ac_cv_func_rand48=no
15361 fi
15362
15363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15364     ac_ext=c
15365 ac_cpp='$CPP $CPPFLAGS'
15366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15369
15370
15371 fi
15372 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15373 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15374
15375 if test "$ac_cv_func_rand48" = "yes" ; then
15376
15377 cat >>confdefs.h <<\_ACEOF
15378 #define HAVE_RAND48 1
15379 _ACEOF
15380
15381 fi
15382
15383
15384 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15385 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15386 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15387   echo $ECHO_N "(cached) $ECHO_C" >&6
15388 else
15389   cat >conftest.$ac_ext <<_ACEOF
15390 /* confdefs.h.  */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h.  */
15395 $ac_includes_default
15396 int
15397 main ()
15398 {
15399 #ifndef arc4random
15400   char *p = (char *) arc4random;
15401   return !p;
15402 #endif
15403
15404   ;
15405   return 0;
15406 }
15407 _ACEOF
15408 rm -f conftest.$ac_objext
15409 if { (ac_try="$ac_compile"
15410 case "(($ac_try" in
15411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412   *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415   (eval "$ac_compile") 2>conftest.er1
15416   ac_status=$?
15417   grep -v '^ *+' conftest.er1 >conftest.err
15418   rm -f conftest.er1
15419   cat conftest.err >&5
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } &&
15422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15423   { (case "(($ac_try" in
15424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425   *) ac_try_echo=$ac_try;;
15426 esac
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428   (eval "$ac_try") 2>&5
15429   ac_status=$?
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); }; } &&
15432          { ac_try='test -s conftest.$ac_objext'
15433   { (case "(($ac_try" in
15434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435   *) ac_try_echo=$ac_try;;
15436 esac
15437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438   (eval "$ac_try") 2>&5
15439   ac_status=$?
15440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441   (exit $ac_status); }; }; then
15442   ac_cv_have_decl_arc4random=yes
15443 else
15444   echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15446
15447         ac_cv_have_decl_arc4random=no
15448 fi
15449
15450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15451 fi
15452 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15453 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15454 if test $ac_cv_have_decl_arc4random = yes; then
15455
15456 cat >>confdefs.h <<_ACEOF
15457 #define HAVE_DECL_ARC4RANDOM 1
15458 _ACEOF
15459
15460
15461 else
15462   cat >>confdefs.h <<_ACEOF
15463 #define HAVE_DECL_ARC4RANDOM 0
15464 _ACEOF
15465
15466
15467 fi
15468
15469
15470
15471 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15472 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15473 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15474   echo $ECHO_N "(cached) $ECHO_C" >&6
15475 else
15476   cat >conftest.$ac_ext <<_ACEOF
15477 /* confdefs.h.  */
15478 _ACEOF
15479 cat confdefs.h >>conftest.$ac_ext
15480 cat >>conftest.$ac_ext <<_ACEOF
15481 /* end confdefs.h.  */
15482 $ac_includes_default
15483 int
15484 main ()
15485 {
15486 #ifndef strerror_s
15487   char *p = (char *) strerror_s;
15488   return !p;
15489 #endif
15490
15491   ;
15492   return 0;
15493 }
15494 _ACEOF
15495 rm -f conftest.$ac_objext
15496 if { (ac_try="$ac_compile"
15497 case "(($ac_try" in
15498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499   *) ac_try_echo=$ac_try;;
15500 esac
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502   (eval "$ac_compile") 2>conftest.er1
15503   ac_status=$?
15504   grep -v '^ *+' conftest.er1 >conftest.err
15505   rm -f conftest.er1
15506   cat conftest.err >&5
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); } &&
15509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15510   { (case "(($ac_try" in
15511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512   *) ac_try_echo=$ac_try;;
15513 esac
15514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15515   (eval "$ac_try") 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; } &&
15519          { ac_try='test -s conftest.$ac_objext'
15520   { (case "(($ac_try" in
15521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522   *) ac_try_echo=$ac_try;;
15523 esac
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525   (eval "$ac_try") 2>&5
15526   ac_status=$?
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); }; }; then
15529   ac_cv_have_decl_strerror_s=yes
15530 else
15531   echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15533
15534         ac_cv_have_decl_strerror_s=no
15535 fi
15536
15537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15538 fi
15539 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15540 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15541 if test $ac_cv_have_decl_strerror_s = yes; then
15542
15543 cat >>confdefs.h <<_ACEOF
15544 #define HAVE_DECL_STRERROR_S 1
15545 _ACEOF
15546
15547
15548 else
15549   cat >>confdefs.h <<_ACEOF
15550 #define HAVE_DECL_STRERROR_S 0
15551 _ACEOF
15552
15553
15554 fi
15555
15556
15557
15558 if test "$llvm_cv_os_type" = "MingW" ; then
15559   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15560 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15561 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15562   echo $ECHO_N "(cached) $ECHO_C" >&6
15563 else
15564   ac_check_lib_save_LIBS=$LIBS
15565 LIBS="-lgcc  $LIBS"
15566 cat >conftest.$ac_ext <<_ACEOF
15567 /* confdefs.h.  */
15568 _ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h.  */
15572
15573 /* Override any GCC internal prototype to avoid an error.
15574    Use char because int might match the return type of a GCC
15575    builtin and then its argument prototype would still apply.  */
15576 #ifdef __cplusplus
15577 extern "C"
15578 #endif
15579 char _alloca ();
15580 int
15581 main ()
15582 {
15583 return _alloca ();
15584   ;
15585   return 0;
15586 }
15587 _ACEOF
15588 rm -f conftest.$ac_objext conftest$ac_exeext
15589 if { (ac_try="$ac_link"
15590 case "(($ac_try" in
15591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592   *) ac_try_echo=$ac_try;;
15593 esac
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595   (eval "$ac_link") 2>conftest.er1
15596   ac_status=$?
15597   grep -v '^ *+' conftest.er1 >conftest.err
15598   rm -f conftest.er1
15599   cat conftest.err >&5
15600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601   (exit $ac_status); } &&
15602          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15603   { (case "(($ac_try" in
15604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15605   *) ac_try_echo=$ac_try;;
15606 esac
15607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15608   (eval "$ac_try") 2>&5
15609   ac_status=$?
15610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611   (exit $ac_status); }; } &&
15612          { ac_try='test -s conftest$ac_exeext'
15613   { (case "(($ac_try" in
15614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615   *) ac_try_echo=$ac_try;;
15616 esac
15617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618   (eval "$ac_try") 2>&5
15619   ac_status=$?
15620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621   (exit $ac_status); }; }; then
15622   ac_cv_lib_gcc__alloca=yes
15623 else
15624   echo "$as_me: failed program was:" >&5
15625 sed 's/^/| /' conftest.$ac_ext >&5
15626
15627         ac_cv_lib_gcc__alloca=no
15628 fi
15629
15630 rm -f core conftest.err conftest.$ac_objext \
15631       conftest$ac_exeext conftest.$ac_ext
15632 LIBS=$ac_check_lib_save_LIBS
15633 fi
15634 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15635 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15636 if test $ac_cv_lib_gcc__alloca = yes; then
15637
15638 cat >>confdefs.h <<\_ACEOF
15639 #define HAVE__ALLOCA 1
15640 _ACEOF
15641
15642 fi
15643
15644   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15645 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15646 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15647   echo $ECHO_N "(cached) $ECHO_C" >&6
15648 else
15649   ac_check_lib_save_LIBS=$LIBS
15650 LIBS="-lgcc  $LIBS"
15651 cat >conftest.$ac_ext <<_ACEOF
15652 /* confdefs.h.  */
15653 _ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h.  */
15657
15658 /* Override any GCC internal prototype to avoid an error.
15659    Use char because int might match the return type of a GCC
15660    builtin and then its argument prototype would still apply.  */
15661 #ifdef __cplusplus
15662 extern "C"
15663 #endif
15664 char __alloca ();
15665 int
15666 main ()
15667 {
15668 return __alloca ();
15669   ;
15670   return 0;
15671 }
15672 _ACEOF
15673 rm -f conftest.$ac_objext conftest$ac_exeext
15674 if { (ac_try="$ac_link"
15675 case "(($ac_try" in
15676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15677   *) ac_try_echo=$ac_try;;
15678 esac
15679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15680   (eval "$ac_link") 2>conftest.er1
15681   ac_status=$?
15682   grep -v '^ *+' conftest.er1 >conftest.err
15683   rm -f conftest.er1
15684   cat conftest.err >&5
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); } &&
15687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15688   { (case "(($ac_try" in
15689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690   *) ac_try_echo=$ac_try;;
15691 esac
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693   (eval "$ac_try") 2>&5
15694   ac_status=$?
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); }; } &&
15697          { ac_try='test -s conftest$ac_exeext'
15698   { (case "(($ac_try" in
15699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700   *) ac_try_echo=$ac_try;;
15701 esac
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703   (eval "$ac_try") 2>&5
15704   ac_status=$?
15705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706   (exit $ac_status); }; }; then
15707   ac_cv_lib_gcc___alloca=yes
15708 else
15709   echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712         ac_cv_lib_gcc___alloca=no
15713 fi
15714
15715 rm -f core conftest.err conftest.$ac_objext \
15716       conftest$ac_exeext conftest.$ac_ext
15717 LIBS=$ac_check_lib_save_LIBS
15718 fi
15719 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15720 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15721 if test $ac_cv_lib_gcc___alloca = yes; then
15722
15723 cat >>confdefs.h <<\_ACEOF
15724 #define HAVE___ALLOCA 1
15725 _ACEOF
15726
15727 fi
15728
15729   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15730 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15731 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15732   echo $ECHO_N "(cached) $ECHO_C" >&6
15733 else
15734   ac_check_lib_save_LIBS=$LIBS
15735 LIBS="-lgcc  $LIBS"
15736 cat >conftest.$ac_ext <<_ACEOF
15737 /* confdefs.h.  */
15738 _ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h.  */
15742
15743 /* Override any GCC internal prototype to avoid an error.
15744    Use char because int might match the return type of a GCC
15745    builtin and then its argument prototype would still apply.  */
15746 #ifdef __cplusplus
15747 extern "C"
15748 #endif
15749 char __chkstk ();
15750 int
15751 main ()
15752 {
15753 return __chkstk ();
15754   ;
15755   return 0;
15756 }
15757 _ACEOF
15758 rm -f conftest.$ac_objext conftest$ac_exeext
15759 if { (ac_try="$ac_link"
15760 case "(($ac_try" in
15761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15762   *) ac_try_echo=$ac_try;;
15763 esac
15764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15765   (eval "$ac_link") 2>conftest.er1
15766   ac_status=$?
15767   grep -v '^ *+' conftest.er1 >conftest.err
15768   rm -f conftest.er1
15769   cat conftest.err >&5
15770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771   (exit $ac_status); } &&
15772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15773   { (case "(($ac_try" in
15774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775   *) ac_try_echo=$ac_try;;
15776 esac
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778   (eval "$ac_try") 2>&5
15779   ac_status=$?
15780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781   (exit $ac_status); }; } &&
15782          { ac_try='test -s conftest$ac_exeext'
15783   { (case "(($ac_try" in
15784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785   *) ac_try_echo=$ac_try;;
15786 esac
15787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15788   (eval "$ac_try") 2>&5
15789   ac_status=$?
15790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791   (exit $ac_status); }; }; then
15792   ac_cv_lib_gcc___chkstk=yes
15793 else
15794   echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15796
15797         ac_cv_lib_gcc___chkstk=no
15798 fi
15799
15800 rm -f core conftest.err conftest.$ac_objext \
15801       conftest$ac_exeext conftest.$ac_ext
15802 LIBS=$ac_check_lib_save_LIBS
15803 fi
15804 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15805 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15806 if test $ac_cv_lib_gcc___chkstk = yes; then
15807
15808 cat >>confdefs.h <<\_ACEOF
15809 #define HAVE___CHKSTK 1
15810 _ACEOF
15811
15812 fi
15813
15814   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15815 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15816 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15817   echo $ECHO_N "(cached) $ECHO_C" >&6
15818 else
15819   ac_check_lib_save_LIBS=$LIBS
15820 LIBS="-lgcc  $LIBS"
15821 cat >conftest.$ac_ext <<_ACEOF
15822 /* confdefs.h.  */
15823 _ACEOF
15824 cat confdefs.h >>conftest.$ac_ext
15825 cat >>conftest.$ac_ext <<_ACEOF
15826 /* end confdefs.h.  */
15827
15828 /* Override any GCC internal prototype to avoid an error.
15829    Use char because int might match the return type of a GCC
15830    builtin and then its argument prototype would still apply.  */
15831 #ifdef __cplusplus
15832 extern "C"
15833 #endif
15834 char ___chkstk ();
15835 int
15836 main ()
15837 {
15838 return ___chkstk ();
15839   ;
15840   return 0;
15841 }
15842 _ACEOF
15843 rm -f conftest.$ac_objext conftest$ac_exeext
15844 if { (ac_try="$ac_link"
15845 case "(($ac_try" in
15846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847   *) ac_try_echo=$ac_try;;
15848 esac
15849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850   (eval "$ac_link") 2>conftest.er1
15851   ac_status=$?
15852   grep -v '^ *+' conftest.er1 >conftest.err
15853   rm -f conftest.er1
15854   cat conftest.err >&5
15855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856   (exit $ac_status); } &&
15857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15858   { (case "(($ac_try" in
15859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15860   *) ac_try_echo=$ac_try;;
15861 esac
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863   (eval "$ac_try") 2>&5
15864   ac_status=$?
15865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866   (exit $ac_status); }; } &&
15867          { ac_try='test -s conftest$ac_exeext'
15868   { (case "(($ac_try" in
15869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870   *) ac_try_echo=$ac_try;;
15871 esac
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873   (eval "$ac_try") 2>&5
15874   ac_status=$?
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); }; }; then
15877   ac_cv_lib_gcc____chkstk=yes
15878 else
15879   echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15881
15882         ac_cv_lib_gcc____chkstk=no
15883 fi
15884
15885 rm -f core conftest.err conftest.$ac_objext \
15886       conftest$ac_exeext conftest.$ac_ext
15887 LIBS=$ac_check_lib_save_LIBS
15888 fi
15889 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15890 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15891 if test $ac_cv_lib_gcc____chkstk = yes; then
15892
15893 cat >>confdefs.h <<\_ACEOF
15894 #define HAVE____CHKSTK 1
15895 _ACEOF
15896
15897 fi
15898
15899
15900   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15901 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15902 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15903   echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905   ac_check_lib_save_LIBS=$LIBS
15906 LIBS="-lgcc  $LIBS"
15907 cat >conftest.$ac_ext <<_ACEOF
15908 /* confdefs.h.  */
15909 _ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h.  */
15913
15914 /* Override any GCC internal prototype to avoid an error.
15915    Use char because int might match the return type of a GCC
15916    builtin and then its argument prototype would still apply.  */
15917 #ifdef __cplusplus
15918 extern "C"
15919 #endif
15920 char __ashldi3 ();
15921 int
15922 main ()
15923 {
15924 return __ashldi3 ();
15925   ;
15926   return 0;
15927 }
15928 _ACEOF
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (ac_try="$ac_link"
15931 case "(($ac_try" in
15932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933   *) ac_try_echo=$ac_try;;
15934 esac
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936   (eval "$ac_link") 2>conftest.er1
15937   ac_status=$?
15938   grep -v '^ *+' conftest.er1 >conftest.err
15939   rm -f conftest.er1
15940   cat conftest.err >&5
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); } &&
15943          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15944   { (case "(($ac_try" in
15945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946   *) ac_try_echo=$ac_try;;
15947 esac
15948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15949   (eval "$ac_try") 2>&5
15950   ac_status=$?
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); }; } &&
15953          { ac_try='test -s conftest$ac_exeext'
15954   { (case "(($ac_try" in
15955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956   *) ac_try_echo=$ac_try;;
15957 esac
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959   (eval "$ac_try") 2>&5
15960   ac_status=$?
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); }; }; then
15963   ac_cv_lib_gcc___ashldi3=yes
15964 else
15965   echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15967
15968         ac_cv_lib_gcc___ashldi3=no
15969 fi
15970
15971 rm -f core conftest.err conftest.$ac_objext \
15972       conftest$ac_exeext conftest.$ac_ext
15973 LIBS=$ac_check_lib_save_LIBS
15974 fi
15975 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15976 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15977 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15978
15979 cat >>confdefs.h <<\_ACEOF
15980 #define HAVE___ASHLDI3 1
15981 _ACEOF
15982
15983 fi
15984
15985   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15986 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15987 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15988   echo $ECHO_N "(cached) $ECHO_C" >&6
15989 else
15990   ac_check_lib_save_LIBS=$LIBS
15991 LIBS="-lgcc  $LIBS"
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h.  */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h.  */
15998
15999 /* Override any GCC internal prototype to avoid an error.
16000    Use char because int might match the return type of a GCC
16001    builtin and then its argument prototype would still apply.  */
16002 #ifdef __cplusplus
16003 extern "C"
16004 #endif
16005 char __ashrdi3 ();
16006 int
16007 main ()
16008 {
16009 return __ashrdi3 ();
16010   ;
16011   return 0;
16012 }
16013 _ACEOF
16014 rm -f conftest.$ac_objext conftest$ac_exeext
16015 if { (ac_try="$ac_link"
16016 case "(($ac_try" in
16017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018   *) ac_try_echo=$ac_try;;
16019 esac
16020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16021   (eval "$ac_link") 2>conftest.er1
16022   ac_status=$?
16023   grep -v '^ *+' conftest.er1 >conftest.err
16024   rm -f conftest.er1
16025   cat conftest.err >&5
16026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027   (exit $ac_status); } &&
16028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16029   { (case "(($ac_try" in
16030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031   *) ac_try_echo=$ac_try;;
16032 esac
16033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034   (eval "$ac_try") 2>&5
16035   ac_status=$?
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); }; } &&
16038          { ac_try='test -s conftest$ac_exeext'
16039   { (case "(($ac_try" in
16040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041   *) ac_try_echo=$ac_try;;
16042 esac
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044   (eval "$ac_try") 2>&5
16045   ac_status=$?
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); }; }; then
16048   ac_cv_lib_gcc___ashrdi3=yes
16049 else
16050   echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16052
16053         ac_cv_lib_gcc___ashrdi3=no
16054 fi
16055
16056 rm -f core conftest.err conftest.$ac_objext \
16057       conftest$ac_exeext conftest.$ac_ext
16058 LIBS=$ac_check_lib_save_LIBS
16059 fi
16060 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16061 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16062 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16063
16064 cat >>confdefs.h <<\_ACEOF
16065 #define HAVE___ASHRDI3 1
16066 _ACEOF
16067
16068 fi
16069
16070   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16071 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16072 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16073   echo $ECHO_N "(cached) $ECHO_C" >&6
16074 else
16075   ac_check_lib_save_LIBS=$LIBS
16076 LIBS="-lgcc  $LIBS"
16077 cat >conftest.$ac_ext <<_ACEOF
16078 /* confdefs.h.  */
16079 _ACEOF
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h.  */
16083
16084 /* Override any GCC internal prototype to avoid an error.
16085    Use char because int might match the return type of a GCC
16086    builtin and then its argument prototype would still apply.  */
16087 #ifdef __cplusplus
16088 extern "C"
16089 #endif
16090 char __divdi3 ();
16091 int
16092 main ()
16093 {
16094 return __divdi3 ();
16095   ;
16096   return 0;
16097 }
16098 _ACEOF
16099 rm -f conftest.$ac_objext conftest$ac_exeext
16100 if { (ac_try="$ac_link"
16101 case "(($ac_try" in
16102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103   *) ac_try_echo=$ac_try;;
16104 esac
16105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106   (eval "$ac_link") 2>conftest.er1
16107   ac_status=$?
16108   grep -v '^ *+' conftest.er1 >conftest.err
16109   rm -f conftest.er1
16110   cat conftest.err >&5
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); } &&
16113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16114   { (case "(($ac_try" in
16115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116   *) ac_try_echo=$ac_try;;
16117 esac
16118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119   (eval "$ac_try") 2>&5
16120   ac_status=$?
16121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122   (exit $ac_status); }; } &&
16123          { ac_try='test -s conftest$ac_exeext'
16124   { (case "(($ac_try" in
16125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16126   *) ac_try_echo=$ac_try;;
16127 esac
16128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16129   (eval "$ac_try") 2>&5
16130   ac_status=$?
16131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132   (exit $ac_status); }; }; then
16133   ac_cv_lib_gcc___divdi3=yes
16134 else
16135   echo "$as_me: failed program was:" >&5
16136 sed 's/^/| /' conftest.$ac_ext >&5
16137
16138         ac_cv_lib_gcc___divdi3=no
16139 fi
16140
16141 rm -f core conftest.err conftest.$ac_objext \
16142       conftest$ac_exeext conftest.$ac_ext
16143 LIBS=$ac_check_lib_save_LIBS
16144 fi
16145 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16146 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16147 if test $ac_cv_lib_gcc___divdi3 = yes; then
16148
16149 cat >>confdefs.h <<\_ACEOF
16150 #define HAVE___DIVDI3 1
16151 _ACEOF
16152
16153 fi
16154
16155   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16156 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16157 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16158   echo $ECHO_N "(cached) $ECHO_C" >&6
16159 else
16160   ac_check_lib_save_LIBS=$LIBS
16161 LIBS="-lgcc  $LIBS"
16162 cat >conftest.$ac_ext <<_ACEOF
16163 /* confdefs.h.  */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h.  */
16168
16169 /* Override any GCC internal prototype to avoid an error.
16170    Use char because int might match the return type of a GCC
16171    builtin and then its argument prototype would still apply.  */
16172 #ifdef __cplusplus
16173 extern "C"
16174 #endif
16175 char __fixdfdi ();
16176 int
16177 main ()
16178 {
16179 return __fixdfdi ();
16180   ;
16181   return 0;
16182 }
16183 _ACEOF
16184 rm -f conftest.$ac_objext conftest$ac_exeext
16185 if { (ac_try="$ac_link"
16186 case "(($ac_try" in
16187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188   *) ac_try_echo=$ac_try;;
16189 esac
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191   (eval "$ac_link") 2>conftest.er1
16192   ac_status=$?
16193   grep -v '^ *+' conftest.er1 >conftest.err
16194   rm -f conftest.er1
16195   cat conftest.err >&5
16196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197   (exit $ac_status); } &&
16198          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16199   { (case "(($ac_try" in
16200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201   *) ac_try_echo=$ac_try;;
16202 esac
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204   (eval "$ac_try") 2>&5
16205   ac_status=$?
16206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207   (exit $ac_status); }; } &&
16208          { ac_try='test -s conftest$ac_exeext'
16209   { (case "(($ac_try" in
16210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16211   *) ac_try_echo=$ac_try;;
16212 esac
16213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16214   (eval "$ac_try") 2>&5
16215   ac_status=$?
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); }; }; then
16218   ac_cv_lib_gcc___fixdfdi=yes
16219 else
16220   echo "$as_me: failed program was:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16222
16223         ac_cv_lib_gcc___fixdfdi=no
16224 fi
16225
16226 rm -f core conftest.err conftest.$ac_objext \
16227       conftest$ac_exeext conftest.$ac_ext
16228 LIBS=$ac_check_lib_save_LIBS
16229 fi
16230 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16231 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16232 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16233
16234 cat >>confdefs.h <<\_ACEOF
16235 #define HAVE___FIXDFDI 1
16236 _ACEOF
16237
16238 fi
16239
16240   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16241 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16242 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16243   echo $ECHO_N "(cached) $ECHO_C" >&6
16244 else
16245   ac_check_lib_save_LIBS=$LIBS
16246 LIBS="-lgcc  $LIBS"
16247 cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h.  */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h.  */
16253
16254 /* Override any GCC internal prototype to avoid an error.
16255    Use char because int might match the return type of a GCC
16256    builtin and then its argument prototype would still apply.  */
16257 #ifdef __cplusplus
16258 extern "C"
16259 #endif
16260 char __fixsfdi ();
16261 int
16262 main ()
16263 {
16264 return __fixsfdi ();
16265   ;
16266   return 0;
16267 }
16268 _ACEOF
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (ac_try="$ac_link"
16271 case "(($ac_try" in
16272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273   *) ac_try_echo=$ac_try;;
16274 esac
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276   (eval "$ac_link") 2>conftest.er1
16277   ac_status=$?
16278   grep -v '^ *+' conftest.er1 >conftest.err
16279   rm -f conftest.er1
16280   cat conftest.err >&5
16281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282   (exit $ac_status); } &&
16283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16284   { (case "(($ac_try" in
16285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286   *) ac_try_echo=$ac_try;;
16287 esac
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289   (eval "$ac_try") 2>&5
16290   ac_status=$?
16291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292   (exit $ac_status); }; } &&
16293          { ac_try='test -s conftest$ac_exeext'
16294   { (case "(($ac_try" in
16295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296   *) ac_try_echo=$ac_try;;
16297 esac
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299   (eval "$ac_try") 2>&5
16300   ac_status=$?
16301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302   (exit $ac_status); }; }; then
16303   ac_cv_lib_gcc___fixsfdi=yes
16304 else
16305   echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16307
16308         ac_cv_lib_gcc___fixsfdi=no
16309 fi
16310
16311 rm -f core conftest.err conftest.$ac_objext \
16312       conftest$ac_exeext conftest.$ac_ext
16313 LIBS=$ac_check_lib_save_LIBS
16314 fi
16315 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16316 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16317 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16318
16319 cat >>confdefs.h <<\_ACEOF
16320 #define HAVE___FIXSFDI 1
16321 _ACEOF
16322
16323 fi
16324
16325   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16326 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16327 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16328   echo $ECHO_N "(cached) $ECHO_C" >&6
16329 else
16330   ac_check_lib_save_LIBS=$LIBS
16331 LIBS="-lgcc  $LIBS"
16332 cat >conftest.$ac_ext <<_ACEOF
16333 /* confdefs.h.  */
16334 _ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h.  */
16338
16339 /* Override any GCC internal prototype to avoid an error.
16340    Use char because int might match the return type of a GCC
16341    builtin and then its argument prototype would still apply.  */
16342 #ifdef __cplusplus
16343 extern "C"
16344 #endif
16345 char __floatdidf ();
16346 int
16347 main ()
16348 {
16349 return __floatdidf ();
16350   ;
16351   return 0;
16352 }
16353 _ACEOF
16354 rm -f conftest.$ac_objext conftest$ac_exeext
16355 if { (ac_try="$ac_link"
16356 case "(($ac_try" in
16357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16358   *) ac_try_echo=$ac_try;;
16359 esac
16360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16361   (eval "$ac_link") 2>conftest.er1
16362   ac_status=$?
16363   grep -v '^ *+' conftest.er1 >conftest.err
16364   rm -f conftest.er1
16365   cat conftest.err >&5
16366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16367   (exit $ac_status); } &&
16368          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16369   { (case "(($ac_try" in
16370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371   *) ac_try_echo=$ac_try;;
16372 esac
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374   (eval "$ac_try") 2>&5
16375   ac_status=$?
16376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377   (exit $ac_status); }; } &&
16378          { ac_try='test -s conftest$ac_exeext'
16379   { (case "(($ac_try" in
16380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381   *) ac_try_echo=$ac_try;;
16382 esac
16383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16384   (eval "$ac_try") 2>&5
16385   ac_status=$?
16386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387   (exit $ac_status); }; }; then
16388   ac_cv_lib_gcc___floatdidf=yes
16389 else
16390   echo "$as_me: failed program was:" >&5
16391 sed 's/^/| /' conftest.$ac_ext >&5
16392
16393         ac_cv_lib_gcc___floatdidf=no
16394 fi
16395
16396 rm -f core conftest.err conftest.$ac_objext \
16397       conftest$ac_exeext conftest.$ac_ext
16398 LIBS=$ac_check_lib_save_LIBS
16399 fi
16400 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16401 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16402 if test $ac_cv_lib_gcc___floatdidf = yes; then
16403
16404 cat >>confdefs.h <<\_ACEOF
16405 #define HAVE___FLOATDIDF 1
16406 _ACEOF
16407
16408 fi
16409
16410   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16411 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16412 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16413   echo $ECHO_N "(cached) $ECHO_C" >&6
16414 else
16415   ac_check_lib_save_LIBS=$LIBS
16416 LIBS="-lgcc  $LIBS"
16417 cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h.  */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h.  */
16423
16424 /* Override any GCC internal prototype to avoid an error.
16425    Use char because int might match the return type of a GCC
16426    builtin and then its argument prototype would still apply.  */
16427 #ifdef __cplusplus
16428 extern "C"
16429 #endif
16430 char __lshrdi3 ();
16431 int
16432 main ()
16433 {
16434 return __lshrdi3 ();
16435   ;
16436   return 0;
16437 }
16438 _ACEOF
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (ac_try="$ac_link"
16441 case "(($ac_try" in
16442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443   *) ac_try_echo=$ac_try;;
16444 esac
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446   (eval "$ac_link") 2>conftest.er1
16447   ac_status=$?
16448   grep -v '^ *+' conftest.er1 >conftest.err
16449   rm -f conftest.er1
16450   cat conftest.err >&5
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); } &&
16453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16454   { (case "(($ac_try" in
16455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456   *) ac_try_echo=$ac_try;;
16457 esac
16458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16459   (eval "$ac_try") 2>&5
16460   ac_status=$?
16461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462   (exit $ac_status); }; } &&
16463          { ac_try='test -s conftest$ac_exeext'
16464   { (case "(($ac_try" in
16465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16466   *) ac_try_echo=$ac_try;;
16467 esac
16468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16469   (eval "$ac_try") 2>&5
16470   ac_status=$?
16471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472   (exit $ac_status); }; }; then
16473   ac_cv_lib_gcc___lshrdi3=yes
16474 else
16475   echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16477
16478         ac_cv_lib_gcc___lshrdi3=no
16479 fi
16480
16481 rm -f core conftest.err conftest.$ac_objext \
16482       conftest$ac_exeext conftest.$ac_ext
16483 LIBS=$ac_check_lib_save_LIBS
16484 fi
16485 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16486 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16487 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16488
16489 cat >>confdefs.h <<\_ACEOF
16490 #define HAVE___LSHRDI3 1
16491 _ACEOF
16492
16493 fi
16494
16495   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16496 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16497 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16498   echo $ECHO_N "(cached) $ECHO_C" >&6
16499 else
16500   ac_check_lib_save_LIBS=$LIBS
16501 LIBS="-lgcc  $LIBS"
16502 cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h.  */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h.  */
16508
16509 /* Override any GCC internal prototype to avoid an error.
16510    Use char because int might match the return type of a GCC
16511    builtin and then its argument prototype would still apply.  */
16512 #ifdef __cplusplus
16513 extern "C"
16514 #endif
16515 char __moddi3 ();
16516 int
16517 main ()
16518 {
16519 return __moddi3 ();
16520   ;
16521   return 0;
16522 }
16523 _ACEOF
16524 rm -f conftest.$ac_objext conftest$ac_exeext
16525 if { (ac_try="$ac_link"
16526 case "(($ac_try" in
16527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528   *) ac_try_echo=$ac_try;;
16529 esac
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531   (eval "$ac_link") 2>conftest.er1
16532   ac_status=$?
16533   grep -v '^ *+' conftest.er1 >conftest.err
16534   rm -f conftest.er1
16535   cat conftest.err >&5
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); } &&
16538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16539   { (case "(($ac_try" in
16540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541   *) ac_try_echo=$ac_try;;
16542 esac
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544   (eval "$ac_try") 2>&5
16545   ac_status=$?
16546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547   (exit $ac_status); }; } &&
16548          { ac_try='test -s conftest$ac_exeext'
16549   { (case "(($ac_try" in
16550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551   *) ac_try_echo=$ac_try;;
16552 esac
16553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554   (eval "$ac_try") 2>&5
16555   ac_status=$?
16556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557   (exit $ac_status); }; }; then
16558   ac_cv_lib_gcc___moddi3=yes
16559 else
16560   echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16562
16563         ac_cv_lib_gcc___moddi3=no
16564 fi
16565
16566 rm -f core conftest.err conftest.$ac_objext \
16567       conftest$ac_exeext conftest.$ac_ext
16568 LIBS=$ac_check_lib_save_LIBS
16569 fi
16570 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16571 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16572 if test $ac_cv_lib_gcc___moddi3 = yes; then
16573
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE___MODDI3 1
16576 _ACEOF
16577
16578 fi
16579
16580   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16581 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16582 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16583   echo $ECHO_N "(cached) $ECHO_C" >&6
16584 else
16585   ac_check_lib_save_LIBS=$LIBS
16586 LIBS="-lgcc  $LIBS"
16587 cat >conftest.$ac_ext <<_ACEOF
16588 /* confdefs.h.  */
16589 _ACEOF
16590 cat confdefs.h >>conftest.$ac_ext
16591 cat >>conftest.$ac_ext <<_ACEOF
16592 /* end confdefs.h.  */
16593
16594 /* Override any GCC internal prototype to avoid an error.
16595    Use char because int might match the return type of a GCC
16596    builtin and then its argument prototype would still apply.  */
16597 #ifdef __cplusplus
16598 extern "C"
16599 #endif
16600 char __udivdi3 ();
16601 int
16602 main ()
16603 {
16604 return __udivdi3 ();
16605   ;
16606   return 0;
16607 }
16608 _ACEOF
16609 rm -f conftest.$ac_objext conftest$ac_exeext
16610 if { (ac_try="$ac_link"
16611 case "(($ac_try" in
16612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613   *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616   (eval "$ac_link") 2>conftest.er1
16617   ac_status=$?
16618   grep -v '^ *+' conftest.er1 >conftest.err
16619   rm -f conftest.er1
16620   cat conftest.err >&5
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); } &&
16623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16624   { (case "(($ac_try" in
16625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16626   *) ac_try_echo=$ac_try;;
16627 esac
16628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16629   (eval "$ac_try") 2>&5
16630   ac_status=$?
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); }; } &&
16633          { ac_try='test -s conftest$ac_exeext'
16634   { (case "(($ac_try" in
16635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636   *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639   (eval "$ac_try") 2>&5
16640   ac_status=$?
16641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642   (exit $ac_status); }; }; then
16643   ac_cv_lib_gcc___udivdi3=yes
16644 else
16645   echo "$as_me: failed program was:" >&5
16646 sed 's/^/| /' conftest.$ac_ext >&5
16647
16648         ac_cv_lib_gcc___udivdi3=no
16649 fi
16650
16651 rm -f core conftest.err conftest.$ac_objext \
16652       conftest$ac_exeext conftest.$ac_ext
16653 LIBS=$ac_check_lib_save_LIBS
16654 fi
16655 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16656 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16657 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16658
16659 cat >>confdefs.h <<\_ACEOF
16660 #define HAVE___UDIVDI3 1
16661 _ACEOF
16662
16663 fi
16664
16665   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16666 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16667 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16668   echo $ECHO_N "(cached) $ECHO_C" >&6
16669 else
16670   ac_check_lib_save_LIBS=$LIBS
16671 LIBS="-lgcc  $LIBS"
16672 cat >conftest.$ac_ext <<_ACEOF
16673 /* confdefs.h.  */
16674 _ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h.  */
16678
16679 /* Override any GCC internal prototype to avoid an error.
16680    Use char because int might match the return type of a GCC
16681    builtin and then its argument prototype would still apply.  */
16682 #ifdef __cplusplus
16683 extern "C"
16684 #endif
16685 char __umoddi3 ();
16686 int
16687 main ()
16688 {
16689 return __umoddi3 ();
16690   ;
16691   return 0;
16692 }
16693 _ACEOF
16694 rm -f conftest.$ac_objext conftest$ac_exeext
16695 if { (ac_try="$ac_link"
16696 case "(($ac_try" in
16697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698   *) ac_try_echo=$ac_try;;
16699 esac
16700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701   (eval "$ac_link") 2>conftest.er1
16702   ac_status=$?
16703   grep -v '^ *+' conftest.er1 >conftest.err
16704   rm -f conftest.er1
16705   cat conftest.err >&5
16706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707   (exit $ac_status); } &&
16708          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16709   { (case "(($ac_try" in
16710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16711   *) ac_try_echo=$ac_try;;
16712 esac
16713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16714   (eval "$ac_try") 2>&5
16715   ac_status=$?
16716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16717   (exit $ac_status); }; } &&
16718          { ac_try='test -s conftest$ac_exeext'
16719   { (case "(($ac_try" in
16720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16721   *) ac_try_echo=$ac_try;;
16722 esac
16723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16724   (eval "$ac_try") 2>&5
16725   ac_status=$?
16726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16727   (exit $ac_status); }; }; then
16728   ac_cv_lib_gcc___umoddi3=yes
16729 else
16730   echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16732
16733         ac_cv_lib_gcc___umoddi3=no
16734 fi
16735
16736 rm -f core conftest.err conftest.$ac_objext \
16737       conftest$ac_exeext conftest.$ac_ext
16738 LIBS=$ac_check_lib_save_LIBS
16739 fi
16740 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16741 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16742 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16743
16744 cat >>confdefs.h <<\_ACEOF
16745 #define HAVE___UMODDI3 1
16746 _ACEOF
16747
16748 fi
16749
16750
16751   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16752 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16753 if test "${ac_cv_lib_gcc___main+set}" = set; then
16754   echo $ECHO_N "(cached) $ECHO_C" >&6
16755 else
16756   ac_check_lib_save_LIBS=$LIBS
16757 LIBS="-lgcc  $LIBS"
16758 cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h.  */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h.  */
16764
16765 /* Override any GCC internal prototype to avoid an error.
16766    Use char because int might match the return type of a GCC
16767    builtin and then its argument prototype would still apply.  */
16768 #ifdef __cplusplus
16769 extern "C"
16770 #endif
16771 char __main ();
16772 int
16773 main ()
16774 {
16775 return __main ();
16776   ;
16777   return 0;
16778 }
16779 _ACEOF
16780 rm -f conftest.$ac_objext conftest$ac_exeext
16781 if { (ac_try="$ac_link"
16782 case "(($ac_try" in
16783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784   *) ac_try_echo=$ac_try;;
16785 esac
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787   (eval "$ac_link") 2>conftest.er1
16788   ac_status=$?
16789   grep -v '^ *+' conftest.er1 >conftest.err
16790   rm -f conftest.er1
16791   cat conftest.err >&5
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); } &&
16794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16795   { (case "(($ac_try" in
16796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797   *) ac_try_echo=$ac_try;;
16798 esac
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800   (eval "$ac_try") 2>&5
16801   ac_status=$?
16802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803   (exit $ac_status); }; } &&
16804          { ac_try='test -s conftest$ac_exeext'
16805   { (case "(($ac_try" in
16806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807   *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810   (eval "$ac_try") 2>&5
16811   ac_status=$?
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); }; }; then
16814   ac_cv_lib_gcc___main=yes
16815 else
16816   echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16818
16819         ac_cv_lib_gcc___main=no
16820 fi
16821
16822 rm -f core conftest.err conftest.$ac_objext \
16823       conftest$ac_exeext conftest.$ac_ext
16824 LIBS=$ac_check_lib_save_LIBS
16825 fi
16826 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16827 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16828 if test $ac_cv_lib_gcc___main = yes; then
16829
16830 cat >>confdefs.h <<\_ACEOF
16831 #define HAVE___MAIN 1
16832 _ACEOF
16833
16834 fi
16835
16836   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16837 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16838 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16839   echo $ECHO_N "(cached) $ECHO_C" >&6
16840 else
16841   ac_check_lib_save_LIBS=$LIBS
16842 LIBS="-lgcc  $LIBS"
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h.  */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h.  */
16849
16850 /* Override any GCC internal prototype to avoid an error.
16851    Use char because int might match the return type of a GCC
16852    builtin and then its argument prototype would still apply.  */
16853 #ifdef __cplusplus
16854 extern "C"
16855 #endif
16856 char __cmpdi2 ();
16857 int
16858 main ()
16859 {
16860 return __cmpdi2 ();
16861   ;
16862   return 0;
16863 }
16864 _ACEOF
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (ac_try="$ac_link"
16867 case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_link") 2>conftest.er1
16873   ac_status=$?
16874   grep -v '^ *+' conftest.er1 >conftest.err
16875   rm -f conftest.er1
16876   cat conftest.err >&5
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); } &&
16879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16880   { (case "(($ac_try" in
16881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882   *) ac_try_echo=$ac_try;;
16883 esac
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885   (eval "$ac_try") 2>&5
16886   ac_status=$?
16887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888   (exit $ac_status); }; } &&
16889          { ac_try='test -s conftest$ac_exeext'
16890   { (case "(($ac_try" in
16891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892   *) ac_try_echo=$ac_try;;
16893 esac
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895   (eval "$ac_try") 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); }; }; then
16899   ac_cv_lib_gcc___cmpdi2=yes
16900 else
16901   echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16903
16904         ac_cv_lib_gcc___cmpdi2=no
16905 fi
16906
16907 rm -f core conftest.err conftest.$ac_objext \
16908       conftest$ac_exeext conftest.$ac_ext
16909 LIBS=$ac_check_lib_save_LIBS
16910 fi
16911 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16912 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16913 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16914
16915 cat >>confdefs.h <<\_ACEOF
16916 #define HAVE___CMPDI2 1
16917 _ACEOF
16918
16919 fi
16920
16921 fi
16922
16923 if test "$llvm_cv_os_type" = "MingW" ; then
16924   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16925 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16926   cat >conftest.$ac_ext <<_ACEOF
16927
16928   /* confdefs.h.  */
16929 _ACEOF
16930 cat confdefs.h >>conftest.$ac_ext
16931 cat >>conftest.$ac_ext <<_ACEOF
16932 /* end confdefs.h.  */
16933
16934     #include <windows.h>
16935     #include <imagehlp.h>
16936     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16937     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16938
16939
16940 _ACEOF
16941 rm -f conftest.$ac_objext
16942 if { (ac_try="$ac_compile"
16943 case "(($ac_try" in
16944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945   *) ac_try_echo=$ac_try;;
16946 esac
16947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948   (eval "$ac_compile") 2>conftest.er1
16949   ac_status=$?
16950   grep -v '^ *+' conftest.er1 >conftest.err
16951   rm -f conftest.er1
16952   cat conftest.err >&5
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); } &&
16955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16956   { (case "(($ac_try" in
16957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958   *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961   (eval "$ac_try") 2>&5
16962   ac_status=$?
16963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964   (exit $ac_status); }; } &&
16965          { ac_try='test -s conftest.$ac_objext'
16966   { (case "(($ac_try" in
16967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968   *) ac_try_echo=$ac_try;;
16969 esac
16970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971   (eval "$ac_try") 2>&5
16972   ac_status=$?
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); }; }; then
16975
16976   { echo "$as_me:$LINENO: result: yes" >&5
16977 echo "${ECHO_T}yes" >&6; }
16978   llvm_cv_win32_elmcb_pcstr="PCSTR"
16979
16980 else
16981   echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984
16985   { echo "$as_me:$LINENO: result: no" >&5
16986 echo "${ECHO_T}no" >&6; }
16987   llvm_cv_win32_elmcb_pcstr="PSTR"
16988
16989 fi
16990
16991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16992
16993 cat >>confdefs.h <<_ACEOF
16994 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16995 _ACEOF
16996
16997 fi
16998
16999
17000
17001   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17002 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17003 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17004   echo $ECHO_N "(cached) $ECHO_C" >&6
17005 else
17006
17007     ac_ext=cpp
17008 ac_cpp='$CXXCPP $CPPFLAGS'
17009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17012
17013     cat >conftest.$ac_ext <<_ACEOF
17014 /* confdefs.h.  */
17015 _ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h.  */
17019 #include <math.h>
17020 int
17021 main ()
17022 {
17023 float f; isnan(f);
17024   ;
17025   return 0;
17026 }
17027 _ACEOF
17028 rm -f conftest.$ac_objext
17029 if { (ac_try="$ac_compile"
17030 case "(($ac_try" in
17031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17032   *) ac_try_echo=$ac_try;;
17033 esac
17034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17035   (eval "$ac_compile") 2>conftest.er1
17036   ac_status=$?
17037   grep -v '^ *+' conftest.er1 >conftest.err
17038   rm -f conftest.er1
17039   cat conftest.err >&5
17040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041   (exit $ac_status); } &&
17042          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17043   { (case "(($ac_try" in
17044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045   *) ac_try_echo=$ac_try;;
17046 esac
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048   (eval "$ac_try") 2>&5
17049   ac_status=$?
17050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051   (exit $ac_status); }; } &&
17052          { ac_try='test -s conftest.$ac_objext'
17053   { (case "(($ac_try" in
17054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055   *) ac_try_echo=$ac_try;;
17056 esac
17057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17058   (eval "$ac_try") 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; }; then
17062   ac_cv_func_isnan_in_math_h=yes
17063 else
17064   echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067         ac_cv_func_isnan_in_math_h=no
17068 fi
17069
17070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17071     ac_ext=c
17072 ac_cpp='$CPP $CPPFLAGS'
17073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17076
17077
17078 fi
17079 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17080 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17081
17082
17083 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17084
17085 cat >>confdefs.h <<\_ACEOF
17086 #define HAVE_ISNAN_IN_MATH_H 1
17087 _ACEOF
17088
17089 fi
17090
17091
17092   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17093 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17094 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17095   echo $ECHO_N "(cached) $ECHO_C" >&6
17096 else
17097
17098     ac_ext=cpp
17099 ac_cpp='$CXXCPP $CPPFLAGS'
17100 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17101 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17102 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17103
17104     cat >conftest.$ac_ext <<_ACEOF
17105 /* confdefs.h.  */
17106 _ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h.  */
17110 #include <cmath>
17111 int
17112 main ()
17113 {
17114 float f; isnan(f);
17115   ;
17116   return 0;
17117 }
17118 _ACEOF
17119 rm -f conftest.$ac_objext
17120 if { (ac_try="$ac_compile"
17121 case "(($ac_try" in
17122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123   *) ac_try_echo=$ac_try;;
17124 esac
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126   (eval "$ac_compile") 2>conftest.er1
17127   ac_status=$?
17128   grep -v '^ *+' conftest.er1 >conftest.err
17129   rm -f conftest.er1
17130   cat conftest.err >&5
17131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132   (exit $ac_status); } &&
17133          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17134   { (case "(($ac_try" in
17135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136   *) ac_try_echo=$ac_try;;
17137 esac
17138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17139   (eval "$ac_try") 2>&5
17140   ac_status=$?
17141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); }; } &&
17143          { ac_try='test -s conftest.$ac_objext'
17144   { (case "(($ac_try" in
17145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17146   *) ac_try_echo=$ac_try;;
17147 esac
17148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17149   (eval "$ac_try") 2>&5
17150   ac_status=$?
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); }; }; then
17153   ac_cv_func_isnan_in_cmath=yes
17154 else
17155   echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17157
17158         ac_cv_func_isnan_in_cmath=no
17159 fi
17160
17161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17162     ac_ext=c
17163 ac_cpp='$CPP $CPPFLAGS'
17164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17167
17168
17169 fi
17170 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17171 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17172
17173 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17174
17175 cat >>confdefs.h <<\_ACEOF
17176 #define HAVE_ISNAN_IN_CMATH 1
17177 _ACEOF
17178
17179 fi
17180
17181
17182   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17183 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17184 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17185   echo $ECHO_N "(cached) $ECHO_C" >&6
17186 else
17187
17188     ac_ext=cpp
17189 ac_cpp='$CXXCPP $CPPFLAGS'
17190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17193
17194     cat >conftest.$ac_ext <<_ACEOF
17195 /* confdefs.h.  */
17196 _ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h.  */
17200 #include <cmath>
17201 int
17202 main ()
17203 {
17204 float f; std::isnan(f);
17205   ;
17206   return 0;
17207 }
17208 _ACEOF
17209 rm -f conftest.$ac_objext
17210 if { (ac_try="$ac_compile"
17211 case "(($ac_try" in
17212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213   *) ac_try_echo=$ac_try;;
17214 esac
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216   (eval "$ac_compile") 2>conftest.er1
17217   ac_status=$?
17218   grep -v '^ *+' conftest.er1 >conftest.err
17219   rm -f conftest.er1
17220   cat conftest.err >&5
17221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222   (exit $ac_status); } &&
17223          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17224   { (case "(($ac_try" in
17225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17226   *) ac_try_echo=$ac_try;;
17227 esac
17228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17229   (eval "$ac_try") 2>&5
17230   ac_status=$?
17231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232   (exit $ac_status); }; } &&
17233          { ac_try='test -s conftest.$ac_objext'
17234   { (case "(($ac_try" in
17235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236   *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239   (eval "$ac_try") 2>&5
17240   ac_status=$?
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); }; }; then
17243   ac_cv_func_std_isnan_in_cmath=yes
17244 else
17245   echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248         ac_cv_func_std_isnan_in_cmath=no
17249 fi
17250
17251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17252     ac_ext=c
17253 ac_cpp='$CPP $CPPFLAGS'
17254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17257
17258
17259 fi
17260 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17261 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17262
17263 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17264
17265 cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_STD_ISNAN_IN_CMATH 1
17267 _ACEOF
17268
17269 fi
17270
17271
17272
17273
17274   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17275 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17276 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17277   echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279
17280     ac_ext=cpp
17281 ac_cpp='$CXXCPP $CPPFLAGS'
17282 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17283 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17284 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17285
17286     cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h.  */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h.  */
17292 #include <math.h>
17293 int
17294 main ()
17295 {
17296 float f; isinf(f);
17297   ;
17298   return 0;
17299 }
17300 _ACEOF
17301 rm -f conftest.$ac_objext
17302 if { (ac_try="$ac_compile"
17303 case "(($ac_try" in
17304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305   *) ac_try_echo=$ac_try;;
17306 esac
17307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17308   (eval "$ac_compile") 2>conftest.er1
17309   ac_status=$?
17310   grep -v '^ *+' conftest.er1 >conftest.err
17311   rm -f conftest.er1
17312   cat conftest.err >&5
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); } &&
17315          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17316   { (case "(($ac_try" in
17317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318   *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321   (eval "$ac_try") 2>&5
17322   ac_status=$?
17323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17324   (exit $ac_status); }; } &&
17325          { ac_try='test -s conftest.$ac_objext'
17326   { (case "(($ac_try" in
17327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328   *) ac_try_echo=$ac_try;;
17329 esac
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331   (eval "$ac_try") 2>&5
17332   ac_status=$?
17333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334   (exit $ac_status); }; }; then
17335   ac_cv_func_isinf_in_math_h=yes
17336 else
17337   echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340         ac_cv_func_isinf_in_math_h=no
17341 fi
17342
17343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17344     ac_ext=c
17345 ac_cpp='$CPP $CPPFLAGS'
17346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17349
17350
17351 fi
17352 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17353 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17354
17355 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17356
17357 cat >>confdefs.h <<\_ACEOF
17358 #define HAVE_ISINF_IN_MATH_H 1
17359 _ACEOF
17360
17361 fi
17362
17363
17364   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17365 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17366 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17367   echo $ECHO_N "(cached) $ECHO_C" >&6
17368 else
17369
17370     ac_ext=cpp
17371 ac_cpp='$CXXCPP $CPPFLAGS'
17372 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17373 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17374 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17375
17376     cat >conftest.$ac_ext <<_ACEOF
17377 /* confdefs.h.  */
17378 _ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h.  */
17382 #include <cmath>
17383 int
17384 main ()
17385 {
17386 float f; isinf(f);
17387   ;
17388   return 0;
17389 }
17390 _ACEOF
17391 rm -f conftest.$ac_objext
17392 if { (ac_try="$ac_compile"
17393 case "(($ac_try" in
17394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395   *) ac_try_echo=$ac_try;;
17396 esac
17397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17398   (eval "$ac_compile") 2>conftest.er1
17399   ac_status=$?
17400   grep -v '^ *+' conftest.er1 >conftest.err
17401   rm -f conftest.er1
17402   cat conftest.err >&5
17403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404   (exit $ac_status); } &&
17405          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17406   { (case "(($ac_try" in
17407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408   *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411   (eval "$ac_try") 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); }; } &&
17415          { ac_try='test -s conftest.$ac_objext'
17416   { (case "(($ac_try" in
17417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418   *) ac_try_echo=$ac_try;;
17419 esac
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421   (eval "$ac_try") 2>&5
17422   ac_status=$?
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); }; }; then
17425   ac_cv_func_isinf_in_cmath=yes
17426 else
17427   echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17429
17430         ac_cv_func_isinf_in_cmath=no
17431 fi
17432
17433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17434     ac_ext=c
17435 ac_cpp='$CPP $CPPFLAGS'
17436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17439
17440
17441 fi
17442 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
17443 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
17444
17445 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
17446
17447 cat >>confdefs.h <<\_ACEOF
17448 #define HAVE_ISINF_IN_CMATH 1
17449 _ACEOF
17450
17451 fi
17452
17453
17454   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
17455 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
17456 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
17457   echo $ECHO_N "(cached) $ECHO_C" >&6
17458 else
17459
17460     ac_ext=cpp
17461 ac_cpp='$CXXCPP $CPPFLAGS'
17462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17465
17466     cat >conftest.$ac_ext <<_ACEOF
17467 /* confdefs.h.  */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h.  */
17472 #include <cmath>
17473 int
17474 main ()
17475 {
17476 float f; std::isinf(f);
17477   ;
17478   return 0;
17479 }
17480 _ACEOF
17481 rm -f conftest.$ac_objext
17482 if { (ac_try="$ac_compile"
17483 case "(($ac_try" in
17484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485   *) ac_try_echo=$ac_try;;
17486 esac
17487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17488   (eval "$ac_compile") 2>conftest.er1
17489   ac_status=$?
17490   grep -v '^ *+' conftest.er1 >conftest.err
17491   rm -f conftest.er1
17492   cat conftest.err >&5
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); } &&
17495          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17496   { (case "(($ac_try" in
17497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17498   *) ac_try_echo=$ac_try;;
17499 esac
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501   (eval "$ac_try") 2>&5
17502   ac_status=$?
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); }; } &&
17505          { ac_try='test -s conftest.$ac_objext'
17506   { (case "(($ac_try" in
17507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508   *) ac_try_echo=$ac_try;;
17509 esac
17510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17511   (eval "$ac_try") 2>&5
17512   ac_status=$?
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); }; }; then
17515   ac_cv_func_std_isinf_in_cmath=yes
17516 else
17517   echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17519
17520         ac_cv_func_std_isinf_in_cmath=no
17521 fi
17522
17523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17524     ac_ext=c
17525 ac_cpp='$CPP $CPPFLAGS'
17526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17529
17530
17531 fi
17532 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
17533 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
17534
17535 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
17536
17537 cat >>confdefs.h <<\_ACEOF
17538 #define HAVE_STD_ISINF_IN_CMATH 1
17539 _ACEOF
17540
17541 fi
17542
17543
17544   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
17545 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
17546 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
17547   echo $ECHO_N "(cached) $ECHO_C" >&6
17548 else
17549
17550     ac_ext=cpp
17551 ac_cpp='$CXXCPP $CPPFLAGS'
17552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17555
17556     cat >conftest.$ac_ext <<_ACEOF
17557 /* confdefs.h.  */
17558 _ACEOF
17559 cat confdefs.h >>conftest.$ac_ext
17560 cat >>conftest.$ac_ext <<_ACEOF
17561 /* end confdefs.h.  */
17562 #include <ieeefp.h>
17563 int
17564 main ()
17565 {
17566 float f; finite(f);
17567   ;
17568   return 0;
17569 }
17570 _ACEOF
17571 rm -f conftest.$ac_objext
17572 if { (ac_try="$ac_compile"
17573 case "(($ac_try" in
17574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575   *) ac_try_echo=$ac_try;;
17576 esac
17577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17578   (eval "$ac_compile") 2>conftest.er1
17579   ac_status=$?
17580   grep -v '^ *+' conftest.er1 >conftest.err
17581   rm -f conftest.er1
17582   cat conftest.err >&5
17583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584   (exit $ac_status); } &&
17585          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17586   { (case "(($ac_try" in
17587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588   *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591   (eval "$ac_try") 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); }; } &&
17595          { ac_try='test -s conftest.$ac_objext'
17596   { (case "(($ac_try" in
17597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598   *) ac_try_echo=$ac_try;;
17599 esac
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601   (eval "$ac_try") 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); }; }; then
17605   ac_cv_func_finite_in_ieeefp_h=yes
17606 else
17607   echo "$as_me: failed program was:" >&5
17608 sed 's/^/| /' conftest.$ac_ext >&5
17609
17610         ac_cv_func_finite_in_ieeefp_h=no
17611 fi
17612
17613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17614     ac_ext=c
17615 ac_cpp='$CPP $CPPFLAGS'
17616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17619
17620
17621 fi
17622 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
17623 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
17624
17625 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
17626
17627 cat >>confdefs.h <<\_ACEOF
17628 #define HAVE_FINITE_IN_IEEEFP_H 1
17629 _ACEOF
17630
17631 fi
17632
17633
17634
17635 if test "$llvm_cv_platform_type" = "Unix" ; then
17636
17637
17638 for ac_header in stdlib.h unistd.h
17639 do
17640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17642   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17645   echo $ECHO_N "(cached) $ECHO_C" >&6
17646 fi
17647 ac_res=`eval echo '${'$as_ac_Header'}'`
17648                { echo "$as_me:$LINENO: result: $ac_res" >&5
17649 echo "${ECHO_T}$ac_res" >&6; }
17650 else
17651   # Is the header compilable?
17652 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17654 cat >conftest.$ac_ext <<_ACEOF
17655 /* confdefs.h.  */
17656 _ACEOF
17657 cat confdefs.h >>conftest.$ac_ext
17658 cat >>conftest.$ac_ext <<_ACEOF
17659 /* end confdefs.h.  */
17660 $ac_includes_default
17661 #include <$ac_header>
17662 _ACEOF
17663 rm -f conftest.$ac_objext
17664 if { (ac_try="$ac_compile"
17665 case "(($ac_try" in
17666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667   *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670   (eval "$ac_compile") 2>conftest.er1
17671   ac_status=$?
17672   grep -v '^ *+' conftest.er1 >conftest.err
17673   rm -f conftest.er1
17674   cat conftest.err >&5
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); } &&
17677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17678   { (case "(($ac_try" in
17679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680   *) ac_try_echo=$ac_try;;
17681 esac
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683   (eval "$ac_try") 2>&5
17684   ac_status=$?
17685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686   (exit $ac_status); }; } &&
17687          { ac_try='test -s conftest.$ac_objext'
17688   { (case "(($ac_try" in
17689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690   *) ac_try_echo=$ac_try;;
17691 esac
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693   (eval "$ac_try") 2>&5
17694   ac_status=$?
17695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696   (exit $ac_status); }; }; then
17697   ac_header_compiler=yes
17698 else
17699   echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17701
17702         ac_header_compiler=no
17703 fi
17704
17705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17707 echo "${ECHO_T}$ac_header_compiler" >&6; }
17708
17709 # Is the header present?
17710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17712 cat >conftest.$ac_ext <<_ACEOF
17713 /* confdefs.h.  */
17714 _ACEOF
17715 cat confdefs.h >>conftest.$ac_ext
17716 cat >>conftest.$ac_ext <<_ACEOF
17717 /* end confdefs.h.  */
17718 #include <$ac_header>
17719 _ACEOF
17720 if { (ac_try="$ac_cpp conftest.$ac_ext"
17721 case "(($ac_try" in
17722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723   *) ac_try_echo=$ac_try;;
17724 esac
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17727   ac_status=$?
17728   grep -v '^ *+' conftest.er1 >conftest.err
17729   rm -f conftest.er1
17730   cat conftest.err >&5
17731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732   (exit $ac_status); } >/dev/null; then
17733   if test -s conftest.err; then
17734     ac_cpp_err=$ac_c_preproc_warn_flag
17735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17736   else
17737     ac_cpp_err=
17738   fi
17739 else
17740   ac_cpp_err=yes
17741 fi
17742 if test -z "$ac_cpp_err"; then
17743   ac_header_preproc=yes
17744 else
17745   echo "$as_me: failed program was:" >&5
17746 sed 's/^/| /' conftest.$ac_ext >&5
17747
17748   ac_header_preproc=no
17749 fi
17750
17751 rm -f conftest.err conftest.$ac_ext
17752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17753 echo "${ECHO_T}$ac_header_preproc" >&6; }
17754
17755 # So?  What about this header?
17756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17757   yes:no: )
17758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17762     ac_header_preproc=yes
17763     ;;
17764   no:yes:* )
17765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17777     ( cat <<\_ASBOX
17778 ## ------------------------------------ ##
17779 ## Report this to http://llvm.org/bugs/ ##
17780 ## ------------------------------------ ##
17781 _ASBOX
17782      ) | sed "s/^/$as_me: WARNING:     /" >&2
17783     ;;
17784 esac
17785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17788   echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790   eval "$as_ac_Header=\$ac_header_preproc"
17791 fi
17792 ac_res=`eval echo '${'$as_ac_Header'}'`
17793                { echo "$as_me:$LINENO: result: $ac_res" >&5
17794 echo "${ECHO_T}$ac_res" >&6; }
17795
17796 fi
17797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17798   cat >>confdefs.h <<_ACEOF
17799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17800 _ACEOF
17801
17802 fi
17803
17804 done
17805
17806
17807 for ac_func in getpagesize
17808 do
17809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17813   echo $ECHO_N "(cached) $ECHO_C" >&6
17814 else
17815   cat >conftest.$ac_ext <<_ACEOF
17816 /* confdefs.h.  */
17817 _ACEOF
17818 cat confdefs.h >>conftest.$ac_ext
17819 cat >>conftest.$ac_ext <<_ACEOF
17820 /* end confdefs.h.  */
17821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17823 #define $ac_func innocuous_$ac_func
17824
17825 /* System header to define __stub macros and hopefully few prototypes,
17826     which can conflict with char $ac_func (); below.
17827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17828     <limits.h> exists even on freestanding compilers.  */
17829
17830 #ifdef __STDC__
17831 # include <limits.h>
17832 #else
17833 # include <assert.h>
17834 #endif
17835
17836 #undef $ac_func
17837
17838 /* Override any GCC internal prototype to avoid an error.
17839    Use char because int might match the return type of a GCC
17840    builtin and then its argument prototype would still apply.  */
17841 #ifdef __cplusplus
17842 extern "C"
17843 #endif
17844 char $ac_func ();
17845 /* The GNU C library defines this for functions which it implements
17846     to always fail with ENOSYS.  Some functions are actually named
17847     something starting with __ and the normal name is an alias.  */
17848 #if defined __stub_$ac_func || defined __stub___$ac_func
17849 choke me
17850 #endif
17851
17852 int
17853 main ()
17854 {
17855 return $ac_func ();
17856   ;
17857   return 0;
17858 }
17859 _ACEOF
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (ac_try="$ac_link"
17862 case "(($ac_try" in
17863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864   *) ac_try_echo=$ac_try;;
17865 esac
17866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17867   (eval "$ac_link") 2>conftest.er1
17868   ac_status=$?
17869   grep -v '^ *+' conftest.er1 >conftest.err
17870   rm -f conftest.er1
17871   cat conftest.err >&5
17872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873   (exit $ac_status); } &&
17874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17875   { (case "(($ac_try" in
17876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17877   *) ac_try_echo=$ac_try;;
17878 esac
17879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17880   (eval "$ac_try") 2>&5
17881   ac_status=$?
17882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883   (exit $ac_status); }; } &&
17884          { ac_try='test -s conftest$ac_exeext'
17885   { (case "(($ac_try" in
17886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17887   *) ac_try_echo=$ac_try;;
17888 esac
17889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17890   (eval "$ac_try") 2>&5
17891   ac_status=$?
17892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893   (exit $ac_status); }; }; then
17894   eval "$as_ac_var=yes"
17895 else
17896   echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17898
17899         eval "$as_ac_var=no"
17900 fi
17901
17902 rm -f core conftest.err conftest.$ac_objext \
17903       conftest$ac_exeext conftest.$ac_ext
17904 fi
17905 ac_res=`eval echo '${'$as_ac_var'}'`
17906                { echo "$as_me:$LINENO: result: $ac_res" >&5
17907 echo "${ECHO_T}$ac_res" >&6; }
17908 if test `eval echo '${'$as_ac_var'}'` = yes; then
17909   cat >>confdefs.h <<_ACEOF
17910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17911 _ACEOF
17912
17913 fi
17914 done
17915
17916 { echo "$as_me:$LINENO: checking for working mmap" >&5
17917 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17918 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17919   echo $ECHO_N "(cached) $ECHO_C" >&6
17920 else
17921   if test "$cross_compiling" = yes; then
17922   ac_cv_func_mmap_fixed_mapped=no
17923 else
17924   cat >conftest.$ac_ext <<_ACEOF
17925 /* confdefs.h.  */
17926 _ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h.  */
17930 $ac_includes_default
17931 /* malloc might have been renamed as rpl_malloc. */
17932 #undef malloc
17933
17934 /* Thanks to Mike Haertel and Jim Avera for this test.
17935    Here is a matrix of mmap possibilities:
17936         mmap private not fixed
17937         mmap private fixed at somewhere currently unmapped
17938         mmap private fixed at somewhere already mapped
17939         mmap shared not fixed
17940         mmap shared fixed at somewhere currently unmapped
17941         mmap shared fixed at somewhere already mapped
17942    For private mappings, we should verify that changes cannot be read()
17943    back from the file, nor mmap's back from the file at a different
17944    address.  (There have been systems where private was not correctly
17945    implemented like the infamous i386 svr4.0, and systems where the
17946    VM page cache was not coherent with the file system buffer cache
17947    like early versions of FreeBSD and possibly contemporary NetBSD.)
17948    For shared mappings, we should conversely verify that changes get
17949    propagated back to all the places they're supposed to be.
17950
17951    Grep wants private fixed already mapped.
17952    The main things grep needs to know about mmap are:
17953    * does it exist and is it safe to write into the mmap'd area
17954    * how to use it (BSD variants)  */
17955
17956 #include <fcntl.h>
17957 #include <sys/mman.h>
17958
17959 #if !STDC_HEADERS && !HAVE_STDLIB_H
17960 char *malloc ();
17961 #endif
17962
17963 /* This mess was copied from the GNU getpagesize.h.  */
17964 #if !HAVE_GETPAGESIZE
17965 /* Assume that all systems that can run configure have sys/param.h.  */
17966 # if !HAVE_SYS_PARAM_H
17967 #  define HAVE_SYS_PARAM_H 1
17968 # endif
17969
17970 # ifdef _SC_PAGESIZE
17971 #  define getpagesize() sysconf(_SC_PAGESIZE)
17972 # else /* no _SC_PAGESIZE */
17973 #  if HAVE_SYS_PARAM_H
17974 #   include <sys/param.h>
17975 #   ifdef EXEC_PAGESIZE
17976 #    define getpagesize() EXEC_PAGESIZE
17977 #   else /* no EXEC_PAGESIZE */
17978 #    ifdef NBPG
17979 #     define getpagesize() NBPG * CLSIZE
17980 #     ifndef CLSIZE
17981 #      define CLSIZE 1
17982 #     endif /* no CLSIZE */
17983 #    else /* no NBPG */
17984 #     ifdef NBPC
17985 #      define getpagesize() NBPC
17986 #     else /* no NBPC */
17987 #      ifdef PAGESIZE
17988 #       define getpagesize() PAGESIZE
17989 #      endif /* PAGESIZE */
17990 #     endif /* no NBPC */
17991 #    endif /* no NBPG */
17992 #   endif /* no EXEC_PAGESIZE */
17993 #  else /* no HAVE_SYS_PARAM_H */
17994 #   define getpagesize() 8192   /* punt totally */
17995 #  endif /* no HAVE_SYS_PARAM_H */
17996 # endif /* no _SC_PAGESIZE */
17997
17998 #endif /* no HAVE_GETPAGESIZE */
17999
18000 int
18001 main ()
18002 {
18003   char *data, *data2, *data3;
18004   int i, pagesize;
18005   int fd;
18006
18007   pagesize = getpagesize ();
18008
18009   /* First, make a file with some known garbage in it. */
18010   data = (char *) malloc (pagesize);
18011   if (!data)
18012     return 1;
18013   for (i = 0; i < pagesize; ++i)
18014     *(data + i) = rand ();
18015   umask (0);
18016   fd = creat ("conftest.mmap", 0600);
18017   if (fd < 0)
18018     return 1;
18019   if (write (fd, data, pagesize) != pagesize)
18020     return 1;
18021   close (fd);
18022
18023   /* Next, try to mmap the file at a fixed address which already has
18024      something else allocated at it.  If we can, also make sure that
18025      we see the same garbage.  */
18026   fd = open ("conftest.mmap", O_RDWR);
18027   if (fd < 0)
18028     return 1;
18029   data2 = (char *) malloc (2 * pagesize);
18030   if (!data2)
18031     return 1;
18032   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18033   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18034                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18035     return 1;
18036   for (i = 0; i < pagesize; ++i)
18037     if (*(data + i) != *(data2 + i))
18038       return 1;
18039
18040   /* Finally, make sure that changes to the mapped area do not
18041      percolate back to the file as seen by read().  (This is a bug on
18042      some variants of i386 svr4.0.)  */
18043   for (i = 0; i < pagesize; ++i)
18044     *(data2 + i) = *(data2 + i) + 1;
18045   data3 = (char *) malloc (pagesize);
18046   if (!data3)
18047     return 1;
18048   if (read (fd, data3, pagesize) != pagesize)
18049     return 1;
18050   for (i = 0; i < pagesize; ++i)
18051     if (*(data + i) != *(data3 + i))
18052       return 1;
18053   close (fd);
18054   return 0;
18055 }
18056 _ACEOF
18057 rm -f conftest$ac_exeext
18058 if { (ac_try="$ac_link"
18059 case "(($ac_try" in
18060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18061   *) ac_try_echo=$ac_try;;
18062 esac
18063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18064   (eval "$ac_link") 2>&5
18065   ac_status=$?
18066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18068   { (case "(($ac_try" in
18069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070   *) ac_try_echo=$ac_try;;
18071 esac
18072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18073   (eval "$ac_try") 2>&5
18074   ac_status=$?
18075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076   (exit $ac_status); }; }; then
18077   ac_cv_func_mmap_fixed_mapped=yes
18078 else
18079   echo "$as_me: program exited with status $ac_status" >&5
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18082
18083 ( exit $ac_status )
18084 ac_cv_func_mmap_fixed_mapped=no
18085 fi
18086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18087 fi
18088
18089
18090 fi
18091 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18092 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18093 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18094
18095 cat >>confdefs.h <<\_ACEOF
18096 #define HAVE_MMAP 1
18097 _ACEOF
18098
18099 fi
18100 rm -f conftest.mmap
18101
18102   { echo "$as_me:$LINENO: checking for mmap of files" >&5
18103 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18104 if test "${ac_cv_func_mmap_file+set}" = set; then
18105   echo $ECHO_N "(cached) $ECHO_C" >&6
18106 else
18107    ac_ext=c
18108 ac_cpp='$CPP $CPPFLAGS'
18109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18112
18113   if test "$cross_compiling" = yes; then
18114   ac_cv_func_mmap_file=no
18115 else
18116   cat >conftest.$ac_ext <<_ACEOF
18117
18118     /* confdefs.h.  */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h.  */
18123
18124 #include <sys/types.h>
18125 #include <sys/mman.h>
18126 #include <fcntl.h>
18127
18128 int
18129 main ()
18130 {
18131
18132   int fd;
18133   fd = creat ("foo",0777);
18134   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18135   unlink ("foo");
18136   return (fd != (int) MAP_FAILED);
18137   ;
18138   return 0;
18139 }
18140 _ACEOF
18141 rm -f conftest$ac_exeext
18142 if { (ac_try="$ac_link"
18143 case "(($ac_try" in
18144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18145   *) ac_try_echo=$ac_try;;
18146 esac
18147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18148   (eval "$ac_link") 2>&5
18149   ac_status=$?
18150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18152   { (case "(($ac_try" in
18153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154   *) ac_try_echo=$ac_try;;
18155 esac
18156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157   (eval "$ac_try") 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); }; }; then
18161   ac_cv_func_mmap_file=yes
18162 else
18163   echo "$as_me: program exited with status $ac_status" >&5
18164 echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18166
18167 ( exit $ac_status )
18168 ac_cv_func_mmap_file=no
18169 fi
18170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18171 fi
18172
18173
18174   ac_ext=c
18175 ac_cpp='$CPP $CPPFLAGS'
18176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18179
18180
18181 fi
18182 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18183 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18184 if test "$ac_cv_func_mmap_file" = yes; then
18185
18186 cat >>confdefs.h <<\_ACEOF
18187 #define HAVE_MMAP_FILE
18188 _ACEOF
18189
18190    MMAP_FILE=yes
18191
18192 fi
18193
18194   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18195 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18196 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18197   echo $ECHO_N "(cached) $ECHO_C" >&6
18198 else
18199   if test "$llvm_cv_os_type" = "Interix" ; then
18200    ac_cv_need_dev_zero_for_mmap=yes
18201  else
18202    ac_cv_need_dev_zero_for_mmap=no
18203  fi
18204
18205 fi
18206 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18207 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18208 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18209
18210 cat >>confdefs.h <<\_ACEOF
18211 #define NEED_DEV_ZERO_FOR_MMAP 1
18212 _ACEOF
18213
18214 fi
18215
18216   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18217   then
18218     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18219 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18220   fi
18221   if test "$ac_cv_func_mmap_file" = "no"
18222   then
18223     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18224 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18225   fi
18226 fi
18227
18228 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18229 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18230 ac_ext=cpp
18231 ac_cpp='$CXXCPP $CPPFLAGS'
18232 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18233 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18234 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18235
18236 cat >conftest.$ac_ext <<_ACEOF
18237
18238   /* confdefs.h.  */
18239 _ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h.  */
18243
18244     int main() {
18245       volatile unsigned long val = 1;
18246       __sync_synchronize();
18247       __sync_val_compare_and_swap(&val, 1, 0);
18248       __sync_add_and_fetch(&val, 1);
18249       __sync_sub_and_fetch(&val, 1);
18250       return 0;
18251     }
18252
18253
18254 _ACEOF
18255 rm -f conftest.$ac_objext conftest$ac_exeext
18256 if { (ac_try="$ac_link"
18257 case "(($ac_try" in
18258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18259   *) ac_try_echo=$ac_try;;
18260 esac
18261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18262   (eval "$ac_link") 2>conftest.er1
18263   ac_status=$?
18264   grep -v '^ *+' conftest.er1 >conftest.err
18265   rm -f conftest.er1
18266   cat conftest.err >&5
18267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268   (exit $ac_status); } &&
18269          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18270   { (case "(($ac_try" in
18271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272   *) ac_try_echo=$ac_try;;
18273 esac
18274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275   (eval "$ac_try") 2>&5
18276   ac_status=$?
18277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278   (exit $ac_status); }; } &&
18279          { ac_try='test -s conftest$ac_exeext'
18280   { (case "(($ac_try" in
18281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282   *) ac_try_echo=$ac_try;;
18283 esac
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285   (eval "$ac_try") 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); }; }; then
18289
18290   { echo "$as_me:$LINENO: result: yes" >&5
18291 echo "${ECHO_T}yes" >&6; }
18292
18293 cat >>confdefs.h <<\_ACEOF
18294 #define LLVM_HAS_ATOMICS 1
18295 _ACEOF
18296
18297
18298 else
18299   echo "$as_me: failed program was:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18301
18302
18303   { echo "$as_me:$LINENO: result: no" >&5
18304 echo "${ECHO_T}no" >&6; }
18305
18306 cat >>confdefs.h <<\_ACEOF
18307 #define LLVM_HAS_ATOMICS 0
18308 _ACEOF
18309
18310   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18311 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18312
18313 fi
18314
18315 rm -f core conftest.err conftest.$ac_objext \
18316       conftest$ac_exeext conftest.$ac_ext
18317 ac_ext=c
18318 ac_cpp='$CPP $CPPFLAGS'
18319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18322
18323
18324
18325 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18326   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18327 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18328 if test "${llvm_cv_linux_mixed+set}" = set; then
18329   echo $ECHO_N "(cached) $ECHO_C" >&6
18330 else
18331    ac_ext=c
18332 ac_cpp='$CPP $CPPFLAGS'
18333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18336
18337   cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h.  */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h.  */
18343 #ifndef __x86_64__
18344        error: Not x86-64 even if uname says so!
18345       #endif
18346
18347 int
18348 main ()
18349 {
18350
18351   ;
18352   return 0;
18353 }
18354 _ACEOF
18355 rm -f conftest.$ac_objext
18356 if { (ac_try="$ac_compile"
18357 case "(($ac_try" in
18358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18359   *) ac_try_echo=$ac_try;;
18360 esac
18361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18362   (eval "$ac_compile") 2>conftest.er1
18363   ac_status=$?
18364   grep -v '^ *+' conftest.er1 >conftest.err
18365   rm -f conftest.er1
18366   cat conftest.err >&5
18367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368   (exit $ac_status); } &&
18369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18370   { (case "(($ac_try" in
18371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372   *) ac_try_echo=$ac_try;;
18373 esac
18374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18375   (eval "$ac_try") 2>&5
18376   ac_status=$?
18377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18378   (exit $ac_status); }; } &&
18379          { ac_try='test -s conftest.$ac_objext'
18380   { (case "(($ac_try" in
18381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18382   *) ac_try_echo=$ac_try;;
18383 esac
18384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18385   (eval "$ac_try") 2>&5
18386   ac_status=$?
18387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388   (exit $ac_status); }; }; then
18389   llvm_cv_linux_mixed=no
18390 else
18391   echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18393
18394         llvm_cv_linux_mixed=yes
18395 fi
18396
18397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18398   ac_ext=c
18399 ac_cpp='$CPP $CPPFLAGS'
18400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18403
18404
18405 fi
18406 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
18407 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
18408
18409   if test "$llvm_cv_linux_mixed" = "yes"; then
18410     llvm_cv_target_arch="x86"
18411     ARCH="x86"
18412   fi
18413 fi
18414
18415
18416 for ac_func in __dso_handle
18417 do
18418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18422   echo $ECHO_N "(cached) $ECHO_C" >&6
18423 else
18424   cat >conftest.$ac_ext <<_ACEOF
18425 /* confdefs.h.  */
18426 _ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h.  */
18430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18432 #define $ac_func innocuous_$ac_func
18433
18434 /* System header to define __stub macros and hopefully few prototypes,
18435     which can conflict with char $ac_func (); below.
18436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18437     <limits.h> exists even on freestanding compilers.  */
18438
18439 #ifdef __STDC__
18440 # include <limits.h>
18441 #else
18442 # include <assert.h>
18443 #endif
18444
18445 #undef $ac_func
18446
18447 /* Override any GCC internal prototype to avoid an error.
18448    Use char because int might match the return type of a GCC
18449    builtin and then its argument prototype would still apply.  */
18450 #ifdef __cplusplus
18451 extern "C"
18452 #endif
18453 char $ac_func ();
18454 /* The GNU C library defines this for functions which it implements
18455     to always fail with ENOSYS.  Some functions are actually named
18456     something starting with __ and the normal name is an alias.  */
18457 #if defined __stub_$ac_func || defined __stub___$ac_func
18458 choke me
18459 #endif
18460
18461 int
18462 main ()
18463 {
18464 return $ac_func ();
18465   ;
18466   return 0;
18467 }
18468 _ACEOF
18469 rm -f conftest.$ac_objext conftest$ac_exeext
18470 if { (ac_try="$ac_link"
18471 case "(($ac_try" in
18472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473   *) ac_try_echo=$ac_try;;
18474 esac
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476   (eval "$ac_link") 2>conftest.er1
18477   ac_status=$?
18478   grep -v '^ *+' conftest.er1 >conftest.err
18479   rm -f conftest.er1
18480   cat conftest.err >&5
18481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482   (exit $ac_status); } &&
18483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18484   { (case "(($ac_try" in
18485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486   *) ac_try_echo=$ac_try;;
18487 esac
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489   (eval "$ac_try") 2>&5
18490   ac_status=$?
18491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18492   (exit $ac_status); }; } &&
18493          { ac_try='test -s conftest$ac_exeext'
18494   { (case "(($ac_try" in
18495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18496   *) ac_try_echo=$ac_try;;
18497 esac
18498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18499   (eval "$ac_try") 2>&5
18500   ac_status=$?
18501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502   (exit $ac_status); }; }; then
18503   eval "$as_ac_var=yes"
18504 else
18505   echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18507
18508         eval "$as_ac_var=no"
18509 fi
18510
18511 rm -f core conftest.err conftest.$ac_objext \
18512       conftest$ac_exeext conftest.$ac_ext
18513 fi
18514 ac_res=`eval echo '${'$as_ac_var'}'`
18515                { echo "$as_me:$LINENO: result: $ac_res" >&5
18516 echo "${ECHO_T}$ac_res" >&6; }
18517 if test `eval echo '${'$as_ac_var'}'` = yes; then
18518   cat >>confdefs.h <<_ACEOF
18519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18520 _ACEOF
18521
18522 fi
18523 done
18524
18525
18526 SHLIBEXT=$llvm_shlib_ext
18527
18528
18529 if test "${prefix}" = "NONE" ; then
18530   prefix="/usr/local"
18531 fi
18532 eval LLVM_PREFIX="${prefix}";
18533 eval LLVM_BINDIR="${prefix}/bin";
18534 eval LLVM_DATADIR="${prefix}/share/llvm";
18535 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
18536 eval LLVM_ETCDIR="${prefix}/etc/llvm";
18537 eval LLVM_INCLUDEDIR="${prefix}/include";
18538 eval LLVM_INFODIR="${prefix}/info";
18539 eval LLVM_MANDIR="${prefix}/man";
18540 LLVM_CONFIGTIME=`date`
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551 if test "${ENABLE_TIMESTAMPS}" = "0"; then
18552   LLVM_CONFIGTIME="(timestamp not enabled)"
18553 fi
18554
18555
18556 cat >>confdefs.h <<_ACEOF
18557 #define LLVM_PREFIX "$LLVM_PREFIX"
18558 _ACEOF
18559
18560
18561 cat >>confdefs.h <<_ACEOF
18562 #define LLVM_BINDIR "$LLVM_BINDIR"
18563 _ACEOF
18564
18565
18566 cat >>confdefs.h <<_ACEOF
18567 #define LLVM_DATADIR "$LLVM_DATADIR"
18568 _ACEOF
18569
18570
18571 cat >>confdefs.h <<_ACEOF
18572 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
18573 _ACEOF
18574
18575
18576 cat >>confdefs.h <<_ACEOF
18577 #define LLVM_ETCDIR "$LLVM_ETCDIR"
18578 _ACEOF
18579
18580
18581 cat >>confdefs.h <<_ACEOF
18582 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
18583 _ACEOF
18584
18585
18586 cat >>confdefs.h <<_ACEOF
18587 #define LLVM_INFODIR "$LLVM_INFODIR"
18588 _ACEOF
18589
18590
18591 cat >>confdefs.h <<_ACEOF
18592 #define LLVM_MANDIR "$LLVM_MANDIR"
18593 _ACEOF
18594
18595
18596 cat >>confdefs.h <<_ACEOF
18597 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
18598 _ACEOF
18599
18600
18601 cat >>confdefs.h <<_ACEOF
18602 #define LLVM_HOST_TRIPLE "$host"
18603 _ACEOF
18604
18605
18606 cat >>confdefs.h <<_ACEOF
18607 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
18608 _ACEOF
18609
18610
18611 if test "$BINDINGS_TO_BUILD" = auto ; then
18612   BINDINGS_TO_BUILD=""
18613   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
18614     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
18615   fi
18616 fi
18617 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
18618
18619
18620 binding_prereqs_failed=0
18621 for a_binding in $BINDINGS_TO_BUILD ; do
18622   case "$a_binding" in
18623   ocaml)
18624     if test "x$OCAMLC" = x ; then
18625       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
18626 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
18627       binding_prereqs_failed=1
18628     fi
18629     if test "x$OCAMLDEP" = x ; then
18630       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
18631 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
18632       binding_prereqs_failed=1
18633     fi
18634     if test "x$OCAMLOPT" = x ; then
18635       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
18636 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
18637           fi
18638     if test "x$with_ocaml_libdir" != xauto ; then
18639       OCAML_LIBDIR=$with_ocaml_libdir
18640
18641     else
18642       ocaml_stdlib="`"$OCAMLC" -where`"
18643       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
18644       then
18645         # ocaml stdlib is beneath our prefix; use stdlib
18646         OCAML_LIBDIR=$ocaml_stdlib
18647
18648       else
18649         # ocaml stdlib is outside our prefix; use libdir/ocaml
18650         OCAML_LIBDIR=${prefix}/lib/ocaml
18651
18652       fi
18653     fi
18654     ;;
18655   esac
18656 done
18657 if test "$binding_prereqs_failed" = 1 ; then
18658   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18659 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18660    { (exit 1); exit 1; }; }
18661 fi
18662
18663 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18664 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18665 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18666   echo $ECHO_N "(cached) $ECHO_C" >&6
18667 else
18668    ac_ext=cpp
18669 ac_cpp='$CXXCPP $CPPFLAGS'
18670 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18671 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18672 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18673
18674   oldcxxflags="$CXXFLAGS"
18675   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18676   cat >conftest.$ac_ext <<_ACEOF
18677 /* confdefs.h.  */
18678 _ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h.  */
18682 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18683 int
18684 main ()
18685 {
18686 X<int>().f();
18687   ;
18688   return 0;
18689 }
18690 _ACEOF
18691 rm -f conftest.$ac_objext
18692 if { (ac_try="$ac_compile"
18693 case "(($ac_try" in
18694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695   *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698   (eval "$ac_compile") 2>conftest.er1
18699   ac_status=$?
18700   grep -v '^ *+' conftest.er1 >conftest.err
18701   rm -f conftest.er1
18702   cat conftest.err >&5
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); } &&
18705          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18706   { (case "(($ac_try" in
18707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18708   *) ac_try_echo=$ac_try;;
18709 esac
18710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18711   (eval "$ac_try") 2>&5
18712   ac_status=$?
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); }; } &&
18715          { ac_try='test -s conftest.$ac_objext'
18716   { (case "(($ac_try" in
18717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718   *) ac_try_echo=$ac_try;;
18719 esac
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721   (eval "$ac_try") 2>&5
18722   ac_status=$?
18723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724   (exit $ac_status); }; }; then
18725   llvm_cv_cxx_visibility_inlines_hidden=yes
18726 else
18727   echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18729
18730         llvm_cv_cxx_visibility_inlines_hidden=no
18731 fi
18732
18733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18734   CXXFLAGS="$oldcxxflags"
18735   ac_ext=c
18736 ac_cpp='$CPP $CPPFLAGS'
18737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18740
18741
18742 fi
18743 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18744 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18745 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18746   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18747
18748 else
18749   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18750
18751 fi
18752
18753
18754 if test "$llvm_cv_link_use_r" = "yes" ; then
18755   RPATH="-Wl,-R"
18756 else
18757   RPATH="-Wl,-rpath"
18758 fi
18759
18760
18761 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18762   RDYNAMIC="-rdynamic"
18763 else
18764   RDYNAMIC=""
18765 fi
18766
18767
18768
18769 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18770
18771
18772
18773
18774
18775
18776 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18777
18778 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18779
18780 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18781
18782 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18783
18784 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18785
18786
18787 ac_config_files="$ac_config_files Makefile.config"
18788
18789
18790 ac_config_files="$ac_config_files llvm.spec"
18791
18792
18793 ac_config_files="$ac_config_files docs/doxygen.cfg"
18794
18795
18796 if test "${clang_src_root}" = ""; then
18797   clang_src_root="$srcdir/tools/clang"
18798 fi
18799 if test -f ${clang_src_root}/README.txt; then
18800     configh="include/clang/Config/config.h"
18801   doxy="docs/doxygen.cfg"
18802   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18803
18804   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18805
18806 fi
18807
18808 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18809
18810
18811 test "x$program_prefix" = "xNONE" && program_prefix=""
18812
18813
18814
18815 ac_config_commands="$ac_config_commands setup"
18816
18817 ac_config_commands="$ac_config_commands Makefile"
18818
18819
18820 ac_config_commands="$ac_config_commands Makefile.common"
18821
18822
18823 ac_config_commands="$ac_config_commands examples/Makefile"
18824
18825
18826 ac_config_commands="$ac_config_commands lib/Makefile"
18827
18828
18829 ac_config_commands="$ac_config_commands test/Makefile"
18830
18831
18832 ac_config_commands="$ac_config_commands test/Makefile.tests"
18833
18834
18835 ac_config_commands="$ac_config_commands unittests/Makefile"
18836
18837
18838 ac_config_commands="$ac_config_commands tools/Makefile"
18839
18840
18841 ac_config_commands="$ac_config_commands utils/Makefile"
18842
18843
18844 ac_config_commands="$ac_config_commands projects/Makefile"
18845
18846
18847 ac_config_commands="$ac_config_commands bindings/Makefile"
18848
18849
18850 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18851
18852
18853
18854 cat >confcache <<\_ACEOF
18855 # This file is a shell script that caches the results of configure
18856 # tests run on this system so they can be shared between configure
18857 # scripts and configure runs, see configure's option --config-cache.
18858 # It is not useful on other systems.  If it contains results you don't
18859 # want to keep, you may remove or edit it.
18860 #
18861 # config.status only pays attention to the cache file if you give it
18862 # the --recheck option to rerun configure.
18863 #
18864 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18865 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18866 # following values.
18867
18868 _ACEOF
18869
18870 # The following way of writing the cache mishandles newlines in values,
18871 # but we know of no workaround that is simple, portable, and efficient.
18872 # So, we kill variables containing newlines.
18873 # Ultrix sh set writes to stderr and can't be redirected directly,
18874 # and sets the high bit in the cache file unless we assign to the vars.
18875 (
18876   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18877     eval ac_val=\$$ac_var
18878     case $ac_val in #(
18879     *${as_nl}*)
18880       case $ac_var in #(
18881       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18882 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18883       esac
18884       case $ac_var in #(
18885       _ | IFS | as_nl) ;; #(
18886       *) $as_unset $ac_var ;;
18887       esac ;;
18888     esac
18889   done
18890
18891   (set) 2>&1 |
18892     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18893     *${as_nl}ac_space=\ *)
18894       # `set' does not quote correctly, so add quotes (double-quote
18895       # substitution turns \\\\ into \\, and sed turns \\ into \).
18896       sed -n \
18897         "s/'/'\\\\''/g;
18898           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18899       ;; #(
18900     *)
18901       # `set' quotes correctly as required by POSIX, so do not add quotes.
18902       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18903       ;;
18904     esac |
18905     sort
18906 ) |
18907   sed '
18908      /^ac_cv_env_/b end
18909      t clear
18910      :clear
18911      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18912      t end
18913      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18914      :end' >>confcache
18915 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18916   if test -w "$cache_file"; then
18917     test "x$cache_file" != "x/dev/null" &&
18918       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18919 echo "$as_me: updating cache $cache_file" >&6;}
18920     cat confcache >$cache_file
18921   else
18922     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18923 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18924   fi
18925 fi
18926 rm -f confcache
18927
18928 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18929 # Let make expand exec_prefix.
18930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18931
18932 DEFS=-DHAVE_CONFIG_H
18933
18934 ac_libobjs=
18935 ac_ltlibobjs=
18936 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18937   # 1. Remove the extension, and $U if already installed.
18938   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18939   ac_i=`echo "$ac_i" | sed "$ac_script"`
18940   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18941   #    will be set to the directory where LIBOBJS objects are built.
18942   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18943   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18944 done
18945 LIBOBJS=$ac_libobjs
18946
18947 LTLIBOBJS=$ac_ltlibobjs
18948
18949
18950
18951 : ${CONFIG_STATUS=./config.status}
18952 ac_clean_files_save=$ac_clean_files
18953 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18954 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18955 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18956 cat >$CONFIG_STATUS <<_ACEOF
18957 #! $SHELL
18958 # Generated by $as_me.
18959 # Run this file to recreate the current configuration.
18960 # Compiler output produced by configure, useful for debugging
18961 # configure, is in config.log if it exists.
18962
18963 debug=false
18964 ac_cs_recheck=false
18965 ac_cs_silent=false
18966 SHELL=\${CONFIG_SHELL-$SHELL}
18967 _ACEOF
18968
18969 cat >>$CONFIG_STATUS <<\_ACEOF
18970 ## --------------------- ##
18971 ## M4sh Initialization.  ##
18972 ## --------------------- ##
18973
18974 # Be Bourne compatible
18975 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18976   emulate sh
18977   NULLCMD=:
18978   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18979   # is contrary to our usage.  Disable this feature.
18980   alias -g '${1+"$@"}'='"$@"'
18981   setopt NO_GLOB_SUBST
18982 else
18983   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18984 fi
18985 BIN_SH=xpg4; export BIN_SH # for Tru64
18986 DUALCASE=1; export DUALCASE # for MKS sh
18987
18988
18989 # PATH needs CR
18990 # Avoid depending upon Character Ranges.
18991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18994 as_cr_digits='0123456789'
18995 as_cr_alnum=$as_cr_Letters$as_cr_digits
18996
18997 # The user is always right.
18998 if test "${PATH_SEPARATOR+set}" != set; then
18999   echo "#! /bin/sh" >conf$$.sh
19000   echo  "exit 0"   >>conf$$.sh
19001   chmod +x conf$$.sh
19002   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19003     PATH_SEPARATOR=';'
19004   else
19005     PATH_SEPARATOR=:
19006   fi
19007   rm -f conf$$.sh
19008 fi
19009
19010 # Support unset when possible.
19011 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19012   as_unset=unset
19013 else
19014   as_unset=false
19015 fi
19016
19017
19018 # IFS
19019 # We need space, tab and new line, in precisely that order.  Quoting is
19020 # there to prevent editors from complaining about space-tab.
19021 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19022 # splitting by setting IFS to empty value.)
19023 as_nl='
19024 '
19025 IFS=" ""        $as_nl"
19026
19027 # Find who we are.  Look in the path if we contain no directory separator.
19028 case $0 in
19029   *[\\/]* ) as_myself=$0 ;;
19030   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19031 for as_dir in $PATH
19032 do
19033   IFS=$as_save_IFS
19034   test -z "$as_dir" && as_dir=.
19035   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19036 done
19037 IFS=$as_save_IFS
19038
19039      ;;
19040 esac
19041 # We did not find ourselves, most probably we were run as `sh COMMAND'
19042 # in which case we are not to be found in the path.
19043 if test "x$as_myself" = x; then
19044   as_myself=$0
19045 fi
19046 if test ! -f "$as_myself"; then
19047   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19048   { (exit 1); exit 1; }
19049 fi
19050
19051 # Work around bugs in pre-3.0 UWIN ksh.
19052 for as_var in ENV MAIL MAILPATH
19053 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19054 done
19055 PS1='$ '
19056 PS2='> '
19057 PS4='+ '
19058
19059 # NLS nuisances.
19060 for as_var in \
19061   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19062   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19063   LC_TELEPHONE LC_TIME
19064 do
19065   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19066     eval $as_var=C; export $as_var
19067   else
19068     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19069   fi
19070 done
19071
19072 # Required to use basename.
19073 if expr a : '\(a\)' >/dev/null 2>&1 &&
19074    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19075   as_expr=expr
19076 else
19077   as_expr=false
19078 fi
19079
19080 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19081   as_basename=basename
19082 else
19083   as_basename=false
19084 fi
19085
19086
19087 # Name of the executable.
19088 as_me=`$as_basename -- "$0" ||
19089 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19090          X"$0" : 'X\(//\)$' \| \
19091          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19092 echo X/"$0" |
19093     sed '/^.*\/\([^/][^/]*\)\/*$/{
19094             s//\1/
19095             q
19096           }
19097           /^X\/\(\/\/\)$/{
19098             s//\1/
19099             q
19100           }
19101           /^X\/\(\/\).*/{
19102             s//\1/
19103             q
19104           }
19105           s/.*/./; q'`
19106
19107 # CDPATH.
19108 $as_unset CDPATH
19109
19110
19111
19112   as_lineno_1=$LINENO
19113   as_lineno_2=$LINENO
19114   test "x$as_lineno_1" != "x$as_lineno_2" &&
19115   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19116
19117   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19118   # uniformly replaced by the line number.  The first 'sed' inserts a
19119   # line-number line after each line using $LINENO; the second 'sed'
19120   # does the real work.  The second script uses 'N' to pair each
19121   # line-number line with the line containing $LINENO, and appends
19122   # trailing '-' during substitution so that $LINENO is not a special
19123   # case at line end.
19124   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19125   # scripts with optimization help from Paolo Bonzini.  Blame Lee
19126   # E. McMahon (1931-1989) for sed's syntax.  :-)
19127   sed -n '
19128     p
19129     /[$]LINENO/=
19130   ' <$as_myself |
19131     sed '
19132       s/[$]LINENO.*/&-/
19133       t lineno
19134       b
19135       :lineno
19136       N
19137       :loop
19138       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19139       t loop
19140       s/-\n.*//
19141     ' >$as_me.lineno &&
19142   chmod +x "$as_me.lineno" ||
19143     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19144    { (exit 1); exit 1; }; }
19145
19146   # Don't try to exec as it changes $[0], causing all sort of problems
19147   # (the dirname of $[0] is not the place where we might find the
19148   # original and so on.  Autoconf is especially sensitive to this).
19149   . "./$as_me.lineno"
19150   # Exit status is that of the last command.
19151   exit
19152 }
19153
19154
19155 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19156   as_dirname=dirname
19157 else
19158   as_dirname=false
19159 fi
19160
19161 ECHO_C= ECHO_N= ECHO_T=
19162 case `echo -n x` in
19163 -n*)
19164   case `echo 'x\c'` in
19165   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19166   *)   ECHO_C='\c';;
19167   esac;;
19168 *)
19169   ECHO_N='-n';;
19170 esac
19171
19172 if expr a : '\(a\)' >/dev/null 2>&1 &&
19173    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19174   as_expr=expr
19175 else
19176   as_expr=false
19177 fi
19178
19179 rm -f conf$$ conf$$.exe conf$$.file
19180 if test -d conf$$.dir; then
19181   rm -f conf$$.dir/conf$$.file
19182 else
19183   rm -f conf$$.dir
19184   mkdir conf$$.dir
19185 fi
19186 echo >conf$$.file
19187 if ln -s conf$$.file conf$$ 2>/dev/null; then
19188   as_ln_s='ln -s'
19189   # ... but there are two gotchas:
19190   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19191   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19192   # In both cases, we have to default to `cp -p'.
19193   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19194     as_ln_s='cp -p'
19195 elif ln conf$$.file conf$$ 2>/dev/null; then
19196   as_ln_s=ln
19197 else
19198   as_ln_s='cp -p'
19199 fi
19200 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19201 rmdir conf$$.dir 2>/dev/null
19202
19203 if mkdir -p . 2>/dev/null; then
19204   as_mkdir_p=:
19205 else
19206   test -d ./-p && rmdir ./-p
19207   as_mkdir_p=false
19208 fi
19209
19210 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19211 # systems may use methods other than mode bits to determine executability.
19212 cat >conf$$.file <<_ASEOF
19213 #! /bin/sh
19214 exit 0
19215 _ASEOF
19216 chmod +x conf$$.file
19217 if test -x conf$$.file >/dev/null 2>&1; then
19218   as_executable_p="test -x"
19219 else
19220   as_executable_p=:
19221 fi
19222 rm -f conf$$.file
19223
19224 # Sed expression to map a string onto a valid CPP name.
19225 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19226
19227 # Sed expression to map a string onto a valid variable name.
19228 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19229
19230
19231 exec 6>&1
19232
19233 # Save the log message, to keep $[0] and so on meaningful, and to
19234 # report actual input values of CONFIG_FILES etc. instead of their
19235 # values after options handling.
19236 ac_log="
19237 This file was extended by LLVM $as_me 3.6.0svn, which was
19238 generated by GNU Autoconf 2.60.  Invocation command line was
19239
19240   CONFIG_FILES    = $CONFIG_FILES
19241   CONFIG_HEADERS  = $CONFIG_HEADERS
19242   CONFIG_LINKS    = $CONFIG_LINKS
19243   CONFIG_COMMANDS = $CONFIG_COMMANDS
19244   $ $0 $@
19245
19246 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19247 "
19248
19249 _ACEOF
19250
19251 cat >>$CONFIG_STATUS <<_ACEOF
19252 # Files that config.status was made for.
19253 config_files="$ac_config_files"
19254 config_headers="$ac_config_headers"
19255 config_commands="$ac_config_commands"
19256
19257 _ACEOF
19258
19259 cat >>$CONFIG_STATUS <<\_ACEOF
19260 ac_cs_usage="\
19261 \`$as_me' instantiates files from templates according to the
19262 current configuration.
19263
19264 Usage: $0 [OPTIONS] [FILE]...
19265
19266   -h, --help       print this help, then exit
19267   -V, --version    print version number, then exit
19268   -q, --quiet      do not print progress messages
19269   -d, --debug      don't remove temporary files
19270       --recheck    update $as_me by reconfiguring in the same conditions
19271   --file=FILE[:TEMPLATE]
19272                    instantiate the configuration file FILE
19273   --header=FILE[:TEMPLATE]
19274                    instantiate the configuration header FILE
19275
19276 Configuration files:
19277 $config_files
19278
19279 Configuration headers:
19280 $config_headers
19281
19282 Configuration commands:
19283 $config_commands
19284
19285 Report bugs to <bug-autoconf@gnu.org>."
19286
19287 _ACEOF
19288 cat >>$CONFIG_STATUS <<_ACEOF
19289 ac_cs_version="\\
19290 LLVM config.status 3.6.0svn
19291 configured by $0, generated by GNU Autoconf 2.60,
19292   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19293
19294 Copyright (C) 2006 Free Software Foundation, Inc.
19295 This config.status script is free software; the Free Software Foundation
19296 gives unlimited permission to copy, distribute and modify it."
19297
19298 ac_pwd='$ac_pwd'
19299 srcdir='$srcdir'
19300 INSTALL='$INSTALL'
19301 _ACEOF
19302
19303 cat >>$CONFIG_STATUS <<\_ACEOF
19304 # If no file are specified by the user, then we need to provide default
19305 # value.  By we need to know if files were specified by the user.
19306 ac_need_defaults=:
19307 while test $# != 0
19308 do
19309   case $1 in
19310   --*=*)
19311     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19312     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19313     ac_shift=:
19314     ;;
19315   *)
19316     ac_option=$1
19317     ac_optarg=$2
19318     ac_shift=shift
19319     ;;
19320   esac
19321
19322   case $ac_option in
19323   # Handling of the options.
19324   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19325     ac_cs_recheck=: ;;
19326   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19327     echo "$ac_cs_version"; exit ;;
19328   --debug | --debu | --deb | --de | --d | -d )
19329     debug=: ;;
19330   --file | --fil | --fi | --f )
19331     $ac_shift
19332     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19333     ac_need_defaults=false;;
19334   --header | --heade | --head | --hea )
19335     $ac_shift
19336     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19337     ac_need_defaults=false;;
19338   --he | --h)
19339     # Conflict between --help and --header
19340     { echo "$as_me: error: ambiguous option: $1
19341 Try \`$0 --help' for more information." >&2
19342    { (exit 1); exit 1; }; };;
19343   --help | --hel | -h )
19344     echo "$ac_cs_usage"; exit ;;
19345   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19346   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19347     ac_cs_silent=: ;;
19348
19349   # This is an error.
19350   -*) { echo "$as_me: error: unrecognized option: $1
19351 Try \`$0 --help' for more information." >&2
19352    { (exit 1); exit 1; }; } ;;
19353
19354   *) ac_config_targets="$ac_config_targets $1"
19355      ac_need_defaults=false ;;
19356
19357   esac
19358   shift
19359 done
19360
19361 ac_configure_extra_args=
19362
19363 if $ac_cs_silent; then
19364   exec 6>/dev/null
19365   ac_configure_extra_args="$ac_configure_extra_args --silent"
19366 fi
19367
19368 _ACEOF
19369 cat >>$CONFIG_STATUS <<_ACEOF
19370 if \$ac_cs_recheck; then
19371   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19372   CONFIG_SHELL=$SHELL
19373   export CONFIG_SHELL
19374   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19375 fi
19376
19377 _ACEOF
19378 cat >>$CONFIG_STATUS <<\_ACEOF
19379 exec 5>>config.log
19380 {
19381   echo
19382   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19383 ## Running $as_me. ##
19384 _ASBOX
19385   echo "$ac_log"
19386 } >&5
19387
19388 _ACEOF
19389 cat >>$CONFIG_STATUS <<_ACEOF
19390 #
19391 # INIT-COMMANDS
19392 #
19393 llvm_src="${srcdir}"
19394
19395 _ACEOF
19396
19397 cat >>$CONFIG_STATUS <<\_ACEOF
19398
19399 # Handling of arguments.
19400 for ac_config_target in $ac_config_targets
19401 do
19402   case $ac_config_target in
19403     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
19404     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
19405     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
19406     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
19407     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
19408     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
19409     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
19410     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
19411     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
19412     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
19413     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
19414     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
19415     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
19416     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
19417     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
19418     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
19419     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
19420     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
19421     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
19422     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
19423     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
19424     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
19425     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
19426     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
19427     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
19428     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
19429
19430   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19431 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19432    { (exit 1); exit 1; }; };;
19433   esac
19434 done
19435
19436
19437 # If the user did not use the arguments to specify the items to instantiate,
19438 # then the envvar interface is used.  Set only those that are not.
19439 # We use the long form for the default assignment because of an extremely
19440 # bizarre bug on SunOS 4.1.3.
19441 if $ac_need_defaults; then
19442   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19443   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19444   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19445 fi
19446
19447 # Have a temporary directory for convenience.  Make it in the build tree
19448 # simply because there is no reason against having it here, and in addition,
19449 # creating and moving files from /tmp can sometimes cause problems.
19450 # Hook for its removal unless debugging.
19451 # Note that there is a small window in which the directory will not be cleaned:
19452 # after its creation but before its name has been assigned to `$tmp'.
19453 $debug ||
19454 {
19455   tmp=
19456   trap 'exit_status=$?
19457   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19458 ' 0
19459   trap '{ (exit 1); exit 1; }' 1 2 13 15
19460 }
19461 # Create a (secure) tmp directory for tmp files.
19462
19463 {
19464   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19465   test -n "$tmp" && test -d "$tmp"
19466 }  ||
19467 {
19468   tmp=./conf$$-$RANDOM
19469   (umask 077 && mkdir "$tmp")
19470 } ||
19471 {
19472    echo "$me: cannot create a temporary directory in ." >&2
19473    { (exit 1); exit 1; }
19474 }
19475
19476 #
19477 # Set up the sed scripts for CONFIG_FILES section.
19478 #
19479
19480 # No need to generate the scripts if there are no CONFIG_FILES.
19481 # This happens for instance when ./config.status config.h
19482 if test -n "$CONFIG_FILES"; then
19483
19484 _ACEOF
19485
19486
19487
19488 ac_delim='%!_!# '
19489 for ac_last_try in false false false false false :; do
19490   cat >conf$$subs.sed <<_ACEOF
19491 SHELL!$SHELL$ac_delim
19492 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19493 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19494 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19495 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19496 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19497 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19498 exec_prefix!$exec_prefix$ac_delim
19499 prefix!$prefix$ac_delim
19500 program_transform_name!$program_transform_name$ac_delim
19501 bindir!$bindir$ac_delim
19502 sbindir!$sbindir$ac_delim
19503 libexecdir!$libexecdir$ac_delim
19504 datarootdir!$datarootdir$ac_delim
19505 datadir!$datadir$ac_delim
19506 sysconfdir!$sysconfdir$ac_delim
19507 sharedstatedir!$sharedstatedir$ac_delim
19508 localstatedir!$localstatedir$ac_delim
19509 includedir!$includedir$ac_delim
19510 oldincludedir!$oldincludedir$ac_delim
19511 docdir!$docdir$ac_delim
19512 infodir!$infodir$ac_delim
19513 htmldir!$htmldir$ac_delim
19514 dvidir!$dvidir$ac_delim
19515 pdfdir!$pdfdir$ac_delim
19516 psdir!$psdir$ac_delim
19517 libdir!$libdir$ac_delim
19518 localedir!$localedir$ac_delim
19519 mandir!$mandir$ac_delim
19520 DEFS!$DEFS$ac_delim
19521 ECHO_C!$ECHO_C$ac_delim
19522 ECHO_N!$ECHO_N$ac_delim
19523 ECHO_T!$ECHO_T$ac_delim
19524 LIBS!$LIBS$ac_delim
19525 build_alias!$build_alias$ac_delim
19526 host_alias!$host_alias$ac_delim
19527 target_alias!$target_alias$ac_delim
19528 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
19529 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
19530 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
19531 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
19532 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
19533 CC!$CC$ac_delim
19534 CFLAGS!$CFLAGS$ac_delim
19535 LDFLAGS!$LDFLAGS$ac_delim
19536 CPPFLAGS!$CPPFLAGS$ac_delim
19537 ac_ct_CC!$ac_ct_CC$ac_delim
19538 EXEEXT!$EXEEXT$ac_delim
19539 OBJEXT!$OBJEXT$ac_delim
19540 CXX!$CXX$ac_delim
19541 CXXFLAGS!$CXXFLAGS$ac_delim
19542 ac_ct_CXX!$ac_ct_CXX$ac_delim
19543 CPP!$CPP$ac_delim
19544 subdirs!$subdirs$ac_delim
19545 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
19546 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
19547 build!$build$ac_delim
19548 build_cpu!$build_cpu$ac_delim
19549 build_vendor!$build_vendor$ac_delim
19550 build_os!$build_os$ac_delim
19551 host!$host$ac_delim
19552 host_cpu!$host_cpu$ac_delim
19553 host_vendor!$host_vendor$ac_delim
19554 host_os!$host_os$ac_delim
19555 target!$target$ac_delim
19556 target_cpu!$target_cpu$ac_delim
19557 target_vendor!$target_vendor$ac_delim
19558 target_os!$target_os$ac_delim
19559 OS!$OS$ac_delim
19560 HOST_OS!$HOST_OS$ac_delim
19561 TARGET_OS!$TARGET_OS$ac_delim
19562 LINKALL!$LINKALL$ac_delim
19563 NOLINKALL!$NOLINKALL$ac_delim
19564 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
19565 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
19566 ARCH!$ARCH$ac_delim
19567 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
19568 HOST_ARCH!$HOST_ARCH$ac_delim
19569 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
19570 BUILD_CC!$BUILD_CC$ac_delim
19571 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
19572 BUILD_CXX!$BUILD_CXX$ac_delim
19573 CVSBUILD!$CVSBUILD$ac_delim
19574 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
19575 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
19576 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
19577 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
19578 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
19579 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
19580 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
19581 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
19582 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
19583 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
19584 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
19585 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
19586 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
19587 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19588 _ACEOF
19589
19590   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19591     break
19592   elif $ac_last_try; then
19593     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19594 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19595    { (exit 1); exit 1; }; }
19596   else
19597     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19598   fi
19599 done
19600
19601 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19602 if test -n "$ac_eof"; then
19603   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19604   ac_eof=`expr $ac_eof + 1`
19605 fi
19606
19607 cat >>$CONFIG_STATUS <<_ACEOF
19608 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19610 _ACEOF
19611 sed '
19612 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19613 s/^/s,@/; s/!/@,|#_!!_#|/
19614 :n
19615 t n
19616 s/'"$ac_delim"'$/,g/; t
19617 s/$/\\/; p
19618 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19619 ' >>$CONFIG_STATUS <conf$$subs.sed
19620 rm -f conf$$subs.sed
19621 cat >>$CONFIG_STATUS <<_ACEOF
19622 CEOF$ac_eof
19623 _ACEOF
19624
19625
19626 ac_delim='%!_!# '
19627 for ac_last_try in false false false false false :; do
19628   cat >conf$$subs.sed <<_ACEOF
19629 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19630 JIT!$JIT$ac_delim
19631 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19632 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19633 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19634 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19635 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19636 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19637 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19638 ENABLE_PIC!$ENABLE_PIC$ac_delim
19639 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19640 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19641 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19642 ALL_TARGETS!$ALL_TARGETS$ac_delim
19643 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19644 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19645 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19646 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19647 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19648 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19649 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19650 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19651 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19652 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19653 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19654 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19655 ifGNUmake!$ifGNUmake$ac_delim
19656 LN_S!$LN_S$ac_delim
19657 NM!$NM$ac_delim
19658 CMP!$CMP$ac_delim
19659 CP!$CP$ac_delim
19660 DATE!$DATE$ac_delim
19661 FIND!$FIND$ac_delim
19662 GREP!$GREP$ac_delim
19663 MKDIR!$MKDIR$ac_delim
19664 MV!$MV$ac_delim
19665 RANLIB!$RANLIB$ac_delim
19666 AR!$AR$ac_delim
19667 RM!$RM$ac_delim
19668 SED!$SED$ac_delim
19669 TAR!$TAR$ac_delim
19670 BINPWD!$BINPWD$ac_delim
19671 DOT!$DOT$ac_delim
19672 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19673 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19674 INSTALL_DATA!$INSTALL_DATA$ac_delim
19675 BZIP2!$BZIP2$ac_delim
19676 CAT!$CAT$ac_delim
19677 DOXYGEN!$DOXYGEN$ac_delim
19678 GROFF!$GROFF$ac_delim
19679 GZIPBIN!$GZIPBIN$ac_delim
19680 PDFROFF!$PDFROFF$ac_delim
19681 ZIP!$ZIP$ac_delim
19682 OCAMLC!$OCAMLC$ac_delim
19683 OCAMLOPT!$OCAMLOPT$ac_delim
19684 OCAMLDEP!$OCAMLDEP$ac_delim
19685 OCAMLDOC!$OCAMLDOC$ac_delim
19686 GAS!$GAS$ac_delim
19687 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19688 EGREP!$EGREP$ac_delim
19689 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19690 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19691 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19692 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19693 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19694 PYTHON!$PYTHON$ac_delim
19695 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19696 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19697 USE_OPROFILE!$USE_OPROFILE$ac_delim
19698 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19699 XML2CONFIG!$XML2CONFIG$ac_delim
19700 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19701 LIBXML2_INC!$LIBXML2_INC$ac_delim
19702 CXXCPP!$CXXCPP$ac_delim
19703 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19704 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19705 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19706 MMAP_FILE!$MMAP_FILE$ac_delim
19707 SHLIBEXT!$SHLIBEXT$ac_delim
19708 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19709 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19710 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19711 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19712 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19713 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19714 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19715 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19716 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19717 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19718 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19719 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19720 RPATH!$RPATH$ac_delim
19721 RDYNAMIC!$RDYNAMIC$ac_delim
19722 program_prefix!$program_prefix$ac_delim
19723 LIBOBJS!$LIBOBJS$ac_delim
19724 LTLIBOBJS!$LTLIBOBJS$ac_delim
19725 _ACEOF
19726
19727   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
19728     break
19729   elif $ac_last_try; then
19730     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19731 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19732    { (exit 1); exit 1; }; }
19733   else
19734     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19735   fi
19736 done
19737
19738 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19739 if test -n "$ac_eof"; then
19740   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19741   ac_eof=`expr $ac_eof + 1`
19742 fi
19743
19744 cat >>$CONFIG_STATUS <<_ACEOF
19745 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19746 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19747 _ACEOF
19748 sed '
19749 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19750 s/^/s,@/; s/!/@,|#_!!_#|/
19751 :n
19752 t n
19753 s/'"$ac_delim"'$/,g/; t
19754 s/$/\\/; p
19755 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19756 ' >>$CONFIG_STATUS <conf$$subs.sed
19757 rm -f conf$$subs.sed
19758 cat >>$CONFIG_STATUS <<_ACEOF
19759 CEOF$ac_eof
19760 _ACEOF
19761
19762
19763 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19764 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19765 # trailing colons and then remove the whole line if VPATH becomes empty
19766 # (actually we leave an empty line to preserve line numbers).
19767 if test "x$srcdir" = x.; then
19768   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19769 s/:*\$(srcdir):*/:/
19770 s/:*\${srcdir}:*/:/
19771 s/:*@srcdir@:*/:/
19772 s/^\([^=]*=[     ]*\):*/\1/
19773 s/:*$//
19774 s/^[^=]*=[       ]*$//
19775 }'
19776 fi
19777
19778 cat >>$CONFIG_STATUS <<\_ACEOF
19779 fi # test -n "$CONFIG_FILES"
19780
19781
19782 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19783 do
19784   case $ac_tag in
19785   :[FHLC]) ac_mode=$ac_tag; continue;;
19786   esac
19787   case $ac_mode$ac_tag in
19788   :[FHL]*:*);;
19789   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19790 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19791    { (exit 1); exit 1; }; };;
19792   :[FH]-) ac_tag=-:-;;
19793   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19794   esac
19795   ac_save_IFS=$IFS
19796   IFS=:
19797   set x $ac_tag
19798   IFS=$ac_save_IFS
19799   shift
19800   ac_file=$1
19801   shift
19802
19803   case $ac_mode in
19804   :L) ac_source=$1;;
19805   :[FH])
19806     ac_file_inputs=
19807     for ac_f
19808     do
19809       case $ac_f in
19810       -) ac_f="$tmp/stdin";;
19811       *) # Look for the file first in the build tree, then in the source tree
19812          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19813          # because $ac_f cannot contain `:'.
19814          test -f "$ac_f" ||
19815            case $ac_f in
19816            [\\/$]*) false;;
19817            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19818            esac ||
19819            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19820 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19821    { (exit 1); exit 1; }; };;
19822       esac
19823       ac_file_inputs="$ac_file_inputs $ac_f"
19824     done
19825
19826     # Let's still pretend it is `configure' which instantiates (i.e., don't
19827     # use $as_me), people would be surprised to read:
19828     #    /* config.h.  Generated by config.status.  */
19829     configure_input="Generated from "`IFS=:
19830           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19831     if test x"$ac_file" != x-; then
19832       configure_input="$ac_file.  $configure_input"
19833       { echo "$as_me:$LINENO: creating $ac_file" >&5
19834 echo "$as_me: creating $ac_file" >&6;}
19835     fi
19836
19837     case $ac_tag in
19838     *:-:* | *:-) cat >"$tmp/stdin";;
19839     esac
19840     ;;
19841   esac
19842
19843   ac_dir=`$as_dirname -- "$ac_file" ||
19844 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19845          X"$ac_file" : 'X\(//\)[^/]' \| \
19846          X"$ac_file" : 'X\(//\)$' \| \
19847          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19848 echo X"$ac_file" |
19849     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19850             s//\1/
19851             q
19852           }
19853           /^X\(\/\/\)[^/].*/{
19854             s//\1/
19855             q
19856           }
19857           /^X\(\/\/\)$/{
19858             s//\1/
19859             q
19860           }
19861           /^X\(\/\).*/{
19862             s//\1/
19863             q
19864           }
19865           s/.*/./; q'`
19866   { as_dir="$ac_dir"
19867   case $as_dir in #(
19868   -*) as_dir=./$as_dir;;
19869   esac
19870   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19871     as_dirs=
19872     while :; do
19873       case $as_dir in #(
19874       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19875       *) as_qdir=$as_dir;;
19876       esac
19877       as_dirs="'$as_qdir' $as_dirs"
19878       as_dir=`$as_dirname -- "$as_dir" ||
19879 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19880          X"$as_dir" : 'X\(//\)[^/]' \| \
19881          X"$as_dir" : 'X\(//\)$' \| \
19882          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19883 echo X"$as_dir" |
19884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19885             s//\1/
19886             q
19887           }
19888           /^X\(\/\/\)[^/].*/{
19889             s//\1/
19890             q
19891           }
19892           /^X\(\/\/\)$/{
19893             s//\1/
19894             q
19895           }
19896           /^X\(\/\).*/{
19897             s//\1/
19898             q
19899           }
19900           s/.*/./; q'`
19901       test -d "$as_dir" && break
19902     done
19903     test -z "$as_dirs" || eval "mkdir $as_dirs"
19904   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19905 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19906    { (exit 1); exit 1; }; }; }
19907   ac_builddir=.
19908
19909 case "$ac_dir" in
19910 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19911 *)
19912   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19913   # A ".." for each directory in $ac_dir_suffix.
19914   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19915   case $ac_top_builddir_sub in
19916   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19917   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19918   esac ;;
19919 esac
19920 ac_abs_top_builddir=$ac_pwd
19921 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19922 # for backward compatibility:
19923 ac_top_builddir=$ac_top_build_prefix
19924
19925 case $srcdir in
19926   .)  # We are building in place.
19927     ac_srcdir=.
19928     ac_top_srcdir=$ac_top_builddir_sub
19929     ac_abs_top_srcdir=$ac_pwd ;;
19930   [\\/]* | ?:[\\/]* )  # Absolute name.
19931     ac_srcdir=$srcdir$ac_dir_suffix;
19932     ac_top_srcdir=$srcdir
19933     ac_abs_top_srcdir=$srcdir ;;
19934   *) # Relative name.
19935     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19936     ac_top_srcdir=$ac_top_build_prefix$srcdir
19937     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19938 esac
19939 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19940
19941
19942   case $ac_mode in
19943   :F)
19944   #
19945   # CONFIG_FILE
19946   #
19947
19948   case $INSTALL in
19949   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19950   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19951   esac
19952 _ACEOF
19953
19954 cat >>$CONFIG_STATUS <<\_ACEOF
19955 # If the template does not know about datarootdir, expand it.
19956 # FIXME: This hack should be removed a few years after 2.60.
19957 ac_datarootdir_hack=; ac_datarootdir_seen=
19958
19959 case `sed -n '/datarootdir/ {
19960   p
19961   q
19962 }
19963 /@datadir@/p
19964 /@docdir@/p
19965 /@infodir@/p
19966 /@localedir@/p
19967 /@mandir@/p
19968 ' $ac_file_inputs` in
19969 *datarootdir*) ac_datarootdir_seen=yes;;
19970 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19971   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19972 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19973 _ACEOF
19974 cat >>$CONFIG_STATUS <<_ACEOF
19975   ac_datarootdir_hack='
19976   s&@datadir@&$datadir&g
19977   s&@docdir@&$docdir&g
19978   s&@infodir@&$infodir&g
19979   s&@localedir@&$localedir&g
19980   s&@mandir@&$mandir&g
19981     s&\\\${datarootdir}&$datarootdir&g' ;;
19982 esac
19983 _ACEOF
19984
19985 # Neutralize VPATH when `$srcdir' = `.'.
19986 # Shell code in configure.ac might set extrasub.
19987 # FIXME: do we really want to maintain this feature?
19988 cat >>$CONFIG_STATUS <<_ACEOF
19989   sed "$ac_vpsub
19990 $extrasub
19991 _ACEOF
19992 cat >>$CONFIG_STATUS <<\_ACEOF
19993 :t
19994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19995 s&@configure_input@&$configure_input&;t t
19996 s&@top_builddir@&$ac_top_builddir_sub&;t t
19997 s&@srcdir@&$ac_srcdir&;t t
19998 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19999 s&@top_srcdir@&$ac_top_srcdir&;t t
20000 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20001 s&@builddir@&$ac_builddir&;t t
20002 s&@abs_builddir@&$ac_abs_builddir&;t t
20003 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20004 s&@INSTALL@&$ac_INSTALL&;t t
20005 $ac_datarootdir_hack
20006 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
20007
20008 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20009   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20010   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20011   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20012 which seems to be undefined.  Please make sure it is defined." >&5
20013 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20014 which seems to be undefined.  Please make sure it is defined." >&2;}
20015
20016   rm -f "$tmp/stdin"
20017   case $ac_file in
20018   -) cat "$tmp/out"; rm -f "$tmp/out";;
20019   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20020   esac
20021  ;;
20022   :H)
20023   #
20024   # CONFIG_HEADER
20025   #
20026 _ACEOF
20027
20028 # Transform confdefs.h into a sed script `conftest.defines', that
20029 # substitutes the proper values into config.h.in to produce config.h.
20030 rm -f conftest.defines conftest.tail
20031 # First, append a space to every undef/define line, to ease matching.
20032 echo 's/$/ /' >conftest.defines
20033 # Then, protect against being on the right side of a sed subst, or in
20034 # an unquoted here document, in config.status.  If some macros were
20035 # called several times there might be several #defines for the same
20036 # symbol, which is useless.  But do not sort them, since the last
20037 # AC_DEFINE must be honored.
20038 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20039 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20040 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20041 # PARAMS is the parameter list in the macro definition--in most cases, it's
20042 # just an empty string.
20043 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
20044 ac_dB='\\)[      (].*,\\1define\\2'
20045 ac_dC=' '
20046 ac_dD=' ,'
20047
20048 uniq confdefs.h |
20049   sed -n '
20050         t rset
20051         :rset
20052         s/^[     ]*#[    ]*define[       ][      ]*//
20053         t ok
20054         d
20055         :ok
20056         s/[\\&,]/\\&/g
20057         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20058         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20059   ' >>conftest.defines
20060
20061 # Remove the space that was appended to ease matching.
20062 # Then replace #undef with comments.  This is necessary, for
20063 # example, in the case of _POSIX_SOURCE, which is predefined and required
20064 # on some systems where configure will not decide to define it.
20065 # (The regexp can be short, since the line contains either #define or #undef.)
20066 echo 's/ $//
20067 s,^[     #]*u.*,/* & */,' >>conftest.defines
20068
20069 # Break up conftest.defines:
20070 ac_max_sed_lines=50
20071
20072 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20073 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20074 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20075 # et cetera.
20076 ac_in='$ac_file_inputs'
20077 ac_out='"$tmp/out1"'
20078 ac_nxt='"$tmp/out2"'
20079
20080 while :
20081 do
20082   # Write a here document:
20083     cat >>$CONFIG_STATUS <<_ACEOF
20084     # First, check the format of the line:
20085     cat >"\$tmp/defines.sed" <<\\CEOF
20086 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
20087 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
20088 b
20089 :def
20090 _ACEOF
20091   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20092   echo 'CEOF
20093     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20094   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20095   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20096   grep . conftest.tail >/dev/null || break
20097   rm -f conftest.defines
20098   mv conftest.tail conftest.defines
20099 done
20100 rm -f conftest.defines conftest.tail
20101
20102 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20103 cat >>$CONFIG_STATUS <<\_ACEOF
20104   if test x"$ac_file" != x-; then
20105     echo "/* $configure_input  */" >"$tmp/config.h"
20106     cat "$ac_result" >>"$tmp/config.h"
20107     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20108       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20109 echo "$as_me: $ac_file is unchanged" >&6;}
20110     else
20111       rm -f $ac_file
20112       mv "$tmp/config.h" $ac_file
20113     fi
20114   else
20115     echo "/* $configure_input  */"
20116     cat "$ac_result"
20117   fi
20118   rm -f "$tmp/out12"
20119  ;;
20120
20121   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20122 echo "$as_me: executing $ac_file commands" >&6;}
20123  ;;
20124   esac
20125
20126
20127   case $ac_file$ac_mode in
20128     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20129    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20130     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20131    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20132     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20133    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20134     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20135    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20136     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20137    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20138     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20139    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20140     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20141    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20142     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20143    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20144     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20145    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20146     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20147    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20148     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20149    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20150     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20151    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20152
20153   esac
20154 done # for ac_tag
20155
20156
20157 { (exit 0); exit 0; }
20158 _ACEOF
20159 chmod +x $CONFIG_STATUS
20160 ac_clean_files=$ac_clean_files_save
20161
20162
20163 # configure is writing to config.log, and then calls config.status.
20164 # config.status does its own redirection, appending to config.log.
20165 # Unfortunately, on DOS this fails, as config.log is still kept open
20166 # by configure, so config.status won't be able to write to it; its
20167 # output is simply discarded.  So we exec the FD to /dev/null,
20168 # effectively closing config.log, so it can be properly (re)opened and
20169 # appended to by config.status.  When coming back to configure, we
20170 # need to make the FD available again.
20171 if test "$no_create" != yes; then
20172   ac_cs_success=:
20173   ac_config_status_args=
20174   test "$silent" = yes &&
20175     ac_config_status_args="$ac_config_status_args --quiet"
20176   exec 5>/dev/null
20177   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20178   exec 5>>config.log
20179   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20180   # would make configure fail if this is the last instruction.
20181   $ac_cs_success || { (exit 1); exit 1; }
20182 fi
20183
20184 #
20185 # CONFIG_SUBDIRS section.
20186 #
20187 if test "$no_recursion" != yes; then
20188
20189   # Remove --cache-file and --srcdir arguments so they do not pile up.
20190   ac_sub_configure_args=
20191   ac_prev=
20192   eval "set x $ac_configure_args"
20193   shift
20194   for ac_arg
20195   do
20196     if test -n "$ac_prev"; then
20197       ac_prev=
20198       continue
20199     fi
20200     case $ac_arg in
20201     -cache-file | --cache-file | --cache-fil | --cache-fi \
20202     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20203       ac_prev=cache_file ;;
20204     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20205     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20206     | --c=*)
20207       ;;
20208     --config-cache | -C)
20209       ;;
20210     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20211       ac_prev=srcdir ;;
20212     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20213       ;;
20214     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20215       ac_prev=prefix ;;
20216     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20217       ;;
20218     *)
20219       case $ac_arg in
20220       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20221       esac
20222       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20223     esac
20224   done
20225
20226   # Always prepend --prefix to ensure using the same prefix
20227   # in subdir configurations.
20228   ac_arg="--prefix=$prefix"
20229   case $ac_arg in
20230   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20231   esac
20232   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20233
20234   ac_popdir=`pwd`
20235   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20236
20237     # Do not complain, so a configure script can configure whichever
20238     # parts of a large source tree are present.
20239     test -d "$srcdir/$ac_dir" || continue
20240
20241     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20242     echo "$as_me:$LINENO: $ac_msg" >&5
20243     echo "$ac_msg" >&6
20244     { as_dir="$ac_dir"
20245   case $as_dir in #(
20246   -*) as_dir=./$as_dir;;
20247   esac
20248   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20249     as_dirs=
20250     while :; do
20251       case $as_dir in #(
20252       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20253       *) as_qdir=$as_dir;;
20254       esac
20255       as_dirs="'$as_qdir' $as_dirs"
20256       as_dir=`$as_dirname -- "$as_dir" ||
20257 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20258          X"$as_dir" : 'X\(//\)[^/]' \| \
20259          X"$as_dir" : 'X\(//\)$' \| \
20260          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20261 echo X"$as_dir" |
20262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20263             s//\1/
20264             q
20265           }
20266           /^X\(\/\/\)[^/].*/{
20267             s//\1/
20268             q
20269           }
20270           /^X\(\/\/\)$/{
20271             s//\1/
20272             q
20273           }
20274           /^X\(\/\).*/{
20275             s//\1/
20276             q
20277           }
20278           s/.*/./; q'`
20279       test -d "$as_dir" && break
20280     done
20281     test -z "$as_dirs" || eval "mkdir $as_dirs"
20282   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20283 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20284    { (exit 1); exit 1; }; }; }
20285     ac_builddir=.
20286
20287 case "$ac_dir" in
20288 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20289 *)
20290   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20291   # A ".." for each directory in $ac_dir_suffix.
20292   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20293   case $ac_top_builddir_sub in
20294   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20295   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20296   esac ;;
20297 esac
20298 ac_abs_top_builddir=$ac_pwd
20299 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20300 # for backward compatibility:
20301 ac_top_builddir=$ac_top_build_prefix
20302
20303 case $srcdir in
20304   .)  # We are building in place.
20305     ac_srcdir=.
20306     ac_top_srcdir=$ac_top_builddir_sub
20307     ac_abs_top_srcdir=$ac_pwd ;;
20308   [\\/]* | ?:[\\/]* )  # Absolute name.
20309     ac_srcdir=$srcdir$ac_dir_suffix;
20310     ac_top_srcdir=$srcdir
20311     ac_abs_top_srcdir=$srcdir ;;
20312   *) # Relative name.
20313     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20314     ac_top_srcdir=$ac_top_build_prefix$srcdir
20315     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20316 esac
20317 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20318
20319
20320     cd "$ac_dir"
20321
20322     # Check for guested configure; otherwise get Cygnus style configure.
20323     if test -f "$ac_srcdir/configure.gnu"; then
20324       ac_sub_configure=$ac_srcdir/configure.gnu
20325     elif test -f "$ac_srcdir/configure"; then
20326       ac_sub_configure=$ac_srcdir/configure
20327     elif test -f "$ac_srcdir/configure.in"; then
20328       # This should be Cygnus configure.
20329       ac_sub_configure=$ac_aux_dir/configure
20330     else
20331       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20332 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20333       ac_sub_configure=
20334     fi
20335
20336     # The recursion is here.
20337     if test -n "$ac_sub_configure"; then
20338       # Make the cache file name correct relative to the subdirectory.
20339       case $cache_file in
20340       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20341       *) # Relative name.
20342         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
20343       esac
20344
20345       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
20346 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20347       # The eval makes quoting arguments work.
20348       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20349            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20350         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
20351 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
20352    { (exit 1); exit 1; }; }
20353     fi
20354
20355     cd "$ac_popdir"
20356   done
20357 fi
20358