[mips] Fix ll and sc instructions
[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.5.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.5.0svn'
565 PACKAGE_STRING='LLVM 3.5.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_CLANG_REWRITER
695 ENABLE_OPTIMIZED
696 ENABLE_PROFILING
697 DISABLE_ASSERTIONS
698 ENABLE_WERROR
699 ENABLE_EXPENSIVE_CHECKS
700 EXPENSIVE_CHECKS
701 DEBUG_RUNTIME
702 DEBUG_SYMBOLS
703 KEEP_SYMBOLS
704 JIT
705 TARGET_HAS_JIT
706 TARGETS_WITH_JIT
707 ENABLE_DOCS
708 ENABLE_DOXYGEN
709 LLVM_ENABLE_THREADS
710 ENABLE_PTHREADS
711 LLVM_ENABLE_ZLIB
712 ENABLE_PIC
713 ENABLE_SHARED
714 ENABLE_EMBED_STDCXX
715 ENABLE_TIMESTAMPS
716 ALL_TARGETS
717 TARGETS_TO_BUILD
718 LLVM_ENUM_TARGETS
719 LLVM_ENUM_ASM_PRINTERS
720 LLVM_ENUM_ASM_PARSERS
721 LLVM_ENUM_DISASSEMBLERS
722 OPTIMIZE_OPTION
723 EXTRA_OPTIONS
724 EXTRA_LD_OPTIONS
725 CLANG_SRC_ROOT
726 BINUTILS_INCDIR
727 ENABLE_TERMINFO
728 INTERNAL_PREFIX
729 ifGNUmake
730 LN_S
731 NM
732 CMP
733 CP
734 DATE
735 FIND
736 GREP
737 MKDIR
738 MV
739 RANLIB
740 AR
741 RM
742 SED
743 TAR
744 BINPWD
745 GRAPHVIZ
746 DOT
747 FDP
748 NEATO
749 TWOPI
750 CIRCO
751 GV
752 DOTTY
753 XDOT
754 INSTALL_PROGRAM
755 INSTALL_SCRIPT
756 INSTALL_DATA
757 BZIP2
758 CAT
759 DOXYGEN
760 GROFF
761 GZIPBIN
762 PDFROFF
763 ZIP
764 OCAMLC
765 OCAMLOPT
766 OCAMLDEP
767 OCAMLDOC
768 GAS
769 HAVE_LINK_VERSION_SCRIPT
770 EGREP
771 NO_VARIADIC_MACROS
772 NO_MISSING_FIELD_INITIALIZERS
773 COVERED_SWITCH_DEFAULT
774 NO_MAYBE_UNINITIALIZED
775 NO_UNINITIALIZED
776 PYTHON
777 HAVE_DLOPEN
778 HAVE_TERMINFO
779 USE_UDIS86
780 USE_OPROFILE
781 USE_INTEL_JITEVENTS
782 XML2CONFIG
783 LIBXML2_LIBS
784 LIBXML2_INC
785 CXXCPP
786 HAVE_PTHREAD
787 HAVE_LIBZ
788 HUGE_VAL_SANITY
789 MMAP_FILE
790 SHLIBEXT
791 LLVM_PREFIX
792 LLVM_BINDIR
793 LLVM_DATADIR
794 LLVM_DOCSDIR
795 LLVM_ETCDIR
796 LLVM_INCLUDEDIR
797 LLVM_INFODIR
798 LLVM_MANDIR
799 LLVM_CONFIGTIME
800 BINDINGS_TO_BUILD
801 ALL_BINDINGS
802 OCAML_LIBDIR
803 ENABLE_VISIBILITY_INLINES_HIDDEN
804 RPATH
805 RDYNAMIC
806 program_prefix
807 LIBOBJS
808 LTLIBOBJS'
809 ac_subst_files=''
810       ac_precious_vars='build_alias
811 host_alias
812 target_alias
813 CC
814 CFLAGS
815 LDFLAGS
816 CPPFLAGS
817 CXX
818 CXXFLAGS
819 CCC
820 CPP
821 CXXCPP'
822 ac_subdirs_all='projects/test-suite
823 projects/llvm-test
824 projects/poolalloc
825 projects/llvm-poolalloc
826 projects/safecode
827 tools/polly'
828
829 # Initialize some variables set by options.
830 ac_init_help=
831 ac_init_version=false
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
848
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
874
875 ac_prev=
876 ac_dashdash=
877 for ac_option
878 do
879   # If the previous option needs an argument, assign it.
880   if test -n "$ac_prev"; then
881     eval $ac_prev=\$ac_option
882     ac_prev=
883     continue
884   fi
885
886   case $ac_option in
887   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888   *)    ac_optarg=yes ;;
889   esac
890
891   # Accept the important Cygnus configure options, so we can diagnose typos.
892
893   case $ac_dashdash$ac_option in
894   --)
895     ac_dashdash=yes ;;
896
897   -bindir | --bindir | --bindi | --bind | --bin | --bi)
898     ac_prev=bindir ;;
899   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900     bindir=$ac_optarg ;;
901
902   -build | --build | --buil | --bui | --bu)
903     ac_prev=build_alias ;;
904   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905     build_alias=$ac_optarg ;;
906
907   -cache-file | --cache-file | --cache-fil | --cache-fi \
908   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909     ac_prev=cache_file ;;
910   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912     cache_file=$ac_optarg ;;
913
914   --config-cache | -C)
915     cache_file=config.cache ;;
916
917   -datadir | --datadir | --datadi | --datad)
918     ac_prev=datadir ;;
919   -datadir=* | --datadir=* | --datadi=* | --datad=*)
920     datadir=$ac_optarg ;;
921
922   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923   | --dataroo | --dataro | --datar)
924     ac_prev=datarootdir ;;
925   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927     datarootdir=$ac_optarg ;;
928
929   -disable-* | --disable-*)
930     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931     # Reject names that are not valid shell variable names.
932     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934    { (exit 1); exit 1; }; }
935     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936     eval enable_$ac_feature=no ;;
937
938   -docdir | --docdir | --docdi | --doc | --do)
939     ac_prev=docdir ;;
940   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941     docdir=$ac_optarg ;;
942
943   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944     ac_prev=dvidir ;;
945   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946     dvidir=$ac_optarg ;;
947
948   -enable-* | --enable-*)
949     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950     # Reject names that are not valid shell variable names.
951     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953    { (exit 1); exit 1; }; }
954     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955     eval enable_$ac_feature=\$ac_optarg ;;
956
957   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959   | --exec | --exe | --ex)
960     ac_prev=exec_prefix ;;
961   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963   | --exec=* | --exe=* | --ex=*)
964     exec_prefix=$ac_optarg ;;
965
966   -gas | --gas | --ga | --g)
967     # Obsolete; use --with-gas.
968     with_gas=yes ;;
969
970   -help | --help | --hel | --he | -h)
971     ac_init_help=long ;;
972   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973     ac_init_help=recursive ;;
974   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975     ac_init_help=short ;;
976
977   -host | --host | --hos | --ho)
978     ac_prev=host_alias ;;
979   -host=* | --host=* | --hos=* | --ho=*)
980     host_alias=$ac_optarg ;;
981
982   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983     ac_prev=htmldir ;;
984   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985   | --ht=*)
986     htmldir=$ac_optarg ;;
987
988   -includedir | --includedir | --includedi | --included | --include \
989   | --includ | --inclu | --incl | --inc)
990     ac_prev=includedir ;;
991   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992   | --includ=* | --inclu=* | --incl=* | --inc=*)
993     includedir=$ac_optarg ;;
994
995   -infodir | --infodir | --infodi | --infod | --info | --inf)
996     ac_prev=infodir ;;
997   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998     infodir=$ac_optarg ;;
999
1000   -libdir | --libdir | --libdi | --libd)
1001     ac_prev=libdir ;;
1002   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003     libdir=$ac_optarg ;;
1004
1005   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006   | --libexe | --libex | --libe)
1007     ac_prev=libexecdir ;;
1008   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009   | --libexe=* | --libex=* | --libe=*)
1010     libexecdir=$ac_optarg ;;
1011
1012   -localedir | --localedir | --localedi | --localed | --locale)
1013     ac_prev=localedir ;;
1014   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015     localedir=$ac_optarg ;;
1016
1017   -localstatedir | --localstatedir | --localstatedi | --localstated \
1018   | --localstate | --localstat | --localsta | --localst | --locals)
1019     ac_prev=localstatedir ;;
1020   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022     localstatedir=$ac_optarg ;;
1023
1024   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025     ac_prev=mandir ;;
1026   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027     mandir=$ac_optarg ;;
1028
1029   -nfp | --nfp | --nf)
1030     # Obsolete; use --without-fp.
1031     with_fp=no ;;
1032
1033   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034   | --no-cr | --no-c | -n)
1035     no_create=yes ;;
1036
1037   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039     no_recursion=yes ;;
1040
1041   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043   | --oldin | --oldi | --old | --ol | --o)
1044     ac_prev=oldincludedir ;;
1045   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048     oldincludedir=$ac_optarg ;;
1049
1050   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051     ac_prev=prefix ;;
1052   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053     prefix=$ac_optarg ;;
1054
1055   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056   | --program-pre | --program-pr | --program-p)
1057     ac_prev=program_prefix ;;
1058   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060     program_prefix=$ac_optarg ;;
1061
1062   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063   | --program-suf | --program-su | --program-s)
1064     ac_prev=program_suffix ;;
1065   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067     program_suffix=$ac_optarg ;;
1068
1069   -program-transform-name | --program-transform-name \
1070   | --program-transform-nam | --program-transform-na \
1071   | --program-transform-n | --program-transform- \
1072   | --program-transform | --program-transfor \
1073   | --program-transfo | --program-transf \
1074   | --program-trans | --program-tran \
1075   | --progr-tra | --program-tr | --program-t)
1076     ac_prev=program_transform_name ;;
1077   -program-transform-name=* | --program-transform-name=* \
1078   | --program-transform-nam=* | --program-transform-na=* \
1079   | --program-transform-n=* | --program-transform-=* \
1080   | --program-transform=* | --program-transfor=* \
1081   | --program-transfo=* | --program-transf=* \
1082   | --program-trans=* | --program-tran=* \
1083   | --progr-tra=* | --program-tr=* | --program-t=*)
1084     program_transform_name=$ac_optarg ;;
1085
1086   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087     ac_prev=pdfdir ;;
1088   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089     pdfdir=$ac_optarg ;;
1090
1091   -psdir | --psdir | --psdi | --psd | --ps)
1092     ac_prev=psdir ;;
1093   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094     psdir=$ac_optarg ;;
1095
1096   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097   | -silent | --silent | --silen | --sile | --sil)
1098     silent=yes ;;
1099
1100   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101     ac_prev=sbindir ;;
1102   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103   | --sbi=* | --sb=*)
1104     sbindir=$ac_optarg ;;
1105
1106   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108   | --sharedst | --shareds | --shared | --share | --shar \
1109   | --sha | --sh)
1110     ac_prev=sharedstatedir ;;
1111   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114   | --sha=* | --sh=*)
1115     sharedstatedir=$ac_optarg ;;
1116
1117   -site | --site | --sit)
1118     ac_prev=site ;;
1119   -site=* | --site=* | --sit=*)
1120     site=$ac_optarg ;;
1121
1122   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123     ac_prev=srcdir ;;
1124   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125     srcdir=$ac_optarg ;;
1126
1127   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128   | --syscon | --sysco | --sysc | --sys | --sy)
1129     ac_prev=sysconfdir ;;
1130   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132     sysconfdir=$ac_optarg ;;
1133
1134   -target | --target | --targe | --targ | --tar | --ta | --t)
1135     ac_prev=target_alias ;;
1136   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137     target_alias=$ac_optarg ;;
1138
1139   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140     verbose=yes ;;
1141
1142   -version | --version | --versio | --versi | --vers | -V)
1143     ac_init_version=: ;;
1144
1145   -with-* | --with-*)
1146     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid package name: $ac_package" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_package=`echo $ac_package| sed 's/-/_/g'`
1152     eval with_$ac_package=\$ac_optarg ;;
1153
1154   -without-* | --without-*)
1155     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158       { echo "$as_me: error: invalid package name: $ac_package" >&2
1159    { (exit 1); exit 1; }; }
1160     ac_package=`echo $ac_package | sed 's/-/_/g'`
1161     eval with_$ac_package=no ;;
1162
1163   --x)
1164     # Obsolete; use --with-x.
1165     with_x=yes ;;
1166
1167   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168   | --x-incl | --x-inc | --x-in | --x-i)
1169     ac_prev=x_includes ;;
1170   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172     x_includes=$ac_optarg ;;
1173
1174   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176     ac_prev=x_libraries ;;
1177   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179     x_libraries=$ac_optarg ;;
1180
1181   -*) { echo "$as_me: error: unrecognized option: $ac_option
1182 Try \`$0 --help' for more information." >&2
1183    { (exit 1); exit 1; }; }
1184     ;;
1185
1186   *=*)
1187     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191    { (exit 1); exit 1; }; }
1192     eval $ac_envvar=\$ac_optarg
1193     export $ac_envvar ;;
1194
1195   *)
1196     # FIXME: should be removed in autoconf 3.0.
1197     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201     ;;
1202
1203   esac
1204 done
1205
1206 if test -n "$ac_prev"; then
1207   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208   { echo "$as_me: error: missing argument to $ac_option" >&2
1209    { (exit 1); exit 1; }; }
1210 fi
1211
1212 # Be sure to have absolute directory names.
1213 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214                 datadir sysconfdir sharedstatedir localstatedir includedir \
1215                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216                 libdir localedir mandir
1217 do
1218   eval ac_val=\$$ac_var
1219   case $ac_val in
1220     [\\/$]* | ?:[\\/]* )  continue;;
1221     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222   esac
1223   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224    { (exit 1); exit 1; }; }
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236   if test "x$build_alias" = x; then
1237     cross_compiling=maybe
1238     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239     If a cross compiler is detected then cross compile mode will be used." >&2
1240   elif test "x$build_alias" != "x$host_alias"; then
1241     cross_compiling=yes
1242   fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254   { echo "$as_me: error: Working directory cannot be determined" >&2
1255    { (exit 1); exit 1; }; }
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257   { echo "$as_me: error: pwd does not report name of working directory" >&2
1258    { (exit 1); exit 1; }; }
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263   ac_srcdir_defaulted=yes
1264   # Try the directory containing this script, then the parent directory.
1265   ac_confdir=`$as_dirname -- "$0" ||
1266 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267          X"$0" : 'X\(//\)[^/]' \| \
1268          X"$0" : 'X\(//\)$' \| \
1269          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1270 echo X"$0" |
1271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)[^/].*/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\).*/{
1284             s//\1/
1285             q
1286           }
1287           s/.*/./; q'`
1288   srcdir=$ac_confdir
1289   if test ! -r "$srcdir/$ac_unique_file"; then
1290     srcdir=..
1291   fi
1292 else
1293   ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298    { (exit 1); exit 1; }; }
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303    { (exit 1); exit 1; }; }
1304         pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307   srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_env_${ac_var}_value=\$${ac_var}
1318   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326   # Omit some internal or obsolete options to make the list less imposing.
1327   # This message is too long to be a string in the A/UX 3.1 sh.
1328   cat <<_ACEOF
1329 \`configure' configures LLVM 3.5.0svn to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE.  See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339   -h, --help              display this help and exit
1340       --help=short        display options specific to this package
1341       --help=recursive    display the short help of all the included packages
1342   -V, --version           display version information and exit
1343   -q, --quiet, --silent   do not print \`checking...' messages
1344       --cache-file=FILE   cache test results in FILE [disabled]
1345   -C, --config-cache      alias for \`--cache-file=config.cache'
1346   -n, --no-create         do not create output files
1347       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1348
1349 Installation directories:
1350   --prefix=PREFIX         install architecture-independent files in PREFIX
1351                           [$ac_default_prefix]
1352   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1353                           [PREFIX]
1354
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363   --bindir=DIR           user executables [EPREFIX/bin]
1364   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1365   --libexecdir=DIR       program executables [EPREFIX/libexec]
1366   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1367   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1368   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1369   --libdir=DIR           object code libraries [EPREFIX/lib]
1370   --includedir=DIR       C header files [PREFIX/include]
1371   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1372   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1373   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1374   --infodir=DIR          info documentation [DATAROOTDIR/info]
1375   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1376   --mandir=DIR           man documentation [DATAROOTDIR/man]
1377   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1378   --htmldir=DIR          html documentation [DOCDIR]
1379   --dvidir=DIR           dvi documentation [DOCDIR]
1380   --pdfdir=DIR           pdf documentation [DOCDIR]
1381   --psdir=DIR            ps documentation [DOCDIR]
1382 _ACEOF
1383
1384   cat <<\_ACEOF
1385
1386 System types:
1387   --build=BUILD     configure for building on BUILD [guessed]
1388   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389   --target=TARGET   configure for building compilers for TARGET [HOST]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394   case $ac_init_help in
1395      short | recursive ) echo "Configuration of LLVM 3.5.0svn:";;
1396    esac
1397   cat <<\_ACEOF
1398
1399 Optional Features:
1400   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402   --enable-polly          Use polly if available (default is YES)
1403   --enable-libcpp         Use libc++ if available (default is NO)
1404   --enable-compiler-version-checks
1405                           Check the version of the host compiler (default is
1406                           YES)
1407   --enable-cxx1y          Use c++1y if available (default is NO)
1408   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1409   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1410   --enable-clang-plugin-support
1411                           Enable plugin support in clang (default is YES)
1412   --enable-clang-static-analyzer
1413                           Enable building of clang Static Analyzer (default is
1414                           YES)
1415   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416   --enable-optimized      Compile with optimizations enabled (default is NO)
1417   --enable-profiling      Compile with profiling enabled (default is NO)
1418   --enable-assertions     Compile with assertion checks enabled (default is
1419                           YES)
1420   --enable-werror         Compile with -Werror enabled (default is NO)
1421   --enable-expensive-checks
1422                           Compile with expensive debug checks enabled (default
1423                           is NO)
1424   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1425                           NO)
1426   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1427                           optimization is on and YES if it's off)
1428   --enable-keep-symbols   Do not strip installed executables)
1429   --enable-jit            Enable Just In Time Compiling (default is YES)
1430   --enable-docs           Build documents (default is YES)
1431   --enable-doxygen        Build doxygen documentation (default is NO)
1432   --enable-threads        Use threads if available (default is YES)
1433   --enable-pthreads       Use pthreads if available (default is YES)
1434   --enable-zlib           Use zlib for compression/decompression if available
1435                           (default is YES)
1436   --enable-pic            Build LLVM with Position Independent Code (default
1437                           is YES)
1438   --enable-shared         Build a shared library and link tools against it
1439                           (default is NO)
1440   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1441                           Win32 DLL (default is NO)
1442   --enable-timestamps     Enable embedding timestamp information in build
1443                           (default is YES)
1444   --enable-backtraces     Enable embedding backtraces on crash (default is
1445                           YES)
1446   --enable-crash-overrides
1447                           Enable crash handling overrides (default is YES)
1448   --enable-targets        Build specific host targets: all or
1449                           target1,target2,... Valid targets are: host, x86,
1450                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1451                           hexagon, xcore, msp430, nvptx, systemz, r600, and
1452                           cpp (default=all)
1453   --enable-experimental-targets
1454                           Build experimental host targets: disable or
1455                           target1,target2,... (default=disable)
1456   --enable-bindings       Build specific language bindings:
1457                           all,auto,none,{binding-name} (default=auto)
1458   --enable-terminfo       Query the terminfo database if available (default is
1459                           YES)
1460   --enable-libedit        Use libedit if available (default is YES)
1461   --enable-libffi         Check for the presence of libffi (default is NO)
1462
1463 Optional Packages:
1464   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1465   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1466   --with-optimize-option  Select the compiler options to use for optimized
1467                           builds
1468   --with-extra-options    Specify additional options to compile LLVM with
1469   --with-extra-ld-options Specify additional options to link LLVM with
1470   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1471                           is stdlib)
1472   --with-clang-srcdir     Directory to the out-of-tree Clang source
1473   --with-clang-resource-dir
1474                           Relative directory from the Clang binary for
1475                           resource files
1476   --with-c-include-dirs   Colon separated list of directories clang will
1477                           search for headers
1478   --with-gcc-toolchain    Directory where gcc is installed.
1479   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1480   --with-binutils-include Specify path to binutils/include/ containing
1481                           plugin-api.h file for gold plugin.
1482   --with-bug-report-url   Specify the URL where bug reports should be
1483                           submitted (default=http://llvm.org/bugs/)
1484   --with-internal-prefix  Installation directory for internal files
1485   --with-python           path to python
1486   --with-udis86=<path>    Use udis86 external x86 disassembler library
1487   --with-oprofile=<prefix>
1488                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1489   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1490
1491
1492 Some influential environment variables:
1493   CC          C compiler command
1494   CFLAGS      C compiler flags
1495   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496               nonstandard directory <lib dir>
1497   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498               you have headers in a nonstandard directory <include dir>
1499   CXX         C++ compiler command
1500   CXXFLAGS    C++ compiler flags
1501   CPP         C preprocessor
1502   CXXCPP      C++ preprocessor
1503
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1506
1507 Report bugs to <http://llvm.org/bugs/>.
1508 _ACEOF
1509 ac_status=$?
1510 fi
1511
1512 if test "$ac_init_help" = "recursive"; then
1513   # If there are subdirs, report their specific --help.
1514   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515     test -d "$ac_dir" || continue
1516     ac_builddir=.
1517
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *)
1521   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1522   # A ".." for each directory in $ac_dir_suffix.
1523   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1524   case $ac_top_builddir_sub in
1525   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527   esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1533
1534 case $srcdir in
1535   .)  # We are building in place.
1536     ac_srcdir=.
1537     ac_top_srcdir=$ac_top_builddir_sub
1538     ac_abs_top_srcdir=$ac_pwd ;;
1539   [\\/]* | ?:[\\/]* )  # Absolute name.
1540     ac_srcdir=$srcdir$ac_dir_suffix;
1541     ac_top_srcdir=$srcdir
1542     ac_abs_top_srcdir=$srcdir ;;
1543   *) # Relative name.
1544     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545     ac_top_srcdir=$ac_top_build_prefix$srcdir
1546     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550     cd "$ac_dir" || { ac_status=$?; continue; }
1551     # Check for guested configure.
1552     if test -f "$ac_srcdir/configure.gnu"; then
1553       echo &&
1554       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555     elif test -f "$ac_srcdir/configure"; then
1556       echo &&
1557       $SHELL "$ac_srcdir/configure" --help=recursive
1558     else
1559       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560     fi || ac_status=$?
1561     cd "$ac_pwd" || { ac_status=$?; break; }
1562   done
1563 fi
1564
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567   cat <<\_ACEOF
1568 LLVM configure 3.5.0svn
1569 generated by GNU Autoconf 2.60
1570
1571 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1572 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575
1576 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1577 _ACEOF
1578   exit
1579 fi
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1583
1584 It was created by LLVM $as_me 3.5.0svn, which was
1585 generated by GNU Autoconf 2.60.  Invocation command line was
1586
1587   $ $0 $@
1588
1589 _ACEOF
1590 exec 5>>config.log
1591 {
1592 cat <<_ASUNAME
1593 ## --------- ##
1594 ## Platform. ##
1595 ## --------- ##
1596
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1605
1606 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1607 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1610 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1611 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1612 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1613
1614 _ASUNAME
1615
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619   IFS=$as_save_IFS
1620   test -z "$as_dir" && as_dir=.
1621   echo "PATH: $as_dir"
1622 done
1623 IFS=$as_save_IFS
1624
1625 } >&5
1626
1627 cat >&5 <<_ACEOF
1628
1629
1630 ## ----------- ##
1631 ## Core tests. ##
1632 ## ----------- ##
1633
1634 _ACEOF
1635
1636
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1642 ac_configure_args=
1643 ac_configure_args0=
1644 ac_configure_args1=
1645 ac_must_keep_next=false
1646 for ac_pass in 1 2
1647 do
1648   for ac_arg
1649   do
1650     case $ac_arg in
1651     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653     | -silent | --silent | --silen | --sile | --sil)
1654       continue ;;
1655     *\'*)
1656       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657     esac
1658     case $ac_pass in
1659     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660     2)
1661       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662       if test $ac_must_keep_next = true; then
1663         ac_must_keep_next=false # Got value, back to normal.
1664       else
1665         case $ac_arg in
1666           *=* | --config-cache | -C | -disable-* | --disable-* \
1667           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669           | -with-* | --with-* | -without-* | --without-* | --x)
1670             case "$ac_configure_args0 " in
1671               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672             esac
1673             ;;
1674           -* ) ac_must_keep_next=true ;;
1675         esac
1676       fi
1677       ac_configure_args="$ac_configure_args '$ac_arg'"
1678       ;;
1679     esac
1680   done
1681 done
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log.  We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691   # Save into config.log some information that might help in debugging.
1692   {
1693     echo
1694
1695     cat <<\_ASBOX
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1699 _ASBOX
1700     echo
1701     # The following way of writing the cache mishandles newlines in values,
1702 (
1703   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704     eval ac_val=\$$ac_var
1705     case $ac_val in #(
1706     *${as_nl}*)
1707       case $ac_var in #(
1708       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710       esac
1711       case $ac_var in #(
1712       _ | IFS | as_nl) ;; #(
1713       *) $as_unset $ac_var ;;
1714       esac ;;
1715     esac
1716   done
1717   (set) 2>&1 |
1718     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719     *${as_nl}ac_space=\ *)
1720       sed -n \
1721         "s/'\''/'\''\\\\'\'''\''/g;
1722           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723       ;; #(
1724     *)
1725       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726       ;;
1727     esac |
1728     sort
1729 )
1730     echo
1731
1732     cat <<\_ASBOX
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1736 _ASBOX
1737     echo
1738     for ac_var in $ac_subst_vars
1739     do
1740       eval ac_val=\$$ac_var
1741       case $ac_val in
1742       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743       esac
1744       echo "$ac_var='\''$ac_val'\''"
1745     done | sort
1746     echo
1747
1748     if test -n "$ac_subst_files"; then
1749       cat <<\_ASBOX
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1753 _ASBOX
1754       echo
1755       for ac_var in $ac_subst_files
1756       do
1757         eval ac_val=\$$ac_var
1758         case $ac_val in
1759         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760         esac
1761         echo "$ac_var='\''$ac_val'\''"
1762       done | sort
1763       echo
1764     fi
1765
1766     if test -s confdefs.h; then
1767       cat <<\_ASBOX
1768 ## ----------- ##
1769 ## confdefs.h. ##
1770 ## ----------- ##
1771 _ASBOX
1772       echo
1773       cat confdefs.h
1774       echo
1775     fi
1776     test "$ac_signal" != 0 &&
1777       echo "$as_me: caught signal $ac_signal"
1778     echo "$as_me: exit $exit_status"
1779   } >&5
1780   rm -f core *.core core.conftest.* &&
1781     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782     exit $exit_status
1783 ' 0
1784 for ac_signal in 1 2 13 15; do
1785   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786 done
1787 ac_signal=0
1788
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1791
1792 # Predefined preprocessor variables.
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816 _ACEOF
1817
1818
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822   set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825 else
1826   set x "$ac_default_prefix/share/config.site" \
1827         "$ac_default_prefix/etc/config.site"
1828 fi
1829 shift
1830 for ac_site_file
1831 do
1832   if test -r "$ac_site_file"; then
1833     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835     sed 's/^/| /' "$ac_site_file" >&5
1836     . "$ac_site_file"
1837   fi
1838 done
1839
1840 if test -r "$cache_file"; then
1841   # Some versions of bash will fail to source /dev/null (special
1842   # files actually), so we avoid doing that.
1843   if test -f "$cache_file"; then
1844     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1846     case $cache_file in
1847       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848       *)                      . "./$cache_file";;
1849     esac
1850   fi
1851 else
1852   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1854   >$cache_file
1855 fi
1856
1857 # Check that the precious variables saved in the cache have kept the same
1858 # value.
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862   eval ac_new_set=\$ac_env_${ac_var}_set
1863   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864   eval ac_new_val=\$ac_env_${ac_var}_value
1865   case $ac_old_set,$ac_new_set in
1866     set,)
1867       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869       ac_cache_corrupted=: ;;
1870     ,set)
1871       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873       ac_cache_corrupted=: ;;
1874     ,);;
1875     *)
1876       if test "x$ac_old_val" != "x$ac_new_val"; then
1877         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1880 echo "$as_me:   former value:  $ac_old_val" >&2;}
1881         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1882 echo "$as_me:   current value: $ac_new_val" >&2;}
1883         ac_cache_corrupted=:
1884       fi;;
1885   esac
1886   # Pass precious variables to config.status.
1887   if test "$ac_new_set" = set; then
1888     case $ac_new_val in
1889     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890     *) ac_arg=$ac_var=$ac_new_val ;;
1891     esac
1892     case " $ac_configure_args " in
1893       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1894       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895     esac
1896   fi
1897 done
1898 if $ac_cache_corrupted; then
1899   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903    { (exit 1); exit 1; }; }
1904 fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937
1938 LLVM_VERSION_MAJOR=3
1939 LLVM_VERSION_MINOR=5
1940 LLVM_VERSION_PATCH=0
1941 LLVM_VERSION_SUFFIX=svn
1942
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1946 _ACEOF
1947
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1951 _ACEOF
1952
1953
1954 cat >>confdefs.h <<_ACEOF
1955 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1956 _ACEOF
1957
1958
1959
1960
1961
1962
1963
1964 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1965
1966
1967
1968
1969
1970
1971
1972 ac_aux_dir=
1973 for ac_dir in autoconf "$srcdir"/autoconf; do
1974   if test -f "$ac_dir/install-sh"; then
1975     ac_aux_dir=$ac_dir
1976     ac_install_sh="$ac_aux_dir/install-sh -c"
1977     break
1978   elif test -f "$ac_dir/install.sh"; then
1979     ac_aux_dir=$ac_dir
1980     ac_install_sh="$ac_aux_dir/install.sh -c"
1981     break
1982   elif test -f "$ac_dir/shtool"; then
1983     ac_aux_dir=$ac_dir
1984     ac_install_sh="$ac_aux_dir/shtool install -c"
1985     break
1986   fi
1987 done
1988 if test -z "$ac_aux_dir"; then
1989   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1990 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1991    { (exit 1); exit 1; }; }
1992 fi
1993
1994 # These three variables are undocumented and unsupported,
1995 # and are intended to be withdrawn in a future Autoconf release.
1996 # They can cause serious problems if a builder's source tree is in a directory
1997 # whose full name contains unusual characters.
1998 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1999 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2000 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2001
2002
2003
2004 if test ${srcdir} != "." ; then
2005   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2006     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2007 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2008    { (exit 1); exit 1; }; }
2009   fi
2010 fi
2011
2012 : ${CFLAGS=}
2013 : ${CXXFLAGS=}
2014
2015 ac_ext=c
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020 if test -n "$ac_tool_prefix"; then
2021   for ac_prog in clang gcc
2022   do
2023     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   if test -n "$CC"; then
2031   ac_cv_prog_CC="$CC" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036   IFS=$as_save_IFS
2037   test -z "$as_dir" && as_dir=.
2038   for ac_exec_ext in '' $ac_executable_extensions; do
2039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2040     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042     break 2
2043   fi
2044 done
2045 done
2046 IFS=$as_save_IFS
2047
2048 fi
2049 fi
2050 CC=$ac_cv_prog_CC
2051 if test -n "$CC"; then
2052   { echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6; }
2054 else
2055   { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2057 fi
2058
2059
2060     test -n "$CC" && break
2061   done
2062 fi
2063 if test -z "$CC"; then
2064   ac_ct_CC=$CC
2065   for ac_prog in clang gcc
2066 do
2067   # Extract the first word of "$ac_prog", so it can be a program name with args.
2068 set dummy $ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test -n "$ac_ct_CC"; then
2075   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   for ac_exec_ext in '' $ac_executable_extensions; do
2083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084     ac_cv_prog_ac_ct_CC="$ac_prog"
2085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086     break 2
2087   fi
2088 done
2089 done
2090 IFS=$as_save_IFS
2091
2092 fi
2093 fi
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6; }
2098 else
2099   { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2101 fi
2102
2103
2104   test -n "$ac_ct_CC" && break
2105 done
2106
2107   if test "x$ac_ct_CC" = x; then
2108     CC=""
2109   else
2110     case $cross_compiling:$ac_tool_warned in
2111 yes:)
2112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2113 whose name does not start with the host triplet.  If you think this
2114 configuration is useful to you, please write to autoconf@gnu.org." >&5
2115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2116 whose name does not start with the host triplet.  If you think this
2117 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2118 ac_tool_warned=yes ;;
2119 esac
2120     CC=$ac_ct_CC
2121   fi
2122 fi
2123
2124
2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&2;}
2129    { (exit 1); exit 1; }; }
2130
2131 # Provide some information about the compiler.
2132 echo "$as_me:$LINENO: checking for C compiler version" >&5
2133 ac_compiler=`set X $ac_compile; echo $2`
2134 { (ac_try="$ac_compiler --version >&5"
2135 case "(($ac_try" in
2136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137   *) ac_try_echo=$ac_try;;
2138 esac
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140   (eval "$ac_compiler --version >&5") 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2144 { (ac_try="$ac_compiler -v >&5"
2145 case "(($ac_try" in
2146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147   *) ac_try_echo=$ac_try;;
2148 esac
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150   (eval "$ac_compiler -v >&5") 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }
2154 { (ac_try="$ac_compiler -V >&5"
2155 case "(($ac_try" in
2156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157   *) ac_try_echo=$ac_try;;
2158 esac
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160   (eval "$ac_compiler -V >&5") 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }
2164
2165 cat >conftest.$ac_ext <<_ACEOF
2166 /* confdefs.h.  */
2167 _ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h.  */
2171
2172 int
2173 main ()
2174 {
2175
2176   ;
2177   return 0;
2178 }
2179 _ACEOF
2180 ac_clean_files_save=$ac_clean_files
2181 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182 # Try to create an executable without -o first, disregard a.out.
2183 # It will help us diagnose broken compilers, and finding out an intuition
2184 # of exeext.
2185 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188 #
2189 # List of possible output files, starting from the most likely.
2190 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2191 # only as a last resort.  b.out is created by i960 compilers.
2192 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2193 #
2194 # The IRIX 6 linker writes into existing files which may not be
2195 # executable, retaining their permissions.  Remove them first so a
2196 # subsequent execution test works.
2197 ac_rmfiles=
2198 for ac_file in $ac_files
2199 do
2200   case $ac_file in
2201     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2202     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2203   esac
2204 done
2205 rm -f $ac_rmfiles
2206
2207 if { (ac_try="$ac_link_default"
2208 case "(($ac_try" in
2209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210   *) ac_try_echo=$ac_try;;
2211 esac
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213   (eval "$ac_link_default") 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; then
2217   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2218 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2219 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2220 # so that the user can short-circuit this test for compilers unknown to
2221 # Autoconf.
2222 for ac_file in $ac_files
2223 do
2224   test -f "$ac_file" || continue
2225   case $ac_file in
2226     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2227         ;;
2228     [ab].out )
2229         # We found the default executable, but exeext='' is most
2230         # certainly right.
2231         break;;
2232     *.* )
2233         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2234         then :; else
2235            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236         fi
2237         # We set ac_cv_exeext here because the later test for it is not
2238         # safe: cross compilers may not add the suffix if given an `-o'
2239         # argument, so we may need to know it at that point already.
2240         # Even if this section looks crufty: it has the advantage of
2241         # actually working.
2242         break;;
2243     * )
2244         break;;
2245   esac
2246 done
2247 test "$ac_cv_exeext" = no && ac_cv_exeext=
2248
2249 else
2250   echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252
2253 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: C compiler cannot create executables
2256 See \`config.log' for more details." >&2;}
2257    { (exit 77); exit 77; }; }
2258 fi
2259
2260 ac_exeext=$ac_cv_exeext
2261 { echo "$as_me:$LINENO: result: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6; }
2263
2264 # Check that the compiler produces executables we can run.  If not, either
2265 # the compiler is broken, or we cross compile.
2266 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2267 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269 # If not cross compiling, check that we can run a simple program.
2270 if test "$cross_compiling" != yes; then
2271   if { ac_try='./$ac_file'
2272   { (case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277   (eval "$ac_try") 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; }; then
2281     cross_compiling=no
2282   else
2283     if test "$cross_compiling" = maybe; then
2284         cross_compiling=yes
2285     else
2286         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2287 If you meant to cross compile, use \`--host'.
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: cannot run C compiled programs.
2290 If you meant to cross compile, use \`--host'.
2291 See \`config.log' for more details." >&2;}
2292    { (exit 1); exit 1; }; }
2293     fi
2294   fi
2295 fi
2296 { echo "$as_me:$LINENO: result: yes" >&5
2297 echo "${ECHO_T}yes" >&6; }
2298
2299 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2300 ac_clean_files=$ac_clean_files_save
2301 # Check that the compiler produces executables we can run.  If not, either
2302 # the compiler is broken, or we cross compile.
2303 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2304 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2305 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2306 echo "${ECHO_T}$cross_compiling" >&6; }
2307
2308 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2309 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2310 if { (ac_try="$ac_link"
2311 case "(($ac_try" in
2312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313   *) ac_try_echo=$ac_try;;
2314 esac
2315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2316   (eval "$ac_link") 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; then
2320   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2322 # work properly (i.e., refer to `conftest.exe'), while it won't with
2323 # `rm'.
2324 for ac_file in conftest.exe conftest conftest.*; do
2325   test -f "$ac_file" || continue
2326   case $ac_file in
2327     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2328     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329           break;;
2330     * ) break;;
2331   esac
2332 done
2333 else
2334   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2337 See \`config.log' for more details." >&2;}
2338    { (exit 1); exit 1; }; }
2339 fi
2340
2341 rm -f conftest$ac_cv_exeext
2342 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2343 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2344
2345 rm -f conftest.$ac_ext
2346 EXEEXT=$ac_cv_exeext
2347 ac_exeext=$EXEEXT
2348 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2349 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2350 if test "${ac_cv_objext+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h.  */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h.  */
2359
2360 int
2361 main ()
2362 {
2363
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 rm -f conftest.o conftest.obj
2369 if { (ac_try="$ac_compile"
2370 case "(($ac_try" in
2371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372   *) ac_try_echo=$ac_try;;
2373 esac
2374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375   (eval "$ac_compile") 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }; then
2379   for ac_file in conftest.o conftest.obj conftest.*; do
2380   test -f "$ac_file" || continue;
2381   case $ac_file in
2382     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2383     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2384        break;;
2385   esac
2386 done
2387 else
2388   echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2394 See \`config.log' for more details." >&2;}
2395    { (exit 1); exit 1; }; }
2396 fi
2397
2398 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2399 fi
2400 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2401 echo "${ECHO_T}$ac_cv_objext" >&6; }
2402 OBJEXT=$ac_cv_objext
2403 ac_objext=$OBJEXT
2404 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2405 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2406 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2407   echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409   cat >conftest.$ac_ext <<_ACEOF
2410 /* confdefs.h.  */
2411 _ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h.  */
2415
2416 int
2417 main ()
2418 {
2419 #ifndef __GNUC__
2420        choke me
2421 #endif
2422
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2435   ac_status=$?
2436   grep -v '^ *+' conftest.er1 >conftest.err
2437   rm -f conftest.er1
2438   cat conftest.err >&5
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } &&
2441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2442   { (case "(($ac_try" in
2443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444   *) ac_try_echo=$ac_try;;
2445 esac
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447   (eval "$ac_try") 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; } &&
2451          { ac_try='test -s conftest.$ac_objext'
2452   { (case "(($ac_try" in
2453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454   *) ac_try_echo=$ac_try;;
2455 esac
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457   (eval "$ac_try") 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; }; then
2461   ac_compiler_gnu=yes
2462 else
2463   echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2465
2466         ac_compiler_gnu=no
2467 fi
2468
2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2471
2472 fi
2473 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2474 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2475 GCC=`test $ac_compiler_gnu = yes && echo yes`
2476 ac_test_CFLAGS=${CFLAGS+set}
2477 ac_save_CFLAGS=$CFLAGS
2478 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2479 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_cc_g+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   ac_save_c_werror_flag=$ac_c_werror_flag
2484    ac_c_werror_flag=yes
2485    ac_cv_prog_cc_g=no
2486    CFLAGS="-g"
2487    cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493
2494 int
2495 main ()
2496 {
2497
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.$ac_objext
2503 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2510   ac_status=$?
2511   grep -v '^ *+' conftest.er1 >conftest.err
2512   rm -f conftest.er1
2513   cat conftest.err >&5
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); } &&
2516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517   { (case "(($ac_try" in
2518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519   *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522   (eval "$ac_try") 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; } &&
2526          { ac_try='test -s conftest.$ac_objext'
2527   { (case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532   (eval "$ac_try") 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   ac_cv_prog_cc_g=yes
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541         CFLAGS=""
2542       cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } &&
2571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572   { (case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577   (eval "$ac_try") 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_try") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   :
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596         ac_c_werror_flag=$ac_save_c_werror_flag
2597          CFLAGS="-g"
2598          cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h.  */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h.  */
2604
2605 int
2606 main ()
2607 {
2608
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2621   ac_status=$?
2622   grep -v '^ *+' conftest.er1 >conftest.err
2623   rm -f conftest.er1
2624   cat conftest.err >&5
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); } &&
2627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628   { (case "(($ac_try" in
2629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630   *) ac_try_echo=$ac_try;;
2631 esac
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633   (eval "$ac_try") 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; } &&
2637          { ac_try='test -s conftest.$ac_objext'
2638   { (case "(($ac_try" in
2639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640   *) ac_try_echo=$ac_try;;
2641 esac
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643   (eval "$ac_try") 2>&5
2644   ac_status=$?
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); }; }; then
2647   ac_cv_prog_cc_g=yes
2648 else
2649   echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652
2653 fi
2654
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 fi
2657
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 fi
2660
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662    ac_c_werror_flag=$ac_save_c_werror_flag
2663 fi
2664 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2665 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2666 if test "$ac_test_CFLAGS" = set; then
2667   CFLAGS=$ac_save_CFLAGS
2668 elif test $ac_cv_prog_cc_g = yes; then
2669   if test "$GCC" = yes; then
2670     CFLAGS="-g -O2"
2671   else
2672     CFLAGS="-g"
2673   fi
2674 else
2675   if test "$GCC" = yes; then
2676     CFLAGS="-O2"
2677   else
2678     CFLAGS=
2679   fi
2680 fi
2681 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2682 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_cc_c89+set}" = set; then
2684   echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686   ac_cv_prog_cc_c89=no
2687 ac_save_CC=$CC
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h.  */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h.  */
2694 #include <stdarg.h>
2695 #include <stdio.h>
2696 #include <sys/types.h>
2697 #include <sys/stat.h>
2698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2699 struct buf { int x; };
2700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2701 static char *e (p, i)
2702      char **p;
2703      int i;
2704 {
2705   return p[i];
2706 }
2707 static char *f (char * (*g) (char **, int), char **p, ...)
2708 {
2709   char *s;
2710   va_list v;
2711   va_start (v,p);
2712   s = g (p, va_arg (v,int));
2713   va_end (v);
2714   return s;
2715 }
2716
2717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2718    function prototypes and stuff, but not '\xHH' hex character constants.
2719    These don't provoke an error unfortunately, instead are silently treated
2720    as 'x'.  The following induces an error, until -std is added to get
2721    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2722    array size at least.  It's necessary to write '\x00'==0 to get something
2723    that's true only with -std.  */
2724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2725
2726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2727    inside strings and character constants.  */
2728 #define FOO(x) 'x'
2729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2730
2731 int test (int i, double x);
2732 struct s1 {int (*f) (int a);};
2733 struct s2 {int (*f) (double a);};
2734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2735 int argc;
2736 char **argv;
2737 int
2738 main ()
2739 {
2740 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2741   ;
2742   return 0;
2743 }
2744 _ACEOF
2745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2746         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2747 do
2748   CC="$ac_save_CC $ac_arg"
2749   rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2757   ac_status=$?
2758   grep -v '^ *+' conftest.er1 >conftest.err
2759   rm -f conftest.er1
2760   cat conftest.err >&5
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); } &&
2763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2764   { (case "(($ac_try" in
2765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766   *) ac_try_echo=$ac_try;;
2767 esac
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769   (eval "$ac_try") 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; } &&
2773          { ac_try='test -s conftest.$ac_objext'
2774   { (case "(($ac_try" in
2775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776   *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779   (eval "$ac_try") 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; }; then
2783   ac_cv_prog_cc_c89=$ac_arg
2784 else
2785   echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788
2789 fi
2790
2791 rm -f core conftest.err conftest.$ac_objext
2792   test "x$ac_cv_prog_cc_c89" != "xno" && break
2793 done
2794 rm -f conftest.$ac_ext
2795 CC=$ac_save_CC
2796
2797 fi
2798 # AC_CACHE_VAL
2799 case "x$ac_cv_prog_cc_c89" in
2800   x)
2801     { echo "$as_me:$LINENO: result: none needed" >&5
2802 echo "${ECHO_T}none needed" >&6; } ;;
2803   xno)
2804     { echo "$as_me:$LINENO: result: unsupported" >&5
2805 echo "${ECHO_T}unsupported" >&6; } ;;
2806   *)
2807     CC="$CC $ac_cv_prog_cc_c89"
2808     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2810 esac
2811
2812
2813 ac_ext=c
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818
2819 ac_ext=cpp
2820 ac_cpp='$CXXCPP $CPPFLAGS'
2821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2824 if test -z "$CXX"; then
2825   if test -n "$CCC"; then
2826     CXX=$CCC
2827   else
2828     if test -n "$ac_tool_prefix"; then
2829   for ac_prog in clang++ g++
2830   do
2831     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_CXX+set}" = set; then
2836   echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838   if test -n "$CXX"; then
2839   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844   IFS=$as_save_IFS
2845   test -z "$as_dir" && as_dir=.
2846   for ac_exec_ext in '' $ac_executable_extensions; do
2847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2848     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850     break 2
2851   fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 CXX=$ac_cv_prog_CXX
2859 if test -n "$CXX"; then
2860   { echo "$as_me:$LINENO: result: $CXX" >&5
2861 echo "${ECHO_T}$CXX" >&6; }
2862 else
2863   { echo "$as_me:$LINENO: result: no" >&5
2864 echo "${ECHO_T}no" >&6; }
2865 fi
2866
2867
2868     test -n "$CXX" && break
2869   done
2870 fi
2871 if test -z "$CXX"; then
2872   ac_ct_CXX=$CXX
2873   for ac_prog in clang++ g++
2874 do
2875   # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$ac_ct_CXX"; then
2883   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892     ac_cv_prog_ac_ct_CXX="$ac_prog"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2903 if test -n "$ac_ct_CXX"; then
2904   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2905 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2906 else
2907   { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2909 fi
2910
2911
2912   test -n "$ac_ct_CXX" && break
2913 done
2914
2915   if test "x$ac_ct_CXX" = x; then
2916     CXX="g++"
2917   else
2918     case $cross_compiling:$ac_tool_warned in
2919 yes:)
2920 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2921 whose name does not start with the host triplet.  If you think this
2922 configuration is useful to you, please write to autoconf@gnu.org." >&5
2923 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2924 whose name does not start with the host triplet.  If you think this
2925 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2926 ac_tool_warned=yes ;;
2927 esac
2928     CXX=$ac_ct_CXX
2929   fi
2930 fi
2931
2932   fi
2933 fi
2934 # Provide some information about the compiler.
2935 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2936 ac_compiler=`set X $ac_compile; echo $2`
2937 { (ac_try="$ac_compiler --version >&5"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943   (eval "$ac_compiler --version >&5") 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }
2947 { (ac_try="$ac_compiler -v >&5"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compiler -v >&5") 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }
2957 { (ac_try="$ac_compiler -V >&5"
2958 case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963   (eval "$ac_compiler -V >&5") 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }
2967
2968 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2969 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2970 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2971   echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973   cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979
2980 int
2981 main ()
2982 {
2983 #ifndef __GNUC__
2984        choke me
2985 #endif
2986
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 rm -f conftest.$ac_objext
2992 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } &&
3005          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006   { (case "(($ac_try" in
3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008   *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011   (eval "$ac_try") 2>&5
3012   ac_status=$?
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); }; } &&
3015          { ac_try='test -s conftest.$ac_objext'
3016   { (case "(($ac_try" in
3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018   *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021   (eval "$ac_try") 2>&5
3022   ac_status=$?
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); }; }; then
3025   ac_compiler_gnu=yes
3026 else
3027   echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030         ac_compiler_gnu=no
3031 fi
3032
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3035
3036 fi
3037 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3038 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3039 GXX=`test $ac_compiler_gnu = yes && echo yes`
3040 ac_test_CXXFLAGS=${CXXFLAGS+set}
3041 ac_save_CXXFLAGS=$CXXFLAGS
3042 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3043 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3044 if test "${ac_cv_prog_cxx_g+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3048    ac_cxx_werror_flag=yes
3049    ac_cv_prog_cxx_g=no
3050    CXXFLAGS="-g"
3051    cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h.  */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h.  */
3057
3058 int
3059 main ()
3060 {
3061
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3074   ac_status=$?
3075   grep -v '^ *+' conftest.er1 >conftest.err
3076   rm -f conftest.er1
3077   cat conftest.err >&5
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } &&
3080          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081   { (case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_try") 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; } &&
3090          { ac_try='test -s conftest.$ac_objext'
3091   { (case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_try") 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; }; then
3100   ac_cv_prog_cxx_g=yes
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105         CXXFLAGS=""
3106       cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h.  */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h.  */
3112
3113 int
3114 main ()
3115 {
3116
3117   ;
3118   return 0;
3119 }
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3129   ac_status=$?
3130   grep -v '^ *+' conftest.er1 >conftest.err
3131   rm -f conftest.er1
3132   cat conftest.err >&5
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } &&
3135          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136   { (case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_try") 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; } &&
3145          { ac_try='test -s conftest.$ac_objext'
3146   { (case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_try") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; }; then
3155   :
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3161          CXXFLAGS="-g"
3162          cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168
3169 int
3170 main ()
3171 {
3172
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3185   ac_status=$?
3186   grep -v '^ *+' conftest.er1 >conftest.err
3187   rm -f conftest.er1
3188   cat conftest.err >&5
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); } &&
3191          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3192   { (case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_try") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; } &&
3201          { ac_try='test -s conftest.$ac_objext'
3202   { (case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_try") 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; }; then
3211   ac_cv_prog_cxx_g=yes
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216
3217 fi
3218
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 fi
3224
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3227 fi
3228 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3229 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3230 if test "$ac_test_CXXFLAGS" = set; then
3231   CXXFLAGS=$ac_save_CXXFLAGS
3232 elif test $ac_cv_prog_cxx_g = yes; then
3233   if test "$GXX" = yes; then
3234     CXXFLAGS="-g -O2"
3235   else
3236     CXXFLAGS="-g"
3237   fi
3238 else
3239   if test "$GXX" = yes; then
3240     CXXFLAGS="-O2"
3241   else
3242     CXXFLAGS=
3243   fi
3244 fi
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251 ac_ext=c
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3257 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3258 # On Suns, sometimes $CPP names a directory.
3259 if test -n "$CPP" && test -d "$CPP"; then
3260   CPP=
3261 fi
3262 if test -z "$CPP"; then
3263   if test "${ac_cv_prog_CPP+set}" = set; then
3264   echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266       # Double quotes because CPP needs to be expanded
3267     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3268     do
3269       ac_preproc_ok=false
3270 for ac_c_preproc_warn_flag in '' yes
3271 do
3272   # Use a header file that comes with gcc, so configuring glibc
3273   # with a fresh cross-compiler works.
3274   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3275   # <limits.h> exists even on freestanding compilers.
3276   # On the NeXT, cc -E runs the code through the compiler's parser,
3277   # not just through cpp. "Syntax error" is here to catch this case.
3278   cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #ifdef __STDC__
3285 # include <limits.h>
3286 #else
3287 # include <assert.h>
3288 #endif
3289                      Syntax error
3290 _ACEOF
3291 if { (ac_try="$ac_cpp conftest.$ac_ext"
3292 case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298   ac_status=$?
3299   grep -v '^ *+' conftest.er1 >conftest.err
3300   rm -f conftest.er1
3301   cat conftest.err >&5
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); } >/dev/null; then
3304   if test -s conftest.err; then
3305     ac_cpp_err=$ac_c_preproc_warn_flag
3306     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3307   else
3308     ac_cpp_err=
3309   fi
3310 else
3311   ac_cpp_err=yes
3312 fi
3313 if test -z "$ac_cpp_err"; then
3314   :
3315 else
3316   echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319   # Broken: fails on valid input.
3320 continue
3321 fi
3322
3323 rm -f conftest.err conftest.$ac_ext
3324
3325   # OK, works on sane cases.  Now check whether nonexistent headers
3326   # can be detected and how.
3327   cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333 #include <ac_nonexistent.h>
3334 _ACEOF
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } >/dev/null; then
3348   if test -s conftest.err; then
3349     ac_cpp_err=$ac_c_preproc_warn_flag
3350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3351   else
3352     ac_cpp_err=
3353   fi
3354 else
3355   ac_cpp_err=yes
3356 fi
3357 if test -z "$ac_cpp_err"; then
3358   # Broken: success on invalid input.
3359 continue
3360 else
3361   echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364   # Passes both tests.
3365 ac_preproc_ok=:
3366 break
3367 fi
3368
3369 rm -f conftest.err conftest.$ac_ext
3370
3371 done
3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373 rm -f conftest.err conftest.$ac_ext
3374 if $ac_preproc_ok; then
3375   break
3376 fi
3377
3378     done
3379     ac_cv_prog_CPP=$CPP
3380
3381 fi
3382   CPP=$ac_cv_prog_CPP
3383 else
3384   ac_cv_prog_CPP=$CPP
3385 fi
3386 { echo "$as_me:$LINENO: result: $CPP" >&5
3387 echo "${ECHO_T}$CPP" >&6; }
3388 ac_preproc_ok=false
3389 for ac_c_preproc_warn_flag in '' yes
3390 do
3391   # Use a header file that comes with gcc, so configuring glibc
3392   # with a fresh cross-compiler works.
3393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394   # <limits.h> exists even on freestanding compilers.
3395   # On the NeXT, cc -E runs the code through the compiler's parser,
3396   # not just through cpp. "Syntax error" is here to catch this case.
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #ifdef __STDC__
3404 # include <limits.h>
3405 #else
3406 # include <assert.h>
3407 #endif
3408                      Syntax error
3409 _ACEOF
3410 if { (ac_try="$ac_cpp conftest.$ac_ext"
3411 case "(($ac_try" in
3412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413   *) ac_try_echo=$ac_try;;
3414 esac
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417   ac_status=$?
3418   grep -v '^ *+' conftest.er1 >conftest.err
3419   rm -f conftest.er1
3420   cat conftest.err >&5
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); } >/dev/null; then
3423   if test -s conftest.err; then
3424     ac_cpp_err=$ac_c_preproc_warn_flag
3425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426   else
3427     ac_cpp_err=
3428   fi
3429 else
3430   ac_cpp_err=yes
3431 fi
3432 if test -z "$ac_cpp_err"; then
3433   :
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Broken: fails on valid input.
3439 continue
3440 fi
3441
3442 rm -f conftest.err conftest.$ac_ext
3443
3444   # OK, works on sane cases.  Now check whether nonexistent headers
3445   # can be detected and how.
3446   cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452 #include <ac_nonexistent.h>
3453 _ACEOF
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } >/dev/null; then
3467   if test -s conftest.err; then
3468     ac_cpp_err=$ac_c_preproc_warn_flag
3469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470   else
3471     ac_cpp_err=
3472   fi
3473 else
3474   ac_cpp_err=yes
3475 fi
3476 if test -z "$ac_cpp_err"; then
3477   # Broken: success on invalid input.
3478 continue
3479 else
3480   echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483   # Passes both tests.
3484 ac_preproc_ok=:
3485 break
3486 fi
3487
3488 rm -f conftest.err conftest.$ac_ext
3489
3490 done
3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492 rm -f conftest.err conftest.$ac_ext
3493 if $ac_preproc_ok; then
3494   :
3495 else
3496   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3497 See \`config.log' for more details." >&5
3498 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3499 See \`config.log' for more details." >&2;}
3500    { (exit 1); exit 1; }; }
3501 fi
3502
3503 ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510 if test "$CXX" = "clang++" ; then
3511   { echo "$as_me:$LINENO: checking whether clang works" >&5
3512 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3513   ac_ext=cpp
3514 ac_cpp='$CXXCPP $CPPFLAGS'
3515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3518
3519
3520 cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526 #include <limits>
3527 #if __has_include (<cxxabi.h>)
3528 #include <cxxabi.h>
3529 #endif
3530 #if __has_include (<unwind.h>)
3531 #include <unwind.h>
3532 #endif
3533
3534 int
3535 main ()
3536 {
3537
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3550   ac_status=$?
3551   grep -v '^ *+' conftest.er1 >conftest.err
3552   rm -f conftest.er1
3553   cat conftest.err >&5
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } &&
3556          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3557   { (case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562   (eval "$ac_try") 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); }; } &&
3566          { ac_try='test -s conftest.$ac_objext'
3567   { (case "(($ac_try" in
3568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569   *) ac_try_echo=$ac_try;;
3570 esac
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572   (eval "$ac_try") 2>&5
3573   ac_status=$?
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); }; }; then
3576
3577   { echo "$as_me:$LINENO: result: yes" >&5
3578 echo "${ECHO_T}yes" >&6; }
3579
3580 else
3581   echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584
3585   { echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6; }
3587   { { 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
3588 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;}
3589    { (exit 1); exit 1; }; }
3590
3591 fi
3592
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594   ac_ext=c
3595 ac_cpp='$CPP $CPPFLAGS'
3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599
3600 fi
3601
3602 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3603 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3604 ac_ext=cpp
3605 ac_cpp='$CXXCPP $CPPFLAGS'
3606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3609
3610 llvm_cv_cxx_compiler=unknown
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h.  */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h.  */
3617 #if ! __clang__
3618                                     #error
3619                                     #endif
3620
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3630   ac_status=$?
3631   grep -v '^ *+' conftest.er1 >conftest.err
3632   rm -f conftest.er1
3633   cat conftest.err >&5
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); } &&
3636          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3637   { (case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642   (eval "$ac_try") 2>&5
3643   ac_status=$?
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); }; } &&
3646          { ac_try='test -s conftest.$ac_objext'
3647   { (case "(($ac_try" in
3648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649   *) ac_try_echo=$ac_try;;
3650 esac
3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652   (eval "$ac_try") 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; }; then
3656   llvm_cv_cxx_compiler=clang
3657 else
3658   echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661         cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 #if ! __GNUC__
3668                                                        #error
3669                                                        #endif
3670
3671 _ACEOF
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3680   ac_status=$?
3681   grep -v '^ *+' conftest.er1 >conftest.err
3682   rm -f conftest.er1
3683   cat conftest.err >&5
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); } &&
3686          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3687   { (case "(($ac_try" in
3688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689   *) ac_try_echo=$ac_try;;
3690 esac
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692   (eval "$ac_try") 2>&5
3693   ac_status=$?
3694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695   (exit $ac_status); }; } &&
3696          { ac_try='test -s conftest.$ac_objext'
3697   { (case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702   (eval "$ac_try") 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); }; }; then
3706   llvm_cv_cxx_compiler=gcc
3707 else
3708   echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711
3712 fi
3713
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 fi
3716
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3725 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3726
3727
3728
3729 if test -d ${srcdir}/projects/test-suite ; then
3730   subdirs="$subdirs projects/test-suite"
3731
3732 fi
3733
3734 if test -d ${srcdir}/projects/llvm-test ; then
3735   subdirs="$subdirs projects/llvm-test"
3736
3737 fi
3738
3739 if test -d ${srcdir}/projects/poolalloc ; then
3740   subdirs="$subdirs projects/poolalloc"
3741
3742 fi
3743
3744 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3745   subdirs="$subdirs projects/llvm-poolalloc"
3746
3747 fi
3748
3749 for i in `ls ${srcdir}/projects`
3750 do
3751   if test -d ${srcdir}/projects/${i} ; then
3752     case ${i} in
3753       safecode)     subdirs="$subdirs projects/safecode"
3754  ;;
3755       compiler-rt)       ;;
3756       test-suite)     ;;
3757       llvm-test)      ;;
3758       poolalloc)      ;;
3759       llvm-poolalloc) ;;
3760       *)
3761         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3762 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3763         ;;
3764     esac
3765   fi
3766 done
3767
3768 # Check whether --enable-polly was given.
3769 if test "${enable_polly+set}" = set; then
3770   enableval=$enable_polly;
3771 else
3772   enableval=default
3773 fi
3774
3775 case "$enableval" in
3776   yes) ENABLE_POLLY=1
3777  ;;
3778   no)  ENABLE_POLLY=0
3779  ;;
3780   default) ENABLE_POLLY=1
3781  ;;
3782   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3783 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3784    { (exit 1); exit 1; }; } ;;
3785 esac
3786
3787
3788 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3789   LLVM_HAS_POLLY=1
3790
3791   subdirs="$subdirs tools/polly"
3792
3793 fi
3794
3795
3796 # Make sure we can run config.sub.
3797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3798   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3800    { (exit 1); exit 1; }; }
3801
3802 { echo "$as_me:$LINENO: checking build system type" >&5
3803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3804 if test "${ac_cv_build+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   ac_build_alias=$build_alias
3808 test "x$ac_build_alias" = x &&
3809   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3810 test "x$ac_build_alias" = x &&
3811   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813    { (exit 1); exit 1; }; }
3814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3817    { (exit 1); exit 1; }; }
3818
3819 fi
3820 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3821 echo "${ECHO_T}$ac_cv_build" >&6; }
3822 case $ac_cv_build in
3823 *-*-*) ;;
3824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3825 echo "$as_me: error: invalid value of canonical build" >&2;}
3826    { (exit 1); exit 1; }; };;
3827 esac
3828 build=$ac_cv_build
3829 ac_save_IFS=$IFS; IFS='-'
3830 set x $ac_cv_build
3831 shift
3832 build_cpu=$1
3833 build_vendor=$2
3834 shift; shift
3835 # Remember, the first character of IFS is used to create $*,
3836 # except with old shells:
3837 build_os=$*
3838 IFS=$ac_save_IFS
3839 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3840
3841
3842 { echo "$as_me:$LINENO: checking host system type" >&5
3843 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3844 if test "${ac_cv_host+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   if test "x$host_alias" = x; then
3848   ac_cv_host=$ac_cv_build
3849 else
3850   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3853    { (exit 1); exit 1; }; }
3854 fi
3855
3856 fi
3857 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3858 echo "${ECHO_T}$ac_cv_host" >&6; }
3859 case $ac_cv_host in
3860 *-*-*) ;;
3861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3862 echo "$as_me: error: invalid value of canonical host" >&2;}
3863    { (exit 1); exit 1; }; };;
3864 esac
3865 host=$ac_cv_host
3866 ac_save_IFS=$IFS; IFS='-'
3867 set x $ac_cv_host
3868 shift
3869 host_cpu=$1
3870 host_vendor=$2
3871 shift; shift
3872 # Remember, the first character of IFS is used to create $*,
3873 # except with old shells:
3874 host_os=$*
3875 IFS=$ac_save_IFS
3876 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3877
3878
3879 { echo "$as_me:$LINENO: checking target system type" >&5
3880 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3881 if test "${ac_cv_target+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   if test "x$target_alias" = x; then
3885   ac_cv_target=$ac_cv_host
3886 else
3887   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3888     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3889 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3890    { (exit 1); exit 1; }; }
3891 fi
3892
3893 fi
3894 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3895 echo "${ECHO_T}$ac_cv_target" >&6; }
3896 case $ac_cv_target in
3897 *-*-*) ;;
3898 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3899 echo "$as_me: error: invalid value of canonical target" >&2;}
3900    { (exit 1); exit 1; }; };;
3901 esac
3902 target=$ac_cv_target
3903 ac_save_IFS=$IFS; IFS='-'
3904 set x $ac_cv_target
3905 shift
3906 target_cpu=$1
3907 target_vendor=$2
3908 shift; shift
3909 # Remember, the first character of IFS is used to create $*,
3910 # except with old shells:
3911 target_os=$*
3912 IFS=$ac_save_IFS
3913 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3914
3915
3916 # The aliases save the names the user supplied, while $host etc.
3917 # will get canonicalized.
3918 test -n "$target_alias" &&
3919   test "$program_prefix$program_suffix$program_transform_name" = \
3920     NONENONEs,x,x, &&
3921   program_prefix=${target_alias}-
3922
3923 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3924 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3925 if test "${llvm_cv_os_type+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   case $host in
3929   *-*-aix*)
3930     llvm_cv_link_all_option="-Wl,--whole-archive"
3931     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932     llvm_cv_os_type="AIX"
3933     llvm_cv_platform_type="Unix" ;;
3934   *-*-irix*)
3935     llvm_cv_link_all_option="-Wl,--whole-archive"
3936     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3937     llvm_cv_os_type="IRIX"
3938     llvm_cv_platform_type="Unix" ;;
3939   *-*-cygwin*)
3940     llvm_cv_link_all_option="-Wl,--whole-archive"
3941     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3942     llvm_cv_os_type="Cygwin"
3943     llvm_cv_platform_type="Unix" ;;
3944   *-*-darwin*)
3945     llvm_cv_link_all_option="-Wl,-all_load"
3946     llvm_cv_no_link_all_option="-Wl,-noall_load"
3947     llvm_cv_os_type="Darwin"
3948     llvm_cv_platform_type="Unix" ;;
3949   *-*-minix*)
3950     llvm_cv_link_all_option="-Wl,-all_load"
3951     llvm_cv_no_link_all_option="-Wl,-noall_load"
3952     llvm_cv_os_type="Minix"
3953     llvm_cv_platform_type="Unix" ;;
3954   *-*-freebsd*)
3955     llvm_cv_link_all_option="-Wl,--whole-archive"
3956     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957     llvm_cv_os_type="FreeBSD"
3958     llvm_cv_platform_type="Unix" ;;
3959   *-*-kfreebsd-gnu)
3960     llvm_cv_link_all_option="-Wl,--whole-archive"
3961     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962     llvm_cv_os_type="GNU/kFreeBSD"
3963     llvm_cv_platform_type="Unix" ;;
3964   *-*-openbsd*)
3965     llvm_cv_link_all_option="-Wl,--whole-archive"
3966     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967     llvm_cv_os_type="OpenBSD"
3968     llvm_cv_platform_type="Unix" ;;
3969   *-*-netbsd*)
3970     llvm_cv_link_all_option="-Wl,--whole-archive"
3971     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972     llvm_cv_os_type="NetBSD"
3973     llvm_cv_platform_type="Unix" ;;
3974   *-*-dragonfly*)
3975     llvm_cv_link_all_option="-Wl,--whole-archive"
3976     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977     llvm_cv_os_type="DragonFly"
3978     llvm_cv_platform_type="Unix" ;;
3979   *-*-hpux*)
3980     llvm_cv_link_all_option="-Wl,--whole-archive"
3981     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982     llvm_cv_os_type="HP-UX"
3983     llvm_cv_platform_type="Unix" ;;
3984   *-*-interix*)
3985     llvm_cv_link_all_option="-Wl,--whole-archive"
3986     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987     llvm_cv_os_type="Interix"
3988     llvm_cv_platform_type="Unix" ;;
3989   *-*-linux*)
3990     llvm_cv_link_all_option="-Wl,--whole-archive"
3991     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992     llvm_cv_os_type="Linux"
3993     llvm_cv_platform_type="Unix" ;;
3994   *-*-gnu*)
3995     llvm_cv_link_all_option="-Wl,--whole-archive"
3996     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997     llvm_cv_os_type="GNU"
3998     llvm_cv_platform_type="Unix" ;;
3999   *-*-solaris*)
4000     llvm_cv_link_all_option="-Wl,-z,allextract"
4001     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4002     llvm_cv_os_type="SunOS"
4003     llvm_cv_platform_type="Unix" ;;
4004   *-*-auroraux*)
4005     llvm_cv_link_all_option="-Wl,-z,allextract"
4006     llvm_cv_link_all_option="-Wl,-z,defaultextract"
4007     llvm_cv_os_type="AuroraUX"
4008     llvm_cv_platform_type="Unix" ;;
4009   *-*-win32*)
4010     llvm_cv_link_all_option="-Wl,--whole-archive"
4011     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012     llvm_cv_os_type="Win32"
4013     llvm_cv_platform_type="Win32" ;;
4014   *-*-mingw*)
4015     llvm_cv_link_all_option="-Wl,--whole-archive"
4016     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017     llvm_cv_os_type="MingW"
4018     llvm_cv_platform_type="Win32" ;;
4019   *-*-haiku*)
4020     llvm_cv_link_all_option="-Wl,--whole-archive"
4021     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022     llvm_cv_os_type="Haiku"
4023     llvm_cv_platform_type="Unix" ;;
4024   *-unknown-eabi*)
4025     llvm_cv_link_all_option="-Wl,--whole-archive"
4026     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4027     llvm_cv_os_type="Freestanding"
4028     llvm_cv_platform_type="Unix" ;;
4029   *-unknown-elf*)
4030     llvm_cv_link_all_option="-Wl,--whole-archive"
4031     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4032     llvm_cv_os_type="Freestanding"
4033     llvm_cv_platform_type="Unix" ;;
4034   *)
4035     llvm_cv_link_all_option=""
4036     llvm_cv_no_link_all_option=""
4037     llvm_cv_os_type="Unknown"
4038     llvm_cv_platform_type="Unknown" ;;
4039 esac
4040 fi
4041 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4042 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4043
4044 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4045 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4046 if test "${llvm_cv_target_os_type+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   case $target in
4050   *-*-aix*)
4051     llvm_cv_target_os_type="AIX" ;;
4052   *-*-irix*)
4053     llvm_cv_target_os_type="IRIX" ;;
4054   *-*-cygwin*)
4055     llvm_cv_target_os_type="Cygwin" ;;
4056   *-*-darwin*)
4057     llvm_cv_target_os_type="Darwin" ;;
4058   *-*-minix*)
4059     llvm_cv_target_os_type="Minix" ;;
4060   *-*-freebsd*)
4061     llvm_cv_target_os_type="FreeBSD" ;;
4062   *-*-kfreebsd-gnu)
4063     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4064   *-*-openbsd*)
4065     llvm_cv_target_os_type="OpenBSD" ;;
4066   *-*-netbsd*)
4067     llvm_cv_target_os_type="NetBSD" ;;
4068   *-*-dragonfly*)
4069     llvm_cv_target_os_type="DragonFly" ;;
4070   *-*-hpux*)
4071     llvm_cv_target_os_type="HP-UX" ;;
4072   *-*-interix*)
4073     llvm_cv_target_os_type="Interix" ;;
4074   *-*-linux*)
4075     llvm_cv_target_os_type="Linux" ;;
4076   *-*-gnu*)
4077     llvm_cv_target_os_type="GNU" ;;
4078   *-*-solaris*)
4079     llvm_cv_target_os_type="SunOS" ;;
4080   *-*-auroraux*)
4081     llvm_cv_target_os_type="AuroraUX" ;;
4082   *-*-win32*)
4083     llvm_cv_target_os_type="Win32" ;;
4084   *-*-mingw*)
4085     llvm_cv_target_os_type="MingW" ;;
4086   *-*-haiku*)
4087     llvm_cv_target_os_type="Haiku" ;;
4088   *-*-rtems*)
4089     llvm_cv_target_os_type="RTEMS" ;;
4090   *-*-nacl*)
4091     llvm_cv_target_os_type="NativeClient" ;;
4092   *-unknown-eabi*)
4093     llvm_cv_target_os_type="Freestanding" ;;
4094   *)
4095     llvm_cv_target_os_type="Unknown" ;;
4096 esac
4097 fi
4098 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4099 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4100
4101 if test "$llvm_cv_os_type" = "Unknown" ; then
4102   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4103 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4104    { (exit 1); exit 1; }; }
4105 fi
4106
4107 OS=$llvm_cv_os_type
4108
4109 HOST_OS=$llvm_cv_os_type
4110
4111 TARGET_OS=$llvm_cv_target_os_type
4112
4113
4114 LINKALL=$llvm_cv_link_all_option
4115
4116 NOLINKALL=$llvm_cv_no_link_all_option
4117
4118
4119 case $llvm_cv_platform_type in
4120   Unix)
4121
4122 cat >>confdefs.h <<\_ACEOF
4123 #define LLVM_ON_UNIX 1
4124 _ACEOF
4125
4126     LLVM_ON_UNIX=1
4127
4128     LLVM_ON_WIN32=0
4129
4130     ;;
4131   Win32)
4132
4133 cat >>confdefs.h <<\_ACEOF
4134 #define LLVM_ON_WIN32 1
4135 _ACEOF
4136
4137     LLVM_ON_UNIX=0
4138
4139     LLVM_ON_WIN32=1
4140
4141     ;;
4142 esac
4143
4144 { echo "$as_me:$LINENO: checking target architecture" >&5
4145 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4146 if test "${llvm_cv_target_arch+set}" = set; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149   case $target in
4150   i?86-*)                 llvm_cv_target_arch="x86" ;;
4151   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4152   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4153   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4154   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4155   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4156   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4157   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4158   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4159   xcore-*)                llvm_cv_target_arch="XCore" ;;
4160   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4161   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4162   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4163   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4164   *)                      llvm_cv_target_arch="Unknown" ;;
4165 esac
4166 fi
4167 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4168 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4169
4170 if test "$llvm_cv_target_arch" = "Unknown" ; then
4171   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4172 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4173 fi
4174
4175 case "$llvm_cv_target_arch" in
4176     x86)     LLVM_NATIVE_ARCH="X86" ;;
4177     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4178     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4179 esac
4180
4181 ARCH=$llvm_cv_target_arch
4182
4183 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4184
4185
4186 case $host in
4187   i?86-*)                 host_arch="x86" ;;
4188   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4189   sparc*-*)               host_arch="Sparc" ;;
4190   powerpc*-*)             host_arch="PowerPC" ;;
4191   arm64*-*)               host_arch="AArch64" ;;
4192   arm*-*)                 host_arch="ARM" ;;
4193   aarch64*-*)             host_arch="AArch64" ;;
4194   mips-* | mips64-*)      host_arch="Mips" ;;
4195   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4196   xcore-*)                host_arch="XCore" ;;
4197   msp430-*)               host_arch="MSP430" ;;
4198   hexagon-*)              host_arch="Hexagon" ;;
4199   s390x-*)                host_arch="SystemZ" ;;
4200   *)                      host_arch="Unknown" ;;
4201 esac
4202
4203 if test "$host_arch" = "Unknown" ; then
4204   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4205 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4206 fi
4207
4208 HOST_ARCH=$host_arch
4209
4210
4211 if test "$cross_compiling" = yes; then
4212   LLVM_CROSS_COMPILING=1
4213
4214
4215 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4216 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4217 if test "${ac_cv_build_exeext+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4221   ac_cv_build_exeext=.exe
4222 else
4223   ac_build_prefix=${build_alias}-
4224
4225   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4226 set dummy ${ac_build_prefix}gcc; ac_word=$2
4227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4229 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232   if test -n "$BUILD_CC"; then
4233   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4237 do
4238   IFS=$as_save_IFS
4239   test -z "$as_dir" && as_dir=.
4240   for ac_exec_ext in '' $ac_executable_extensions; do
4241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4242     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244     break 2
4245   fi
4246 done
4247 done
4248 IFS=$as_save_IFS
4249
4250 fi
4251 fi
4252 BUILD_CC=$ac_cv_prog_BUILD_CC
4253 if test -n "$BUILD_CC"; then
4254   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4255 echo "${ECHO_T}$BUILD_CC" >&6; }
4256 else
4257   { echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6; }
4259 fi
4260
4261
4262   if test -z "$BUILD_CC"; then
4263      # Extract the first word of "gcc", so it can be a program name with args.
4264 set dummy gcc; ac_word=$2
4265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4267 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4268   echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270   if test -n "$BUILD_CC"; then
4271   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276   IFS=$as_save_IFS
4277   test -z "$as_dir" && as_dir=.
4278   for ac_exec_ext in '' $ac_executable_extensions; do
4279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4280     ac_cv_prog_BUILD_CC="gcc"
4281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282     break 2
4283   fi
4284 done
4285 done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 BUILD_CC=$ac_cv_prog_BUILD_CC
4291 if test -n "$BUILD_CC"; then
4292   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4293 echo "${ECHO_T}$BUILD_CC" >&6; }
4294 else
4295   { echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6; }
4297 fi
4298
4299
4300      if test -z "$BUILD_CC"; then
4301        # Extract the first word of "cc", so it can be a program name with args.
4302 set dummy cc; ac_word=$2
4303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4305 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   if test -n "$BUILD_CC"; then
4309   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4310 else
4311   ac_prog_rejected=no
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4314 do
4315   IFS=$as_save_IFS
4316   test -z "$as_dir" && as_dir=.
4317   for ac_exec_ext in '' $ac_executable_extensions; do
4318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4319     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4320        ac_prog_rejected=yes
4321        continue
4322      fi
4323     ac_cv_prog_BUILD_CC="cc"
4324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325     break 2
4326   fi
4327 done
4328 done
4329 IFS=$as_save_IFS
4330
4331 if test $ac_prog_rejected = yes; then
4332   # We found a bogon in the path, so make sure we never use it.
4333   set dummy $ac_cv_prog_BUILD_CC
4334   shift
4335   if test $# != 0; then
4336     # We chose a different compiler from the bogus one.
4337     # However, it has the same basename, so the bogon will be chosen
4338     # first if we set BUILD_CC to just the basename; use the full file name.
4339     shift
4340     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4341   fi
4342 fi
4343 fi
4344 fi
4345 BUILD_CC=$ac_cv_prog_BUILD_CC
4346 if test -n "$BUILD_CC"; then
4347   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4348 echo "${ECHO_T}$BUILD_CC" >&6; }
4349 else
4350   { echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6; }
4352 fi
4353
4354
4355      fi
4356   fi
4357   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4358 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4359    { (exit 1); exit 1; }; }
4360   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4361   rm -f conftest*
4362   echo 'int main () { return 0; }' > conftest.$ac_ext
4363   ac_cv_build_exeext=
4364   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4365   (eval $ac_build_link) 2>&5
4366   ac_status=$?
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); }; then
4369     for file in conftest.*; do
4370       case $file in
4371       *.c | *.o | *.obj | *.dSYM) ;;
4372       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4373       esac
4374     done
4375   else
4376     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4377 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4378    { (exit 1); exit 1; }; }
4379   fi
4380   rm -f conftest*
4381   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4382 fi
4383 fi
4384
4385 BUILD_EXEEXT=""
4386 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4387 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4388 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4389 ac_build_exeext=$BUILD_EXEEXT
4390
4391   ac_build_prefix=${build_alias}-
4392   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4393 set dummy ${ac_build_prefix}g++; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   if test -n "$BUILD_CXX"; then
4400   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405   IFS=$as_save_IFS
4406   test -z "$as_dir" && as_dir=.
4407   for ac_exec_ext in '' $ac_executable_extensions; do
4408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4409     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411     break 2
4412   fi
4413 done
4414 done
4415 IFS=$as_save_IFS
4416
4417 fi
4418 fi
4419 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4420 if test -n "$BUILD_CXX"; then
4421   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4422 echo "${ECHO_T}$BUILD_CXX" >&6; }
4423 else
4424   { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4426 fi
4427
4428
4429   if test -z "$BUILD_CXX"; then
4430      # Extract the first word of "g++", so it can be a program name with args.
4431 set dummy g++; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   if test -n "$BUILD_CXX"; then
4438   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   for ac_exec_ext in '' $ac_executable_extensions; do
4446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447     ac_cv_prog_BUILD_CXX="g++"
4448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450   fi
4451 done
4452 done
4453 IFS=$as_save_IFS
4454
4455 fi
4456 fi
4457 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4458 if test -n "$BUILD_CXX"; then
4459   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4460 echo "${ECHO_T}$BUILD_CXX" >&6; }
4461 else
4462   { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4464 fi
4465
4466
4467      if test -z "$BUILD_CXX"; then
4468        # Extract the first word of "c++", so it can be a program name with args.
4469 set dummy c++; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   if test -n "$BUILD_CXX"; then
4476   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4477 else
4478   ac_prog_rejected=no
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482   IFS=$as_save_IFS
4483   test -z "$as_dir" && as_dir=.
4484   for ac_exec_ext in '' $ac_executable_extensions; do
4485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4486     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4487        ac_prog_rejected=yes
4488        continue
4489      fi
4490     ac_cv_prog_BUILD_CXX="c++"
4491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492     break 2
4493   fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498 if test $ac_prog_rejected = yes; then
4499   # We found a bogon in the path, so make sure we never use it.
4500   set dummy $ac_cv_prog_BUILD_CXX
4501   shift
4502   if test $# != 0; then
4503     # We chose a different compiler from the bogus one.
4504     # However, it has the same basename, so the bogon will be chosen
4505     # first if we set BUILD_CXX to just the basename; use the full file name.
4506     shift
4507     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4508   fi
4509 fi
4510 fi
4511 fi
4512 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4513 if test -n "$BUILD_CXX"; then
4514   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4515 echo "${ECHO_T}$BUILD_CXX" >&6; }
4516 else
4517   { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }
4519 fi
4520
4521
4522      fi
4523   fi
4524 else
4525   LLVM_CROSS_COMPILING=0
4526
4527 fi
4528
4529 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4530   cvsbuild="yes"
4531   optimize="no"
4532   CVSBUILD=CVSBUILD=1
4533
4534 else
4535   cvsbuild="no"
4536   optimize="yes"
4537 fi
4538
4539
4540 # Check whether --enable-libcpp was given.
4541 if test "${enable_libcpp+set}" = set; then
4542   enableval=$enable_libcpp;
4543 else
4544   enableval=default
4545 fi
4546
4547 case "$enableval" in
4548   yes) ENABLE_LIBCPP=1
4549  ;;
4550   no)  ENABLE_LIBCPP=0
4551  ;;
4552   default) ENABLE_LIBCPP=0
4553 ;;
4554   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4555 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4556    { (exit 1); exit 1; }; } ;;
4557 esac
4558
4559 # Check whether --enable-compiler-version-checks was given.
4560 if test "${enable_compiler_version_checks+set}" = set; then
4561   enableval=$enable_compiler_version_checks;
4562 else
4563   enableval=default
4564 fi
4565
4566 case "$enableval" in
4567   no)
4568     ;;
4569   yes|default)
4570     ac_ext=cpp
4571 ac_cpp='$CXXCPP $CPPFLAGS'
4572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4575
4576     case "$llvm_cv_cxx_compiler" in
4577     clang)
4578       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4579 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4580       cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h.  */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h.  */
4586
4587 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4588 #error This version of Clang is too old to build LLVM
4589 #endif
4590
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4594 case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599   (eval "$ac_compile") 2>conftest.er1
4600   ac_status=$?
4601   grep -v '^ *+' conftest.er1 >conftest.err
4602   rm -f conftest.er1
4603   cat conftest.err >&5
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); } &&
4606          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4607   { (case "(($ac_try" in
4608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609   *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612   (eval "$ac_try") 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); }; } &&
4616          { ac_try='test -s conftest.$ac_objext'
4617   { (case "(($ac_try" in
4618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619   *) ac_try_echo=$ac_try;;
4620 esac
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622   (eval "$ac_try") 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }; }; then
4626   { echo "$as_me:$LINENO: result: yes" >&5
4627 echo "${ECHO_T}yes" >&6; }
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632         { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4634            { { echo "$as_me:$LINENO: error:
4635 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4636 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4637 bypass these sanity checks." >&5
4638 echo "$as_me: error:
4639 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4640 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4641 bypass these sanity checks." >&2;}
4642    { (exit 1); exit 1; }; }
4643 fi
4644
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646
4647                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4648         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4649 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4650         llvm_cv_old_cxxflags="$CXXFLAGS"
4651         CXXFLAGS="$CXXFLAGS -std=c++0x"
4652         cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h.  */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h.  */
4658
4659 #include <atomic>
4660 std::atomic<float> x(0.0f);
4661 int main() { return (float)x; }
4662
4663 _ACEOF
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (ac_try="$ac_link"
4666 case "(($ac_try" in
4667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668   *) ac_try_echo=$ac_try;;
4669 esac
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671   (eval "$ac_link") 2>conftest.er1
4672   ac_status=$?
4673   grep -v '^ *+' conftest.er1 >conftest.err
4674   rm -f conftest.er1
4675   cat conftest.err >&5
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); } &&
4678          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4679   { (case "(($ac_try" in
4680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681   *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684   (eval "$ac_try") 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }; } &&
4688          { ac_try='test -s conftest$ac_exeext'
4689   { (case "(($ac_try" in
4690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691   *) ac_try_echo=$ac_try;;
4692 esac
4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694   (eval "$ac_try") 2>&5
4695   ac_status=$?
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); }; }; then
4698   { echo "$as_me:$LINENO: result: yes" >&5
4699 echo "${ECHO_T}yes" >&6; }
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704         { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4706              { { echo "$as_me:$LINENO: error:
4707 We detected a missing feature in the standard C++ library that was known to be
4708 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4709 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4710 than 4.7. You will need to update your system and ensure Clang uses the newer
4711 standard library.
4712
4713 If this error is incorrect or you need to force things to work, you may pass
4714 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4715 echo "$as_me: error:
4716 We detected a missing feature in the standard C++ library that was known to be
4717 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4718 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4719 than 4.7. You will need to update your system and ensure Clang uses the newer
4720 standard library.
4721
4722 If this error is incorrect or you need to force things to work, you may pass
4723 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4724    { (exit 1); exit 1; }; }
4725 fi
4726
4727 rm -f core conftest.err conftest.$ac_objext \
4728       conftest$ac_exeext conftest.$ac_ext
4729         CXXFLAGS="$llvm_cv_old_cxxflags"
4730       fi
4731       ;;
4732     gcc)
4733       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4734 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4735       cat >conftest.$ac_ext <<_ACEOF
4736 /* confdefs.h.  */
4737 _ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h.  */
4741
4742 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4743 #error This version of GCC is too old to build LLVM
4744 #endif
4745
4746 _ACEOF
4747 rm -f conftest.$ac_objext
4748 if { (ac_try="$ac_compile"
4749 case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754   (eval "$ac_compile") 2>conftest.er1
4755   ac_status=$?
4756   grep -v '^ *+' conftest.er1 >conftest.err
4757   rm -f conftest.er1
4758   cat conftest.err >&5
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } &&
4761          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4762   { (case "(($ac_try" in
4763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764   *) ac_try_echo=$ac_try;;
4765 esac
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767   (eval "$ac_try") 2>&5
4768   ac_status=$?
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); }; } &&
4771          { ac_try='test -s conftest.$ac_objext'
4772   { (case "(($ac_try" in
4773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774   *) ac_try_echo=$ac_try;;
4775 esac
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777   (eval "$ac_try") 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; }; then
4781   { echo "$as_me:$LINENO: result: yes" >&5
4782 echo "${ECHO_T}yes" >&6; }
4783 else
4784   echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4786
4787         { echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6; }
4789            { { echo "$as_me:$LINENO: error:
4790 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4791 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4792 bypass these sanity checks." >&5
4793 echo "$as_me: error:
4794 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4795 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4796 bypass these sanity checks." >&2;}
4797    { (exit 1); exit 1; }; }
4798 fi
4799
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801       ;;
4802     unknown)
4803       ;;
4804     esac
4805     ac_ext=c
4806 ac_cpp='$CPP $CPPFLAGS'
4807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810
4811     ;;
4812   *)
4813     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4814 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4815    { (exit 1); exit 1; }; }
4816     ;;
4817 esac
4818
4819 # Check whether --enable-cxx1y was given.
4820 if test "${enable_cxx1y+set}" = set; then
4821   enableval=$enable_cxx1y;
4822 else
4823   enableval=default
4824 fi
4825
4826 case "$enableval" in
4827   yes) ENABLE_CXX1Y=1
4828  ;;
4829   no)  ENABLE_CXX1Y=0
4830  ;;
4831   default) ENABLE_CXX1Y=0
4832 ;;
4833   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4834 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4835    { (exit 1); exit 1; }; } ;;
4836 esac
4837
4838 # Check whether --enable-split-dwarf was given.
4839 if test "${enable_split_dwarf+set}" = set; then
4840   enableval=$enable_split_dwarf;
4841 else
4842   enableval=default
4843 fi
4844
4845 case "$enableval" in
4846   yes) ENABLE_SPLIT_DWARF=1
4847  ;;
4848   no)  ENABLE_SPLIT_DWARF=0
4849  ;;
4850   default) ENABLE_SPLIT_DWARF=0
4851 ;;
4852   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4854    { (exit 1); exit 1; }; } ;;
4855 esac
4856
4857 clang_arcmt="yes"
4858 # Check whether --enable-clang-arcmt was given.
4859 if test "${enable_clang_arcmt+set}" = set; then
4860   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4861 else
4862   enableval="yes"
4863 fi
4864
4865 case "$enableval" in
4866   yes) ENABLE_CLANG_ARCMT=1
4867  ;;
4868   no)  ENABLE_CLANG_ARCMT=0
4869  ;;
4870   default) ENABLE_CLANG_ARCMT=1
4871 ;;
4872   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4874    { (exit 1); exit 1; }; } ;;
4875 esac
4876
4877 clang_plugin_support="yes"
4878 # Check whether --enable-clang-plugin-support was given.
4879 if test "${enable_clang_plugin_support+set}" = set; then
4880   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4881 else
4882   enableval="yes"
4883 fi
4884
4885 case "$enableval" in
4886   yes) CLANG_PLUGIN_SUPPORT=1
4887  ;;
4888   no)  CLANG_PLUGIN_SUPPORT=0
4889  ;;
4890   default) CLANG_PLUGIN_SUPPORT=1
4891 ;;
4892   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4893 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4894    { (exit 1); exit 1; }; } ;;
4895 esac
4896
4897 clang_static_analyzer="yes"
4898 # Check whether --enable-clang-static-analyzer was given.
4899 if test "${enable_clang_static_analyzer+set}" = set; then
4900   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4901 else
4902   enableval="yes"
4903 fi
4904
4905 case "$enableval" in
4906   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4907  ;;
4908   no)
4909     if test ${clang_arcmt} != "no" ; then
4910       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4911 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4912    { (exit 1); exit 1; }; }
4913     fi
4914     ENABLE_CLANG_STATIC_ANALYZER=0
4915
4916     ;;
4917   default) ENABLE_CLANG_STATIC_ANALYZER=1
4918 ;;
4919   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4920 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4921    { (exit 1); exit 1; }; } ;;
4922 esac
4923
4924 # Check whether --enable-clang-rewriter was given.
4925 if test "${enable_clang_rewriter+set}" = set; then
4926   enableval=$enable_clang_rewriter;
4927 else
4928   enableval="yes"
4929 fi
4930
4931 case "$enableval" in
4932   yes) ENABLE_CLANG_REWRITER=1
4933  ;;
4934   no)
4935     if test ${clang_arcmt} != "no" ; then
4936       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4937 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4938    { (exit 1); exit 1; }; }
4939     fi
4940     if test ${clang_static_analyzer} != "no" ; then
4941       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4942 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4943    { (exit 1); exit 1; }; }
4944     fi
4945     ENABLE_CLANG_REWRITER=0
4946
4947     ;;
4948   default) ENABLE_CLANG_REWRITER=1
4949 ;;
4950   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4951 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4952    { (exit 1); exit 1; }; } ;;
4953 esac
4954
4955 # Check whether --enable-optimized was given.
4956 if test "${enable_optimized+set}" = set; then
4957   enableval=$enable_optimized;
4958 else
4959   enableval=$optimize
4960 fi
4961
4962 if test ${enableval} = "no" ; then
4963   ENABLE_OPTIMIZED=
4964
4965 else
4966   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4967
4968 fi
4969
4970 # Check whether --enable-profiling was given.
4971 if test "${enable_profiling+set}" = set; then
4972   enableval=$enable_profiling;
4973 else
4974   enableval="no"
4975 fi
4976
4977 if test ${enableval} = "no" ; then
4978   ENABLE_PROFILING=
4979
4980 else
4981   ENABLE_PROFILING=ENABLE_PROFILING=1
4982
4983 fi
4984
4985 # Check whether --enable-assertions was given.
4986 if test "${enable_assertions+set}" = set; then
4987   enableval=$enable_assertions;
4988 else
4989   enableval="yes"
4990 fi
4991
4992 if test ${enableval} = "yes" ; then
4993   DISABLE_ASSERTIONS=
4994
4995 else
4996   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4997
4998 fi
4999
5000 # Check whether --enable-werror was given.
5001 if test "${enable_werror+set}" = set; then
5002   enableval=$enable_werror;
5003 else
5004   enableval="no"
5005 fi
5006
5007 case "$enableval" in
5008   yes) ENABLE_WERROR=1
5009  ;;
5010   no)  ENABLE_WERROR=0
5011  ;;
5012   default) ENABLE_WERROR=0
5013 ;;
5014   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5015 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5016    { (exit 1); exit 1; }; } ;;
5017 esac
5018
5019 # Check whether --enable-expensive-checks was given.
5020 if test "${enable_expensive_checks+set}" = set; then
5021   enableval=$enable_expensive_checks;
5022 else
5023   enableval="no"
5024 fi
5025
5026 if test ${enableval} = "yes" ; then
5027   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5028
5029   EXPENSIVE_CHECKS=yes
5030
5031 else
5032   ENABLE_EXPENSIVE_CHECKS=
5033
5034   EXPENSIVE_CHECKS=no
5035
5036 fi
5037
5038 # Check whether --enable-debug-runtime was given.
5039 if test "${enable_debug_runtime+set}" = set; then
5040   enableval=$enable_debug_runtime;
5041 else
5042   enableval=no
5043 fi
5044
5045 if test ${enableval} = "no" ; then
5046   DEBUG_RUNTIME=
5047
5048 else
5049   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5050
5051 fi
5052
5053 # Check whether --enable-debug-symbols was given.
5054 if test "${enable_debug_symbols+set}" = set; then
5055   enableval=$enable_debug_symbols;
5056 else
5057   enableval=no
5058 fi
5059
5060 if test ${enableval} = "no" ; then
5061   DEBUG_SYMBOLS=
5062
5063 else
5064   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5065
5066 fi
5067
5068 # Check whether --enable-keep-symbols was given.
5069 if test "${enable_keep_symbols+set}" = set; then
5070   enableval=$enable_keep_symbols;
5071 else
5072   enableval=no
5073 fi
5074
5075 if test ${enableval} = "no" ; then
5076   KEEP_SYMBOLS=
5077
5078 else
5079   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5080
5081 fi
5082
5083 # Check whether --enable-jit was given.
5084 if test "${enable_jit+set}" = set; then
5085   enableval=$enable_jit;
5086 else
5087   enableval=default
5088 fi
5089
5090 if test ${enableval} = "no"
5091 then
5092   JIT=
5093
5094 else
5095   case "$llvm_cv_target_arch" in
5096     x86)         TARGET_HAS_JIT=1
5097  ;;
5098     Sparc)       TARGET_HAS_JIT=0
5099  ;;
5100     PowerPC)     TARGET_HAS_JIT=1
5101  ;;
5102     x86_64)      TARGET_HAS_JIT=1
5103  ;;
5104     ARM)         TARGET_HAS_JIT=1
5105  ;;
5106     Mips)        TARGET_HAS_JIT=1
5107  ;;
5108     XCore)       TARGET_HAS_JIT=0
5109  ;;
5110     MSP430)      TARGET_HAS_JIT=0
5111  ;;
5112     Hexagon)     TARGET_HAS_JIT=0
5113  ;;
5114     NVPTX)       TARGET_HAS_JIT=0
5115  ;;
5116     SystemZ)     TARGET_HAS_JIT=1
5117  ;;
5118     *)           TARGET_HAS_JIT=0
5119  ;;
5120   esac
5121 fi
5122
5123 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5124 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5125
5126
5127 # Check whether --enable-docs was given.
5128 if test "${enable_docs+set}" = set; then
5129   enableval=$enable_docs;
5130 else
5131   enableval=default
5132 fi
5133
5134 case "$enableval" in
5135   yes) ENABLE_DOCS=1
5136  ;;
5137   no)  ENABLE_DOCS=0
5138  ;;
5139   default) ENABLE_DOCS=1
5140  ;;
5141   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5142 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5143    { (exit 1); exit 1; }; } ;;
5144 esac
5145
5146 # Check whether --enable-doxygen was given.
5147 if test "${enable_doxygen+set}" = set; then
5148   enableval=$enable_doxygen;
5149 else
5150   enableval=default
5151 fi
5152
5153 case "$enableval" in
5154   yes) ENABLE_DOXYGEN=1
5155  ;;
5156   no)  ENABLE_DOXYGEN=0
5157  ;;
5158   default) ENABLE_DOXYGEN=0
5159  ;;
5160   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5162    { (exit 1); exit 1; }; } ;;
5163 esac
5164
5165 # Check whether --enable-threads was given.
5166 if test "${enable_threads+set}" = set; then
5167   enableval=$enable_threads;
5168 else
5169   enableval=default
5170 fi
5171
5172 case "$enableval" in
5173   yes) LLVM_ENABLE_THREADS=1
5174  ;;
5175   no)  LLVM_ENABLE_THREADS=0
5176  ;;
5177   default) LLVM_ENABLE_THREADS=1
5178  ;;
5179   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5180 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5181    { (exit 1); exit 1; }; } ;;
5182 esac
5183
5184 cat >>confdefs.h <<_ACEOF
5185 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5186 _ACEOF
5187
5188
5189 # Check whether --enable-pthreads was given.
5190 if test "${enable_pthreads+set}" = set; then
5191   enableval=$enable_pthreads;
5192 else
5193   enableval=default
5194 fi
5195
5196 case "$enableval" in
5197   yes) ENABLE_PTHREADS=1
5198  ;;
5199   no)  ENABLE_PTHREADS=0
5200  ;;
5201   default) ENABLE_PTHREADS=1
5202  ;;
5203   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5204 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5205    { (exit 1); exit 1; }; } ;;
5206 esac
5207
5208 # Check whether --enable-zlib was given.
5209 if test "${enable_zlib+set}" = set; then
5210   enableval=$enable_zlib;
5211 else
5212   enableval=default
5213 fi
5214
5215 case "$enableval" in
5216   yes) LLVM_ENABLE_ZLIB=1
5217  ;;
5218   no)  LLVM_ENABLE_ZLIB=0
5219  ;;
5220   default) LLVM_ENABLE_ZLIB=1
5221  ;;
5222   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5223 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5224    { (exit 1); exit 1; }; } ;;
5225 esac
5226
5227 cat >>confdefs.h <<_ACEOF
5228 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5229 _ACEOF
5230
5231
5232 # Check whether --enable-pic was given.
5233 if test "${enable_pic+set}" = set; then
5234   enableval=$enable_pic;
5235 else
5236   enableval=default
5237 fi
5238
5239 case "$enableval" in
5240   yes) ENABLE_PIC=1
5241  ;;
5242   no)  ENABLE_PIC=0
5243  ;;
5244   default) ENABLE_PIC=1
5245  ;;
5246   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5247 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5248    { (exit 1); exit 1; }; } ;;
5249 esac
5250
5251 cat >>confdefs.h <<_ACEOF
5252 #define ENABLE_PIC $ENABLE_PIC
5253 _ACEOF
5254
5255
5256 # Check whether --enable-shared was given.
5257 if test "${enable_shared+set}" = set; then
5258   enableval=$enable_shared;
5259 else
5260   enableval=default
5261 fi
5262
5263 case "$enableval" in
5264   yes) ENABLE_SHARED=1
5265  ;;
5266   no)  ENABLE_SHARED=0
5267  ;;
5268   default) ENABLE_SHARED=0
5269  ;;
5270   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5271 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5272    { (exit 1); exit 1; }; } ;;
5273 esac
5274
5275 # Check whether --enable-embed-stdcxx was given.
5276 if test "${enable_embed_stdcxx+set}" = set; then
5277   enableval=$enable_embed_stdcxx;
5278 else
5279   enableval=default
5280 fi
5281
5282 case "$enableval" in
5283   yes) ENABLE_EMBED_STDCXX=1
5284  ;;
5285   no)  ENABLE_EMBED_STDCXX=0
5286  ;;
5287   default) ENABLE_EMBED_STDCXX=0
5288  ;;
5289   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5290 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5291    { (exit 1); exit 1; }; } ;;
5292 esac
5293
5294 # Check whether --enable-timestamps was given.
5295 if test "${enable_timestamps+set}" = set; then
5296   enableval=$enable_timestamps;
5297 else
5298   enableval=default
5299 fi
5300
5301 case "$enableval" in
5302   yes) ENABLE_TIMESTAMPS=1
5303  ;;
5304   no)  ENABLE_TIMESTAMPS=0
5305  ;;
5306   default) ENABLE_TIMESTAMPS=1
5307  ;;
5308   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5309 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5310    { (exit 1); exit 1; }; } ;;
5311 esac
5312
5313 cat >>confdefs.h <<_ACEOF
5314 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5315 _ACEOF
5316
5317
5318 # Check whether --enable-backtraces was given.
5319 if test "${enable_backtraces+set}" = set; then
5320   enableval=$enable_backtraces; case "$enableval" in
5321     yes) llvm_cv_enable_backtraces="yes" ;;
5322     no)  llvm_cv_enable_backtraces="no"  ;;
5323     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5324 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5325    { (exit 1); exit 1; }; } ;;
5326   esac
5327 else
5328   llvm_cv_enable_backtraces="yes"
5329 fi
5330
5331 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5332
5333 cat >>confdefs.h <<\_ACEOF
5334 #define ENABLE_BACKTRACES 1
5335 _ACEOF
5336
5337 fi
5338
5339 # Check whether --enable-crash-overrides was given.
5340 if test "${enable_crash_overrides+set}" = set; then
5341   enableval=$enable_crash_overrides; case "$enableval" in
5342     yes) llvm_cv_enable_crash_overrides="yes" ;;
5343     no)  llvm_cv_enable_crash_overrides="no"  ;;
5344     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5345 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5346    { (exit 1); exit 1; }; } ;;
5347   esac
5348 else
5349   llvm_cv_enable_crash_overrides="yes"
5350 fi
5351
5352 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5353
5354 cat >>confdefs.h <<\_ACEOF
5355 #define ENABLE_CRASH_OVERRIDES 1
5356 _ACEOF
5357
5358 fi
5359
5360 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5361 ALL_TARGETS=$ALL_TARGETS
5362
5363
5364 TARGETS_TO_BUILD=""
5365 # Check whether --enable-targets was given.
5366 if test "${enable_targets+set}" = set; then
5367   enableval=$enable_targets;
5368 else
5369   enableval=all
5370 fi
5371
5372 if test "$enableval" = host-only ; then
5373   enableval=host
5374 fi
5375 case "$enableval" in
5376   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5377   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5378       case "$a_target" in
5379         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5380         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5381         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5382         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5383         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5384         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5385         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5386         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5387         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5388         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5389         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5390         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5391         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5392         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5393         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5394         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5395         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5396         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5397         host) case "$llvm_cv_target_arch" in
5398             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5399             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5400             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5401             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5402             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5403             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5404             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5405             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5406             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5407             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5408             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5409             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5410             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5411 echo "$as_me: error: Can not set target to build" >&2;}
5412    { (exit 1); exit 1; }; } ;;
5413           esac ;;
5414         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5415 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5416    { (exit 1); exit 1; }; } ;;
5417       esac
5418   done
5419   ;;
5420 esac
5421
5422 # Check whether --enable-experimental-targets was given.
5423 if test "${enable_experimental_targets+set}" = set; then
5424   enableval=$enable_experimental_targets;
5425 else
5426   enableval=disable
5427 fi
5428
5429
5430 if test ${enableval} != "disable"
5431 then
5432   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5433 fi
5434
5435 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5436
5437
5438 for a_target in $TARGETS_TO_BUILD; do
5439   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5440
5441 cat >>confdefs.h <<_ACEOF
5442 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5443 _ACEOF
5444
5445     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5446     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5447     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5448     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5449     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5450       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5451     fi
5452     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5453       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5454     fi
5455
5456 cat >>confdefs.h <<_ACEOF
5457 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5458 _ACEOF
5459
5460
5461 cat >>confdefs.h <<_ACEOF
5462 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5463 _ACEOF
5464
5465
5466 cat >>confdefs.h <<_ACEOF
5467 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5468 _ACEOF
5469
5470
5471 cat >>confdefs.h <<_ACEOF
5472 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5473 _ACEOF
5474
5475     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5476
5477 cat >>confdefs.h <<_ACEOF
5478 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5479 _ACEOF
5480
5481     fi
5482     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5483
5484 cat >>confdefs.h <<_ACEOF
5485 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5486 _ACEOF
5487
5488     fi
5489   fi
5490 done
5491
5492 LLVM_ENUM_TARGETS=""
5493 LLVM_ENUM_ASM_PRINTERS=""
5494 LLVM_ENUM_ASM_PARSERS=""
5495 LLVM_ENUM_DISASSEMBLERS=""
5496 for target_to_build in $TARGETS_TO_BUILD; do
5497   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5498   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5499     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5500   fi
5501   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5502     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5503   fi
5504   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5505     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5506   fi
5507 done
5508
5509
5510
5511
5512
5513
5514 # Check whether --with-optimize-option was given.
5515 if test "${with_optimize_option+set}" = set; then
5516   withval=$with_optimize_option;
5517 else
5518   withval=default
5519 fi
5520
5521 { echo "$as_me:$LINENO: checking optimization flags" >&5
5522 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5523 case "$withval" in
5524   default)
5525     case "$llvm_cv_os_type" in
5526     FreeBSD) optimize_option=-O2 ;;
5527     MingW) optimize_option=-O2 ;;
5528     *)     optimize_option=-O3 ;;
5529     esac ;;
5530   *) optimize_option="$withval" ;;
5531 esac
5532 OPTIMIZE_OPTION=$optimize_option
5533
5534 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5535 echo "${ECHO_T}$optimize_option" >&6; }
5536
5537
5538 # Check whether --with-extra-options was given.
5539 if test "${with_extra_options+set}" = set; then
5540   withval=$with_extra_options;
5541 else
5542   withval=default
5543 fi
5544
5545 case "$withval" in
5546   default) EXTRA_OPTIONS= ;;
5547   *) EXTRA_OPTIONS=$withval ;;
5548 esac
5549 EXTRA_OPTIONS=$EXTRA_OPTIONS
5550
5551
5552
5553 # Check whether --with-extra-ld-options was given.
5554 if test "${with_extra_ld_options+set}" = set; then
5555   withval=$with_extra_ld_options;
5556 else
5557   withval=default
5558 fi
5559
5560 case "$withval" in
5561   default) EXTRA_LD_OPTIONS= ;;
5562   *) EXTRA_LD_OPTIONS=$withval ;;
5563 esac
5564 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5565
5566
5567 # Check whether --enable-bindings was given.
5568 if test "${enable_bindings+set}" = set; then
5569   enableval=$enable_bindings;
5570 else
5571   enableval=default
5572 fi
5573
5574 BINDINGS_TO_BUILD=""
5575 case "$enableval" in
5576   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5577   all ) BINDINGS_TO_BUILD="ocaml" ;;
5578   none | no) BINDINGS_TO_BUILD="" ;;
5579   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5580       case "$a_binding" in
5581         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5582         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5583 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5584    { (exit 1); exit 1; }; } ;;
5585       esac
5586   done
5587   ;;
5588 esac
5589
5590
5591 # Check whether --with-ocaml-libdir was given.
5592 if test "${with_ocaml_libdir+set}" = set; then
5593   withval=$with_ocaml_libdir;
5594 else
5595   withval=auto
5596 fi
5597
5598 case "$withval" in
5599   auto) with_ocaml_libdir="$withval" ;;
5600   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5601   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5602 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5603    { (exit 1); exit 1; }; } ;;
5604 esac
5605
5606
5607 # Check whether --with-clang-srcdir was given.
5608 if test "${with_clang_srcdir+set}" = set; then
5609   withval=$with_clang_srcdir;
5610 else
5611   withval="-"
5612 fi
5613
5614 case "$withval" in
5615   -) clang_src_root="" ;;
5616   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5617   *) clang_src_root="$ac_pwd/$withval" ;;
5618 esac
5619 CLANG_SRC_ROOT=$clang_src_root
5620
5621
5622
5623 # Check whether --with-clang-resource-dir was given.
5624 if test "${with_clang_resource_dir+set}" = set; then
5625   withval=$with_clang_resource_dir;
5626 else
5627   withval=""
5628 fi
5629
5630
5631 cat >>confdefs.h <<_ACEOF
5632 #define CLANG_RESOURCE_DIR "$withval"
5633 _ACEOF
5634
5635
5636
5637 # Check whether --with-c-include-dirs was given.
5638 if test "${with_c_include_dirs+set}" = set; then
5639   withval=$with_c_include_dirs;
5640 else
5641   withval=""
5642 fi
5643
5644
5645 cat >>confdefs.h <<_ACEOF
5646 #define C_INCLUDE_DIRS "$withval"
5647 _ACEOF
5648
5649
5650 # Clang normally uses the system c++ headers and libraries. With this option,
5651 # clang will use the ones provided by a gcc installation instead. This option should
5652 # be passed the same value that was used with --prefix when configuring gcc.
5653
5654 # Check whether --with-gcc-toolchain was given.
5655 if test "${with_gcc_toolchain+set}" = set; then
5656   withval=$with_gcc_toolchain;
5657 else
5658   withval=""
5659 fi
5660
5661
5662 cat >>confdefs.h <<_ACEOF
5663 #define GCC_INSTALL_PREFIX "$withval"
5664 _ACEOF
5665
5666
5667
5668 # Check whether --with-default-sysroot was given.
5669 if test "${with_default_sysroot+set}" = set; then
5670   withval=$with_default_sysroot;
5671 else
5672   withval=""
5673 fi
5674
5675
5676 cat >>confdefs.h <<_ACEOF
5677 #define DEFAULT_SYSROOT "$withval"
5678 _ACEOF
5679
5680
5681
5682 # Check whether --with-binutils-include was given.
5683 if test "${with_binutils_include+set}" = set; then
5684   withval=$with_binutils_include;
5685 else
5686   withval=default
5687 fi
5688
5689 case "$withval" in
5690   default) WITH_BINUTILS_INCDIR=default ;;
5691   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5692   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5693 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5694    { (exit 1); exit 1; }; } ;;
5695 esac
5696 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5697   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5698
5699   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5700      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5701      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5702 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5703    { (exit 1); exit 1; }; };
5704   fi
5705 fi
5706
5707
5708 # Check whether --with-bug-report-url was given.
5709 if test "${with_bug_report_url+set}" = set; then
5710   withval=$with_bug_report_url;
5711 else
5712   withval="http://llvm.org/bugs/"
5713 fi
5714
5715
5716 cat >>confdefs.h <<_ACEOF
5717 #define BUG_REPORT_URL "$withval"
5718 _ACEOF
5719
5720
5721 # Check whether --enable-terminfo was given.
5722 if test "${enable_terminfo+set}" = set; then
5723   enableval=$enable_terminfo; case "$enableval" in
5724     yes) llvm_cv_enable_terminfo="yes" ;;
5725     no)  llvm_cv_enable_terminfo="no"  ;;
5726     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5727 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5728    { (exit 1); exit 1; }; } ;;
5729   esac
5730 else
5731   llvm_cv_enable_terminfo="yes"
5732 fi
5733
5734 case "$llvm_cv_enable_terminfo" in
5735   yes) ENABLE_TERMINFO=1
5736  ;;
5737   no)  ENABLE_TERMINFO=0
5738  ;;
5739 esac
5740
5741 # Check whether --enable-libedit was given.
5742 if test "${enable_libedit+set}" = set; then
5743   enableval=$enable_libedit; case "$enableval" in
5744     yes) llvm_cv_enable_libedit="yes" ;;
5745     no)  llvm_cv_enable_libedit="no"  ;;
5746     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5747 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5748    { (exit 1); exit 1; }; } ;;
5749   esac
5750 else
5751   llvm_cv_enable_libedit="yes"
5752 fi
5753
5754
5755 # Check whether --enable-libffi was given.
5756 if test "${enable_libffi+set}" = set; then
5757   enableval=$enable_libffi; case "$enableval" in
5758     yes) llvm_cv_enable_libffi="yes" ;;
5759     no)  llvm_cv_enable_libffi="no"  ;;
5760     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5761 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5762    { (exit 1); exit 1; }; } ;;
5763   esac
5764 else
5765   llvm_cv_enable_libffi=no
5766 fi
5767
5768
5769
5770 # Check whether --with-internal-prefix was given.
5771 if test "${with_internal_prefix+set}" = set; then
5772   withval=$with_internal_prefix;
5773 else
5774   withval=""
5775 fi
5776
5777 INTERNAL_PREFIX=$withval
5778
5779
5780
5781 { echo "$as_me:$LINENO: checking for GNU make" >&5
5782 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5783 if test "${llvm_cv_gnu_make_command+set}" = set; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   llvm_cv_gnu_make_command=''
5787  for a in "$MAKE" make gmake gnumake ; do
5788   if test -z "$a" ; then continue ; fi ;
5789   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5790   then
5791    llvm_cv_gnu_make_command=$a ;
5792    break;
5793   fi
5794  done
5795 fi
5796 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5797 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5798  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5799    ifGNUmake='' ;
5800  else
5801    ifGNUmake='#' ;
5802    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5803 echo "${ECHO_T}\"Not found\"" >&6; };
5804  fi
5805
5806
5807 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5808 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5809 LN_S=$as_ln_s
5810 if test "$LN_S" = "ln -s"; then
5811   { echo "$as_me:$LINENO: result: yes" >&5
5812 echo "${ECHO_T}yes" >&6; }
5813 else
5814   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5815 echo "${ECHO_T}no, using $LN_S" >&6; }
5816 fi
5817
5818 # Extract the first word of "nm", so it can be a program name with args.
5819 set dummy nm; ac_word=$2
5820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5822 if test "${ac_cv_path_NM+set}" = set; then
5823   echo $ECHO_N "(cached) $ECHO_C" >&6
5824 else
5825   case $NM in
5826   [\\/]* | ?:[\\/]*)
5827   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5828   ;;
5829   *)
5830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5832 do
5833   IFS=$as_save_IFS
5834   test -z "$as_dir" && as_dir=.
5835   for ac_exec_ext in '' $ac_executable_extensions; do
5836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5837     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5839     break 2
5840   fi
5841 done
5842 done
5843 IFS=$as_save_IFS
5844
5845   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5846   ;;
5847 esac
5848 fi
5849 NM=$ac_cv_path_NM
5850 if test -n "$NM"; then
5851   { echo "$as_me:$LINENO: result: $NM" >&5
5852 echo "${ECHO_T}$NM" >&6; }
5853 else
5854   { echo "$as_me:$LINENO: result: no" >&5
5855 echo "${ECHO_T}no" >&6; }
5856 fi
5857
5858
5859 # Extract the first word of "cmp", so it can be a program name with args.
5860 set dummy cmp; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_path_CMP+set}" = set; then
5864   echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866   case $CMP in
5867   [\\/]* | ?:[\\/]*)
5868   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5869   ;;
5870   *)
5871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876   for ac_exec_ext in '' $ac_executable_extensions; do
5877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5878     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883 done
5884 IFS=$as_save_IFS
5885
5886   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5887   ;;
5888 esac
5889 fi
5890 CMP=$ac_cv_path_CMP
5891 if test -n "$CMP"; then
5892   { echo "$as_me:$LINENO: result: $CMP" >&5
5893 echo "${ECHO_T}$CMP" >&6; }
5894 else
5895   { echo "$as_me:$LINENO: result: no" >&5
5896 echo "${ECHO_T}no" >&6; }
5897 fi
5898
5899
5900 # Extract the first word of "cp", so it can be a program name with args.
5901 set dummy cp; ac_word=$2
5902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904 if test "${ac_cv_path_CP+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   case $CP in
5908   [\\/]* | ?:[\\/]*)
5909   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5910   ;;
5911   *)
5912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   for ac_exec_ext in '' $ac_executable_extensions; do
5918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5919     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5928   ;;
5929 esac
5930 fi
5931 CP=$ac_cv_path_CP
5932 if test -n "$CP"; then
5933   { echo "$as_me:$LINENO: result: $CP" >&5
5934 echo "${ECHO_T}$CP" >&6; }
5935 else
5936   { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5938 fi
5939
5940
5941 # Extract the first word of "date", so it can be a program name with args.
5942 set dummy date; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_path_DATE+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   case $DATE in
5949   [\\/]* | ?:[\\/]*)
5950   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5951   ;;
5952   *)
5953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956   IFS=$as_save_IFS
5957   test -z "$as_dir" && as_dir=.
5958   for ac_exec_ext in '' $ac_executable_extensions; do
5959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5960     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5962     break 2
5963   fi
5964 done
5965 done
5966 IFS=$as_save_IFS
5967
5968   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5969   ;;
5970 esac
5971 fi
5972 DATE=$ac_cv_path_DATE
5973 if test -n "$DATE"; then
5974   { echo "$as_me:$LINENO: result: $DATE" >&5
5975 echo "${ECHO_T}$DATE" >&6; }
5976 else
5977   { echo "$as_me:$LINENO: result: no" >&5
5978 echo "${ECHO_T}no" >&6; }
5979 fi
5980
5981
5982 # Extract the first word of "find", so it can be a program name with args.
5983 set dummy find; ac_word=$2
5984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5986 if test "${ac_cv_path_FIND+set}" = set; then
5987   echo $ECHO_N "(cached) $ECHO_C" >&6
5988 else
5989   case $FIND in
5990   [\\/]* | ?:[\\/]*)
5991   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5992   ;;
5993   *)
5994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH
5996 do
5997   IFS=$as_save_IFS
5998   test -z "$as_dir" && as_dir=.
5999   for ac_exec_ext in '' $ac_executable_extensions; do
6000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6001     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003     break 2
6004   fi
6005 done
6006 done
6007 IFS=$as_save_IFS
6008
6009   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6010   ;;
6011 esac
6012 fi
6013 FIND=$ac_cv_path_FIND
6014 if test -n "$FIND"; then
6015   { echo "$as_me:$LINENO: result: $FIND" >&5
6016 echo "${ECHO_T}$FIND" >&6; }
6017 else
6018   { echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6; }
6020 fi
6021
6022
6023 # Extract the first word of "grep", so it can be a program name with args.
6024 set dummy grep; ac_word=$2
6025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6027 if test "${ac_cv_path_GREP+set}" = set; then
6028   echo $ECHO_N "(cached) $ECHO_C" >&6
6029 else
6030   case $GREP in
6031   [\\/]* | ?:[\\/]*)
6032   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6033   ;;
6034   *)
6035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038   IFS=$as_save_IFS
6039   test -z "$as_dir" && as_dir=.
6040   for ac_exec_ext in '' $ac_executable_extensions; do
6041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6042     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044     break 2
6045   fi
6046 done
6047 done
6048 IFS=$as_save_IFS
6049
6050   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6051   ;;
6052 esac
6053 fi
6054 GREP=$ac_cv_path_GREP
6055 if test -n "$GREP"; then
6056   { echo "$as_me:$LINENO: result: $GREP" >&5
6057 echo "${ECHO_T}$GREP" >&6; }
6058 else
6059   { echo "$as_me:$LINENO: result: no" >&5
6060 echo "${ECHO_T}no" >&6; }
6061 fi
6062
6063
6064 # Extract the first word of "mkdir", so it can be a program name with args.
6065 set dummy mkdir; ac_word=$2
6066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068 if test "${ac_cv_path_MKDIR+set}" = set; then
6069   echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071   case $MKDIR in
6072   [\\/]* | ?:[\\/]*)
6073   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6074   ;;
6075   *)
6076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077 for as_dir in $PATH
6078 do
6079   IFS=$as_save_IFS
6080   test -z "$as_dir" && as_dir=.
6081   for ac_exec_ext in '' $ac_executable_extensions; do
6082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6083     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6085     break 2
6086   fi
6087 done
6088 done
6089 IFS=$as_save_IFS
6090
6091   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6092   ;;
6093 esac
6094 fi
6095 MKDIR=$ac_cv_path_MKDIR
6096 if test -n "$MKDIR"; then
6097   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6098 echo "${ECHO_T}$MKDIR" >&6; }
6099 else
6100   { echo "$as_me:$LINENO: result: no" >&5
6101 echo "${ECHO_T}no" >&6; }
6102 fi
6103
6104
6105 # Extract the first word of "mv", so it can be a program name with args.
6106 set dummy mv; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_MV+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   case $MV in
6113   [\\/]* | ?:[\\/]*)
6114   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6115   ;;
6116   *)
6117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122   for ac_exec_ext in '' $ac_executable_extensions; do
6123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129 done
6130 IFS=$as_save_IFS
6131
6132   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6133   ;;
6134 esac
6135 fi
6136 MV=$ac_cv_path_MV
6137 if test -n "$MV"; then
6138   { echo "$as_me:$LINENO: result: $MV" >&5
6139 echo "${ECHO_T}$MV" >&6; }
6140 else
6141   { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6143 fi
6144
6145
6146 if test -n "$ac_tool_prefix"; then
6147   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6151 if test "${ac_cv_prog_RANLIB+set}" = set; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154   if test -n "$RANLIB"; then
6155   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162   for ac_exec_ext in '' $ac_executable_extensions; do
6163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 RANLIB=$ac_cv_prog_RANLIB
6175 if test -n "$RANLIB"; then
6176   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6177 echo "${ECHO_T}$RANLIB" >&6; }
6178 else
6179   { echo "$as_me:$LINENO: result: no" >&5
6180 echo "${ECHO_T}no" >&6; }
6181 fi
6182
6183
6184 fi
6185 if test -z "$ac_cv_prog_RANLIB"; then
6186   ac_ct_RANLIB=$RANLIB
6187   # Extract the first word of "ranlib", so it can be a program name with args.
6188 set dummy ranlib; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   if test -n "$ac_ct_RANLIB"; then
6195   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6199 do
6200   IFS=$as_save_IFS
6201   test -z "$as_dir" && as_dir=.
6202   for ac_exec_ext in '' $ac_executable_extensions; do
6203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6204     ac_cv_prog_ac_ct_RANLIB="ranlib"
6205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206     break 2
6207   fi
6208 done
6209 done
6210 IFS=$as_save_IFS
6211
6212 fi
6213 fi
6214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215 if test -n "$ac_ct_RANLIB"; then
6216   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6217 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6218 else
6219   { echo "$as_me:$LINENO: result: no" >&5
6220 echo "${ECHO_T}no" >&6; }
6221 fi
6222
6223   if test "x$ac_ct_RANLIB" = x; then
6224     RANLIB=":"
6225   else
6226     case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229 whose name does not start with the host triplet.  If you think this
6230 configuration is useful to you, please write to autoconf@gnu.org." >&5
6231 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232 whose name does not start with the host triplet.  If you think this
6233 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234 ac_tool_warned=yes ;;
6235 esac
6236     RANLIB=$ac_ct_RANLIB
6237   fi
6238 else
6239   RANLIB="$ac_cv_prog_RANLIB"
6240 fi
6241
6242 if test -n "$ac_tool_prefix"; then
6243   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}ar; ac_word=$2
6245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247 if test "${ac_cv_prog_AR+set}" = set; then
6248   echo $ECHO_N "(cached) $ECHO_C" >&6
6249 else
6250   if test -n "$AR"; then
6251   ac_cv_prog_AR="$AR" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256   IFS=$as_save_IFS
6257   test -z "$as_dir" && as_dir=.
6258   for ac_exec_ext in '' $ac_executable_extensions; do
6259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6260     ac_cv_prog_AR="${ac_tool_prefix}ar"
6261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262     break 2
6263   fi
6264 done
6265 done
6266 IFS=$as_save_IFS
6267
6268 fi
6269 fi
6270 AR=$ac_cv_prog_AR
6271 if test -n "$AR"; then
6272   { echo "$as_me:$LINENO: result: $AR" >&5
6273 echo "${ECHO_T}$AR" >&6; }
6274 else
6275   { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6277 fi
6278
6279
6280 fi
6281 if test -z "$ac_cv_prog_AR"; then
6282   ac_ct_AR=$AR
6283   # Extract the first word of "ar", so it can be a program name with args.
6284 set dummy ar; ac_word=$2
6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6288   echo $ECHO_N "(cached) $ECHO_C" >&6
6289 else
6290   if test -n "$ac_ct_AR"; then
6291   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298   for ac_exec_ext in '' $ac_executable_extensions; do
6299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6300     ac_cv_prog_ac_ct_AR="ar"
6301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302     break 2
6303   fi
6304 done
6305 done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6311 if test -n "$ac_ct_AR"; then
6312   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6313 echo "${ECHO_T}$ac_ct_AR" >&6; }
6314 else
6315   { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6317 fi
6318
6319   if test "x$ac_ct_AR" = x; then
6320     AR="false"
6321   else
6322     case $cross_compiling:$ac_tool_warned in
6323 yes:)
6324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6325 whose name does not start with the host triplet.  If you think this
6326 configuration is useful to you, please write to autoconf@gnu.org." >&5
6327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6328 whose name does not start with the host triplet.  If you think this
6329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6330 ac_tool_warned=yes ;;
6331 esac
6332     AR=$ac_ct_AR
6333   fi
6334 else
6335   AR="$ac_cv_prog_AR"
6336 fi
6337
6338 # Extract the first word of "rm", so it can be a program name with args.
6339 set dummy rm; ac_word=$2
6340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342 if test "${ac_cv_path_RM+set}" = set; then
6343   echo $ECHO_N "(cached) $ECHO_C" >&6
6344 else
6345   case $RM in
6346   [\\/]* | ?:[\\/]*)
6347   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6348   ;;
6349   *)
6350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355   for ac_exec_ext in '' $ac_executable_extensions; do
6356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6357     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362 done
6363 IFS=$as_save_IFS
6364
6365   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6366   ;;
6367 esac
6368 fi
6369 RM=$ac_cv_path_RM
6370 if test -n "$RM"; then
6371   { echo "$as_me:$LINENO: result: $RM" >&5
6372 echo "${ECHO_T}$RM" >&6; }
6373 else
6374   { echo "$as_me:$LINENO: result: no" >&5
6375 echo "${ECHO_T}no" >&6; }
6376 fi
6377
6378
6379 # Extract the first word of "sed", so it can be a program name with args.
6380 set dummy sed; ac_word=$2
6381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6383 if test "${ac_cv_path_SED+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   case $SED in
6387   [\\/]* | ?:[\\/]*)
6388   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6389   ;;
6390   *)
6391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394   IFS=$as_save_IFS
6395   test -z "$as_dir" && as_dir=.
6396   for ac_exec_ext in '' $ac_executable_extensions; do
6397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6398     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400     break 2
6401   fi
6402 done
6403 done
6404 IFS=$as_save_IFS
6405
6406   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6407   ;;
6408 esac
6409 fi
6410 SED=$ac_cv_path_SED
6411 if test -n "$SED"; then
6412   { echo "$as_me:$LINENO: result: $SED" >&5
6413 echo "${ECHO_T}$SED" >&6; }
6414 else
6415   { echo "$as_me:$LINENO: result: no" >&5
6416 echo "${ECHO_T}no" >&6; }
6417 fi
6418
6419
6420 # Extract the first word of "tar", so it can be a program name with args.
6421 set dummy tar; ac_word=$2
6422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6424 if test "${ac_cv_path_TAR+set}" = set; then
6425   echo $ECHO_N "(cached) $ECHO_C" >&6
6426 else
6427   case $TAR in
6428   [\\/]* | ?:[\\/]*)
6429   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6430   ;;
6431   *)
6432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 for as_dir in $PATH
6434 do
6435   IFS=$as_save_IFS
6436   test -z "$as_dir" && as_dir=.
6437   for ac_exec_ext in '' $ac_executable_extensions; do
6438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6439     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6441     break 2
6442   fi
6443 done
6444 done
6445 IFS=$as_save_IFS
6446
6447   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6448   ;;
6449 esac
6450 fi
6451 TAR=$ac_cv_path_TAR
6452 if test -n "$TAR"; then
6453   { echo "$as_me:$LINENO: result: $TAR" >&5
6454 echo "${ECHO_T}$TAR" >&6; }
6455 else
6456   { echo "$as_me:$LINENO: result: no" >&5
6457 echo "${ECHO_T}no" >&6; }
6458 fi
6459
6460
6461 # Extract the first word of "pwd", so it can be a program name with args.
6462 set dummy pwd; ac_word=$2
6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465 if test "${ac_cv_path_BINPWD+set}" = set; then
6466   echo $ECHO_N "(cached) $ECHO_C" >&6
6467 else
6468   case $BINPWD in
6469   [\\/]* | ?:[\\/]*)
6470   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6471   ;;
6472   *)
6473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474 for as_dir in $PATH
6475 do
6476   IFS=$as_save_IFS
6477   test -z "$as_dir" && as_dir=.
6478   for ac_exec_ext in '' $ac_executable_extensions; do
6479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6480     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6482     break 2
6483   fi
6484 done
6485 done
6486 IFS=$as_save_IFS
6487
6488   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6489   ;;
6490 esac
6491 fi
6492 BINPWD=$ac_cv_path_BINPWD
6493 if test -n "$BINPWD"; then
6494   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6495 echo "${ECHO_T}$BINPWD" >&6; }
6496 else
6497   { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6499 fi
6500
6501
6502
6503 # Extract the first word of "Graphviz", so it can be a program name with args.
6504 set dummy Graphviz; ac_word=$2
6505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6507 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6508   echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510   case $GRAPHVIZ in
6511   [\\/]* | ?:[\\/]*)
6512   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6513   ;;
6514   *)
6515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518   IFS=$as_save_IFS
6519   test -z "$as_dir" && as_dir=.
6520   for ac_exec_ext in '' $ac_executable_extensions; do
6521   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6522     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6524     break 2
6525   fi
6526 done
6527 done
6528 IFS=$as_save_IFS
6529
6530   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6531   ;;
6532 esac
6533 fi
6534 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6535 if test -n "$GRAPHVIZ"; then
6536   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6537 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6538 else
6539   { echo "$as_me:$LINENO: result: no" >&5
6540 echo "${ECHO_T}no" >&6; }
6541 fi
6542
6543
6544 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6545
6546 cat >>confdefs.h <<\_ACEOF
6547 #define HAVE_GRAPHVIZ 1
6548 _ACEOF
6549
6550     if test "$llvm_cv_os_type" = "MingW" ; then
6551     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6552   fi
6553
6554 cat >>confdefs.h <<_ACEOF
6555 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6556 _ACEOF
6557
6558 fi
6559 # Extract the first word of "dot", so it can be a program name with args.
6560 set dummy dot; ac_word=$2
6561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6563 if test "${ac_cv_path_DOT+set}" = set; then
6564   echo $ECHO_N "(cached) $ECHO_C" >&6
6565 else
6566   case $DOT in
6567   [\\/]* | ?:[\\/]*)
6568   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6569   ;;
6570   *)
6571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574   IFS=$as_save_IFS
6575   test -z "$as_dir" && as_dir=.
6576   for ac_exec_ext in '' $ac_executable_extensions; do
6577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6578     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580     break 2
6581   fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6587   ;;
6588 esac
6589 fi
6590 DOT=$ac_cv_path_DOT
6591 if test -n "$DOT"; then
6592   { echo "$as_me:$LINENO: result: $DOT" >&5
6593 echo "${ECHO_T}$DOT" >&6; }
6594 else
6595   { echo "$as_me:$LINENO: result: no" >&5
6596 echo "${ECHO_T}no" >&6; }
6597 fi
6598
6599
6600 if test "$DOT" != "echo dot" ; then
6601
6602 cat >>confdefs.h <<\_ACEOF
6603 #define HAVE_DOT 1
6604 _ACEOF
6605
6606     if test "$llvm_cv_os_type" = "MingW" ; then
6607     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6608   fi
6609
6610 cat >>confdefs.h <<_ACEOF
6611 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6612 _ACEOF
6613
6614 fi
6615 # Extract the first word of "fdp", so it can be a program name with args.
6616 set dummy fdp; ac_word=$2
6617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6619 if test "${ac_cv_path_FDP+set}" = set; then
6620   echo $ECHO_N "(cached) $ECHO_C" >&6
6621 else
6622   case $FDP in
6623   [\\/]* | ?:[\\/]*)
6624   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6625   ;;
6626   *)
6627   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628 for as_dir in $PATH
6629 do
6630   IFS=$as_save_IFS
6631   test -z "$as_dir" && as_dir=.
6632   for ac_exec_ext in '' $ac_executable_extensions; do
6633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6634     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6635     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636     break 2
6637   fi
6638 done
6639 done
6640 IFS=$as_save_IFS
6641
6642   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6643   ;;
6644 esac
6645 fi
6646 FDP=$ac_cv_path_FDP
6647 if test -n "$FDP"; then
6648   { echo "$as_me:$LINENO: result: $FDP" >&5
6649 echo "${ECHO_T}$FDP" >&6; }
6650 else
6651   { echo "$as_me:$LINENO: result: no" >&5
6652 echo "${ECHO_T}no" >&6; }
6653 fi
6654
6655
6656 if test "$FDP" != "echo fdp" ; then
6657
6658 cat >>confdefs.h <<\_ACEOF
6659 #define HAVE_FDP 1
6660 _ACEOF
6661
6662     if test "$llvm_cv_os_type" = "MingW" ; then
6663     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6664   fi
6665
6666 cat >>confdefs.h <<_ACEOF
6667 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6668 _ACEOF
6669
6670 fi
6671 # Extract the first word of "neato", so it can be a program name with args.
6672 set dummy neato; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_path_NEATO+set}" = set; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   case $NEATO in
6679   [\\/]* | ?:[\\/]*)
6680   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6681   ;;
6682   *)
6683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686   IFS=$as_save_IFS
6687   test -z "$as_dir" && as_dir=.
6688   for ac_exec_ext in '' $ac_executable_extensions; do
6689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6690     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6692     break 2
6693   fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6699   ;;
6700 esac
6701 fi
6702 NEATO=$ac_cv_path_NEATO
6703 if test -n "$NEATO"; then
6704   { echo "$as_me:$LINENO: result: $NEATO" >&5
6705 echo "${ECHO_T}$NEATO" >&6; }
6706 else
6707   { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6709 fi
6710
6711
6712 if test "$NEATO" != "echo neato" ; then
6713
6714 cat >>confdefs.h <<\_ACEOF
6715 #define HAVE_NEATO 1
6716 _ACEOF
6717
6718     if test "$llvm_cv_os_type" = "MingW" ; then
6719     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6720   fi
6721
6722 cat >>confdefs.h <<_ACEOF
6723 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6724 _ACEOF
6725
6726 fi
6727 # Extract the first word of "twopi", so it can be a program name with args.
6728 set dummy twopi; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_path_TWOPI+set}" = set; then
6732   echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734   case $TWOPI in
6735   [\\/]* | ?:[\\/]*)
6736   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6737   ;;
6738   *)
6739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742   IFS=$as_save_IFS
6743   test -z "$as_dir" && as_dir=.
6744   for ac_exec_ext in '' $ac_executable_extensions; do
6745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748     break 2
6749   fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6755   ;;
6756 esac
6757 fi
6758 TWOPI=$ac_cv_path_TWOPI
6759 if test -n "$TWOPI"; then
6760   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6761 echo "${ECHO_T}$TWOPI" >&6; }
6762 else
6763   { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6765 fi
6766
6767
6768 if test "$TWOPI" != "echo twopi" ; then
6769
6770 cat >>confdefs.h <<\_ACEOF
6771 #define HAVE_TWOPI 1
6772 _ACEOF
6773
6774     if test "$llvm_cv_os_type" = "MingW" ; then
6775     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6776   fi
6777
6778 cat >>confdefs.h <<_ACEOF
6779 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6780 _ACEOF
6781
6782 fi
6783 # Extract the first word of "circo", so it can be a program name with args.
6784 set dummy circo; ac_word=$2
6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787 if test "${ac_cv_path_CIRCO+set}" = set; then
6788   echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790   case $CIRCO in
6791   [\\/]* | ?:[\\/]*)
6792   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6793   ;;
6794   *)
6795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798   IFS=$as_save_IFS
6799   test -z "$as_dir" && as_dir=.
6800   for ac_exec_ext in '' $ac_executable_extensions; do
6801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6802     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6804     break 2
6805   fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6811   ;;
6812 esac
6813 fi
6814 CIRCO=$ac_cv_path_CIRCO
6815 if test -n "$CIRCO"; then
6816   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6817 echo "${ECHO_T}$CIRCO" >&6; }
6818 else
6819   { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6821 fi
6822
6823
6824 if test "$CIRCO" != "echo circo" ; then
6825
6826 cat >>confdefs.h <<\_ACEOF
6827 #define HAVE_CIRCO 1
6828 _ACEOF
6829
6830     if test "$llvm_cv_os_type" = "MingW" ; then
6831     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6832   fi
6833
6834 cat >>confdefs.h <<_ACEOF
6835 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6836 _ACEOF
6837
6838 fi
6839 for ac_prog in gv gsview32
6840 do
6841   # Extract the first word of "$ac_prog", so it can be a program name with args.
6842 set dummy $ac_prog; ac_word=$2
6843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6845 if test "${ac_cv_path_GV+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848   case $GV in
6849   [\\/]* | ?:[\\/]*)
6850   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6851   ;;
6852   *)
6853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856   IFS=$as_save_IFS
6857   test -z "$as_dir" && as_dir=.
6858   for ac_exec_ext in '' $ac_executable_extensions; do
6859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6860     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862     break 2
6863   fi
6864 done
6865 done
6866 IFS=$as_save_IFS
6867
6868   ;;
6869 esac
6870 fi
6871 GV=$ac_cv_path_GV
6872 if test -n "$GV"; then
6873   { echo "$as_me:$LINENO: result: $GV" >&5
6874 echo "${ECHO_T}$GV" >&6; }
6875 else
6876   { echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6; }
6878 fi
6879
6880
6881   test -n "$GV" && break
6882 done
6883 test -n "$GV" || GV="echo gv"
6884
6885 if test "$GV" != "echo gv" ; then
6886
6887 cat >>confdefs.h <<\_ACEOF
6888 #define HAVE_GV 1
6889 _ACEOF
6890
6891     if test "$llvm_cv_os_type" = "MingW" ; then
6892     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6893   fi
6894
6895 cat >>confdefs.h <<_ACEOF
6896 #define LLVM_PATH_GV "$GV${EXEEXT}"
6897 _ACEOF
6898
6899 fi
6900 # Extract the first word of "dotty", so it can be a program name with args.
6901 set dummy dotty; ac_word=$2
6902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6904 if test "${ac_cv_path_DOTTY+set}" = set; then
6905   echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907   case $DOTTY in
6908   [\\/]* | ?:[\\/]*)
6909   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6910   ;;
6911   *)
6912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6913 for as_dir in $PATH
6914 do
6915   IFS=$as_save_IFS
6916   test -z "$as_dir" && as_dir=.
6917   for ac_exec_ext in '' $ac_executable_extensions; do
6918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6919     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6921     break 2
6922   fi
6923 done
6924 done
6925 IFS=$as_save_IFS
6926
6927   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6928   ;;
6929 esac
6930 fi
6931 DOTTY=$ac_cv_path_DOTTY
6932 if test -n "$DOTTY"; then
6933   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6934 echo "${ECHO_T}$DOTTY" >&6; }
6935 else
6936   { echo "$as_me:$LINENO: result: no" >&5
6937 echo "${ECHO_T}no" >&6; }
6938 fi
6939
6940
6941 if test "$DOTTY" != "echo dotty" ; then
6942
6943 cat >>confdefs.h <<\_ACEOF
6944 #define HAVE_DOTTY 1
6945 _ACEOF
6946
6947     if test "$llvm_cv_os_type" = "MingW" ; then
6948     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6949   fi
6950
6951 cat >>confdefs.h <<_ACEOF
6952 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6953 _ACEOF
6954
6955 fi
6956 for ac_prog in xdot xdot.py
6957 do
6958   # Extract the first word of "$ac_prog", so it can be a program name with args.
6959 set dummy $ac_prog; ac_word=$2
6960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6962 if test "${ac_cv_path_XDOT+set}" = set; then
6963   echo $ECHO_N "(cached) $ECHO_C" >&6
6964 else
6965   case $XDOT in
6966   [\\/]* | ?:[\\/]*)
6967   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6968   ;;
6969   *)
6970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975   for ac_exec_ext in '' $ac_executable_extensions; do
6976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6977     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982 done
6983 IFS=$as_save_IFS
6984
6985   ;;
6986 esac
6987 fi
6988 XDOT=$ac_cv_path_XDOT
6989 if test -n "$XDOT"; then
6990   { echo "$as_me:$LINENO: result: $XDOT" >&5
6991 echo "${ECHO_T}$XDOT" >&6; }
6992 else
6993   { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6995 fi
6996
6997
6998   test -n "$XDOT" && break
6999 done
7000 test -n "$XDOT" || XDOT="echo xdot"
7001
7002 if test "$XDOT" != "echo xdot" ; then
7003
7004 cat >>confdefs.h <<\_ACEOF
7005 #define HAVE_XDOT 1
7006 _ACEOF
7007
7008     if test "$llvm_cv_os_type" = "MingW" ; then
7009     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7010   fi
7011
7012 cat >>confdefs.h <<_ACEOF
7013 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7014 _ACEOF
7015
7016 fi
7017
7018 # Find a good install program.  We prefer a C program (faster),
7019 # so one script is as good as another.  But avoid the broken or
7020 # incompatible versions:
7021 # SysV /etc/install, /usr/sbin/install
7022 # SunOS /usr/etc/install
7023 # IRIX /sbin/install
7024 # AIX /bin/install
7025 # AmigaOS /C/install, which installs bootblocks on floppy discs
7026 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7027 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7028 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7029 # OS/2's system install, which has a completely different semantic
7030 # ./install, which can be erroneously created by make from ./install.sh.
7031 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7032 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7033 if test -z "$INSTALL"; then
7034 if test "${ac_cv_path_install+set}" = set; then
7035   echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH
7039 do
7040   IFS=$as_save_IFS
7041   test -z "$as_dir" && as_dir=.
7042   # Account for people who put trailing slashes in PATH elements.
7043 case $as_dir/ in
7044   ./ | .// | /cC/* | \
7045   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7046   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7047   /usr/ucb/* ) ;;
7048   *)
7049     # OSF1 and SCO ODT 3.0 have their own names for install.
7050     # Don't use installbsd from OSF since it installs stuff as root
7051     # by default.
7052     for ac_prog in ginstall scoinst install; do
7053       for ac_exec_ext in '' $ac_executable_extensions; do
7054         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7055           if test $ac_prog = install &&
7056             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7057             # AIX install.  It has an incompatible calling convention.
7058             :
7059           elif test $ac_prog = install &&
7060             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7061             # program-specific install script used by HP pwplus--don't use.
7062             :
7063           else
7064             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7065             break 3
7066           fi
7067         fi
7068       done
7069     done
7070     ;;
7071 esac
7072 done
7073 IFS=$as_save_IFS
7074
7075
7076 fi
7077   if test "${ac_cv_path_install+set}" = set; then
7078     INSTALL=$ac_cv_path_install
7079   else
7080     # As a last resort, use the slow shell script.  Don't cache a
7081     # value for INSTALL within a source directory, because that will
7082     # break other packages using the cache if that directory is
7083     # removed, or if the value is a relative name.
7084     INSTALL=$ac_install_sh
7085   fi
7086 fi
7087 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7088 echo "${ECHO_T}$INSTALL" >&6; }
7089
7090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7091 # It thinks the first close brace ends the variable substitution.
7092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7093
7094 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7095
7096 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7097
7098 case "$INSTALL" in
7099  [\\/$]* | ?:[\\/]* ) ;;
7100  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7101 esac
7102
7103 # Extract the first word of "bzip2", so it can be a program name with args.
7104 set dummy bzip2; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_path_BZIP2+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   case $BZIP2 in
7111   [\\/]* | ?:[\\/]*)
7112   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7113   ;;
7114   *)
7115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118   IFS=$as_save_IFS
7119   test -z "$as_dir" && as_dir=.
7120   for ac_exec_ext in '' $ac_executable_extensions; do
7121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7122     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124     break 2
7125   fi
7126 done
7127 done
7128 IFS=$as_save_IFS
7129
7130   ;;
7131 esac
7132 fi
7133 BZIP2=$ac_cv_path_BZIP2
7134 if test -n "$BZIP2"; then
7135   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7136 echo "${ECHO_T}$BZIP2" >&6; }
7137 else
7138   { echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6; }
7140 fi
7141
7142
7143 # Extract the first word of "cat", so it can be a program name with args.
7144 set dummy cat; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_path_CAT+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   case $CAT in
7151   [\\/]* | ?:[\\/]*)
7152   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7153   ;;
7154   *)
7155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158   IFS=$as_save_IFS
7159   test -z "$as_dir" && as_dir=.
7160   for ac_exec_ext in '' $ac_executable_extensions; do
7161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7162     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164     break 2
7165   fi
7166 done
7167 done
7168 IFS=$as_save_IFS
7169
7170   ;;
7171 esac
7172 fi
7173 CAT=$ac_cv_path_CAT
7174 if test -n "$CAT"; then
7175   { echo "$as_me:$LINENO: result: $CAT" >&5
7176 echo "${ECHO_T}$CAT" >&6; }
7177 else
7178   { echo "$as_me:$LINENO: result: no" >&5
7179 echo "${ECHO_T}no" >&6; }
7180 fi
7181
7182
7183 # Extract the first word of "doxygen", so it can be a program name with args.
7184 set dummy doxygen; ac_word=$2
7185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7187 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7188   echo $ECHO_N "(cached) $ECHO_C" >&6
7189 else
7190   case $DOXYGEN in
7191   [\\/]* | ?:[\\/]*)
7192   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7193   ;;
7194   *)
7195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198   IFS=$as_save_IFS
7199   test -z "$as_dir" && as_dir=.
7200   for ac_exec_ext in '' $ac_executable_extensions; do
7201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7202     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7204     break 2
7205   fi
7206 done
7207 done
7208 IFS=$as_save_IFS
7209
7210   ;;
7211 esac
7212 fi
7213 DOXYGEN=$ac_cv_path_DOXYGEN
7214 if test -n "$DOXYGEN"; then
7215   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7216 echo "${ECHO_T}$DOXYGEN" >&6; }
7217 else
7218   { echo "$as_me:$LINENO: result: no" >&5
7219 echo "${ECHO_T}no" >&6; }
7220 fi
7221
7222
7223 # Extract the first word of "groff", so it can be a program name with args.
7224 set dummy groff; ac_word=$2
7225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7227 if test "${ac_cv_path_GROFF+set}" = set; then
7228   echo $ECHO_N "(cached) $ECHO_C" >&6
7229 else
7230   case $GROFF in
7231   [\\/]* | ?:[\\/]*)
7232   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7233   ;;
7234   *)
7235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238   IFS=$as_save_IFS
7239   test -z "$as_dir" && as_dir=.
7240   for ac_exec_ext in '' $ac_executable_extensions; do
7241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7242     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7244     break 2
7245   fi
7246 done
7247 done
7248 IFS=$as_save_IFS
7249
7250   ;;
7251 esac
7252 fi
7253 GROFF=$ac_cv_path_GROFF
7254 if test -n "$GROFF"; then
7255   { echo "$as_me:$LINENO: result: $GROFF" >&5
7256 echo "${ECHO_T}$GROFF" >&6; }
7257 else
7258   { echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6; }
7260 fi
7261
7262
7263 # Extract the first word of "gzip", so it can be a program name with args.
7264 set dummy gzip; ac_word=$2
7265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7267 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7268   echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270   case $GZIPBIN in
7271   [\\/]* | ?:[\\/]*)
7272   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7273   ;;
7274   *)
7275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278   IFS=$as_save_IFS
7279   test -z "$as_dir" && as_dir=.
7280   for ac_exec_ext in '' $ac_executable_extensions; do
7281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7282     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7284     break 2
7285   fi
7286 done
7287 done
7288 IFS=$as_save_IFS
7289
7290   ;;
7291 esac
7292 fi
7293 GZIPBIN=$ac_cv_path_GZIPBIN
7294 if test -n "$GZIPBIN"; then
7295   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7296 echo "${ECHO_T}$GZIPBIN" >&6; }
7297 else
7298   { echo "$as_me:$LINENO: result: no" >&5
7299 echo "${ECHO_T}no" >&6; }
7300 fi
7301
7302
7303 # Extract the first word of "pdfroff", so it can be a program name with args.
7304 set dummy pdfroff; ac_word=$2
7305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7307 if test "${ac_cv_path_PDFROFF+set}" = set; then
7308   echo $ECHO_N "(cached) $ECHO_C" >&6
7309 else
7310   case $PDFROFF in
7311   [\\/]* | ?:[\\/]*)
7312   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7313   ;;
7314   *)
7315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318   IFS=$as_save_IFS
7319   test -z "$as_dir" && as_dir=.
7320   for ac_exec_ext in '' $ac_executable_extensions; do
7321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7322     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7324     break 2
7325   fi
7326 done
7327 done
7328 IFS=$as_save_IFS
7329
7330   ;;
7331 esac
7332 fi
7333 PDFROFF=$ac_cv_path_PDFROFF
7334 if test -n "$PDFROFF"; then
7335   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7336 echo "${ECHO_T}$PDFROFF" >&6; }
7337 else
7338   { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7340 fi
7341
7342
7343 # Extract the first word of "zip", so it can be a program name with args.
7344 set dummy zip; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_ZIP+set}" = set; then
7348   echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350   case $ZIP in
7351   [\\/]* | ?:[\\/]*)
7352   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7353   ;;
7354   *)
7355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7356 for as_dir in $PATH
7357 do
7358   IFS=$as_save_IFS
7359   test -z "$as_dir" && as_dir=.
7360   for ac_exec_ext in '' $ac_executable_extensions; do
7361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364     break 2
7365   fi
7366 done
7367 done
7368 IFS=$as_save_IFS
7369
7370   ;;
7371 esac
7372 fi
7373 ZIP=$ac_cv_path_ZIP
7374 if test -n "$ZIP"; then
7375   { echo "$as_me:$LINENO: result: $ZIP" >&5
7376 echo "${ECHO_T}$ZIP" >&6; }
7377 else
7378   { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7380 fi
7381
7382
7383 for ac_prog in ocamlc
7384 do
7385   # Extract the first word of "$ac_prog", so it can be a program name with args.
7386 set dummy $ac_prog; ac_word=$2
7387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7389 if test "${ac_cv_path_OCAMLC+set}" = set; then
7390   echo $ECHO_N "(cached) $ECHO_C" >&6
7391 else
7392   case $OCAMLC in
7393   [\\/]* | ?:[\\/]*)
7394   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7395   ;;
7396   *)
7397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402   for ac_exec_ext in '' $ac_executable_extensions; do
7403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7404     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409 done
7410 IFS=$as_save_IFS
7411
7412   ;;
7413 esac
7414 fi
7415 OCAMLC=$ac_cv_path_OCAMLC
7416 if test -n "$OCAMLC"; then
7417   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7418 echo "${ECHO_T}$OCAMLC" >&6; }
7419 else
7420   { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7422 fi
7423
7424
7425   test -n "$OCAMLC" && break
7426 done
7427
7428 for ac_prog in ocamlopt
7429 do
7430   # Extract the first word of "$ac_prog", so it can be a program name with args.
7431 set dummy $ac_prog; ac_word=$2
7432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7434 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7435   echo $ECHO_N "(cached) $ECHO_C" >&6
7436 else
7437   case $OCAMLOPT in
7438   [\\/]* | ?:[\\/]*)
7439   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7440   ;;
7441   *)
7442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447   for ac_exec_ext in '' $ac_executable_extensions; do
7448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7449     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454 done
7455 IFS=$as_save_IFS
7456
7457   ;;
7458 esac
7459 fi
7460 OCAMLOPT=$ac_cv_path_OCAMLOPT
7461 if test -n "$OCAMLOPT"; then
7462   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7463 echo "${ECHO_T}$OCAMLOPT" >&6; }
7464 else
7465   { echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6; }
7467 fi
7468
7469
7470   test -n "$OCAMLOPT" && break
7471 done
7472
7473 for ac_prog in ocamldep
7474 do
7475   # Extract the first word of "$ac_prog", so it can be a program name with args.
7476 set dummy $ac_prog; ac_word=$2
7477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7479 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7480   echo $ECHO_N "(cached) $ECHO_C" >&6
7481 else
7482   case $OCAMLDEP in
7483   [\\/]* | ?:[\\/]*)
7484   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7485   ;;
7486   *)
7487   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 for as_dir in $PATH
7489 do
7490   IFS=$as_save_IFS
7491   test -z "$as_dir" && as_dir=.
7492   for ac_exec_ext in '' $ac_executable_extensions; do
7493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7494     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7496     break 2
7497   fi
7498 done
7499 done
7500 IFS=$as_save_IFS
7501
7502   ;;
7503 esac
7504 fi
7505 OCAMLDEP=$ac_cv_path_OCAMLDEP
7506 if test -n "$OCAMLDEP"; then
7507   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7508 echo "${ECHO_T}$OCAMLDEP" >&6; }
7509 else
7510   { echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6; }
7512 fi
7513
7514
7515   test -n "$OCAMLDEP" && break
7516 done
7517
7518 for ac_prog in ocamldoc
7519 do
7520   # Extract the first word of "$ac_prog", so it can be a program name with args.
7521 set dummy $ac_prog; ac_word=$2
7522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7524 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7525   echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527   case $OCAMLDOC in
7528   [\\/]* | ?:[\\/]*)
7529   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7530   ;;
7531   *)
7532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7533 for as_dir in $PATH
7534 do
7535   IFS=$as_save_IFS
7536   test -z "$as_dir" && as_dir=.
7537   for ac_exec_ext in '' $ac_executable_extensions; do
7538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7539     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7541     break 2
7542   fi
7543 done
7544 done
7545 IFS=$as_save_IFS
7546
7547   ;;
7548 esac
7549 fi
7550 OCAMLDOC=$ac_cv_path_OCAMLDOC
7551 if test -n "$OCAMLDOC"; then
7552   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7553 echo "${ECHO_T}$OCAMLDOC" >&6; }
7554 else
7555   { echo "$as_me:$LINENO: result: no" >&5
7556 echo "${ECHO_T}no" >&6; }
7557 fi
7558
7559
7560   test -n "$OCAMLDOC" && break
7561 done
7562
7563 for ac_prog in gas as
7564 do
7565   # Extract the first word of "$ac_prog", so it can be a program name with args.
7566 set dummy $ac_prog; ac_word=$2
7567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7569 if test "${ac_cv_path_GAS+set}" = set; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   case $GAS in
7573   [\\/]* | ?:[\\/]*)
7574   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7575   ;;
7576   *)
7577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580   IFS=$as_save_IFS
7581   test -z "$as_dir" && as_dir=.
7582   for ac_exec_ext in '' $ac_executable_extensions; do
7583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7584     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7586     break 2
7587   fi
7588 done
7589 done
7590 IFS=$as_save_IFS
7591
7592   ;;
7593 esac
7594 fi
7595 GAS=$ac_cv_path_GAS
7596 if test -n "$GAS"; then
7597   { echo "$as_me:$LINENO: result: $GAS" >&5
7598 echo "${ECHO_T}$GAS" >&6; }
7599 else
7600   { echo "$as_me:$LINENO: result: no" >&5
7601 echo "${ECHO_T}no" >&6; }
7602 fi
7603
7604
7605   test -n "$GAS" && break
7606 done
7607
7608
7609 { echo "$as_me:$LINENO: checking for linker version" >&5
7610 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7611 if test "${llvm_cv_link_version+set}" = set; then
7612   echo $ECHO_N "(cached) $ECHO_C" >&6
7613 else
7614
7615    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7616
7617    # Check for ld64.
7618    if (echo "$version_string" | grep -q "ld64"); then
7619      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7620    else
7621      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7622    fi
7623
7624 fi
7625 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7626 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7627
7628 cat >>confdefs.h <<_ACEOF
7629 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7630 _ACEOF
7631
7632
7633
7634
7635 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7636 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7637 if test "${llvm_cv_link_use_r+set}" = set; then
7638   echo $ECHO_N "(cached) $ECHO_C" >&6
7639 else
7640    ac_ext=c
7641 ac_cpp='$CPP $CPPFLAGS'
7642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7645
7646   oldcflags="$CFLAGS"
7647   CFLAGS="$CFLAGS -Wl,-R."
7648   cat >conftest.$ac_ext <<_ACEOF
7649 /* confdefs.h.  */
7650 _ACEOF
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h.  */
7654
7655 int
7656 main ()
7657 {
7658
7659   ;
7660   return 0;
7661 }
7662 _ACEOF
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (ac_try="$ac_link"
7665 case "(($ac_try" in
7666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667   *) ac_try_echo=$ac_try;;
7668 esac
7669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7670   (eval "$ac_link") 2>conftest.er1
7671   ac_status=$?
7672   grep -v '^ *+' conftest.er1 >conftest.err
7673   rm -f conftest.er1
7674   cat conftest.err >&5
7675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676   (exit $ac_status); } &&
7677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7678   { (case "(($ac_try" in
7679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680   *) ac_try_echo=$ac_try;;
7681 esac
7682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683   (eval "$ac_try") 2>&5
7684   ac_status=$?
7685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686   (exit $ac_status); }; } &&
7687          { ac_try='test -s conftest$ac_exeext'
7688   { (case "(($ac_try" in
7689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690   *) ac_try_echo=$ac_try;;
7691 esac
7692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7693   (eval "$ac_try") 2>&5
7694   ac_status=$?
7695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696   (exit $ac_status); }; }; then
7697   llvm_cv_link_use_r=yes
7698 else
7699   echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7701
7702         llvm_cv_link_use_r=no
7703 fi
7704
7705 rm -f core conftest.err conftest.$ac_objext \
7706       conftest$ac_exeext conftest.$ac_ext
7707   CFLAGS="$oldcflags"
7708   ac_ext=c
7709 ac_cpp='$CPP $CPPFLAGS'
7710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713
7714
7715 fi
7716 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7717 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7718 if test "$llvm_cv_link_use_r" = yes ; then
7719
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_LINK_R 1
7722 _ACEOF
7723
7724   fi
7725
7726
7727 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7728 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7729 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7730   echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732    ac_ext=c
7733 ac_cpp='$CPP $CPPFLAGS'
7734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7737
7738   oldcflags="$CFLAGS"
7739   CFLAGS="$CFLAGS -rdynamic"
7740   cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h.  */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h.  */
7746
7747 int
7748 main ()
7749 {
7750
7751   ;
7752   return 0;
7753 }
7754 _ACEOF
7755 rm -f conftest.$ac_objext conftest$ac_exeext
7756 if { (ac_try="$ac_link"
7757 case "(($ac_try" in
7758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759   *) ac_try_echo=$ac_try;;
7760 esac
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762   (eval "$ac_link") 2>conftest.er1
7763   ac_status=$?
7764   grep -v '^ *+' conftest.er1 >conftest.err
7765   rm -f conftest.er1
7766   cat conftest.err >&5
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); } &&
7769          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7770   { (case "(($ac_try" in
7771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772   *) ac_try_echo=$ac_try;;
7773 esac
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775   (eval "$ac_try") 2>&5
7776   ac_status=$?
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); }; } &&
7779          { ac_try='test -s conftest$ac_exeext'
7780   { (case "(($ac_try" in
7781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782   *) ac_try_echo=$ac_try;;
7783 esac
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785   (eval "$ac_try") 2>&5
7786   ac_status=$?
7787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788   (exit $ac_status); }; }; then
7789   llvm_cv_link_use_export_dynamic=yes
7790 else
7791   echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794         llvm_cv_link_use_export_dynamic=no
7795 fi
7796
7797 rm -f core conftest.err conftest.$ac_objext \
7798       conftest$ac_exeext conftest.$ac_ext
7799   CFLAGS="$oldcflags"
7800   ac_ext=c
7801 ac_cpp='$CPP $CPPFLAGS'
7802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7805
7806
7807 fi
7808 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7809 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7810 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7811
7812 cat >>confdefs.h <<\_ACEOF
7813 #define HAVE_LINK_EXPORT_DYNAMIC 1
7814 _ACEOF
7815
7816   fi
7817
7818
7819 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7820 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7821 if test "${llvm_cv_link_use_version_script+set}" = set; then
7822   echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824    ac_ext=c
7825 ac_cpp='$CPP $CPPFLAGS'
7826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7829
7830   oldcflags="$CFLAGS"
7831
7832   # The following code is from the autoconf manual,
7833   # "11.13: Limitations of Usual Tools".
7834   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7835   # Use mktemp if possible; otherwise fall back on mkdir,
7836   # with $RANDOM to make collisions less likely.
7837   : ${TMPDIR=/tmp}
7838   {
7839     tmp=`
7840       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7841     ` &&
7842     test -n "$tmp" && test -d "$tmp"
7843   } || {
7844     tmp=$TMPDIR/foo$$-$RANDOM
7845     (umask 077 && mkdir "$tmp")
7846   } || exit $?
7847
7848   echo "{" > "$tmp/export.map"
7849   echo "  global: main;" >> "$tmp/export.map"
7850   echo "  local: *;" >> "$tmp/export.map"
7851   echo "};" >> "$tmp/export.map"
7852
7853   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7854   cat >conftest.$ac_ext <<_ACEOF
7855 /* confdefs.h.  */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h.  */
7860
7861 int
7862 main ()
7863 {
7864
7865   ;
7866   return 0;
7867 }
7868 _ACEOF
7869 rm -f conftest.$ac_objext conftest$ac_exeext
7870 if { (ac_try="$ac_link"
7871 case "(($ac_try" in
7872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873   *) ac_try_echo=$ac_try;;
7874 esac
7875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876   (eval "$ac_link") 2>conftest.er1
7877   ac_status=$?
7878   grep -v '^ *+' conftest.er1 >conftest.err
7879   rm -f conftest.er1
7880   cat conftest.err >&5
7881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882   (exit $ac_status); } &&
7883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7884   { (case "(($ac_try" in
7885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886   *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889   (eval "$ac_try") 2>&5
7890   ac_status=$?
7891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892   (exit $ac_status); }; } &&
7893          { ac_try='test -s conftest$ac_exeext'
7894   { (case "(($ac_try" in
7895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896   *) ac_try_echo=$ac_try;;
7897 esac
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899   (eval "$ac_try") 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); }; }; then
7903   llvm_cv_link_use_version_script=yes
7904 else
7905   echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7907
7908         llvm_cv_link_use_version_script=no
7909 fi
7910
7911 rm -f core conftest.err conftest.$ac_objext \
7912       conftest$ac_exeext conftest.$ac_ext
7913   rm "$tmp/export.map"
7914   rmdir "$tmp"
7915   CFLAGS="$oldcflags"
7916   ac_ext=c
7917 ac_cpp='$CPP $CPPFLAGS'
7918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921
7922
7923 fi
7924 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7925 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7926 if test "$llvm_cv_link_use_version_script" = yes ; then
7927   HAVE_LINK_VERSION_SCRIPT=1
7928
7929   fi
7930
7931
7932
7933 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7934 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7935 if test "${ac_cv_path_GREP+set}" = set; then
7936   echo $ECHO_N "(cached) $ECHO_C" >&6
7937 else
7938   # Extract the first word of "grep ggrep" to use in msg output
7939 if test -z "$GREP"; then
7940 set dummy grep ggrep; ac_prog_name=$2
7941 if test "${ac_cv_path_GREP+set}" = set; then
7942   echo $ECHO_N "(cached) $ECHO_C" >&6
7943 else
7944   ac_path_GREP_found=false
7945 # Loop through the user's path and test for each of PROGNAME-LIST
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7948 do
7949   IFS=$as_save_IFS
7950   test -z "$as_dir" && as_dir=.
7951   for ac_prog in grep ggrep; do
7952   for ac_exec_ext in '' $ac_executable_extensions; do
7953     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7954     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7955     # Check for GNU ac_path_GREP and select it if it is found.
7956   # Check for GNU $ac_path_GREP
7957 case `"$ac_path_GREP" --version 2>&1` in
7958 *GNU*)
7959   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7960 *)
7961   ac_count=0
7962   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7963   while :
7964   do
7965     cat "conftest.in" "conftest.in" >"conftest.tmp"
7966     mv "conftest.tmp" "conftest.in"
7967     cp "conftest.in" "conftest.nl"
7968     echo 'GREP' >> "conftest.nl"
7969     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7970     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7971     ac_count=`expr $ac_count + 1`
7972     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7973       # Best one so far, save it but keep looking for a better one
7974       ac_cv_path_GREP="$ac_path_GREP"
7975       ac_path_GREP_max=$ac_count
7976     fi
7977     # 10*(2^10) chars as input seems more than enough
7978     test $ac_count -gt 10 && break
7979   done
7980   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7981 esac
7982
7983
7984     $ac_path_GREP_found && break 3
7985   done
7986 done
7987
7988 done
7989 IFS=$as_save_IFS
7990
7991
7992 fi
7993
7994 GREP="$ac_cv_path_GREP"
7995 if test -z "$GREP"; then
7996   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7997 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7998    { (exit 1); exit 1; }; }
7999 fi
8000
8001 else
8002   ac_cv_path_GREP=$GREP
8003 fi
8004
8005
8006 fi
8007 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8008 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8009  GREP="$ac_cv_path_GREP"
8010
8011
8012 { echo "$as_me:$LINENO: checking for egrep" >&5
8013 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8014 if test "${ac_cv_path_EGREP+set}" = set; then
8015   echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8018    then ac_cv_path_EGREP="$GREP -E"
8019    else
8020      # Extract the first word of "egrep" to use in msg output
8021 if test -z "$EGREP"; then
8022 set dummy egrep; ac_prog_name=$2
8023 if test "${ac_cv_path_EGREP+set}" = set; then
8024   echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026   ac_path_EGREP_found=false
8027 # Loop through the user's path and test for each of PROGNAME-LIST
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8030 do
8031   IFS=$as_save_IFS
8032   test -z "$as_dir" && as_dir=.
8033   for ac_prog in egrep; do
8034   for ac_exec_ext in '' $ac_executable_extensions; do
8035     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8036     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8037     # Check for GNU ac_path_EGREP and select it if it is found.
8038   # Check for GNU $ac_path_EGREP
8039 case `"$ac_path_EGREP" --version 2>&1` in
8040 *GNU*)
8041   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8042 *)
8043   ac_count=0
8044   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8045   while :
8046   do
8047     cat "conftest.in" "conftest.in" >"conftest.tmp"
8048     mv "conftest.tmp" "conftest.in"
8049     cp "conftest.in" "conftest.nl"
8050     echo 'EGREP' >> "conftest.nl"
8051     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8052     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8053     ac_count=`expr $ac_count + 1`
8054     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8055       # Best one so far, save it but keep looking for a better one
8056       ac_cv_path_EGREP="$ac_path_EGREP"
8057       ac_path_EGREP_max=$ac_count
8058     fi
8059     # 10*(2^10) chars as input seems more than enough
8060     test $ac_count -gt 10 && break
8061   done
8062   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8063 esac
8064
8065
8066     $ac_path_EGREP_found && break 3
8067   done
8068 done
8069
8070 done
8071 IFS=$as_save_IFS
8072
8073
8074 fi
8075
8076 EGREP="$ac_cv_path_EGREP"
8077 if test -z "$EGREP"; then
8078   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8079 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8080    { (exit 1); exit 1; }; }
8081 fi
8082
8083 else
8084   ac_cv_path_EGREP=$EGREP
8085 fi
8086
8087
8088    fi
8089 fi
8090 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8091 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8092  EGREP="$ac_cv_path_EGREP"
8093
8094
8095 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8096 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8097 if test "${ac_cv_header_stdc+set}" = set; then
8098   echo $ECHO_N "(cached) $ECHO_C" >&6
8099 else
8100   cat >conftest.$ac_ext <<_ACEOF
8101 /* confdefs.h.  */
8102 _ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h.  */
8106 #include <stdlib.h>
8107 #include <stdarg.h>
8108 #include <string.h>
8109 #include <float.h>
8110
8111 int
8112 main ()
8113 {
8114
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext
8120 if { (ac_try="$ac_compile"
8121 case "(($ac_try" in
8122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123   *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126   (eval "$ac_compile") 2>conftest.er1
8127   ac_status=$?
8128   grep -v '^ *+' conftest.er1 >conftest.err
8129   rm -f conftest.er1
8130   cat conftest.err >&5
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } &&
8133          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8134   { (case "(($ac_try" in
8135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136   *) ac_try_echo=$ac_try;;
8137 esac
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139   (eval "$ac_try") 2>&5
8140   ac_status=$?
8141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142   (exit $ac_status); }; } &&
8143          { ac_try='test -s conftest.$ac_objext'
8144   { (case "(($ac_try" in
8145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146   *) ac_try_echo=$ac_try;;
8147 esac
8148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149   (eval "$ac_try") 2>&5
8150   ac_status=$?
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); }; }; then
8153   ac_cv_header_stdc=yes
8154 else
8155   echo "$as_me: failed program was:" >&5
8156 sed 's/^/| /' conftest.$ac_ext >&5
8157
8158         ac_cv_header_stdc=no
8159 fi
8160
8161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8162
8163 if test $ac_cv_header_stdc = yes; then
8164   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8165   cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h.  */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h.  */
8171 #include <string.h>
8172
8173 _ACEOF
8174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8175   $EGREP "memchr" >/dev/null 2>&1; then
8176   :
8177 else
8178   ac_cv_header_stdc=no
8179 fi
8180 rm -f conftest*
8181
8182 fi
8183
8184 if test $ac_cv_header_stdc = yes; then
8185   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8186   cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h.  */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h.  */
8192 #include <stdlib.h>
8193
8194 _ACEOF
8195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8196   $EGREP "free" >/dev/null 2>&1; then
8197   :
8198 else
8199   ac_cv_header_stdc=no
8200 fi
8201 rm -f conftest*
8202
8203 fi
8204
8205 if test $ac_cv_header_stdc = yes; then
8206   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8207   if test "$cross_compiling" = yes; then
8208   :
8209 else
8210   cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h.  */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h.  */
8216 #include <ctype.h>
8217 #include <stdlib.h>
8218 #if ((' ' & 0x0FF) == 0x020)
8219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8221 #else
8222 # define ISLOWER(c) \
8223                    (('a' <= (c) && (c) <= 'i') \
8224                      || ('j' <= (c) && (c) <= 'r') \
8225                      || ('s' <= (c) && (c) <= 'z'))
8226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8227 #endif
8228
8229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8230 int
8231 main ()
8232 {
8233   int i;
8234   for (i = 0; i < 256; i++)
8235     if (XOR (islower (i), ISLOWER (i))
8236         || toupper (i) != TOUPPER (i))
8237       return 2;
8238   return 0;
8239 }
8240 _ACEOF
8241 rm -f conftest$ac_exeext
8242 if { (ac_try="$ac_link"
8243 case "(($ac_try" in
8244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245   *) ac_try_echo=$ac_try;;
8246 esac
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248   (eval "$ac_link") 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8252   { (case "(($ac_try" in
8253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8254   *) ac_try_echo=$ac_try;;
8255 esac
8256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8257   (eval "$ac_try") 2>&5
8258   ac_status=$?
8259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); }; }; then
8261   :
8262 else
8263   echo "$as_me: program exited with status $ac_status" >&5
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8266
8267 ( exit $ac_status )
8268 ac_cv_header_stdc=no
8269 fi
8270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8271 fi
8272
8273
8274 fi
8275 fi
8276 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8277 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8278 if test $ac_cv_header_stdc = yes; then
8279
8280 cat >>confdefs.h <<\_ACEOF
8281 #define STDC_HEADERS 1
8282 _ACEOF
8283
8284 fi
8285
8286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8297                   inttypes.h stdint.h unistd.h
8298 do
8299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8303   echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
8305   cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h.  */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h.  */
8311 $ac_includes_default
8312
8313 #include <$ac_header>
8314 _ACEOF
8315 rm -f conftest.$ac_objext
8316 if { (ac_try="$ac_compile"
8317 case "(($ac_try" in
8318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319   *) ac_try_echo=$ac_try;;
8320 esac
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322   (eval "$ac_compile") 2>conftest.er1
8323   ac_status=$?
8324   grep -v '^ *+' conftest.er1 >conftest.err
8325   rm -f conftest.er1
8326   cat conftest.err >&5
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); } &&
8329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8330   { (case "(($ac_try" in
8331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332   *) ac_try_echo=$ac_try;;
8333 esac
8334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335   (eval "$ac_try") 2>&5
8336   ac_status=$?
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); }; } &&
8339          { ac_try='test -s conftest.$ac_objext'
8340   { (case "(($ac_try" in
8341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8342   *) ac_try_echo=$ac_try;;
8343 esac
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345   (eval "$ac_try") 2>&5
8346   ac_status=$?
8347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348   (exit $ac_status); }; }; then
8349   eval "$as_ac_Header=yes"
8350 else
8351   echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8353
8354         eval "$as_ac_Header=no"
8355 fi
8356
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 fi
8359 ac_res=`eval echo '${'$as_ac_Header'}'`
8360                { echo "$as_me:$LINENO: result: $ac_res" >&5
8361 echo "${ECHO_T}$ac_res" >&6; }
8362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8363   cat >>confdefs.h <<_ACEOF
8364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8365 _ACEOF
8366
8367 fi
8368
8369 done
8370
8371
8372
8373 for ac_header in errno.h
8374 do
8375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8377   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8380   echo $ECHO_N "(cached) $ECHO_C" >&6
8381 fi
8382 ac_res=`eval echo '${'$as_ac_Header'}'`
8383                { echo "$as_me:$LINENO: result: $ac_res" >&5
8384 echo "${ECHO_T}$ac_res" >&6; }
8385 else
8386   # Is the header compilable?
8387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8389 cat >conftest.$ac_ext <<_ACEOF
8390 /* confdefs.h.  */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h.  */
8395 $ac_includes_default
8396 #include <$ac_header>
8397 _ACEOF
8398 rm -f conftest.$ac_objext
8399 if { (ac_try="$ac_compile"
8400 case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405   (eval "$ac_compile") 2>conftest.er1
8406   ac_status=$?
8407   grep -v '^ *+' conftest.er1 >conftest.err
8408   rm -f conftest.er1
8409   cat conftest.err >&5
8410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411   (exit $ac_status); } &&
8412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8413   { (case "(($ac_try" in
8414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415   *) ac_try_echo=$ac_try;;
8416 esac
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418   (eval "$ac_try") 2>&5
8419   ac_status=$?
8420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421   (exit $ac_status); }; } &&
8422          { ac_try='test -s conftest.$ac_objext'
8423   { (case "(($ac_try" in
8424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8425   *) ac_try_echo=$ac_try;;
8426 esac
8427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8428   (eval "$ac_try") 2>&5
8429   ac_status=$?
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); }; }; then
8432   ac_header_compiler=yes
8433 else
8434   echo "$as_me: failed program was:" >&5
8435 sed 's/^/| /' conftest.$ac_ext >&5
8436
8437         ac_header_compiler=no
8438 fi
8439
8440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8442 echo "${ECHO_T}$ac_header_compiler" >&6; }
8443
8444 # Is the header present?
8445 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h.  */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h.  */
8453 #include <$ac_header>
8454 _ACEOF
8455 if { (ac_try="$ac_cpp conftest.$ac_ext"
8456 case "(($ac_try" in
8457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458   *) ac_try_echo=$ac_try;;
8459 esac
8460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8462   ac_status=$?
8463   grep -v '^ *+' conftest.er1 >conftest.err
8464   rm -f conftest.er1
8465   cat conftest.err >&5
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } >/dev/null; then
8468   if test -s conftest.err; then
8469     ac_cpp_err=$ac_c_preproc_warn_flag
8470     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8471   else
8472     ac_cpp_err=
8473   fi
8474 else
8475   ac_cpp_err=yes
8476 fi
8477 if test -z "$ac_cpp_err"; then
8478   ac_header_preproc=yes
8479 else
8480   echo "$as_me: failed program was:" >&5
8481 sed 's/^/| /' conftest.$ac_ext >&5
8482
8483   ac_header_preproc=no
8484 fi
8485
8486 rm -f conftest.err conftest.$ac_ext
8487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8488 echo "${ECHO_T}$ac_header_preproc" >&6; }
8489
8490 # So?  What about this header?
8491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8492   yes:no: )
8493     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8497     ac_header_preproc=yes
8498     ;;
8499   no:yes:* )
8500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8502     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8503 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8504     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8506     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8507 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8510     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8512     ( cat <<\_ASBOX
8513 ## ------------------------------------ ##
8514 ## Report this to http://llvm.org/bugs/ ##
8515 ## ------------------------------------ ##
8516 _ASBOX
8517      ) | sed "s/^/$as_me: WARNING:     /" >&2
8518     ;;
8519 esac
8520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8523   echo $ECHO_N "(cached) $ECHO_C" >&6
8524 else
8525   eval "$as_ac_Header=\$ac_header_preproc"
8526 fi
8527 ac_res=`eval echo '${'$as_ac_Header'}'`
8528                { echo "$as_me:$LINENO: result: $ac_res" >&5
8529 echo "${ECHO_T}$ac_res" >&6; }
8530
8531 fi
8532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8533   cat >>confdefs.h <<_ACEOF
8534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8535 _ACEOF
8536
8537 fi
8538
8539 done
8540
8541
8542 case "$llvm_cv_os_type" in
8543   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8544   Darwin) llvm_shlib_ext=.dylib ;;
8545   *) llvm_shlib_ext=.so ;;
8546 esac
8547
8548
8549 cat >>confdefs.h <<_ACEOF
8550 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8551 _ACEOF
8552
8553
8554 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8555 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8556
8557 ICC=no
8558 IXX=no
8559 case $CC in
8560   icc*|icpc*)
8561     ICC=yes
8562     IXX=yes
8563     ;;
8564    *)
8565     ;;
8566 esac
8567
8568 if test "$GCC" != "yes" && test "$ICC" != "yes"
8569 then
8570   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8571 echo "$as_me: error: gcc|icc required but not found" >&2;}
8572    { (exit 1); exit 1; }; }
8573 fi
8574
8575 if test "$GXX" != "yes" && test "$IXX" != "yes"
8576 then
8577   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8578 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8579    { (exit 1); exit 1; }; }
8580 fi
8581
8582 if test "$GCC" = "yes"
8583 then
8584   cat >conftest.$ac_ext <<_ACEOF
8585
8586   /* confdefs.h.  */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h.  */
8591
8592     #if !defined(__GNUC__) || __GNUC__ < 3
8593     #error Unsupported GCC version
8594     #endif
8595
8596
8597 _ACEOF
8598 rm -f conftest.$ac_objext
8599 if { (ac_try="$ac_compile"
8600 case "(($ac_try" in
8601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602   *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605   (eval "$ac_compile") 2>conftest.er1
8606   ac_status=$?
8607   grep -v '^ *+' conftest.er1 >conftest.err
8608   rm -f conftest.er1
8609   cat conftest.err >&5
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); } &&
8612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8613   { (case "(($ac_try" in
8614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615   *) ac_try_echo=$ac_try;;
8616 esac
8617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8618   (eval "$ac_try") 2>&5
8619   ac_status=$?
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); }; } &&
8622          { ac_try='test -s conftest.$ac_objext'
8623   { (case "(($ac_try" in
8624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8625   *) ac_try_echo=$ac_try;;
8626 esac
8627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8628   (eval "$ac_try") 2>&5
8629   ac_status=$?
8630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631   (exit $ac_status); }; }; then
8632   :
8633 else
8634   echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8636
8637         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8638 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8639    { (exit 1); exit 1; }; }
8640 fi
8641
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 fi
8644
8645 if test -z "$llvm_cv_gnu_make_command"
8646 then
8647   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8648 echo "$as_me: error: GNU Make required but not found" >&2;}
8649    { (exit 1); exit 1; }; }
8650 fi
8651
8652 { echo "$as_me:$LINENO: result: ok" >&5
8653 echo "${ECHO_T}ok" >&6; }
8654
8655 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8656 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8657 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8658
8659 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8660
8661 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8662
8663
8664 NO_UNINITIALIZED=
8665 NO_MAYBE_UNINITIALIZED=
8666 if test "$GXX" = "yes"
8667 then
8668   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8669
8670         if test -z "$NO_MAYBE_UNINITIALIZED"
8671   then
8672     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8673
8674   fi
8675 fi
8676 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8677 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8678
8679
8680 # Check whether --with-python was given.
8681 if test "${with_python+set}" = set; then
8682   withval=$with_python; PYTHON="$withval"
8683 fi
8684
8685
8686 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8687   { echo "$as_me:$LINENO: checking for python" >&5
8688 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8689   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8690 echo "${ECHO_T}user defined: $with_python" >&6; }
8691 else
8692   if test -n "$PYTHON" ; then
8693     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8694 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8695   fi
8696
8697   # Extract the first word of "python python2 python26", so it can be a program name with args.
8698 set dummy python python2 python26; ac_word=$2
8699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8701 if test "${ac_cv_path_PYTHON+set}" = set; then
8702   echo $ECHO_N "(cached) $ECHO_C" >&6
8703 else
8704   case $PYTHON in
8705   [\\/]* | ?:[\\/]*)
8706   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8707   ;;
8708   *)
8709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710 for as_dir in $PATH
8711 do
8712   IFS=$as_save_IFS
8713   test -z "$as_dir" && as_dir=.
8714   for ac_exec_ext in '' $ac_executable_extensions; do
8715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8716     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8717     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8718     break 2
8719   fi
8720 done
8721 done
8722 IFS=$as_save_IFS
8723
8724   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8725 echo "${ECHO_T}not found" >&6; }
8726                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8727 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8728    { (exit 1); exit 1; }; }"
8729   ;;
8730 esac
8731 fi
8732 PYTHON=$ac_cv_path_PYTHON
8733 if test -n "$PYTHON"; then
8734   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8735 echo "${ECHO_T}$PYTHON" >&6; }
8736 else
8737   { echo "$as_me:$LINENO: result: no" >&5
8738 echo "${ECHO_T}no" >&6; }
8739 fi
8740
8741
8742 fi
8743
8744 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8745 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8746 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8747 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8748 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8749 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8750 if test "$ac_python_version_major" -gt "2" || \
8751    (test "$ac_python_version_major" -eq "2" && \
8752     test "$ac_python_version_minor" -ge "5") ; then
8753   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8754 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8755 else
8756   { echo "$as_me:$LINENO: result: not found" >&5
8757 echo "${ECHO_T}not found" >&6; }
8758   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8759 See \`config.log' for more details." >&5
8760 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8761 See \`config.log' for more details." >&2;}
8762    { (exit 1); exit 1; }; }
8763 fi
8764
8765
8766
8767 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8768 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8769 if test "${ac_cv_lib_m_sin+set}" = set; then
8770   echo $ECHO_N "(cached) $ECHO_C" >&6
8771 else
8772   ac_check_lib_save_LIBS=$LIBS
8773 LIBS="-lm  $LIBS"
8774 cat >conftest.$ac_ext <<_ACEOF
8775 /* confdefs.h.  */
8776 _ACEOF
8777 cat confdefs.h >>conftest.$ac_ext
8778 cat >>conftest.$ac_ext <<_ACEOF
8779 /* end confdefs.h.  */
8780
8781 /* Override any GCC internal prototype to avoid an error.
8782    Use char because int might match the return type of a GCC
8783    builtin and then its argument prototype would still apply.  */
8784 #ifdef __cplusplus
8785 extern "C"
8786 #endif
8787 char sin ();
8788 int
8789 main ()
8790 {
8791 return sin ();
8792   ;
8793   return 0;
8794 }
8795 _ACEOF
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (ac_try="$ac_link"
8798 case "(($ac_try" in
8799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8800   *) ac_try_echo=$ac_try;;
8801 esac
8802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8803   (eval "$ac_link") 2>conftest.er1
8804   ac_status=$?
8805   grep -v '^ *+' conftest.er1 >conftest.err
8806   rm -f conftest.er1
8807   cat conftest.err >&5
8808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809   (exit $ac_status); } &&
8810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8811   { (case "(($ac_try" in
8812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813   *) ac_try_echo=$ac_try;;
8814 esac
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816   (eval "$ac_try") 2>&5
8817   ac_status=$?
8818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819   (exit $ac_status); }; } &&
8820          { ac_try='test -s conftest$ac_exeext'
8821   { (case "(($ac_try" in
8822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823   *) ac_try_echo=$ac_try;;
8824 esac
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826   (eval "$ac_try") 2>&5
8827   ac_status=$?
8828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829   (exit $ac_status); }; }; then
8830   ac_cv_lib_m_sin=yes
8831 else
8832   echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835         ac_cv_lib_m_sin=no
8836 fi
8837
8838 rm -f core conftest.err conftest.$ac_objext \
8839       conftest$ac_exeext conftest.$ac_ext
8840 LIBS=$ac_check_lib_save_LIBS
8841 fi
8842 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8843 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8844 if test $ac_cv_lib_m_sin = yes; then
8845   cat >>confdefs.h <<_ACEOF
8846 #define HAVE_LIBM 1
8847 _ACEOF
8848
8849   LIBS="-lm $LIBS"
8850
8851 fi
8852
8853 if test "$llvm_cv_os_type" = "MingW" ; then
8854
8855 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8856 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8857 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8858   echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860   ac_check_lib_save_LIBS=$LIBS
8861 LIBS="-limagehlp  $LIBS"
8862 cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h.  */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h.  */
8868
8869
8870 int
8871 main ()
8872 {
8873 return main ();
8874   ;
8875   return 0;
8876 }
8877 _ACEOF
8878 rm -f conftest.$ac_objext conftest$ac_exeext
8879 if { (ac_try="$ac_link"
8880 case "(($ac_try" in
8881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8882   *) ac_try_echo=$ac_try;;
8883 esac
8884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8885   (eval "$ac_link") 2>conftest.er1
8886   ac_status=$?
8887   grep -v '^ *+' conftest.er1 >conftest.err
8888   rm -f conftest.er1
8889   cat conftest.err >&5
8890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891   (exit $ac_status); } &&
8892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8893   { (case "(($ac_try" in
8894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895   *) ac_try_echo=$ac_try;;
8896 esac
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898   (eval "$ac_try") 2>&5
8899   ac_status=$?
8900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901   (exit $ac_status); }; } &&
8902          { ac_try='test -s conftest$ac_exeext'
8903   { (case "(($ac_try" in
8904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905   *) ac_try_echo=$ac_try;;
8906 esac
8907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8908   (eval "$ac_try") 2>&5
8909   ac_status=$?
8910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911   (exit $ac_status); }; }; then
8912   ac_cv_lib_imagehlp_main=yes
8913 else
8914   echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8916
8917         ac_cv_lib_imagehlp_main=no
8918 fi
8919
8920 rm -f core conftest.err conftest.$ac_objext \
8921       conftest$ac_exeext conftest.$ac_ext
8922 LIBS=$ac_check_lib_save_LIBS
8923 fi
8924 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8925 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8926 if test $ac_cv_lib_imagehlp_main = yes; then
8927   cat >>confdefs.h <<_ACEOF
8928 #define HAVE_LIBIMAGEHLP 1
8929 _ACEOF
8930
8931   LIBS="-limagehlp $LIBS"
8932
8933 fi
8934
8935
8936 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8937 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8938 if test "${ac_cv_lib_psapi_main+set}" = set; then
8939   echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941   ac_check_lib_save_LIBS=$LIBS
8942 LIBS="-lpsapi  $LIBS"
8943 cat >conftest.$ac_ext <<_ACEOF
8944 /* confdefs.h.  */
8945 _ACEOF
8946 cat confdefs.h >>conftest.$ac_ext
8947 cat >>conftest.$ac_ext <<_ACEOF
8948 /* end confdefs.h.  */
8949
8950
8951 int
8952 main ()
8953 {
8954 return main ();
8955   ;
8956   return 0;
8957 }
8958 _ACEOF
8959 rm -f conftest.$ac_objext conftest$ac_exeext
8960 if { (ac_try="$ac_link"
8961 case "(($ac_try" in
8962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963   *) ac_try_echo=$ac_try;;
8964 esac
8965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966   (eval "$ac_link") 2>conftest.er1
8967   ac_status=$?
8968   grep -v '^ *+' conftest.er1 >conftest.err
8969   rm -f conftest.er1
8970   cat conftest.err >&5
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); } &&
8973          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8974   { (case "(($ac_try" in
8975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976   *) ac_try_echo=$ac_try;;
8977 esac
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979   (eval "$ac_try") 2>&5
8980   ac_status=$?
8981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982   (exit $ac_status); }; } &&
8983          { ac_try='test -s conftest$ac_exeext'
8984   { (case "(($ac_try" in
8985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986   *) ac_try_echo=$ac_try;;
8987 esac
8988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989   (eval "$ac_try") 2>&5
8990   ac_status=$?
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); }; }; then
8993   ac_cv_lib_psapi_main=yes
8994 else
8995   echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998         ac_cv_lib_psapi_main=no
8999 fi
9000
9001 rm -f core conftest.err conftest.$ac_objext \
9002       conftest$ac_exeext conftest.$ac_ext
9003 LIBS=$ac_check_lib_save_LIBS
9004 fi
9005 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
9006 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
9007 if test $ac_cv_lib_psapi_main = yes; then
9008   cat >>confdefs.h <<_ACEOF
9009 #define HAVE_LIBPSAPI 1
9010 _ACEOF
9011
9012   LIBS="-lpsapi $LIBS"
9013
9014 fi
9015
9016
9017 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
9018 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
9019 if test "${ac_cv_lib_shell32_main+set}" = set; then
9020   echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022   ac_check_lib_save_LIBS=$LIBS
9023 LIBS="-lshell32  $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
9032 int
9033 main ()
9034 {
9035 return main ();
9036   ;
9037   return 0;
9038 }
9039 _ACEOF
9040 rm -f conftest.$ac_objext conftest$ac_exeext
9041 if { (ac_try="$ac_link"
9042 case "(($ac_try" in
9043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044   *) ac_try_echo=$ac_try;;
9045 esac
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047   (eval "$ac_link") 2>conftest.er1
9048   ac_status=$?
9049   grep -v '^ *+' conftest.er1 >conftest.err
9050   rm -f conftest.er1
9051   cat conftest.err >&5
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); } &&
9054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
9061   ac_status=$?
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); }; } &&
9064          { ac_try='test -s conftest$ac_exeext'
9065   { (case "(($ac_try" in
9066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9067   *) ac_try_echo=$ac_try;;
9068 esac
9069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9070   (eval "$ac_try") 2>&5
9071   ac_status=$?
9072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073   (exit $ac_status); }; }; then
9074   ac_cv_lib_shell32_main=yes
9075 else
9076   echo "$as_me: failed program was:" >&5
9077 sed 's/^/| /' conftest.$ac_ext >&5
9078
9079         ac_cv_lib_shell32_main=no
9080 fi
9081
9082 rm -f core conftest.err conftest.$ac_objext \
9083       conftest$ac_exeext conftest.$ac_ext
9084 LIBS=$ac_check_lib_save_LIBS
9085 fi
9086 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
9087 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
9088 if test $ac_cv_lib_shell32_main = yes; then
9089   cat >>confdefs.h <<_ACEOF
9090 #define HAVE_LIBSHELL32 1
9091 _ACEOF
9092
9093   LIBS="-lshell32 $LIBS"
9094
9095 fi
9096
9097 fi
9098
9099 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9100 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9101 if test "${ac_cv_search_dlopen+set}" = set; then
9102   echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104   ac_func_search_save_LIBS=$LIBS
9105 cat >conftest.$ac_ext <<_ACEOF
9106 /* confdefs.h.  */
9107 _ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h.  */
9111
9112 /* Override any GCC internal prototype to avoid an error.
9113    Use char because int might match the return type of a GCC
9114    builtin and then its argument prototype would still apply.  */
9115 #ifdef __cplusplus
9116 extern "C"
9117 #endif
9118 char dlopen ();
9119 int
9120 main ()
9121 {
9122 return dlopen ();
9123   ;
9124   return 0;
9125 }
9126 _ACEOF
9127 for ac_lib in '' dl; do
9128   if test -z "$ac_lib"; then
9129     ac_res="none required"
9130   else
9131     ac_res=-l$ac_lib
9132     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9133   fi
9134   rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (ac_try="$ac_link"
9136 case "(($ac_try" in
9137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138   *) ac_try_echo=$ac_try;;
9139 esac
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141   (eval "$ac_link") 2>conftest.er1
9142   ac_status=$?
9143   grep -v '^ *+' conftest.er1 >conftest.err
9144   rm -f conftest.er1
9145   cat conftest.err >&5
9146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147   (exit $ac_status); } &&
9148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9149   { (case "(($ac_try" in
9150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151   *) ac_try_echo=$ac_try;;
9152 esac
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154   (eval "$ac_try") 2>&5
9155   ac_status=$?
9156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157   (exit $ac_status); }; } &&
9158          { ac_try='test -s conftest$ac_exeext'
9159   { (case "(($ac_try" in
9160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161   *) ac_try_echo=$ac_try;;
9162 esac
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164   (eval "$ac_try") 2>&5
9165   ac_status=$?
9166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167   (exit $ac_status); }; }; then
9168   ac_cv_search_dlopen=$ac_res
9169 else
9170   echo "$as_me: failed program was:" >&5
9171 sed 's/^/| /' conftest.$ac_ext >&5
9172
9173
9174 fi
9175
9176 rm -f core conftest.err conftest.$ac_objext \
9177       conftest$ac_exeext
9178   if test "${ac_cv_search_dlopen+set}" = set; then
9179   break
9180 fi
9181 done
9182 if test "${ac_cv_search_dlopen+set}" = set; then
9183   :
9184 else
9185   ac_cv_search_dlopen=no
9186 fi
9187 rm conftest.$ac_ext
9188 LIBS=$ac_func_search_save_LIBS
9189 fi
9190 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9191 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9192 ac_res=$ac_cv_search_dlopen
9193 if test "$ac_res" != no; then
9194   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9195
9196
9197 cat >>confdefs.h <<\_ACEOF
9198 #define HAVE_DLOPEN 1
9199 _ACEOF
9200
9201 HAVE_DLOPEN='1'
9202
9203
9204 else
9205   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9206 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9207 fi
9208
9209
9210 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9211 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9212 if test "${ac_cv_search_clock_gettime+set}" = set; then
9213   echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215   ac_func_search_save_LIBS=$LIBS
9216 cat >conftest.$ac_ext <<_ACEOF
9217 /* confdefs.h.  */
9218 _ACEOF
9219 cat confdefs.h >>conftest.$ac_ext
9220 cat >>conftest.$ac_ext <<_ACEOF
9221 /* end confdefs.h.  */
9222
9223 /* Override any GCC internal prototype to avoid an error.
9224    Use char because int might match the return type of a GCC
9225    builtin and then its argument prototype would still apply.  */
9226 #ifdef __cplusplus
9227 extern "C"
9228 #endif
9229 char clock_gettime ();
9230 int
9231 main ()
9232 {
9233 return clock_gettime ();
9234   ;
9235   return 0;
9236 }
9237 _ACEOF
9238 for ac_lib in '' rt; do
9239   if test -z "$ac_lib"; then
9240     ac_res="none required"
9241   else
9242     ac_res=-l$ac_lib
9243     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9244   fi
9245   rm -f conftest.$ac_objext conftest$ac_exeext
9246 if { (ac_try="$ac_link"
9247 case "(($ac_try" in
9248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249   *) ac_try_echo=$ac_try;;
9250 esac
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252   (eval "$ac_link") 2>conftest.er1
9253   ac_status=$?
9254   grep -v '^ *+' conftest.er1 >conftest.err
9255   rm -f conftest.er1
9256   cat conftest.err >&5
9257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258   (exit $ac_status); } &&
9259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9260   { (case "(($ac_try" in
9261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262   *) ac_try_echo=$ac_try;;
9263 esac
9264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9265   (eval "$ac_try") 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); }; } &&
9269          { ac_try='test -s conftest$ac_exeext'
9270   { (case "(($ac_try" in
9271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272   *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275   (eval "$ac_try") 2>&5
9276   ac_status=$?
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); }; }; then
9279   ac_cv_search_clock_gettime=$ac_res
9280 else
9281   echo "$as_me: failed program was:" >&5
9282 sed 's/^/| /' conftest.$ac_ext >&5
9283
9284
9285 fi
9286
9287 rm -f core conftest.err conftest.$ac_objext \
9288       conftest$ac_exeext
9289   if test "${ac_cv_search_clock_gettime+set}" = set; then
9290   break
9291 fi
9292 done
9293 if test "${ac_cv_search_clock_gettime+set}" = set; then
9294   :
9295 else
9296   ac_cv_search_clock_gettime=no
9297 fi
9298 rm conftest.$ac_ext
9299 LIBS=$ac_func_search_save_LIBS
9300 fi
9301 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9302 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9303 ac_res=$ac_cv_search_clock_gettime
9304 if test "$ac_res" != no; then
9305   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9306
9307 fi
9308
9309
9310 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9311     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9312 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9313 if test "${ac_cv_search_setupterm+set}" = set; then
9314   echo $ECHO_N "(cached) $ECHO_C" >&6
9315 else
9316   ac_func_search_save_LIBS=$LIBS
9317 cat >conftest.$ac_ext <<_ACEOF
9318 /* confdefs.h.  */
9319 _ACEOF
9320 cat confdefs.h >>conftest.$ac_ext
9321 cat >>conftest.$ac_ext <<_ACEOF
9322 /* end confdefs.h.  */
9323
9324 /* Override any GCC internal prototype to avoid an error.
9325    Use char because int might match the return type of a GCC
9326    builtin and then its argument prototype would still apply.  */
9327 #ifdef __cplusplus
9328 extern "C"
9329 #endif
9330 char setupterm ();
9331 int
9332 main ()
9333 {
9334 return setupterm ();
9335   ;
9336   return 0;
9337 }
9338 _ACEOF
9339 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9340   if test -z "$ac_lib"; then
9341     ac_res="none required"
9342   else
9343     ac_res=-l$ac_lib
9344     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9345   fi
9346   rm -f conftest.$ac_objext conftest$ac_exeext
9347 if { (ac_try="$ac_link"
9348 case "(($ac_try" in
9349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350   *) ac_try_echo=$ac_try;;
9351 esac
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353   (eval "$ac_link") 2>conftest.er1
9354   ac_status=$?
9355   grep -v '^ *+' conftest.er1 >conftest.err
9356   rm -f conftest.er1
9357   cat conftest.err >&5
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); } &&
9360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9361   { (case "(($ac_try" in
9362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363   *) ac_try_echo=$ac_try;;
9364 esac
9365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9366   (eval "$ac_try") 2>&5
9367   ac_status=$?
9368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369   (exit $ac_status); }; } &&
9370          { ac_try='test -s conftest$ac_exeext'
9371   { (case "(($ac_try" in
9372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373   *) ac_try_echo=$ac_try;;
9374 esac
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376   (eval "$ac_try") 2>&5
9377   ac_status=$?
9378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379   (exit $ac_status); }; }; then
9380   ac_cv_search_setupterm=$ac_res
9381 else
9382   echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.$ac_ext >&5
9384
9385
9386 fi
9387
9388 rm -f core conftest.err conftest.$ac_objext \
9389       conftest$ac_exeext
9390   if test "${ac_cv_search_setupterm+set}" = set; then
9391   break
9392 fi
9393 done
9394 if test "${ac_cv_search_setupterm+set}" = set; then
9395   :
9396 else
9397   ac_cv_search_setupterm=no
9398 fi
9399 rm conftest.$ac_ext
9400 LIBS=$ac_func_search_save_LIBS
9401 fi
9402 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9403 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9404 ac_res=$ac_cv_search_setupterm
9405 if test "$ac_res" != no; then
9406   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9407
9408
9409 cat >>confdefs.h <<\_ACEOF
9410 #define HAVE_TERMINFO 1
9411 _ACEOF
9412
9413 HAVE_TERMINFO='1'
9414
9415
9416 fi
9417
9418 fi
9419
9420 if test "$llvm_cv_enable_libedit" = "yes" ; then
9421   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9422 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9423 if test "${ac_cv_search_el_init+set}" = set; then
9424   echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426   ac_func_search_save_LIBS=$LIBS
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h.  */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h.  */
9433
9434 /* Override any GCC internal prototype to avoid an error.
9435    Use char because int might match the return type of a GCC
9436    builtin and then its argument prototype would still apply.  */
9437 #ifdef __cplusplus
9438 extern "C"
9439 #endif
9440 char el_init ();
9441 int
9442 main ()
9443 {
9444 return el_init ();
9445   ;
9446   return 0;
9447 }
9448 _ACEOF
9449 for ac_lib in '' edit; do
9450   if test -z "$ac_lib"; then
9451     ac_res="none required"
9452   else
9453     ac_res=-l$ac_lib
9454     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9455   fi
9456   rm -f conftest.$ac_objext conftest$ac_exeext
9457 if { (ac_try="$ac_link"
9458 case "(($ac_try" in
9459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460   *) ac_try_echo=$ac_try;;
9461 esac
9462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463   (eval "$ac_link") 2>conftest.er1
9464   ac_status=$?
9465   grep -v '^ *+' conftest.er1 >conftest.err
9466   rm -f conftest.er1
9467   cat conftest.err >&5
9468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); } &&
9470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9471   { (case "(($ac_try" in
9472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473   *) ac_try_echo=$ac_try;;
9474 esac
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476   (eval "$ac_try") 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); }; } &&
9480          { ac_try='test -s conftest$ac_exeext'
9481   { (case "(($ac_try" in
9482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483   *) ac_try_echo=$ac_try;;
9484 esac
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486   (eval "$ac_try") 2>&5
9487   ac_status=$?
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); }; }; then
9490   ac_cv_search_el_init=$ac_res
9491 else
9492   echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9494
9495
9496 fi
9497
9498 rm -f core conftest.err conftest.$ac_objext \
9499       conftest$ac_exeext
9500   if test "${ac_cv_search_el_init+set}" = set; then
9501   break
9502 fi
9503 done
9504 if test "${ac_cv_search_el_init+set}" = set; then
9505   :
9506 else
9507   ac_cv_search_el_init=no
9508 fi
9509 rm conftest.$ac_ext
9510 LIBS=$ac_func_search_save_LIBS
9511 fi
9512 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9513 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9514 ac_res=$ac_cv_search_el_init
9515 if test "$ac_res" != no; then
9516   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9517
9518 cat >>confdefs.h <<\_ACEOF
9519 #define HAVE_LIBEDIT 1
9520 _ACEOF
9521
9522 fi
9523
9524 fi
9525
9526 if test "$llvm_cv_enable_libffi" = "yes" ; then
9527   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9528 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9529 if test "${ac_cv_search_ffi_call+set}" = set; then
9530   echo $ECHO_N "(cached) $ECHO_C" >&6
9531 else
9532   ac_func_search_save_LIBS=$LIBS
9533 cat >conftest.$ac_ext <<_ACEOF
9534 /* confdefs.h.  */
9535 _ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h.  */
9539
9540 /* Override any GCC internal prototype to avoid an error.
9541    Use char because int might match the return type of a GCC
9542    builtin and then its argument prototype would still apply.  */
9543 #ifdef __cplusplus
9544 extern "C"
9545 #endif
9546 char ffi_call ();
9547 int
9548 main ()
9549 {
9550 return ffi_call ();
9551   ;
9552   return 0;
9553 }
9554 _ACEOF
9555 for ac_lib in '' ffi; do
9556   if test -z "$ac_lib"; then
9557     ac_res="none required"
9558   else
9559     ac_res=-l$ac_lib
9560     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9561   fi
9562   rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (ac_try="$ac_link"
9564 case "(($ac_try" in
9565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566   *) ac_try_echo=$ac_try;;
9567 esac
9568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569   (eval "$ac_link") 2>conftest.er1
9570   ac_status=$?
9571   grep -v '^ *+' conftest.er1 >conftest.err
9572   rm -f conftest.er1
9573   cat conftest.err >&5
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); } &&
9576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9577   { (case "(($ac_try" in
9578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579   *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582   (eval "$ac_try") 2>&5
9583   ac_status=$?
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); }; } &&
9586          { ac_try='test -s conftest$ac_exeext'
9587   { (case "(($ac_try" in
9588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589   *) ac_try_echo=$ac_try;;
9590 esac
9591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592   (eval "$ac_try") 2>&5
9593   ac_status=$?
9594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595   (exit $ac_status); }; }; then
9596   ac_cv_search_ffi_call=$ac_res
9597 else
9598   echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9600
9601
9602 fi
9603
9604 rm -f core conftest.err conftest.$ac_objext \
9605       conftest$ac_exeext
9606   if test "${ac_cv_search_ffi_call+set}" = set; then
9607   break
9608 fi
9609 done
9610 if test "${ac_cv_search_ffi_call+set}" = set; then
9611   :
9612 else
9613   ac_cv_search_ffi_call=no
9614 fi
9615 rm conftest.$ac_ext
9616 LIBS=$ac_func_search_save_LIBS
9617 fi
9618 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9619 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9620 ac_res=$ac_cv_search_ffi_call
9621 if test "$ac_res" != no; then
9622   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9623
9624 cat >>confdefs.h <<\_ACEOF
9625 #define HAVE_FFI_CALL 1
9626 _ACEOF
9627
9628 else
9629   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9630 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9631    { (exit 1); exit 1; }; }
9632 fi
9633
9634 fi
9635
9636 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9637 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9638 if test "${ac_cv_search_mallinfo+set}" = set; then
9639   echo $ECHO_N "(cached) $ECHO_C" >&6
9640 else
9641   ac_func_search_save_LIBS=$LIBS
9642 cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h.  */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h.  */
9648
9649 /* Override any GCC internal prototype to avoid an error.
9650    Use char because int might match the return type of a GCC
9651    builtin and then its argument prototype would still apply.  */
9652 #ifdef __cplusplus
9653 extern "C"
9654 #endif
9655 char mallinfo ();
9656 int
9657 main ()
9658 {
9659 return mallinfo ();
9660   ;
9661   return 0;
9662 }
9663 _ACEOF
9664 for ac_lib in '' malloc; do
9665   if test -z "$ac_lib"; then
9666     ac_res="none required"
9667   else
9668     ac_res=-l$ac_lib
9669     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9670   fi
9671   rm -f conftest.$ac_objext conftest$ac_exeext
9672 if { (ac_try="$ac_link"
9673 case "(($ac_try" in
9674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675   *) ac_try_echo=$ac_try;;
9676 esac
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678   (eval "$ac_link") 2>conftest.er1
9679   ac_status=$?
9680   grep -v '^ *+' conftest.er1 >conftest.err
9681   rm -f conftest.er1
9682   cat conftest.err >&5
9683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9684   (exit $ac_status); } &&
9685          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9695          { ac_try='test -s conftest$ac_exeext'
9696   { (case "(($ac_try" in
9697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698   *) ac_try_echo=$ac_try;;
9699 esac
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701   (eval "$ac_try") 2>&5
9702   ac_status=$?
9703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704   (exit $ac_status); }; }; then
9705   ac_cv_search_mallinfo=$ac_res
9706 else
9707   echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710
9711 fi
9712
9713 rm -f core conftest.err conftest.$ac_objext \
9714       conftest$ac_exeext
9715   if test "${ac_cv_search_mallinfo+set}" = set; then
9716   break
9717 fi
9718 done
9719 if test "${ac_cv_search_mallinfo+set}" = set; then
9720   :
9721 else
9722   ac_cv_search_mallinfo=no
9723 fi
9724 rm conftest.$ac_ext
9725 LIBS=$ac_func_search_save_LIBS
9726 fi
9727 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9728 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9729 ac_res=$ac_cv_search_mallinfo
9730 if test "$ac_res" != no; then
9731   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9732
9733 cat >>confdefs.h <<\_ACEOF
9734 #define HAVE_MALLINFO 1
9735 _ACEOF
9736
9737 fi
9738
9739
9740 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9741
9742 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9743 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9744 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9745   echo $ECHO_N "(cached) $ECHO_C" >&6
9746 else
9747   ac_check_lib_save_LIBS=$LIBS
9748 LIBS="-lpthread  $LIBS"
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h.  */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h.  */
9755
9756 /* Override any GCC internal prototype to avoid an error.
9757    Use char because int might match the return type of a GCC
9758    builtin and then its argument prototype would still apply.  */
9759 #ifdef __cplusplus
9760 extern "C"
9761 #endif
9762 char pthread_mutex_init ();
9763 int
9764 main ()
9765 {
9766 return pthread_mutex_init ();
9767   ;
9768   return 0;
9769 }
9770 _ACEOF
9771 rm -f conftest.$ac_objext conftest$ac_exeext
9772 if { (ac_try="$ac_link"
9773 case "(($ac_try" in
9774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775   *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778   (eval "$ac_link") 2>conftest.er1
9779   ac_status=$?
9780   grep -v '^ *+' conftest.er1 >conftest.err
9781   rm -f conftest.er1
9782   cat conftest.err >&5
9783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784   (exit $ac_status); } &&
9785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9786   { (case "(($ac_try" in
9787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788   *) ac_try_echo=$ac_try;;
9789 esac
9790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9791   (eval "$ac_try") 2>&5
9792   ac_status=$?
9793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794   (exit $ac_status); }; } &&
9795          { ac_try='test -s conftest$ac_exeext'
9796   { (case "(($ac_try" in
9797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9798   *) ac_try_echo=$ac_try;;
9799 esac
9800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9801   (eval "$ac_try") 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); }; }; then
9805   ac_cv_lib_pthread_pthread_mutex_init=yes
9806 else
9807   echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9809
9810         ac_cv_lib_pthread_pthread_mutex_init=no
9811 fi
9812
9813 rm -f core conftest.err conftest.$ac_objext \
9814       conftest$ac_exeext conftest.$ac_ext
9815 LIBS=$ac_check_lib_save_LIBS
9816 fi
9817 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9818 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9819 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9820   cat >>confdefs.h <<_ACEOF
9821 #define HAVE_LIBPTHREAD 1
9822 _ACEOF
9823
9824   LIBS="-lpthread $LIBS"
9825
9826 fi
9827
9828   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9829 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9830 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9831   echo $ECHO_N "(cached) $ECHO_C" >&6
9832 else
9833   ac_func_search_save_LIBS=$LIBS
9834 cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h.  */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h.  */
9840
9841 /* Override any GCC internal prototype to avoid an error.
9842    Use char because int might match the return type of a GCC
9843    builtin and then its argument prototype would still apply.  */
9844 #ifdef __cplusplus
9845 extern "C"
9846 #endif
9847 char pthread_mutex_lock ();
9848 int
9849 main ()
9850 {
9851 return pthread_mutex_lock ();
9852   ;
9853   return 0;
9854 }
9855 _ACEOF
9856 for ac_lib in '' pthread; do
9857   if test -z "$ac_lib"; then
9858     ac_res="none required"
9859   else
9860     ac_res=-l$ac_lib
9861     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9862   fi
9863   rm -f conftest.$ac_objext conftest$ac_exeext
9864 if { (ac_try="$ac_link"
9865 case "(($ac_try" in
9866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9867   *) ac_try_echo=$ac_try;;
9868 esac
9869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9870   (eval "$ac_link") 2>conftest.er1
9871   ac_status=$?
9872   grep -v '^ *+' conftest.er1 >conftest.err
9873   rm -f conftest.er1
9874   cat conftest.err >&5
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } &&
9877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9878   { (case "(($ac_try" in
9879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880   *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883   (eval "$ac_try") 2>&5
9884   ac_status=$?
9885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886   (exit $ac_status); }; } &&
9887          { ac_try='test -s conftest$ac_exeext'
9888   { (case "(($ac_try" in
9889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890   *) ac_try_echo=$ac_try;;
9891 esac
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893   (eval "$ac_try") 2>&5
9894   ac_status=$?
9895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); }; }; then
9897   ac_cv_search_pthread_mutex_lock=$ac_res
9898 else
9899   echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9901
9902
9903 fi
9904
9905 rm -f core conftest.err conftest.$ac_objext \
9906       conftest$ac_exeext
9907   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9908   break
9909 fi
9910 done
9911 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9912   :
9913 else
9914   ac_cv_search_pthread_mutex_lock=no
9915 fi
9916 rm conftest.$ac_ext
9917 LIBS=$ac_func_search_save_LIBS
9918 fi
9919 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9920 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9921 ac_res=$ac_cv_search_pthread_mutex_lock
9922 if test "$ac_res" != no; then
9923   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9924
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_PTHREAD_MUTEX_LOCK 1
9927 _ACEOF
9928
9929 fi
9930
9931   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9932 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9933 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9934   echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936   ac_func_search_save_LIBS=$LIBS
9937 cat >conftest.$ac_ext <<_ACEOF
9938 /* confdefs.h.  */
9939 _ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h.  */
9943
9944 /* Override any GCC internal prototype to avoid an error.
9945    Use char because int might match the return type of a GCC
9946    builtin and then its argument prototype would still apply.  */
9947 #ifdef __cplusplus
9948 extern "C"
9949 #endif
9950 char pthread_rwlock_init ();
9951 int
9952 main ()
9953 {
9954 return pthread_rwlock_init ();
9955   ;
9956   return 0;
9957 }
9958 _ACEOF
9959 for ac_lib in '' pthread; do
9960   if test -z "$ac_lib"; then
9961     ac_res="none required"
9962   else
9963     ac_res=-l$ac_lib
9964     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9965   fi
9966   rm -f conftest.$ac_objext conftest$ac_exeext
9967 if { (ac_try="$ac_link"
9968 case "(($ac_try" in
9969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9970   *) ac_try_echo=$ac_try;;
9971 esac
9972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9973   (eval "$ac_link") 2>conftest.er1
9974   ac_status=$?
9975   grep -v '^ *+' conftest.er1 >conftest.err
9976   rm -f conftest.er1
9977   cat conftest.err >&5
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); } &&
9980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9981   { (case "(($ac_try" in
9982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983   *) ac_try_echo=$ac_try;;
9984 esac
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986   (eval "$ac_try") 2>&5
9987   ac_status=$?
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); }; } &&
9990          { ac_try='test -s conftest$ac_exeext'
9991   { (case "(($ac_try" in
9992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993   *) ac_try_echo=$ac_try;;
9994 esac
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996   (eval "$ac_try") 2>&5
9997   ac_status=$?
9998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999   (exit $ac_status); }; }; then
10000   ac_cv_search_pthread_rwlock_init=$ac_res
10001 else
10002   echo "$as_me: failed program was:" >&5
10003 sed 's/^/| /' conftest.$ac_ext >&5
10004
10005
10006 fi
10007
10008 rm -f core conftest.err conftest.$ac_objext \
10009       conftest$ac_exeext
10010   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10011   break
10012 fi
10013 done
10014 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10015   :
10016 else
10017   ac_cv_search_pthread_rwlock_init=no
10018 fi
10019 rm conftest.$ac_ext
10020 LIBS=$ac_func_search_save_LIBS
10021 fi
10022 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
10023 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
10024 ac_res=$ac_cv_search_pthread_rwlock_init
10025 if test "$ac_res" != no; then
10026   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10027
10028 cat >>confdefs.h <<\_ACEOF
10029 #define HAVE_PTHREAD_RWLOCK_INIT 1
10030 _ACEOF
10031
10032 fi
10033
10034   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
10035 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
10036 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10037   echo $ECHO_N "(cached) $ECHO_C" >&6
10038 else
10039   ac_func_search_save_LIBS=$LIBS
10040 cat >conftest.$ac_ext <<_ACEOF
10041 /* confdefs.h.  */
10042 _ACEOF
10043 cat confdefs.h >>conftest.$ac_ext
10044 cat >>conftest.$ac_ext <<_ACEOF
10045 /* end confdefs.h.  */
10046
10047 /* Override any GCC internal prototype to avoid an error.
10048    Use char because int might match the return type of a GCC
10049    builtin and then its argument prototype would still apply.  */
10050 #ifdef __cplusplus
10051 extern "C"
10052 #endif
10053 char pthread_getspecific ();
10054 int
10055 main ()
10056 {
10057 return pthread_getspecific ();
10058   ;
10059   return 0;
10060 }
10061 _ACEOF
10062 for ac_lib in '' pthread; do
10063   if test -z "$ac_lib"; then
10064     ac_res="none required"
10065   else
10066     ac_res=-l$ac_lib
10067     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10068   fi
10069   rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (ac_try="$ac_link"
10071 case "(($ac_try" in
10072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073   *) ac_try_echo=$ac_try;;
10074 esac
10075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076   (eval "$ac_link") 2>conftest.er1
10077   ac_status=$?
10078   grep -v '^ *+' conftest.er1 >conftest.err
10079   rm -f conftest.er1
10080   cat conftest.err >&5
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); } &&
10083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10084   { (case "(($ac_try" in
10085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086   *) ac_try_echo=$ac_try;;
10087 esac
10088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089   (eval "$ac_try") 2>&5
10090   ac_status=$?
10091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); }; } &&
10093          { ac_try='test -s conftest$ac_exeext'
10094   { (case "(($ac_try" in
10095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096   *) ac_try_echo=$ac_try;;
10097 esac
10098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099   (eval "$ac_try") 2>&5
10100   ac_status=$?
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); }; }; then
10103   ac_cv_search_pthread_getspecific=$ac_res
10104 else
10105   echo "$as_me: failed program was:" >&5
10106 sed 's/^/| /' conftest.$ac_ext >&5
10107
10108
10109 fi
10110
10111 rm -f core conftest.err conftest.$ac_objext \
10112       conftest$ac_exeext
10113   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10114   break
10115 fi
10116 done
10117 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10118   :
10119 else
10120   ac_cv_search_pthread_getspecific=no
10121 fi
10122 rm conftest.$ac_ext
10123 LIBS=$ac_func_search_save_LIBS
10124 fi
10125 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10126 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10127 ac_res=$ac_cv_search_pthread_getspecific
10128 if test "$ac_res" != no; then
10129   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10130
10131 cat >>confdefs.h <<\_ACEOF
10132 #define HAVE_PTHREAD_GETSPECIFIC 1
10133 _ACEOF
10134
10135 fi
10136
10137 fi
10138
10139 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10140
10141 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10142 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10143 if test "${ac_cv_lib_z_compress2+set}" = set; then
10144   echo $ECHO_N "(cached) $ECHO_C" >&6
10145 else
10146   ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-lz  $LIBS"
10148 cat >conftest.$ac_ext <<_ACEOF
10149 /* confdefs.h.  */
10150 _ACEOF
10151 cat confdefs.h >>conftest.$ac_ext
10152 cat >>conftest.$ac_ext <<_ACEOF
10153 /* end confdefs.h.  */
10154
10155 /* Override any GCC internal prototype to avoid an error.
10156    Use char because int might match the return type of a GCC
10157    builtin and then its argument prototype would still apply.  */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 char compress2 ();
10162 int
10163 main ()
10164 {
10165 return compress2 ();
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174   *) ac_try_echo=$ac_try;;
10175 esac
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177   (eval "$ac_link") 2>conftest.er1
10178   ac_status=$?
10179   grep -v '^ *+' conftest.er1 >conftest.err
10180   rm -f conftest.er1
10181   cat conftest.err >&5
10182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183   (exit $ac_status); } &&
10184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10185   { (case "(($ac_try" in
10186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187   *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190   (eval "$ac_try") 2>&5
10191   ac_status=$?
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); }; } &&
10194          { ac_try='test -s conftest$ac_exeext'
10195   { (case "(($ac_try" in
10196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197   *) ac_try_echo=$ac_try;;
10198 esac
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200   (eval "$ac_try") 2>&5
10201   ac_status=$?
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); }; }; then
10204   ac_cv_lib_z_compress2=yes
10205 else
10206   echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209         ac_cv_lib_z_compress2=no
10210 fi
10211
10212 rm -f core conftest.err conftest.$ac_objext \
10213       conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10215 fi
10216 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10217 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10218 if test $ac_cv_lib_z_compress2 = yes; then
10219   cat >>confdefs.h <<_ACEOF
10220 #define HAVE_LIBZ 1
10221 _ACEOF
10222
10223   LIBS="-lz $LIBS"
10224
10225 fi
10226
10227 fi
10228
10229
10230 # Check whether --with-udis86 was given.
10231 if test "${with_udis86+set}" = set; then
10232   withval=$with_udis86;
10233       USE_UDIS86=1
10234
10235       case "$withval" in
10236         /usr/lib|yes) ;;
10237         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10238       esac
10239
10240 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
10241 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
10242 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
10243   echo $ECHO_N "(cached) $ECHO_C" >&6
10244 else
10245   ac_check_lib_save_LIBS=$LIBS
10246 LIBS="-ludis86  $LIBS"
10247 cat >conftest.$ac_ext <<_ACEOF
10248 /* confdefs.h.  */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h.  */
10253
10254 /* Override any GCC internal prototype to avoid an error.
10255    Use char because int might match the return type of a GCC
10256    builtin and then its argument prototype would still apply.  */
10257 #ifdef __cplusplus
10258 extern "C"
10259 #endif
10260 char ud_init ();
10261 int
10262 main ()
10263 {
10264 return ud_init ();
10265   ;
10266   return 0;
10267 }
10268 _ACEOF
10269 rm -f conftest.$ac_objext conftest$ac_exeext
10270 if { (ac_try="$ac_link"
10271 case "(($ac_try" in
10272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10273   *) ac_try_echo=$ac_try;;
10274 esac
10275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10276   (eval "$ac_link") 2>conftest.er1
10277   ac_status=$?
10278   grep -v '^ *+' conftest.er1 >conftest.err
10279   rm -f conftest.er1
10280   cat conftest.err >&5
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } &&
10283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10284   { (case "(($ac_try" in
10285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286   *) ac_try_echo=$ac_try;;
10287 esac
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289   (eval "$ac_try") 2>&5
10290   ac_status=$?
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); }; } &&
10293          { ac_try='test -s conftest$ac_exeext'
10294   { (case "(($ac_try" in
10295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296   *) ac_try_echo=$ac_try;;
10297 esac
10298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10299   (eval "$ac_try") 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   ac_cv_lib_udis86_ud_init=yes
10304 else
10305   echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308         ac_cv_lib_udis86_ud_init=no
10309 fi
10310
10311 rm -f core conftest.err conftest.$ac_objext \
10312       conftest$ac_exeext conftest.$ac_ext
10313 LIBS=$ac_check_lib_save_LIBS
10314 fi
10315 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
10316 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
10317 if test $ac_cv_lib_udis86_ud_init = yes; then
10318   cat >>confdefs.h <<_ACEOF
10319 #define HAVE_LIBUDIS86 1
10320 _ACEOF
10321
10322   LIBS="-ludis86 $LIBS"
10323
10324 else
10325
10326         echo "Error! You need to have libudis86 around."
10327         exit -1
10328
10329 fi
10330
10331
10332 else
10333   USE_UDIS86=0
10334
10335 fi
10336
10337
10338 cat >>confdefs.h <<_ACEOF
10339 #define USE_UDIS86 $USE_UDIS86
10340 _ACEOF
10341
10342
10343
10344 # Check whether --with-oprofile was given.
10345 if test "${with_oprofile+set}" = set; then
10346   withval=$with_oprofile;
10347       USE_OPROFILE=1
10348
10349       case "$withval" in
10350         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10351         no) llvm_cv_oppath=
10352             USE_OPROFILE=0
10353  ;;
10354         *) llvm_cv_oppath="${withval}/lib/oprofile"
10355            CPPFLAGS="-I${withval}/include";;
10356       esac
10357       case $llvm_cv_os_type in
10358         Linux)
10359           if test -n "$llvm_cv_oppath" ; then
10360             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10361                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10362 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10363 if test "${ac_cv_search_bfd_init+set}" = set; then
10364   echo $ECHO_N "(cached) $ECHO_C" >&6
10365 else
10366   ac_func_search_save_LIBS=$LIBS
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h.  */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h.  */
10373
10374 /* Override any GCC internal prototype to avoid an error.
10375    Use char because int might match the return type of a GCC
10376    builtin and then its argument prototype would still apply.  */
10377 #ifdef __cplusplus
10378 extern "C"
10379 #endif
10380 char bfd_init ();
10381 int
10382 main ()
10383 {
10384 return bfd_init ();
10385   ;
10386   return 0;
10387 }
10388 _ACEOF
10389 for ac_lib in '' bfd; do
10390   if test -z "$ac_lib"; then
10391     ac_res="none required"
10392   else
10393     ac_res=-l$ac_lib
10394     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10395   fi
10396   rm -f conftest.$ac_objext conftest$ac_exeext
10397 if { (ac_try="$ac_link"
10398 case "(($ac_try" in
10399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10400   *) ac_try_echo=$ac_try;;
10401 esac
10402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10403   (eval "$ac_link") 2>conftest.er1
10404   ac_status=$?
10405   grep -v '^ *+' conftest.er1 >conftest.err
10406   rm -f conftest.er1
10407   cat conftest.err >&5
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); } &&
10410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10411   { (case "(($ac_try" in
10412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413   *) ac_try_echo=$ac_try;;
10414 esac
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416   (eval "$ac_try") 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); }; } &&
10420          { ac_try='test -s conftest$ac_exeext'
10421   { (case "(($ac_try" in
10422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423   *) ac_try_echo=$ac_try;;
10424 esac
10425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426   (eval "$ac_try") 2>&5
10427   ac_status=$?
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); }; }; then
10430   ac_cv_search_bfd_init=$ac_res
10431 else
10432   echo "$as_me: failed program was:" >&5
10433 sed 's/^/| /' conftest.$ac_ext >&5
10434
10435
10436 fi
10437
10438 rm -f core conftest.err conftest.$ac_objext \
10439       conftest$ac_exeext
10440   if test "${ac_cv_search_bfd_init+set}" = set; then
10441   break
10442 fi
10443 done
10444 if test "${ac_cv_search_bfd_init+set}" = set; then
10445   :
10446 else
10447   ac_cv_search_bfd_init=no
10448 fi
10449 rm conftest.$ac_ext
10450 LIBS=$ac_func_search_save_LIBS
10451 fi
10452 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10453 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10454 ac_res=$ac_cv_search_bfd_init
10455 if test "$ac_res" != no; then
10456   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10457
10458 fi
10459
10460             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10461 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10462 if test "${ac_cv_search_op_open_agent+set}" = set; then
10463   echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465   ac_func_search_save_LIBS=$LIBS
10466 cat >conftest.$ac_ext <<_ACEOF
10467 /* confdefs.h.  */
10468 _ACEOF
10469 cat confdefs.h >>conftest.$ac_ext
10470 cat >>conftest.$ac_ext <<_ACEOF
10471 /* end confdefs.h.  */
10472
10473 /* Override any GCC internal prototype to avoid an error.
10474    Use char because int might match the return type of a GCC
10475    builtin and then its argument prototype would still apply.  */
10476 #ifdef __cplusplus
10477 extern "C"
10478 #endif
10479 char op_open_agent ();
10480 int
10481 main ()
10482 {
10483 return op_open_agent ();
10484   ;
10485   return 0;
10486 }
10487 _ACEOF
10488 for ac_lib in '' opagent; do
10489   if test -z "$ac_lib"; then
10490     ac_res="none required"
10491   else
10492     ac_res=-l$ac_lib
10493     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10494   fi
10495   rm -f conftest.$ac_objext conftest$ac_exeext
10496 if { (ac_try="$ac_link"
10497 case "(($ac_try" in
10498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499   *) ac_try_echo=$ac_try;;
10500 esac
10501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502   (eval "$ac_link") 2>conftest.er1
10503   ac_status=$?
10504   grep -v '^ *+' conftest.er1 >conftest.err
10505   rm -f conftest.er1
10506   cat conftest.err >&5
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); } &&
10509          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10510   { (case "(($ac_try" in
10511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512   *) ac_try_echo=$ac_try;;
10513 esac
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515   (eval "$ac_try") 2>&5
10516   ac_status=$?
10517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518   (exit $ac_status); }; } &&
10519          { ac_try='test -s conftest$ac_exeext'
10520   { (case "(($ac_try" in
10521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522   *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525   (eval "$ac_try") 2>&5
10526   ac_status=$?
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); }; }; then
10529   ac_cv_search_op_open_agent=$ac_res
10530 else
10531   echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10533
10534
10535 fi
10536
10537 rm -f core conftest.err conftest.$ac_objext \
10538       conftest$ac_exeext
10539   if test "${ac_cv_search_op_open_agent+set}" = set; then
10540   break
10541 fi
10542 done
10543 if test "${ac_cv_search_op_open_agent+set}" = set; then
10544   :
10545 else
10546   ac_cv_search_op_open_agent=no
10547 fi
10548 rm conftest.$ac_ext
10549 LIBS=$ac_func_search_save_LIBS
10550 fi
10551 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10552 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10553 ac_res=$ac_cv_search_op_open_agent
10554 if test "$ac_res" != no; then
10555   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10556
10557 else
10558
10559               echo "Error! You need to have libopagent around."
10560               exit -1
10561
10562 fi
10563
10564             if test "${ac_cv_header_opagent_h+set}" = set; then
10565   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10566 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10567 if test "${ac_cv_header_opagent_h+set}" = set; then
10568   echo $ECHO_N "(cached) $ECHO_C" >&6
10569 fi
10570 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10571 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10572 else
10573   # Is the header compilable?
10574 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10575 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h.  */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h.  */
10582 $ac_includes_default
10583 #include <opagent.h>
10584 _ACEOF
10585 rm -f conftest.$ac_objext
10586 if { (ac_try="$ac_compile"
10587 case "(($ac_try" in
10588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589   *) ac_try_echo=$ac_try;;
10590 esac
10591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592   (eval "$ac_compile") 2>conftest.er1
10593   ac_status=$?
10594   grep -v '^ *+' conftest.er1 >conftest.err
10595   rm -f conftest.er1
10596   cat conftest.err >&5
10597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598   (exit $ac_status); } &&
10599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10600   { (case "(($ac_try" in
10601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602   *) ac_try_echo=$ac_try;;
10603 esac
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605   (eval "$ac_try") 2>&5
10606   ac_status=$?
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); }; } &&
10609          { ac_try='test -s conftest.$ac_objext'
10610   { (case "(($ac_try" in
10611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612   *) ac_try_echo=$ac_try;;
10613 esac
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615   (eval "$ac_try") 2>&5
10616   ac_status=$?
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); }; }; then
10619   ac_header_compiler=yes
10620 else
10621   echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10623
10624         ac_header_compiler=no
10625 fi
10626
10627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10628 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10629 echo "${ECHO_T}$ac_header_compiler" >&6; }
10630
10631 # Is the header present?
10632 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10633 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10634 cat >conftest.$ac_ext <<_ACEOF
10635 /* confdefs.h.  */
10636 _ACEOF
10637 cat confdefs.h >>conftest.$ac_ext
10638 cat >>conftest.$ac_ext <<_ACEOF
10639 /* end confdefs.h.  */
10640 #include <opagent.h>
10641 _ACEOF
10642 if { (ac_try="$ac_cpp conftest.$ac_ext"
10643 case "(($ac_try" in
10644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645   *) ac_try_echo=$ac_try;;
10646 esac
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10649   ac_status=$?
10650   grep -v '^ *+' conftest.er1 >conftest.err
10651   rm -f conftest.er1
10652   cat conftest.err >&5
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); } >/dev/null; then
10655   if test -s conftest.err; then
10656     ac_cpp_err=$ac_c_preproc_warn_flag
10657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10658   else
10659     ac_cpp_err=
10660   fi
10661 else
10662   ac_cpp_err=yes
10663 fi
10664 if test -z "$ac_cpp_err"; then
10665   ac_header_preproc=yes
10666 else
10667   echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10669
10670   ac_header_preproc=no
10671 fi
10672
10673 rm -f conftest.err conftest.$ac_ext
10674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10675 echo "${ECHO_T}$ac_header_preproc" >&6; }
10676
10677 # So?  What about this header?
10678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10679   yes:no: )
10680     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10681 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10682     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10683 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10684     ac_header_preproc=yes
10685     ;;
10686   no:yes:* )
10687     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10688 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10689     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10690 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10691     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10692 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10693     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10694 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10695     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10696 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10697     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10698 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10699     ( cat <<\_ASBOX
10700 ## ------------------------------------ ##
10701 ## Report this to http://llvm.org/bugs/ ##
10702 ## ------------------------------------ ##
10703 _ASBOX
10704      ) | sed "s/^/$as_me: WARNING:     /" >&2
10705     ;;
10706 esac
10707 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10708 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10709 if test "${ac_cv_header_opagent_h+set}" = set; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   ac_cv_header_opagent_h=$ac_header_preproc
10713 fi
10714 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10715 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10716
10717 fi
10718 if test $ac_cv_header_opagent_h = yes; then
10719   :
10720 else
10721
10722               echo "Error! You need to have opagent.h around."
10723               exit -1
10724
10725 fi
10726
10727
10728           fi ;;
10729         *)
10730           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10731 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10732    { (exit 1); exit 1; }; } ;;
10733       esac
10734
10735 else
10736
10737       USE_OPROFILE=0
10738
10739
10740 fi
10741
10742
10743 cat >>confdefs.h <<_ACEOF
10744 #define LLVM_USE_OPROFILE $USE_OPROFILE
10745 _ACEOF
10746
10747
10748
10749 # Check whether --with-intel-jitevents was given.
10750 if test "${with_intel_jitevents+set}" = set; then
10751   withval=$with_intel_jitevents;
10752        case "$withval" in
10753           yes) USE_INTEL_JITEVENTS=1
10754 ;;
10755           no)  USE_INTEL_JITEVENTS=0
10756 ;;
10757           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10758 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10759    { (exit 1); exit 1; }; };;
10760        esac
10761
10762       case $llvm_cv_os_type in
10763         Linux|Win32|Cygwin|MingW) ;;
10764         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10765 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10766    { (exit 1); exit 1; }; };;
10767       esac
10768
10769       case "$llvm_cv_target_arch" in
10770         x86|x86_64) ;;
10771         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10772 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10773    { (exit 1); exit 1; }; };;
10774       esac
10775
10776 else
10777
10778       USE_INTEL_JITEVENTS=0
10779
10780
10781 fi
10782
10783
10784 cat >>confdefs.h <<_ACEOF
10785 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10786 _ACEOF
10787
10788
10789 for ac_prog in xml2-config
10790 do
10791   # Extract the first word of "$ac_prog", so it can be a program name with args.
10792 set dummy $ac_prog; ac_word=$2
10793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10795 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10796   echo $ECHO_N "(cached) $ECHO_C" >&6
10797 else
10798   if test -n "$XML2CONFIG"; then
10799   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10800 else
10801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802 for as_dir in $PATH
10803 do
10804   IFS=$as_save_IFS
10805   test -z "$as_dir" && as_dir=.
10806   for ac_exec_ext in '' $ac_executable_extensions; do
10807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10808     ac_cv_prog_XML2CONFIG="$ac_prog"
10809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10810     break 2
10811   fi
10812 done
10813 done
10814 IFS=$as_save_IFS
10815
10816 fi
10817 fi
10818 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10819 if test -n "$XML2CONFIG"; then
10820   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10821 echo "${ECHO_T}$XML2CONFIG" >&6; }
10822 else
10823   { echo "$as_me:$LINENO: result: no" >&5
10824 echo "${ECHO_T}no" >&6; }
10825 fi
10826
10827
10828   test -n "$XML2CONFIG" && break
10829 done
10830
10831
10832 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10833 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10834 if test "x$XML2CONFIG" = "x"; then
10835  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10836 echo "${ECHO_T}xml2-config not found" >&6; }
10837 else
10838  LIBXML2_INC=`$XML2CONFIG --cflags`
10839  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10840 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10841  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10842 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10843 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10844   echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846   ac_check_lib_save_LIBS=$LIBS
10847 LIBS="-lxml2  $LIBS"
10848 cat >conftest.$ac_ext <<_ACEOF
10849 /* confdefs.h.  */
10850 _ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h.  */
10854
10855 /* Override any GCC internal prototype to avoid an error.
10856    Use char because int might match the return type of a GCC
10857    builtin and then its argument prototype would still apply.  */
10858 #ifdef __cplusplus
10859 extern "C"
10860 #endif
10861 char xmlReadFile ();
10862 int
10863 main ()
10864 {
10865 return xmlReadFile ();
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 rm -f conftest.$ac_objext conftest$ac_exeext
10871 if { (ac_try="$ac_link"
10872 case "(($ac_try" in
10873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874   *) ac_try_echo=$ac_try;;
10875 esac
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877   (eval "$ac_link") 2>conftest.er1
10878   ac_status=$?
10879   grep -v '^ *+' conftest.er1 >conftest.err
10880   rm -f conftest.er1
10881   cat conftest.err >&5
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); } &&
10884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10885   { (case "(($ac_try" in
10886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887   *) ac_try_echo=$ac_try;;
10888 esac
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890   (eval "$ac_try") 2>&5
10891   ac_status=$?
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); }; } &&
10894          { ac_try='test -s conftest$ac_exeext'
10895   { (case "(($ac_try" in
10896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897   *) ac_try_echo=$ac_try;;
10898 esac
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900   (eval "$ac_try") 2>&5
10901   ac_status=$?
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); }; }; then
10904   ac_cv_lib_xml2_xmlReadFile=yes
10905 else
10906   echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10908
10909         ac_cv_lib_xml2_xmlReadFile=no
10910 fi
10911
10912 rm -f core conftest.err conftest.$ac_objext \
10913       conftest$ac_exeext conftest.$ac_ext
10914 LIBS=$ac_check_lib_save_LIBS
10915 fi
10916 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10917 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10918 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10919
10920 cat >>confdefs.h <<\_ACEOF
10921 #define CLANG_HAVE_LIBXML 1
10922 _ACEOF
10923
10924                                 LIBXML2_LIBS="-lxml2"
10925 fi
10926
10927 fi
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937 ac_header_dirent=no
10938 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10939   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10940 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10941 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10943   echo $ECHO_N "(cached) $ECHO_C" >&6
10944 else
10945   cat >conftest.$ac_ext <<_ACEOF
10946 /* confdefs.h.  */
10947 _ACEOF
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h.  */
10951 #include <sys/types.h>
10952 #include <$ac_hdr>
10953
10954 int
10955 main ()
10956 {
10957 if ((DIR *) 0)
10958 return 0;
10959   ;
10960   return 0;
10961 }
10962 _ACEOF
10963 rm -f conftest.$ac_objext
10964 if { (ac_try="$ac_compile"
10965 case "(($ac_try" in
10966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10967   *) ac_try_echo=$ac_try;;
10968 esac
10969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10970   (eval "$ac_compile") 2>conftest.er1
10971   ac_status=$?
10972   grep -v '^ *+' conftest.er1 >conftest.err
10973   rm -f conftest.er1
10974   cat conftest.err >&5
10975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976   (exit $ac_status); } &&
10977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10978   { (case "(($ac_try" in
10979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10980   *) ac_try_echo=$ac_try;;
10981 esac
10982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10983   (eval "$ac_try") 2>&5
10984   ac_status=$?
10985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986   (exit $ac_status); }; } &&
10987          { ac_try='test -s conftest.$ac_objext'
10988   { (case "(($ac_try" in
10989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990   *) ac_try_echo=$ac_try;;
10991 esac
10992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993   (eval "$ac_try") 2>&5
10994   ac_status=$?
10995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996   (exit $ac_status); }; }; then
10997   eval "$as_ac_Header=yes"
10998 else
10999   echo "$as_me: failed program was:" >&5
11000 sed 's/^/| /' conftest.$ac_ext >&5
11001
11002         eval "$as_ac_Header=no"
11003 fi
11004
11005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11006 fi
11007 ac_res=`eval echo '${'$as_ac_Header'}'`
11008                { echo "$as_me:$LINENO: result: $ac_res" >&5
11009 echo "${ECHO_T}$ac_res" >&6; }
11010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11011   cat >>confdefs.h <<_ACEOF
11012 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11013 _ACEOF
11014
11015 ac_header_dirent=$ac_hdr; break
11016 fi
11017
11018 done
11019 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11020 if test $ac_header_dirent = dirent.h; then
11021   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11022 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11023 if test "${ac_cv_search_opendir+set}" = set; then
11024   echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026   ac_func_search_save_LIBS=$LIBS
11027 cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h.  */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h.  */
11033
11034 /* Override any GCC internal prototype to avoid an error.
11035    Use char because int might match the return type of a GCC
11036    builtin and then its argument prototype would still apply.  */
11037 #ifdef __cplusplus
11038 extern "C"
11039 #endif
11040 char opendir ();
11041 int
11042 main ()
11043 {
11044 return opendir ();
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 for ac_lib in '' dir; do
11050   if test -z "$ac_lib"; then
11051     ac_res="none required"
11052   else
11053     ac_res=-l$ac_lib
11054     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11055   fi
11056   rm -f conftest.$ac_objext conftest$ac_exeext
11057 if { (ac_try="$ac_link"
11058 case "(($ac_try" in
11059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060   *) ac_try_echo=$ac_try;;
11061 esac
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063   (eval "$ac_link") 2>conftest.er1
11064   ac_status=$?
11065   grep -v '^ *+' conftest.er1 >conftest.err
11066   rm -f conftest.er1
11067   cat conftest.err >&5
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); } &&
11070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); }; } &&
11080          { ac_try='test -s conftest$ac_exeext'
11081   { (case "(($ac_try" in
11082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11083   *) ac_try_echo=$ac_try;;
11084 esac
11085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11086   (eval "$ac_try") 2>&5
11087   ac_status=$?
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); }; }; then
11090   ac_cv_search_opendir=$ac_res
11091 else
11092   echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095
11096 fi
11097
11098 rm -f core conftest.err conftest.$ac_objext \
11099       conftest$ac_exeext
11100   if test "${ac_cv_search_opendir+set}" = set; then
11101   break
11102 fi
11103 done
11104 if test "${ac_cv_search_opendir+set}" = set; then
11105   :
11106 else
11107   ac_cv_search_opendir=no
11108 fi
11109 rm conftest.$ac_ext
11110 LIBS=$ac_func_search_save_LIBS
11111 fi
11112 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11113 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11114 ac_res=$ac_cv_search_opendir
11115 if test "$ac_res" != no; then
11116   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11117
11118 fi
11119
11120 else
11121   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11122 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11123 if test "${ac_cv_search_opendir+set}" = set; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   ac_func_search_save_LIBS=$LIBS
11127 cat >conftest.$ac_ext <<_ACEOF
11128 /* confdefs.h.  */
11129 _ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h.  */
11133
11134 /* Override any GCC internal prototype to avoid an error.
11135    Use char because int might match the return type of a GCC
11136    builtin and then its argument prototype would still apply.  */
11137 #ifdef __cplusplus
11138 extern "C"
11139 #endif
11140 char opendir ();
11141 int
11142 main ()
11143 {
11144 return opendir ();
11145   ;
11146   return 0;
11147 }
11148 _ACEOF
11149 for ac_lib in '' x; do
11150   if test -z "$ac_lib"; then
11151     ac_res="none required"
11152   else
11153     ac_res=-l$ac_lib
11154     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11155   fi
11156   rm -f conftest.$ac_objext conftest$ac_exeext
11157 if { (ac_try="$ac_link"
11158 case "(($ac_try" in
11159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160   *) ac_try_echo=$ac_try;;
11161 esac
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163   (eval "$ac_link") 2>conftest.er1
11164   ac_status=$?
11165   grep -v '^ *+' conftest.er1 >conftest.err
11166   rm -f conftest.er1
11167   cat conftest.err >&5
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); } &&
11170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11171   { (case "(($ac_try" in
11172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173   *) ac_try_echo=$ac_try;;
11174 esac
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176   (eval "$ac_try") 2>&5
11177   ac_status=$?
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); }; } &&
11180          { ac_try='test -s conftest$ac_exeext'
11181   { (case "(($ac_try" in
11182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11183   *) ac_try_echo=$ac_try;;
11184 esac
11185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11186   (eval "$ac_try") 2>&5
11187   ac_status=$?
11188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189   (exit $ac_status); }; }; then
11190   ac_cv_search_opendir=$ac_res
11191 else
11192   echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11194
11195
11196 fi
11197
11198 rm -f core conftest.err conftest.$ac_objext \
11199       conftest$ac_exeext
11200   if test "${ac_cv_search_opendir+set}" = set; then
11201   break
11202 fi
11203 done
11204 if test "${ac_cv_search_opendir+set}" = set; then
11205   :
11206 else
11207   ac_cv_search_opendir=no
11208 fi
11209 rm conftest.$ac_ext
11210 LIBS=$ac_func_search_save_LIBS
11211 fi
11212 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11213 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11214 ac_res=$ac_cv_search_opendir
11215 if test "$ac_res" != no; then
11216   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11217
11218 fi
11219
11220 fi
11221
11222 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11223 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
11224 if test "${ac_cv_header_mmap_anon+set}" = set; then
11225   echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227    ac_ext=c
11228 ac_cpp='$CPP $CPPFLAGS'
11229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11232
11233   cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h.  */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h.  */
11239 #include <sys/mman.h>
11240 #include <unistd.h>
11241 #include <fcntl.h>
11242 int
11243 main ()
11244 {
11245 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11246   ;
11247   return 0;
11248 }
11249 _ACEOF
11250 rm -f conftest.$ac_objext
11251 if { (ac_try="$ac_compile"
11252 case "(($ac_try" in
11253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254   *) ac_try_echo=$ac_try;;
11255 esac
11256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11257   (eval "$ac_compile") 2>conftest.er1
11258   ac_status=$?
11259   grep -v '^ *+' conftest.er1 >conftest.err
11260   rm -f conftest.er1
11261   cat conftest.err >&5
11262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263   (exit $ac_status); } &&
11264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11265   { (case "(($ac_try" in
11266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11267   *) ac_try_echo=$ac_try;;
11268 esac
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270   (eval "$ac_try") 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); }; } &&
11274          { ac_try='test -s conftest.$ac_objext'
11275   { (case "(($ac_try" in
11276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277   *) ac_try_echo=$ac_try;;
11278 esac
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280   (eval "$ac_try") 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; }; then
11284   ac_cv_header_mmap_anon=yes
11285 else
11286   echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.$ac_ext >&5
11288
11289         ac_cv_header_mmap_anon=no
11290 fi
11291
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293   ac_ext=c
11294 ac_cpp='$CPP $CPPFLAGS'
11295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11298
11299
11300 fi
11301 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11302 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11303 if test "$ac_cv_header_mmap_anon" = yes; then
11304
11305 cat >>confdefs.h <<\_ACEOF
11306 #define HAVE_MMAP_ANONYMOUS 1
11307 _ACEOF
11308
11309 fi
11310
11311 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11312 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11313 if test "${ac_cv_header_stat_broken+set}" = set; then
11314   echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316   cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h.  */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h.  */
11322 #include <sys/types.h>
11323 #include <sys/stat.h>
11324
11325 #if defined S_ISBLK && defined S_IFDIR
11326 # if S_ISBLK (S_IFDIR)
11327 You lose.
11328 # endif
11329 #endif
11330
11331 #if defined S_ISBLK && defined S_IFCHR
11332 # if S_ISBLK (S_IFCHR)
11333 You lose.
11334 # endif
11335 #endif
11336
11337 #if defined S_ISLNK && defined S_IFREG
11338 # if S_ISLNK (S_IFREG)
11339 You lose.
11340 # endif
11341 #endif
11342
11343 #if defined S_ISSOCK && defined S_IFREG
11344 # if S_ISSOCK (S_IFREG)
11345 You lose.
11346 # endif
11347 #endif
11348
11349 _ACEOF
11350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11351   $EGREP "You lose" >/dev/null 2>&1; then
11352   ac_cv_header_stat_broken=yes
11353 else
11354   ac_cv_header_stat_broken=no
11355 fi
11356 rm -f conftest*
11357
11358 fi
11359 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11360 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11361 if test $ac_cv_header_stat_broken = yes; then
11362
11363 cat >>confdefs.h <<\_ACEOF
11364 #define STAT_MACROS_BROKEN 1
11365 _ACEOF
11366
11367 fi
11368
11369 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11370 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11371 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11372   echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374   cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h.  */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h.  */
11380 #include <sys/types.h>
11381 #include <sys/wait.h>
11382 #ifndef WEXITSTATUS
11383 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11384 #endif
11385 #ifndef WIFEXITED
11386 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11387 #endif
11388
11389 int
11390 main ()
11391 {
11392   int s;
11393   wait (&s);
11394   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11395   ;
11396   return 0;
11397 }
11398 _ACEOF
11399 rm -f conftest.$ac_objext
11400 if { (ac_try="$ac_compile"
11401 case "(($ac_try" in
11402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403   *) ac_try_echo=$ac_try;;
11404 esac
11405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11406   (eval "$ac_compile") 2>conftest.er1
11407   ac_status=$?
11408   grep -v '^ *+' conftest.er1 >conftest.err
11409   rm -f conftest.er1
11410   cat conftest.err >&5
11411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412   (exit $ac_status); } &&
11413          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11414   { (case "(($ac_try" in
11415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11416   *) ac_try_echo=$ac_try;;
11417 esac
11418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11419   (eval "$ac_try") 2>&5
11420   ac_status=$?
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); }; } &&
11423          { ac_try='test -s conftest.$ac_objext'
11424   { (case "(($ac_try" in
11425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426   *) ac_try_echo=$ac_try;;
11427 esac
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429   (eval "$ac_try") 2>&5
11430   ac_status=$?
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); }; }; then
11433   ac_cv_header_sys_wait_h=yes
11434 else
11435   echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11437
11438         ac_cv_header_sys_wait_h=no
11439 fi
11440
11441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 fi
11443 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11444 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11445 if test $ac_cv_header_sys_wait_h = yes; then
11446
11447 cat >>confdefs.h <<\_ACEOF
11448 #define HAVE_SYS_WAIT_H 1
11449 _ACEOF
11450
11451 fi
11452
11453 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11454 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11455 if test "${ac_cv_header_time+set}" = set; then
11456   echo $ECHO_N "(cached) $ECHO_C" >&6
11457 else
11458   cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h.  */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h.  */
11464 #include <sys/types.h>
11465 #include <sys/time.h>
11466 #include <time.h>
11467
11468 int
11469 main ()
11470 {
11471 if ((struct tm *) 0)
11472 return 0;
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 rm -f conftest.$ac_objext
11478 if { (ac_try="$ac_compile"
11479 case "(($ac_try" in
11480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11481   *) ac_try_echo=$ac_try;;
11482 esac
11483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11484   (eval "$ac_compile") 2>conftest.er1
11485   ac_status=$?
11486   grep -v '^ *+' conftest.er1 >conftest.err
11487   rm -f conftest.er1
11488   cat conftest.err >&5
11489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490   (exit $ac_status); } &&
11491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11492   { (case "(($ac_try" in
11493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494   *) ac_try_echo=$ac_try;;
11495 esac
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497   (eval "$ac_try") 2>&5
11498   ac_status=$?
11499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500   (exit $ac_status); }; } &&
11501          { ac_try='test -s conftest.$ac_objext'
11502   { (case "(($ac_try" in
11503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504   *) ac_try_echo=$ac_try;;
11505 esac
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507   (eval "$ac_try") 2>&5
11508   ac_status=$?
11509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510   (exit $ac_status); }; }; then
11511   ac_cv_header_time=yes
11512 else
11513   echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11515
11516         ac_cv_header_time=no
11517 fi
11518
11519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11520 fi
11521 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11522 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11523 if test $ac_cv_header_time = yes; then
11524
11525 cat >>confdefs.h <<\_ACEOF
11526 #define TIME_WITH_SYS_TIME 1
11527 _ACEOF
11528
11529 fi
11530
11531
11532 ac_ext=cpp
11533 ac_cpp='$CXXCPP $CPPFLAGS'
11534 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11535 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11536 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11537
11538 ac_ext=cpp
11539 ac_cpp='$CXXCPP $CPPFLAGS'
11540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11543 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11544 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11545 if test -z "$CXXCPP"; then
11546   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11547   echo $ECHO_N "(cached) $ECHO_C" >&6
11548 else
11549       # Double quotes because CXXCPP needs to be expanded
11550     for CXXCPP in "$CXX -E" "/lib/cpp"
11551     do
11552       ac_preproc_ok=false
11553 for ac_cxx_preproc_warn_flag in '' yes
11554 do
11555   # Use a header file that comes with gcc, so configuring glibc
11556   # with a fresh cross-compiler works.
11557   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11558   # <limits.h> exists even on freestanding compilers.
11559   # On the NeXT, cc -E runs the code through the compiler's parser,
11560   # not just through cpp. "Syntax error" is here to catch this case.
11561   cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h.  */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h.  */
11567 #ifdef __STDC__
11568 # include <limits.h>
11569 #else
11570 # include <assert.h>
11571 #endif
11572                      Syntax error
11573 _ACEOF
11574 if { (ac_try="$ac_cpp conftest.$ac_ext"
11575 case "(($ac_try" in
11576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577   *) ac_try_echo=$ac_try;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11581   ac_status=$?
11582   grep -v '^ *+' conftest.er1 >conftest.err
11583   rm -f conftest.er1
11584   cat conftest.err >&5
11585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586   (exit $ac_status); } >/dev/null; then
11587   if test -s conftest.err; then
11588     ac_cpp_err=$ac_cxx_preproc_warn_flag
11589     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11590   else
11591     ac_cpp_err=
11592   fi
11593 else
11594   ac_cpp_err=yes
11595 fi
11596 if test -z "$ac_cpp_err"; then
11597   :
11598 else
11599   echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11601
11602   # Broken: fails on valid input.
11603 continue
11604 fi
11605
11606 rm -f conftest.err conftest.$ac_ext
11607
11608   # OK, works on sane cases.  Now check whether nonexistent headers
11609   # can be detected and how.
11610   cat >conftest.$ac_ext <<_ACEOF
11611 /* confdefs.h.  */
11612 _ACEOF
11613 cat confdefs.h >>conftest.$ac_ext
11614 cat >>conftest.$ac_ext <<_ACEOF
11615 /* end confdefs.h.  */
11616 #include <ac_nonexistent.h>
11617 _ACEOF
11618 if { (ac_try="$ac_cpp conftest.$ac_ext"
11619 case "(($ac_try" in
11620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621   *) ac_try_echo=$ac_try;;
11622 esac
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11625   ac_status=$?
11626   grep -v '^ *+' conftest.er1 >conftest.err
11627   rm -f conftest.er1
11628   cat conftest.err >&5
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); } >/dev/null; then
11631   if test -s conftest.err; then
11632     ac_cpp_err=$ac_cxx_preproc_warn_flag
11633     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11634   else
11635     ac_cpp_err=
11636   fi
11637 else
11638   ac_cpp_err=yes
11639 fi
11640 if test -z "$ac_cpp_err"; then
11641   # Broken: success on invalid input.
11642 continue
11643 else
11644   echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11646
11647   # Passes both tests.
11648 ac_preproc_ok=:
11649 break
11650 fi
11651
11652 rm -f conftest.err conftest.$ac_ext
11653
11654 done
11655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11656 rm -f conftest.err conftest.$ac_ext
11657 if $ac_preproc_ok; then
11658   break
11659 fi
11660
11661     done
11662     ac_cv_prog_CXXCPP=$CXXCPP
11663
11664 fi
11665   CXXCPP=$ac_cv_prog_CXXCPP
11666 else
11667   ac_cv_prog_CXXCPP=$CXXCPP
11668 fi
11669 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11670 echo "${ECHO_T}$CXXCPP" >&6; }
11671 ac_preproc_ok=false
11672 for ac_cxx_preproc_warn_flag in '' yes
11673 do
11674   # Use a header file that comes with gcc, so configuring glibc
11675   # with a fresh cross-compiler works.
11676   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11677   # <limits.h> exists even on freestanding compilers.
11678   # On the NeXT, cc -E runs the code through the compiler's parser,
11679   # not just through cpp. "Syntax error" is here to catch this case.
11680   cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h.  */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h.  */
11686 #ifdef __STDC__
11687 # include <limits.h>
11688 #else
11689 # include <assert.h>
11690 #endif
11691                      Syntax error
11692 _ACEOF
11693 if { (ac_try="$ac_cpp conftest.$ac_ext"
11694 case "(($ac_try" in
11695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696   *) ac_try_echo=$ac_try;;
11697 esac
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11700   ac_status=$?
11701   grep -v '^ *+' conftest.er1 >conftest.err
11702   rm -f conftest.er1
11703   cat conftest.err >&5
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); } >/dev/null; then
11706   if test -s conftest.err; then
11707     ac_cpp_err=$ac_cxx_preproc_warn_flag
11708     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11709   else
11710     ac_cpp_err=
11711   fi
11712 else
11713   ac_cpp_err=yes
11714 fi
11715 if test -z "$ac_cpp_err"; then
11716   :
11717 else
11718   echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11720
11721   # Broken: fails on valid input.
11722 continue
11723 fi
11724
11725 rm -f conftest.err conftest.$ac_ext
11726
11727   # OK, works on sane cases.  Now check whether nonexistent headers
11728   # can be detected and how.
11729   cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h.  */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h.  */
11735 #include <ac_nonexistent.h>
11736 _ACEOF
11737 if { (ac_try="$ac_cpp conftest.$ac_ext"
11738 case "(($ac_try" in
11739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740   *) ac_try_echo=$ac_try;;
11741 esac
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11744   ac_status=$?
11745   grep -v '^ *+' conftest.er1 >conftest.err
11746   rm -f conftest.er1
11747   cat conftest.err >&5
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); } >/dev/null; then
11750   if test -s conftest.err; then
11751     ac_cpp_err=$ac_cxx_preproc_warn_flag
11752     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11753   else
11754     ac_cpp_err=
11755   fi
11756 else
11757   ac_cpp_err=yes
11758 fi
11759 if test -z "$ac_cpp_err"; then
11760   # Broken: success on invalid input.
11761 continue
11762 else
11763   echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11765
11766   # Passes both tests.
11767 ac_preproc_ok=:
11768 break
11769 fi
11770
11771 rm -f conftest.err conftest.$ac_ext
11772
11773 done
11774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11775 rm -f conftest.err conftest.$ac_ext
11776 if $ac_preproc_ok; then
11777   :
11778 else
11779   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11780 See \`config.log' for more details." >&5
11781 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11782 See \`config.log' for more details." >&2;}
11783    { (exit 1); exit 1; }; }
11784 fi
11785
11786 ac_ext=cpp
11787 ac_cpp='$CXXCPP $CPPFLAGS'
11788 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11789 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11790 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11791
11792
11793
11794 for ac_header in cxxabi.h
11795 do
11796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11798   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11801   echo $ECHO_N "(cached) $ECHO_C" >&6
11802 fi
11803 ac_res=`eval echo '${'$as_ac_Header'}'`
11804                { echo "$as_me:$LINENO: result: $ac_res" >&5
11805 echo "${ECHO_T}$ac_res" >&6; }
11806 else
11807   # Is the header compilable?
11808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h.  */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h.  */
11816 $ac_includes_default
11817 #include <$ac_header>
11818 _ACEOF
11819 rm -f conftest.$ac_objext
11820 if { (ac_try="$ac_compile"
11821 case "(($ac_try" in
11822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823   *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826   (eval "$ac_compile") 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } &&
11833          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11834   { (case "(($ac_try" in
11835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11836   *) ac_try_echo=$ac_try;;
11837 esac
11838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11839   (eval "$ac_try") 2>&5
11840   ac_status=$?
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); }; } &&
11843          { ac_try='test -s conftest.$ac_objext'
11844   { (case "(($ac_try" in
11845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846   *) ac_try_echo=$ac_try;;
11847 esac
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849   (eval "$ac_try") 2>&5
11850   ac_status=$?
11851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); }; }; then
11853   ac_header_compiler=yes
11854 else
11855   echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11857
11858         ac_header_compiler=no
11859 fi
11860
11861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11863 echo "${ECHO_T}$ac_header_compiler" >&6; }
11864
11865 # Is the header present?
11866 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11868 cat >conftest.$ac_ext <<_ACEOF
11869 /* confdefs.h.  */
11870 _ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h.  */
11874 #include <$ac_header>
11875 _ACEOF
11876 if { (ac_try="$ac_cpp conftest.$ac_ext"
11877 case "(($ac_try" in
11878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879   *) ac_try_echo=$ac_try;;
11880 esac
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11883   ac_status=$?
11884   grep -v '^ *+' conftest.er1 >conftest.err
11885   rm -f conftest.er1
11886   cat conftest.err >&5
11887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888   (exit $ac_status); } >/dev/null; then
11889   if test -s conftest.err; then
11890     ac_cpp_err=$ac_cxx_preproc_warn_flag
11891     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11892   else
11893     ac_cpp_err=
11894   fi
11895 else
11896   ac_cpp_err=yes
11897 fi
11898 if test -z "$ac_cpp_err"; then
11899   ac_header_preproc=yes
11900 else
11901   echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.$ac_ext >&5
11903
11904   ac_header_preproc=no
11905 fi
11906
11907 rm -f conftest.err conftest.$ac_ext
11908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11909 echo "${ECHO_T}$ac_header_preproc" >&6; }
11910
11911 # So?  What about this header?
11912 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11913   yes:no: )
11914     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11918     ac_header_preproc=yes
11919     ;;
11920   no:yes:* )
11921     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11923     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11924 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11925     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11927     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11928 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11931     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11933     ( cat <<\_ASBOX
11934 ## ------------------------------------ ##
11935 ## Report this to http://llvm.org/bugs/ ##
11936 ## ------------------------------------ ##
11937 _ASBOX
11938      ) | sed "s/^/$as_me: WARNING:     /" >&2
11939     ;;
11940 esac
11941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11944   echo $ECHO_N "(cached) $ECHO_C" >&6
11945 else
11946   eval "$as_ac_Header=\$ac_header_preproc"
11947 fi
11948 ac_res=`eval echo '${'$as_ac_Header'}'`
11949                { echo "$as_me:$LINENO: result: $ac_res" >&5
11950 echo "${ECHO_T}$ac_res" >&6; }
11951
11952 fi
11953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11954   cat >>confdefs.h <<_ACEOF
11955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11956 _ACEOF
11957
11958 fi
11959
11960 done
11961
11962 ac_ext=c
11963 ac_cpp='$CPP $CPPFLAGS'
11964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11967
11968
11969
11970
11971
11972
11973 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11974 do
11975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11977   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11980   echo $ECHO_N "(cached) $ECHO_C" >&6
11981 fi
11982 ac_res=`eval echo '${'$as_ac_Header'}'`
11983                { echo "$as_me:$LINENO: result: $ac_res" >&5
11984 echo "${ECHO_T}$ac_res" >&6; }
11985 else
11986   # Is the header compilable?
11987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11989 cat >conftest.$ac_ext <<_ACEOF
11990 /* confdefs.h.  */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h.  */
11995 $ac_includes_default
11996 #include <$ac_header>
11997 _ACEOF
11998 rm -f conftest.$ac_objext
11999 if { (ac_try="$ac_compile"
12000 case "(($ac_try" in
12001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002   *) ac_try_echo=$ac_try;;
12003 esac
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005   (eval "$ac_compile") 2>conftest.er1
12006   ac_status=$?
12007   grep -v '^ *+' conftest.er1 >conftest.err
12008   rm -f conftest.er1
12009   cat conftest.err >&5
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); } &&
12012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12013   { (case "(($ac_try" in
12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015   *) ac_try_echo=$ac_try;;
12016 esac
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018   (eval "$ac_try") 2>&5
12019   ac_status=$?
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); }; } &&
12022          { ac_try='test -s conftest.$ac_objext'
12023   { (case "(($ac_try" in
12024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025   *) ac_try_echo=$ac_try;;
12026 esac
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028   (eval "$ac_try") 2>&5
12029   ac_status=$?
12030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031   (exit $ac_status); }; }; then
12032   ac_header_compiler=yes
12033 else
12034   echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12036
12037         ac_header_compiler=no
12038 fi
12039
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12042 echo "${ECHO_T}$ac_header_compiler" >&6; }
12043
12044 # Is the header present?
12045 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12047 cat >conftest.$ac_ext <<_ACEOF
12048 /* confdefs.h.  */
12049 _ACEOF
12050 cat confdefs.h >>conftest.$ac_ext
12051 cat >>conftest.$ac_ext <<_ACEOF
12052 /* end confdefs.h.  */
12053 #include <$ac_header>
12054 _ACEOF
12055 if { (ac_try="$ac_cpp conftest.$ac_ext"
12056 case "(($ac_try" in
12057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058   *) ac_try_echo=$ac_try;;
12059 esac
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12062   ac_status=$?
12063   grep -v '^ *+' conftest.er1 >conftest.err
12064   rm -f conftest.er1
12065   cat conftest.err >&5
12066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067   (exit $ac_status); } >/dev/null; then
12068   if test -s conftest.err; then
12069     ac_cpp_err=$ac_c_preproc_warn_flag
12070     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12071   else
12072     ac_cpp_err=
12073   fi
12074 else
12075   ac_cpp_err=yes
12076 fi
12077 if test -z "$ac_cpp_err"; then
12078   ac_header_preproc=yes
12079 else
12080   echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083   ac_header_preproc=no
12084 fi
12085
12086 rm -f conftest.err conftest.$ac_ext
12087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12088 echo "${ECHO_T}$ac_header_preproc" >&6; }
12089
12090 # So?  What about this header?
12091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12092   yes:no: )
12093     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12095     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12097     ac_header_preproc=yes
12098     ;;
12099   no:yes:* )
12100     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12102     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12103 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12104     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12106     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12107 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12108     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12110     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12112     ( cat <<\_ASBOX
12113 ## ------------------------------------ ##
12114 ## Report this to http://llvm.org/bugs/ ##
12115 ## ------------------------------------ ##
12116 _ASBOX
12117      ) | sed "s/^/$as_me: WARNING:     /" >&2
12118     ;;
12119 esac
12120 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125   eval "$as_ac_Header=\$ac_header_preproc"
12126 fi
12127 ac_res=`eval echo '${'$as_ac_Header'}'`
12128                { echo "$as_me:$LINENO: result: $ac_res" >&5
12129 echo "${ECHO_T}$ac_res" >&6; }
12130
12131 fi
12132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12133   cat >>confdefs.h <<_ACEOF
12134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12135 _ACEOF
12136
12137 fi
12138
12139 done
12140
12141
12142
12143
12144
12145
12146
12147 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
12148 do
12149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154   echo $ECHO_N "(cached) $ECHO_C" >&6
12155 fi
12156 ac_res=`eval echo '${'$as_ac_Header'}'`
12157                { echo "$as_me:$LINENO: result: $ac_res" >&5
12158 echo "${ECHO_T}$ac_res" >&6; }
12159 else
12160   # Is the header compilable?
12161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12163 cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h.  */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h.  */
12169 $ac_includes_default
12170 #include <$ac_header>
12171 _ACEOF
12172 rm -f conftest.$ac_objext
12173 if { (ac_try="$ac_compile"
12174 case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_compile") 2>conftest.er1
12180   ac_status=$?
12181   grep -v '^ *+' conftest.er1 >conftest.err
12182   rm -f conftest.er1
12183   cat conftest.err >&5
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); } &&
12186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187   { (case "(($ac_try" in
12188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189   *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192   (eval "$ac_try") 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); }; } &&
12196          { ac_try='test -s conftest.$ac_objext'
12197   { (case "(($ac_try" in
12198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199   *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202   (eval "$ac_try") 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; }; then
12206   ac_header_compiler=yes
12207 else
12208   echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211         ac_header_compiler=no
12212 fi
12213
12214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12216 echo "${ECHO_T}$ac_header_compiler" >&6; }
12217
12218 # Is the header present?
12219 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12221 cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h.  */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h.  */
12227 #include <$ac_header>
12228 _ACEOF
12229 if { (ac_try="$ac_cpp conftest.$ac_ext"
12230 case "(($ac_try" in
12231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12232   *) ac_try_echo=$ac_try;;
12233 esac
12234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12235   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12236   ac_status=$?
12237   grep -v '^ *+' conftest.er1 >conftest.err
12238   rm -f conftest.er1
12239   cat conftest.err >&5
12240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241   (exit $ac_status); } >/dev/null; then
12242   if test -s conftest.err; then
12243     ac_cpp_err=$ac_c_preproc_warn_flag
12244     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12245   else
12246     ac_cpp_err=
12247   fi
12248 else
12249   ac_cpp_err=yes
12250 fi
12251 if test -z "$ac_cpp_err"; then
12252   ac_header_preproc=yes
12253 else
12254   echo "$as_me: failed program was:" >&5
12255 sed 's/^/| /' conftest.$ac_ext >&5
12256
12257   ac_header_preproc=no
12258 fi
12259
12260 rm -f conftest.err conftest.$ac_ext
12261 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12262 echo "${ECHO_T}$ac_header_preproc" >&6; }
12263
12264 # So?  What about this header?
12265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12266   yes:no: )
12267     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12269     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12271     ac_header_preproc=yes
12272     ;;
12273   no:yes:* )
12274     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12276     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12277 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12278     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12280     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12281 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12284     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12286     ( cat <<\_ASBOX
12287 ## ------------------------------------ ##
12288 ## Report this to http://llvm.org/bugs/ ##
12289 ## ------------------------------------ ##
12290 _ASBOX
12291      ) | sed "s/^/$as_me: WARNING:     /" >&2
12292     ;;
12293 esac
12294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12297   echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299   eval "$as_ac_Header=\$ac_header_preproc"
12300 fi
12301 ac_res=`eval echo '${'$as_ac_Header'}'`
12302                { echo "$as_me:$LINENO: result: $ac_res" >&5
12303 echo "${ECHO_T}$ac_res" >&6; }
12304
12305 fi
12306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12307   cat >>confdefs.h <<_ACEOF
12308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12309 _ACEOF
12310
12311 fi
12312
12313 done
12314
12315
12316 for ac_header in utime.h
12317 do
12318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12320   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 fi
12325 ac_res=`eval echo '${'$as_ac_Header'}'`
12326                { echo "$as_me:$LINENO: result: $ac_res" >&5
12327 echo "${ECHO_T}$ac_res" >&6; }
12328 else
12329   # Is the header compilable?
12330 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12331 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12332 cat >conftest.$ac_ext <<_ACEOF
12333 /* confdefs.h.  */
12334 _ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h.  */
12338 $ac_includes_default
12339 #include <$ac_header>
12340 _ACEOF
12341 rm -f conftest.$ac_objext
12342 if { (ac_try="$ac_compile"
12343 case "(($ac_try" in
12344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345   *) ac_try_echo=$ac_try;;
12346 esac
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348   (eval "$ac_compile") 2>conftest.er1
12349   ac_status=$?
12350   grep -v '^ *+' conftest.er1 >conftest.err
12351   rm -f conftest.er1
12352   cat conftest.err >&5
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); } &&
12355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12356   { (case "(($ac_try" in
12357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12358   *) ac_try_echo=$ac_try;;
12359 esac
12360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12361   (eval "$ac_try") 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; } &&
12365          { ac_try='test -s conftest.$ac_objext'
12366   { (case "(($ac_try" in
12367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368   *) ac_try_echo=$ac_try;;
12369 esac
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371   (eval "$ac_try") 2>&5
12372   ac_status=$?
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); }; }; then
12375   ac_header_compiler=yes
12376 else
12377   echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12379
12380         ac_header_compiler=no
12381 fi
12382
12383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12385 echo "${ECHO_T}$ac_header_compiler" >&6; }
12386
12387 # Is the header present?
12388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12390 cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h.  */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h.  */
12396 #include <$ac_header>
12397 _ACEOF
12398 if { (ac_try="$ac_cpp conftest.$ac_ext"
12399 case "(($ac_try" in
12400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401   *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12405   ac_status=$?
12406   grep -v '^ *+' conftest.er1 >conftest.err
12407   rm -f conftest.er1
12408   cat conftest.err >&5
12409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410   (exit $ac_status); } >/dev/null; then
12411   if test -s conftest.err; then
12412     ac_cpp_err=$ac_c_preproc_warn_flag
12413     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12414   else
12415     ac_cpp_err=
12416   fi
12417 else
12418   ac_cpp_err=yes
12419 fi
12420 if test -z "$ac_cpp_err"; then
12421   ac_header_preproc=yes
12422 else
12423   echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12425
12426   ac_header_preproc=no
12427 fi
12428
12429 rm -f conftest.err conftest.$ac_ext
12430 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12431 echo "${ECHO_T}$ac_header_preproc" >&6; }
12432
12433 # So?  What about this header?
12434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12435   yes:no: )
12436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12440     ac_header_preproc=yes
12441     ;;
12442   no:yes:* )
12443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12455     ( cat <<\_ASBOX
12456 ## ------------------------------------ ##
12457 ## Report this to http://llvm.org/bugs/ ##
12458 ## ------------------------------------ ##
12459 _ASBOX
12460      ) | sed "s/^/$as_me: WARNING:     /" >&2
12461     ;;
12462 esac
12463 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12466   echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468   eval "$as_ac_Header=\$ac_header_preproc"
12469 fi
12470 ac_res=`eval echo '${'$as_ac_Header'}'`
12471                { echo "$as_me:$LINENO: result: $ac_res" >&5
12472 echo "${ECHO_T}$ac_res" >&6; }
12473
12474 fi
12475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12476   cat >>confdefs.h <<_ACEOF
12477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12478 _ACEOF
12479
12480 fi
12481
12482 done
12483
12484
12485
12486
12487
12488
12489 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
12490 do
12491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12493   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12496   echo $ECHO_N "(cached) $ECHO_C" >&6
12497 fi
12498 ac_res=`eval echo '${'$as_ac_Header'}'`
12499                { echo "$as_me:$LINENO: result: $ac_res" >&5
12500 echo "${ECHO_T}$ac_res" >&6; }
12501 else
12502   # Is the header compilable?
12503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12505 cat >conftest.$ac_ext <<_ACEOF
12506 /* confdefs.h.  */
12507 _ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h.  */
12511 $ac_includes_default
12512 #include <$ac_header>
12513 _ACEOF
12514 rm -f conftest.$ac_objext
12515 if { (ac_try="$ac_compile"
12516 case "(($ac_try" in
12517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518   *) ac_try_echo=$ac_try;;
12519 esac
12520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12521   (eval "$ac_compile") 2>conftest.er1
12522   ac_status=$?
12523   grep -v '^ *+' conftest.er1 >conftest.err
12524   rm -f conftest.er1
12525   cat conftest.err >&5
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); } &&
12528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12529   { (case "(($ac_try" in
12530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531   *) ac_try_echo=$ac_try;;
12532 esac
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534   (eval "$ac_try") 2>&5
12535   ac_status=$?
12536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537   (exit $ac_status); }; } &&
12538          { ac_try='test -s conftest.$ac_objext'
12539   { (case "(($ac_try" in
12540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541   *) ac_try_echo=$ac_try;;
12542 esac
12543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12544   (eval "$ac_try") 2>&5
12545   ac_status=$?
12546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547   (exit $ac_status); }; }; then
12548   ac_header_compiler=yes
12549 else
12550   echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12552
12553         ac_header_compiler=no
12554 fi
12555
12556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12558 echo "${ECHO_T}$ac_header_compiler" >&6; }
12559
12560 # Is the header present?
12561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12563 cat >conftest.$ac_ext <<_ACEOF
12564 /* confdefs.h.  */
12565 _ACEOF
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h.  */
12569 #include <$ac_header>
12570 _ACEOF
12571 if { (ac_try="$ac_cpp conftest.$ac_ext"
12572 case "(($ac_try" in
12573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574   *) ac_try_echo=$ac_try;;
12575 esac
12576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12578   ac_status=$?
12579   grep -v '^ *+' conftest.er1 >conftest.err
12580   rm -f conftest.er1
12581   cat conftest.err >&5
12582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583   (exit $ac_status); } >/dev/null; then
12584   if test -s conftest.err; then
12585     ac_cpp_err=$ac_c_preproc_warn_flag
12586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12587   else
12588     ac_cpp_err=
12589   fi
12590 else
12591   ac_cpp_err=yes
12592 fi
12593 if test -z "$ac_cpp_err"; then
12594   ac_header_preproc=yes
12595 else
12596   echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12598
12599   ac_header_preproc=no
12600 fi
12601
12602 rm -f conftest.err conftest.$ac_ext
12603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12604 echo "${ECHO_T}$ac_header_preproc" >&6; }
12605
12606 # So?  What about this header?
12607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12608   yes:no: )
12609     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12613     ac_header_preproc=yes
12614     ;;
12615   no:yes:* )
12616     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12618     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12619 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12620     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12622     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12623 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12626     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12628     ( cat <<\_ASBOX
12629 ## ------------------------------------ ##
12630 ## Report this to http://llvm.org/bugs/ ##
12631 ## ------------------------------------ ##
12632 _ASBOX
12633      ) | sed "s/^/$as_me: WARNING:     /" >&2
12634     ;;
12635 esac
12636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12639   echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641   eval "$as_ac_Header=\$ac_header_preproc"
12642 fi
12643 ac_res=`eval echo '${'$as_ac_Header'}'`
12644                { echo "$as_me:$LINENO: result: $ac_res" >&5
12645 echo "${ECHO_T}$ac_res" >&6; }
12646
12647 fi
12648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12649   cat >>confdefs.h <<_ACEOF
12650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12651 _ACEOF
12652
12653 fi
12654
12655 done
12656
12657
12658
12659
12660 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12661 do
12662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12664   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12667   echo $ECHO_N "(cached) $ECHO_C" >&6
12668 fi
12669 ac_res=`eval echo '${'$as_ac_Header'}'`
12670                { echo "$as_me:$LINENO: result: $ac_res" >&5
12671 echo "${ECHO_T}$ac_res" >&6; }
12672 else
12673   # Is the header compilable?
12674 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12675 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12676 cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h.  */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h.  */
12682 $ac_includes_default
12683 #include <$ac_header>
12684 _ACEOF
12685 rm -f conftest.$ac_objext
12686 if { (ac_try="$ac_compile"
12687 case "(($ac_try" in
12688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689   *) ac_try_echo=$ac_try;;
12690 esac
12691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12692   (eval "$ac_compile") 2>conftest.er1
12693   ac_status=$?
12694   grep -v '^ *+' conftest.er1 >conftest.err
12695   rm -f conftest.er1
12696   cat conftest.err >&5
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } &&
12699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12700   { (case "(($ac_try" in
12701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702   *) ac_try_echo=$ac_try;;
12703 esac
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705   (eval "$ac_try") 2>&5
12706   ac_status=$?
12707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708   (exit $ac_status); }; } &&
12709          { ac_try='test -s conftest.$ac_objext'
12710   { (case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_try") 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; }; then
12719   ac_header_compiler=yes
12720 else
12721   echo "$as_me: failed program was:" >&5
12722 sed 's/^/| /' conftest.$ac_ext >&5
12723
12724         ac_header_compiler=no
12725 fi
12726
12727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12729 echo "${ECHO_T}$ac_header_compiler" >&6; }
12730
12731 # Is the header present?
12732 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12733 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12734 cat >conftest.$ac_ext <<_ACEOF
12735 /* confdefs.h.  */
12736 _ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h.  */
12740 #include <$ac_header>
12741 _ACEOF
12742 if { (ac_try="$ac_cpp conftest.$ac_ext"
12743 case "(($ac_try" in
12744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745   *) ac_try_echo=$ac_try;;
12746 esac
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12749   ac_status=$?
12750   grep -v '^ *+' conftest.er1 >conftest.err
12751   rm -f conftest.er1
12752   cat conftest.err >&5
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); } >/dev/null; then
12755   if test -s conftest.err; then
12756     ac_cpp_err=$ac_c_preproc_warn_flag
12757     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12758   else
12759     ac_cpp_err=
12760   fi
12761 else
12762   ac_cpp_err=yes
12763 fi
12764 if test -z "$ac_cpp_err"; then
12765   ac_header_preproc=yes
12766 else
12767   echo "$as_me: failed program was:" >&5
12768 sed 's/^/| /' conftest.$ac_ext >&5
12769
12770   ac_header_preproc=no
12771 fi
12772
12773 rm -f conftest.err conftest.$ac_ext
12774 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12775 echo "${ECHO_T}$ac_header_preproc" >&6; }
12776
12777 # So?  What about this header?
12778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12779   yes:no: )
12780     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12784     ac_header_preproc=yes
12785     ;;
12786   no:yes:* )
12787     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12789     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12790 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12791     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12793     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12794 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12797     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12799     ( cat <<\_ASBOX
12800 ## ------------------------------------ ##
12801 ## Report this to http://llvm.org/bugs/ ##
12802 ## ------------------------------------ ##
12803 _ASBOX
12804      ) | sed "s/^/$as_me: WARNING:     /" >&2
12805     ;;
12806 esac
12807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12810   echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812   eval "$as_ac_Header=\$ac_header_preproc"
12813 fi
12814 ac_res=`eval echo '${'$as_ac_Header'}'`
12815                { echo "$as_me:$LINENO: result: $ac_res" >&5
12816 echo "${ECHO_T}$ac_res" >&6; }
12817
12818 fi
12819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12820   cat >>confdefs.h <<_ACEOF
12821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12822 _ACEOF
12823
12824 fi
12825
12826 done
12827
12828
12829 for ac_header in valgrind/valgrind.h
12830 do
12831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12833   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12836   echo $ECHO_N "(cached) $ECHO_C" >&6
12837 fi
12838 ac_res=`eval echo '${'$as_ac_Header'}'`
12839                { echo "$as_me:$LINENO: result: $ac_res" >&5
12840 echo "${ECHO_T}$ac_res" >&6; }
12841 else
12842   # Is the header compilable?
12843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12845 cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h.  */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h.  */
12851 $ac_includes_default
12852 #include <$ac_header>
12853 _ACEOF
12854 rm -f conftest.$ac_objext
12855 if { (ac_try="$ac_compile"
12856 case "(($ac_try" in
12857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858   *) ac_try_echo=$ac_try;;
12859 esac
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861   (eval "$ac_compile") 2>conftest.er1
12862   ac_status=$?
12863   grep -v '^ *+' conftest.er1 >conftest.err
12864   rm -f conftest.er1
12865   cat conftest.err >&5
12866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867   (exit $ac_status); } &&
12868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12869   { (case "(($ac_try" in
12870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871   *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874   (eval "$ac_try") 2>&5
12875   ac_status=$?
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); }; } &&
12878          { ac_try='test -s conftest.$ac_objext'
12879   { (case "(($ac_try" in
12880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881   *) ac_try_echo=$ac_try;;
12882 esac
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884   (eval "$ac_try") 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); }; }; then
12888   ac_header_compiler=yes
12889 else
12890   echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12892
12893         ac_header_compiler=no
12894 fi
12895
12896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12898 echo "${ECHO_T}$ac_header_compiler" >&6; }
12899
12900 # Is the header present?
12901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12903 cat >conftest.$ac_ext <<_ACEOF
12904 /* confdefs.h.  */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h.  */
12909 #include <$ac_header>
12910 _ACEOF
12911 if { (ac_try="$ac_cpp conftest.$ac_ext"
12912 case "(($ac_try" in
12913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12914   *) ac_try_echo=$ac_try;;
12915 esac
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12918   ac_status=$?
12919   grep -v '^ *+' conftest.er1 >conftest.err
12920   rm -f conftest.er1
12921   cat conftest.err >&5
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); } >/dev/null; then
12924   if test -s conftest.err; then
12925     ac_cpp_err=$ac_c_preproc_warn_flag
12926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12927   else
12928     ac_cpp_err=
12929   fi
12930 else
12931   ac_cpp_err=yes
12932 fi
12933 if test -z "$ac_cpp_err"; then
12934   ac_header_preproc=yes
12935 else
12936   echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12938
12939   ac_header_preproc=no
12940 fi
12941
12942 rm -f conftest.err conftest.$ac_ext
12943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12944 echo "${ECHO_T}$ac_header_preproc" >&6; }
12945
12946 # So?  What about this header?
12947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12948   yes:no: )
12949     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12953     ac_header_preproc=yes
12954     ;;
12955   no:yes:* )
12956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12958     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12959 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12960     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12962     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12963 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12966     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12968     ( cat <<\_ASBOX
12969 ## ------------------------------------ ##
12970 ## Report this to http://llvm.org/bugs/ ##
12971 ## ------------------------------------ ##
12972 _ASBOX
12973      ) | sed "s/^/$as_me: WARNING:     /" >&2
12974     ;;
12975 esac
12976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12979   echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981   eval "$as_ac_Header=\$ac_header_preproc"
12982 fi
12983 ac_res=`eval echo '${'$as_ac_Header'}'`
12984                { echo "$as_me:$LINENO: result: $ac_res" >&5
12985 echo "${ECHO_T}$ac_res" >&6; }
12986
12987 fi
12988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12989   cat >>confdefs.h <<_ACEOF
12990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12991 _ACEOF
12992
12993 fi
12994
12995 done
12996
12997
12998 for ac_header in fenv.h
12999 do
13000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13002   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13005   echo $ECHO_N "(cached) $ECHO_C" >&6
13006 fi
13007 ac_res=`eval echo '${'$as_ac_Header'}'`
13008                { echo "$as_me:$LINENO: result: $ac_res" >&5
13009 echo "${ECHO_T}$ac_res" >&6; }
13010 else
13011   # Is the header compilable?
13012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13014 cat >conftest.$ac_ext <<_ACEOF
13015 /* confdefs.h.  */
13016 _ACEOF
13017 cat confdefs.h >>conftest.$ac_ext
13018 cat >>conftest.$ac_ext <<_ACEOF
13019 /* end confdefs.h.  */
13020 $ac_includes_default
13021 #include <$ac_header>
13022 _ACEOF
13023 rm -f conftest.$ac_objext
13024 if { (ac_try="$ac_compile"
13025 case "(($ac_try" in
13026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027   *) ac_try_echo=$ac_try;;
13028 esac
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030   (eval "$ac_compile") 2>conftest.er1
13031   ac_status=$?
13032   grep -v '^ *+' conftest.er1 >conftest.err
13033   rm -f conftest.er1
13034   cat conftest.err >&5
13035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036   (exit $ac_status); } &&
13037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13038   { (case "(($ac_try" in
13039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040   *) ac_try_echo=$ac_try;;
13041 esac
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043   (eval "$ac_try") 2>&5
13044   ac_status=$?
13045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046   (exit $ac_status); }; } &&
13047          { ac_try='test -s conftest.$ac_objext'
13048   { (case "(($ac_try" in
13049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050   *) ac_try_echo=$ac_try;;
13051 esac
13052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053   (eval "$ac_try") 2>&5
13054   ac_status=$?
13055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056   (exit $ac_status); }; }; then
13057   ac_header_compiler=yes
13058 else
13059   echo "$as_me: failed program was:" >&5
13060 sed 's/^/| /' conftest.$ac_ext >&5
13061
13062         ac_header_compiler=no
13063 fi
13064
13065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13067 echo "${ECHO_T}$ac_header_compiler" >&6; }
13068
13069 # Is the header present?
13070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13072 cat >conftest.$ac_ext <<_ACEOF
13073 /* confdefs.h.  */
13074 _ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h.  */
13078 #include <$ac_header>
13079 _ACEOF
13080 if { (ac_try="$ac_cpp conftest.$ac_ext"
13081 case "(($ac_try" in
13082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13083   *) ac_try_echo=$ac_try;;
13084 esac
13085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13087   ac_status=$?
13088   grep -v '^ *+' conftest.er1 >conftest.err
13089   rm -f conftest.er1
13090   cat conftest.err >&5
13091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13092   (exit $ac_status); } >/dev/null; then
13093   if test -s conftest.err; then
13094     ac_cpp_err=$ac_c_preproc_warn_flag
13095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13096   else
13097     ac_cpp_err=
13098   fi
13099 else
13100   ac_cpp_err=yes
13101 fi
13102 if test -z "$ac_cpp_err"; then
13103   ac_header_preproc=yes
13104 else
13105   echo "$as_me: failed program was:" >&5
13106 sed 's/^/| /' conftest.$ac_ext >&5
13107
13108   ac_header_preproc=no
13109 fi
13110
13111 rm -f conftest.err conftest.$ac_ext
13112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13113 echo "${ECHO_T}$ac_header_preproc" >&6; }
13114
13115 # So?  What about this header?
13116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13117   yes:no: )
13118     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13122     ac_header_preproc=yes
13123     ;;
13124   no:yes:* )
13125     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13127     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13128 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13129     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13131     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13132 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13135     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13137     ( cat <<\_ASBOX
13138 ## ------------------------------------ ##
13139 ## Report this to http://llvm.org/bugs/ ##
13140 ## ------------------------------------ ##
13141 _ASBOX
13142      ) | sed "s/^/$as_me: WARNING:     /" >&2
13143     ;;
13144 esac
13145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13148   echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150   eval "$as_ac_Header=\$ac_header_preproc"
13151 fi
13152 ac_res=`eval echo '${'$as_ac_Header'}'`
13153                { echo "$as_me:$LINENO: result: $ac_res" >&5
13154 echo "${ECHO_T}$ac_res" >&6; }
13155
13156 fi
13157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13158   cat >>confdefs.h <<_ACEOF
13159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13160 _ACEOF
13161
13162 fi
13163
13164 done
13165
13166 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
13167 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
13168 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
13169   echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171   cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h.  */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h.  */
13177 #include <fenv.h>
13178
13179 int
13180 main ()
13181 {
13182 #ifndef FE_ALL_EXCEPT
13183   char *p = (char *) FE_ALL_EXCEPT;
13184   return !p;
13185 #endif
13186
13187   ;
13188   return 0;
13189 }
13190 _ACEOF
13191 rm -f conftest.$ac_objext
13192 if { (ac_try="$ac_compile"
13193 case "(($ac_try" in
13194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195   *) ac_try_echo=$ac_try;;
13196 esac
13197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13198   (eval "$ac_compile") 2>conftest.er1
13199   ac_status=$?
13200   grep -v '^ *+' conftest.er1 >conftest.err
13201   rm -f conftest.er1
13202   cat conftest.err >&5
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); } &&
13205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13206   { (case "(($ac_try" in
13207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208   *) ac_try_echo=$ac_try;;
13209 esac
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211   (eval "$ac_try") 2>&5
13212   ac_status=$?
13213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214   (exit $ac_status); }; } &&
13215          { ac_try='test -s conftest.$ac_objext'
13216   { (case "(($ac_try" in
13217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218   *) ac_try_echo=$ac_try;;
13219 esac
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221   (eval "$ac_try") 2>&5
13222   ac_status=$?
13223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224   (exit $ac_status); }; }; then
13225   ac_cv_have_decl_FE_ALL_EXCEPT=yes
13226 else
13227   echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13229
13230         ac_cv_have_decl_FE_ALL_EXCEPT=no
13231 fi
13232
13233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13234 fi
13235 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
13236 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
13237 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
13238
13239 cat >>confdefs.h <<_ACEOF
13240 #define HAVE_DECL_FE_ALL_EXCEPT 1
13241 _ACEOF
13242
13243
13244 else
13245   cat >>confdefs.h <<_ACEOF
13246 #define HAVE_DECL_FE_ALL_EXCEPT 0
13247 _ACEOF
13248
13249
13250 fi
13251 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
13252 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
13253 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
13254   echo $ECHO_N "(cached) $ECHO_C" >&6
13255 else
13256   cat >conftest.$ac_ext <<_ACEOF
13257 /* confdefs.h.  */
13258 _ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h.  */
13262 #include <fenv.h>
13263
13264 int
13265 main ()
13266 {
13267 #ifndef FE_INEXACT
13268   char *p = (char *) FE_INEXACT;
13269   return !p;
13270 #endif
13271
13272   ;
13273   return 0;
13274 }
13275 _ACEOF
13276 rm -f conftest.$ac_objext
13277 if { (ac_try="$ac_compile"
13278 case "(($ac_try" in
13279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280   *) ac_try_echo=$ac_try;;
13281 esac
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283   (eval "$ac_compile") 2>conftest.er1
13284   ac_status=$?
13285   grep -v '^ *+' conftest.er1 >conftest.err
13286   rm -f conftest.er1
13287   cat conftest.err >&5
13288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289   (exit $ac_status); } &&
13290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13291   { (case "(($ac_try" in
13292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293   *) ac_try_echo=$ac_try;;
13294 esac
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296   (eval "$ac_try") 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); }; } &&
13300          { ac_try='test -s conftest.$ac_objext'
13301   { (case "(($ac_try" in
13302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303   *) ac_try_echo=$ac_try;;
13304 esac
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306   (eval "$ac_try") 2>&5
13307   ac_status=$?
13308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309   (exit $ac_status); }; }; then
13310   ac_cv_have_decl_FE_INEXACT=yes
13311 else
13312   echo "$as_me: failed program was:" >&5
13313 sed 's/^/| /' conftest.$ac_ext >&5
13314
13315         ac_cv_have_decl_FE_INEXACT=no
13316 fi
13317
13318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13319 fi
13320 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
13321 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
13322 if test $ac_cv_have_decl_FE_INEXACT = yes; then
13323
13324 cat >>confdefs.h <<_ACEOF
13325 #define HAVE_DECL_FE_INEXACT 1
13326 _ACEOF
13327
13328
13329 else
13330   cat >>confdefs.h <<_ACEOF
13331 #define HAVE_DECL_FE_INEXACT 0
13332 _ACEOF
13333
13334
13335 fi
13336
13337
13338 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13339
13340 for ac_header in pthread.h
13341 do
13342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13344   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13347   echo $ECHO_N "(cached) $ECHO_C" >&6
13348 fi
13349 ac_res=`eval echo '${'$as_ac_Header'}'`
13350                { echo "$as_me:$LINENO: result: $ac_res" >&5
13351 echo "${ECHO_T}$ac_res" >&6; }
13352 else
13353   # Is the header compilable?
13354 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h.  */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h.  */
13362 $ac_includes_default
13363 #include <$ac_header>
13364 _ACEOF
13365 rm -f conftest.$ac_objext
13366 if { (ac_try="$ac_compile"
13367 case "(($ac_try" in
13368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369   *) ac_try_echo=$ac_try;;
13370 esac
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372   (eval "$ac_compile") 2>conftest.er1
13373   ac_status=$?
13374   grep -v '^ *+' conftest.er1 >conftest.err
13375   rm -f conftest.er1
13376   cat conftest.err >&5
13377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13378   (exit $ac_status); } &&
13379          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13380   { (case "(($ac_try" in
13381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13382   *) ac_try_echo=$ac_try;;
13383 esac
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385   (eval "$ac_try") 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; } &&
13389          { ac_try='test -s conftest.$ac_objext'
13390   { (case "(($ac_try" in
13391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13392   *) ac_try_echo=$ac_try;;
13393 esac
13394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13395   (eval "$ac_try") 2>&5
13396   ac_status=$?
13397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398   (exit $ac_status); }; }; then
13399   ac_header_compiler=yes
13400 else
13401   echo "$as_me: failed program was:" >&5
13402 sed 's/^/| /' conftest.$ac_ext >&5
13403
13404         ac_header_compiler=no
13405 fi
13406
13407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13409 echo "${ECHO_T}$ac_header_compiler" >&6; }
13410
13411 # Is the header present?
13412 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13414 cat >conftest.$ac_ext <<_ACEOF
13415 /* confdefs.h.  */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h.  */
13420 #include <$ac_header>
13421 _ACEOF
13422 if { (ac_try="$ac_cpp conftest.$ac_ext"
13423 case "(($ac_try" in
13424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425   *) ac_try_echo=$ac_try;;
13426 esac
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13429   ac_status=$?
13430   grep -v '^ *+' conftest.er1 >conftest.err
13431   rm -f conftest.er1
13432   cat conftest.err >&5
13433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434   (exit $ac_status); } >/dev/null; then
13435   if test -s conftest.err; then
13436     ac_cpp_err=$ac_c_preproc_warn_flag
13437     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13438   else
13439     ac_cpp_err=
13440   fi
13441 else
13442   ac_cpp_err=yes
13443 fi
13444 if test -z "$ac_cpp_err"; then
13445   ac_header_preproc=yes
13446 else
13447   echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450   ac_header_preproc=no
13451 fi
13452
13453 rm -f conftest.err conftest.$ac_ext
13454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13455 echo "${ECHO_T}$ac_header_preproc" >&6; }
13456
13457 # So?  What about this header?
13458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13459   yes:no: )
13460     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13461 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13463 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13464     ac_header_preproc=yes
13465     ;;
13466   no:yes:* )
13467     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13468 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13469     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13470 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13471     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13472 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13473     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13474 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13475     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13476 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13477     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13478 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13479     ( cat <<\_ASBOX
13480 ## ------------------------------------ ##
13481 ## Report this to http://llvm.org/bugs/ ##
13482 ## ------------------------------------ ##
13483 _ASBOX
13484      ) | sed "s/^/$as_me: WARNING:     /" >&2
13485     ;;
13486 esac
13487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13490   echo $ECHO_N "(cached) $ECHO_C" >&6
13491 else
13492   eval "$as_ac_Header=\$ac_header_preproc"
13493 fi
13494 ac_res=`eval echo '${'$as_ac_Header'}'`
13495                { echo "$as_me:$LINENO: result: $ac_res" >&5
13496 echo "${ECHO_T}$ac_res" >&6; }
13497
13498 fi
13499 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13500   cat >>confdefs.h <<_ACEOF
13501 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13502 _ACEOF
13503  HAVE_PTHREAD=1
13504
13505 else
13506   HAVE_PTHREAD=0
13507
13508 fi
13509
13510 done
13511
13512 else
13513   HAVE_PTHREAD=0
13514
13515 fi
13516 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13517
13518 for ac_header in zlib.h
13519 do
13520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13522   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13525   echo $ECHO_N "(cached) $ECHO_C" >&6
13526 fi
13527 ac_res=`eval echo '${'$as_ac_Header'}'`
13528                { echo "$as_me:$LINENO: result: $ac_res" >&5
13529 echo "${ECHO_T}$ac_res" >&6; }
13530 else
13531   # Is the header compilable?
13532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13534 cat >conftest.$ac_ext <<_ACEOF
13535 /* confdefs.h.  */
13536 _ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h.  */
13540 $ac_includes_default
13541 #include <$ac_header>
13542 _ACEOF
13543 rm -f conftest.$ac_objext
13544 if { (ac_try="$ac_compile"
13545 case "(($ac_try" in
13546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547   *) ac_try_echo=$ac_try;;
13548 esac
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550   (eval "$ac_compile") 2>conftest.er1
13551   ac_status=$?
13552   grep -v '^ *+' conftest.er1 >conftest.err
13553   rm -f conftest.er1
13554   cat conftest.err >&5
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); } &&
13557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13558   { (case "(($ac_try" in
13559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560   *) ac_try_echo=$ac_try;;
13561 esac
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563   (eval "$ac_try") 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; } &&
13567          { ac_try='test -s conftest.$ac_objext'
13568   { (case "(($ac_try" in
13569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570   *) ac_try_echo=$ac_try;;
13571 esac
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573   (eval "$ac_try") 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }; }; then
13577   ac_header_compiler=yes
13578 else
13579   echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13581
13582         ac_header_compiler=no
13583 fi
13584
13585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13587 echo "${ECHO_T}$ac_header_compiler" >&6; }
13588
13589 # Is the header present?
13590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13592 cat >conftest.$ac_ext <<_ACEOF
13593 /* confdefs.h.  */
13594 _ACEOF
13595 cat confdefs.h >>conftest.$ac_ext
13596 cat >>conftest.$ac_ext <<_ACEOF
13597 /* end confdefs.h.  */
13598 #include <$ac_header>
13599 _ACEOF
13600 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
13613   if test -s conftest.err; then
13614     ac_cpp_err=$ac_c_preproc_warn_flag
13615     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13616   else
13617     ac_cpp_err=
13618   fi
13619 else
13620   ac_cpp_err=yes
13621 fi
13622 if test -z "$ac_cpp_err"; then
13623   ac_header_preproc=yes
13624 else
13625   echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628   ac_header_preproc=no
13629 fi
13630
13631 rm -f conftest.err conftest.$ac_ext
13632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13633 echo "${ECHO_T}$ac_header_preproc" >&6; }
13634
13635 # So?  What about this header?
13636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13637   yes:no: )
13638     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13640     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13642     ac_header_preproc=yes
13643     ;;
13644   no:yes:* )
13645     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13647     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13648 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13649     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13651     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13652 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13653     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13655     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13657     ( cat <<\_ASBOX
13658 ## ------------------------------------ ##
13659 ## Report this to http://llvm.org/bugs/ ##
13660 ## ------------------------------------ ##
13661 _ASBOX
13662      ) | sed "s/^/$as_me: WARNING:     /" >&2
13663     ;;
13664 esac
13665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13668   echo $ECHO_N "(cached) $ECHO_C" >&6
13669 else
13670   eval "$as_ac_Header=\$ac_header_preproc"
13671 fi
13672 ac_res=`eval echo '${'$as_ac_Header'}'`
13673                { echo "$as_me:$LINENO: result: $ac_res" >&5
13674 echo "${ECHO_T}$ac_res" >&6; }
13675
13676 fi
13677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13678   cat >>confdefs.h <<_ACEOF
13679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13680 _ACEOF
13681  HAVE_LIBZ=1
13682
13683 else
13684   HAVE_LIBZ=0
13685
13686 fi
13687
13688 done
13689
13690 else
13691   HAVE_LIBZ=0
13692
13693 fi
13694
13695 if test "$llvm_cv_enable_libffi" = "yes" ; then
13696
13697
13698 for ac_header in ffi.h ffi/ffi.h
13699 do
13700 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13702   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13705   echo $ECHO_N "(cached) $ECHO_C" >&6
13706 fi
13707 ac_res=`eval echo '${'$as_ac_Header'}'`
13708                { echo "$as_me:$LINENO: result: $ac_res" >&5
13709 echo "${ECHO_T}$ac_res" >&6; }
13710 else
13711   # Is the header compilable?
13712 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13714 cat >conftest.$ac_ext <<_ACEOF
13715 /* confdefs.h.  */
13716 _ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h.  */
13720 $ac_includes_default
13721 #include <$ac_header>
13722 _ACEOF
13723 rm -f conftest.$ac_objext
13724 if { (ac_try="$ac_compile"
13725 case "(($ac_try" in
13726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727   *) ac_try_echo=$ac_try;;
13728 esac
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730   (eval "$ac_compile") 2>conftest.er1
13731   ac_status=$?
13732   grep -v '^ *+' conftest.er1 >conftest.err
13733   rm -f conftest.er1
13734   cat conftest.err >&5
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); } &&
13737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13738   { (case "(($ac_try" in
13739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740   *) ac_try_echo=$ac_try;;
13741 esac
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743   (eval "$ac_try") 2>&5
13744   ac_status=$?
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); }; } &&
13747          { ac_try='test -s conftest.$ac_objext'
13748   { (case "(($ac_try" in
13749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750   *) ac_try_echo=$ac_try;;
13751 esac
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753   (eval "$ac_try") 2>&5
13754   ac_status=$?
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); }; }; then
13757   ac_header_compiler=yes
13758 else
13759   echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13761
13762         ac_header_compiler=no
13763 fi
13764
13765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13767 echo "${ECHO_T}$ac_header_compiler" >&6; }
13768
13769 # Is the header present?
13770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13772 cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h.  */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h.  */
13778 #include <$ac_header>
13779 _ACEOF
13780 if { (ac_try="$ac_cpp conftest.$ac_ext"
13781 case "(($ac_try" in
13782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783   *) ac_try_echo=$ac_try;;
13784 esac
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13787   ac_status=$?
13788   grep -v '^ *+' conftest.er1 >conftest.err
13789   rm -f conftest.er1
13790   cat conftest.err >&5
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); } >/dev/null; then
13793   if test -s conftest.err; then
13794     ac_cpp_err=$ac_c_preproc_warn_flag
13795     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13796   else
13797     ac_cpp_err=
13798   fi
13799 else
13800   ac_cpp_err=yes
13801 fi
13802 if test -z "$ac_cpp_err"; then
13803   ac_header_preproc=yes
13804 else
13805   echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13807
13808   ac_header_preproc=no
13809 fi
13810
13811 rm -f conftest.err conftest.$ac_ext
13812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13813 echo "${ECHO_T}$ac_header_preproc" >&6; }
13814
13815 # So?  What about this header?
13816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13817   yes:no: )
13818     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13820     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13822     ac_header_preproc=yes
13823     ;;
13824   no:yes:* )
13825     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13827     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13828 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13829     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13831     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13832 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13833     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13835     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13837     ( cat <<\_ASBOX
13838 ## ------------------------------------ ##
13839 ## Report this to http://llvm.org/bugs/ ##
13840 ## ------------------------------------ ##
13841 _ASBOX
13842      ) | sed "s/^/$as_me: WARNING:     /" >&2
13843     ;;
13844 esac
13845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13848   echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850   eval "$as_ac_Header=\$ac_header_preproc"
13851 fi
13852 ac_res=`eval echo '${'$as_ac_Header'}'`
13853                { echo "$as_me:$LINENO: result: $ac_res" >&5
13854 echo "${ECHO_T}$ac_res" >&6; }
13855
13856 fi
13857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13858   cat >>confdefs.h <<_ACEOF
13859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13860 _ACEOF
13861
13862 fi
13863
13864 done
13865
13866 fi
13867
13868
13869 for ac_header in CrashReporterClient.h
13870 do
13871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13873   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13876   echo $ECHO_N "(cached) $ECHO_C" >&6
13877 fi
13878 ac_res=`eval echo '${'$as_ac_Header'}'`
13879                { echo "$as_me:$LINENO: result: $ac_res" >&5
13880 echo "${ECHO_T}$ac_res" >&6; }
13881 else
13882   # Is the header compilable?
13883 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13884 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13885 cat >conftest.$ac_ext <<_ACEOF
13886 /* confdefs.h.  */
13887 _ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h.  */
13891 $ac_includes_default
13892 #include <$ac_header>
13893 _ACEOF
13894 rm -f conftest.$ac_objext
13895 if { (ac_try="$ac_compile"
13896 case "(($ac_try" in
13897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898   *) ac_try_echo=$ac_try;;
13899 esac
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901   (eval "$ac_compile") 2>conftest.er1
13902   ac_status=$?
13903   grep -v '^ *+' conftest.er1 >conftest.err
13904   rm -f conftest.er1
13905   cat conftest.err >&5
13906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); } &&
13908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13909   { (case "(($ac_try" in
13910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911   *) ac_try_echo=$ac_try;;
13912 esac
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914   (eval "$ac_try") 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); }; } &&
13918          { ac_try='test -s conftest.$ac_objext'
13919   { (case "(($ac_try" in
13920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13921   *) ac_try_echo=$ac_try;;
13922 esac
13923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13924   (eval "$ac_try") 2>&5
13925   ac_status=$?
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); }; }; then
13928   ac_header_compiler=yes
13929 else
13930   echo "$as_me: failed program was:" >&5
13931 sed 's/^/| /' conftest.$ac_ext >&5
13932
13933         ac_header_compiler=no
13934 fi
13935
13936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13938 echo "${ECHO_T}$ac_header_compiler" >&6; }
13939
13940 # Is the header present?
13941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13943 cat >conftest.$ac_ext <<_ACEOF
13944 /* confdefs.h.  */
13945 _ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h.  */
13949 #include <$ac_header>
13950 _ACEOF
13951 if { (ac_try="$ac_cpp conftest.$ac_ext"
13952 case "(($ac_try" in
13953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13954   *) ac_try_echo=$ac_try;;
13955 esac
13956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13958   ac_status=$?
13959   grep -v '^ *+' conftest.er1 >conftest.err
13960   rm -f conftest.er1
13961   cat conftest.err >&5
13962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963   (exit $ac_status); } >/dev/null; then
13964   if test -s conftest.err; then
13965     ac_cpp_err=$ac_c_preproc_warn_flag
13966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13967   else
13968     ac_cpp_err=
13969   fi
13970 else
13971   ac_cpp_err=yes
13972 fi
13973 if test -z "$ac_cpp_err"; then
13974   ac_header_preproc=yes
13975 else
13976   echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13978
13979   ac_header_preproc=no
13980 fi
13981
13982 rm -f conftest.err conftest.$ac_ext
13983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13984 echo "${ECHO_T}$ac_header_preproc" >&6; }
13985
13986 # So?  What about this header?
13987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13988   yes:no: )
13989     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13990 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13992 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13993     ac_header_preproc=yes
13994     ;;
13995   no:yes:* )
13996     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13997 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13998     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13999 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14000     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14001 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14002     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14003 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14006     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14007 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14008     ( cat <<\_ASBOX
14009 ## ------------------------------------ ##
14010 ## Report this to http://llvm.org/bugs/ ##
14011 ## ------------------------------------ ##
14012 _ASBOX
14013      ) | sed "s/^/$as_me: WARNING:     /" >&2
14014     ;;
14015 esac
14016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14019   echo $ECHO_N "(cached) $ECHO_C" >&6
14020 else
14021   eval "$as_ac_Header=\$ac_header_preproc"
14022 fi
14023 ac_res=`eval echo '${'$as_ac_Header'}'`
14024                { echo "$as_me:$LINENO: result: $ac_res" >&5
14025 echo "${ECHO_T}$ac_res" >&6; }
14026
14027 fi
14028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14029   cat >>confdefs.h <<_ACEOF
14030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14031 _ACEOF
14032
14033 fi
14034
14035 done
14036
14037
14038 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14039 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
14040 cat >conftest.$ac_ext <<_ACEOF
14041
14042   /* confdefs.h.  */
14043 _ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h.  */
14047
14048     extern const char *__crashreporter_info__;
14049     int main() {
14050       __crashreporter_info__ = "test";
14051       return 0;
14052     }
14053
14054
14055 _ACEOF
14056 rm -f conftest.$ac_objext conftest$ac_exeext
14057 if { (ac_try="$ac_link"
14058 case "(($ac_try" in
14059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060   *) ac_try_echo=$ac_try;;
14061 esac
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063   (eval "$ac_link") 2>conftest.er1
14064   ac_status=$?
14065   grep -v '^ *+' conftest.er1 >conftest.err
14066   rm -f conftest.er1
14067   cat conftest.err >&5
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); } &&
14070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14071   { (case "(($ac_try" in
14072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073   *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076   (eval "$ac_try") 2>&5
14077   ac_status=$?
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); }; } &&
14080          { ac_try='test -s conftest$ac_exeext'
14081   { (case "(($ac_try" in
14082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083   *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086   (eval "$ac_try") 2>&5
14087   ac_status=$?
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); }; }; then
14090
14091   { echo "$as_me:$LINENO: result: yes" >&5
14092 echo "${ECHO_T}yes" >&6; }
14093
14094 cat >>confdefs.h <<\_ACEOF
14095 #define HAVE_CRASHREPORTER_INFO 1
14096 _ACEOF
14097
14098
14099 else
14100   echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14102
14103
14104   { echo "$as_me:$LINENO: result: no" >&5
14105 echo "${ECHO_T}no" >&6; }
14106
14107 cat >>confdefs.h <<\_ACEOF
14108 #define HAVE_CRASHREPORTER_INFO 0
14109 _ACEOF
14110
14111
14112 fi
14113
14114 rm -f core conftest.err conftest.$ac_objext \
14115       conftest$ac_exeext conftest.$ac_ext
14116
14117
14118
14119   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14120 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14121 if test "${ac_cv_huge_val_sanity+set}" = set; then
14122   echo $ECHO_N "(cached) $ECHO_C" >&6
14123 else
14124
14125     ac_ext=cpp
14126 ac_cpp='$CXXCPP $CPPFLAGS'
14127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14130
14131     ac_save_CXXFLAGS=$CXXFLAGS
14132     CXXFLAGS="$CXXFLAGS -pedantic"
14133     if test "$cross_compiling" = yes; then
14134   ac_cv_huge_val_sanity=yes
14135 else
14136   cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h.  */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h.  */
14142 #include <math.h>
14143 int
14144 main ()
14145 {
14146 double x = HUGE_VAL; return x != x;
14147   ;
14148   return 0;
14149 }
14150 _ACEOF
14151 rm -f conftest$ac_exeext
14152 if { (ac_try="$ac_link"
14153 case "(($ac_try" in
14154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155   *) ac_try_echo=$ac_try;;
14156 esac
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158   (eval "$ac_link") 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14162   { (case "(($ac_try" in
14163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14164   *) ac_try_echo=$ac_try;;
14165 esac
14166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14167   (eval "$ac_try") 2>&5
14168   ac_status=$?
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); }; }; then
14171   ac_cv_huge_val_sanity=yes
14172 else
14173   echo "$as_me: program exited with status $ac_status" >&5
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14176
14177 ( exit $ac_status )
14178 ac_cv_huge_val_sanity=no
14179 fi
14180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14181 fi
14182
14183
14184     CXXFLAGS=$ac_save_CXXFLAGS
14185     ac_ext=c
14186 ac_cpp='$CPP $CPPFLAGS'
14187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14190
14191
14192 fi
14193 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14194 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
14195   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14196
14197
14198 { echo "$as_me:$LINENO: checking for pid_t" >&5
14199 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14200 if test "${ac_cv_type_pid_t+set}" = set; then
14201   echo $ECHO_N "(cached) $ECHO_C" >&6
14202 else
14203   cat >conftest.$ac_ext <<_ACEOF
14204 /* confdefs.h.  */
14205 _ACEOF
14206 cat confdefs.h >>conftest.$ac_ext
14207 cat >>conftest.$ac_ext <<_ACEOF
14208 /* end confdefs.h.  */
14209 $ac_includes_default
14210 typedef pid_t ac__type_new_;
14211 int
14212 main ()
14213 {
14214 if ((ac__type_new_ *) 0)
14215   return 0;
14216 if (sizeof (ac__type_new_))
14217   return 0;
14218   ;
14219   return 0;
14220 }
14221 _ACEOF
14222 rm -f conftest.$ac_objext
14223 if { (ac_try="$ac_compile"
14224 case "(($ac_try" in
14225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14226   *) ac_try_echo=$ac_try;;
14227 esac
14228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14229   (eval "$ac_compile") 2>conftest.er1
14230   ac_status=$?
14231   grep -v '^ *+' conftest.er1 >conftest.err
14232   rm -f conftest.er1
14233   cat conftest.err >&5
14234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235   (exit $ac_status); } &&
14236          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14237   { (case "(($ac_try" in
14238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239   *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242   (eval "$ac_try") 2>&5
14243   ac_status=$?
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); }; } &&
14246          { ac_try='test -s conftest.$ac_objext'
14247   { (case "(($ac_try" in
14248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249   *) ac_try_echo=$ac_try;;
14250 esac
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252   (eval "$ac_try") 2>&5
14253   ac_status=$?
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); }; }; then
14256   ac_cv_type_pid_t=yes
14257 else
14258   echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14260
14261         ac_cv_type_pid_t=no
14262 fi
14263
14264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 fi
14266 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14267 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14268 if test $ac_cv_type_pid_t = yes; then
14269   :
14270 else
14271
14272 cat >>confdefs.h <<_ACEOF
14273 #define pid_t int
14274 _ACEOF
14275
14276 fi
14277
14278 { echo "$as_me:$LINENO: checking for size_t" >&5
14279 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14280 if test "${ac_cv_type_size_t+set}" = set; then
14281   echo $ECHO_N "(cached) $ECHO_C" >&6
14282 else
14283   cat >conftest.$ac_ext <<_ACEOF
14284 /* confdefs.h.  */
14285 _ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h.  */
14289 $ac_includes_default
14290 typedef size_t ac__type_new_;
14291 int
14292 main ()
14293 {
14294 if ((ac__type_new_ *) 0)
14295   return 0;
14296 if (sizeof (ac__type_new_))
14297   return 0;
14298   ;
14299   return 0;
14300 }
14301 _ACEOF
14302 rm -f conftest.$ac_objext
14303 if { (ac_try="$ac_compile"
14304 case "(($ac_try" in
14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306   *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309   (eval "$ac_compile") 2>conftest.er1
14310   ac_status=$?
14311   grep -v '^ *+' conftest.er1 >conftest.err
14312   rm -f conftest.er1
14313   cat conftest.err >&5
14314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315   (exit $ac_status); } &&
14316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14317   { (case "(($ac_try" in
14318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319   *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322   (eval "$ac_try") 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); }; } &&
14326          { ac_try='test -s conftest.$ac_objext'
14327   { (case "(($ac_try" in
14328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329   *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332   (eval "$ac_try") 2>&5
14333   ac_status=$?
14334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335   (exit $ac_status); }; }; then
14336   ac_cv_type_size_t=yes
14337 else
14338   echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14340
14341         ac_cv_type_size_t=no
14342 fi
14343
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 fi
14346 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14347 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14348 if test $ac_cv_type_size_t = yes; then
14349   :
14350 else
14351
14352 cat >>confdefs.h <<_ACEOF
14353 #define size_t unsigned int
14354 _ACEOF
14355
14356 fi
14357
14358
14359 cat >>confdefs.h <<_ACEOF
14360 #define RETSIGTYPE void
14361 _ACEOF
14362
14363 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14364 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14365 if test "${ac_cv_struct_tm+set}" = set; then
14366   echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14368   cat >conftest.$ac_ext <<_ACEOF
14369 /* confdefs.h.  */
14370 _ACEOF
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h.  */
14374 #include <sys/types.h>
14375 #include <time.h>
14376
14377 int
14378 main ()
14379 {
14380 struct tm *tp; tp->tm_sec;
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 rm -f conftest.$ac_objext
14386 if { (ac_try="$ac_compile"
14387 case "(($ac_try" in
14388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389   *) ac_try_echo=$ac_try;;
14390 esac
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392   (eval "$ac_compile") 2>conftest.er1
14393   ac_status=$?
14394   grep -v '^ *+' conftest.er1 >conftest.err
14395   rm -f conftest.er1
14396   cat conftest.err >&5
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); } &&
14399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14400   { (case "(($ac_try" in
14401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402   *) ac_try_echo=$ac_try;;
14403 esac
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405   (eval "$ac_try") 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; } &&
14409          { ac_try='test -s conftest.$ac_objext'
14410   { (case "(($ac_try" in
14411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412   *) ac_try_echo=$ac_try;;
14413 esac
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415   (eval "$ac_try") 2>&5
14416   ac_status=$?
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); }; }; then
14419   ac_cv_struct_tm=time.h
14420 else
14421   echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14423
14424         ac_cv_struct_tm=sys/time.h
14425 fi
14426
14427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14428 fi
14429 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14430 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14431 if test $ac_cv_struct_tm = sys/time.h; then
14432
14433 cat >>confdefs.h <<\_ACEOF
14434 #define TM_IN_SYS_TIME 1
14435 _ACEOF
14436
14437 fi
14438
14439 { echo "$as_me:$LINENO: checking for int64_t" >&5
14440 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14441 if test "${ac_cv_type_int64_t+set}" = set; then
14442   echo $ECHO_N "(cached) $ECHO_C" >&6
14443 else
14444   cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h.  */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h.  */
14450 $ac_includes_default
14451 typedef int64_t ac__type_new_;
14452 int
14453 main ()
14454 {
14455 if ((ac__type_new_ *) 0)
14456   return 0;
14457 if (sizeof (ac__type_new_))
14458   return 0;
14459   ;
14460   return 0;
14461 }
14462 _ACEOF
14463 rm -f conftest.$ac_objext
14464 if { (ac_try="$ac_compile"
14465 case "(($ac_try" in
14466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467   *) ac_try_echo=$ac_try;;
14468 esac
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470   (eval "$ac_compile") 2>conftest.er1
14471   ac_status=$?
14472   grep -v '^ *+' conftest.er1 >conftest.err
14473   rm -f conftest.er1
14474   cat conftest.err >&5
14475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476   (exit $ac_status); } &&
14477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14478   { (case "(($ac_try" in
14479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480   *) ac_try_echo=$ac_try;;
14481 esac
14482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14483   (eval "$ac_try") 2>&5
14484   ac_status=$?
14485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486   (exit $ac_status); }; } &&
14487          { ac_try='test -s conftest.$ac_objext'
14488   { (case "(($ac_try" in
14489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490   *) ac_try_echo=$ac_try;;
14491 esac
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493   (eval "$ac_try") 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); }; }; then
14497   ac_cv_type_int64_t=yes
14498 else
14499   echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502         ac_cv_type_int64_t=no
14503 fi
14504
14505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14506 fi
14507 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14508 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14509 if test $ac_cv_type_int64_t = yes; then
14510
14511 cat >>confdefs.h <<_ACEOF
14512 #define HAVE_INT64_T 1
14513 _ACEOF
14514
14515
14516 else
14517   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
14518 echo "$as_me: error: Type int64_t required but not found" >&2;}
14519    { (exit 1); exit 1; }; }
14520 fi
14521
14522 { echo "$as_me:$LINENO: checking for uint64_t" >&5
14523 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14524 if test "${ac_cv_type_uint64_t+set}" = set; then
14525   echo $ECHO_N "(cached) $ECHO_C" >&6
14526 else
14527   cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h.  */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h.  */
14533 $ac_includes_default
14534 typedef uint64_t ac__type_new_;
14535 int
14536 main ()
14537 {
14538 if ((ac__type_new_ *) 0)
14539   return 0;
14540 if (sizeof (ac__type_new_))
14541   return 0;
14542   ;
14543   return 0;
14544 }
14545 _ACEOF
14546 rm -f conftest.$ac_objext
14547 if { (ac_try="$ac_compile"
14548 case "(($ac_try" in
14549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550   *) ac_try_echo=$ac_try;;
14551 esac
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553   (eval "$ac_compile") 2>conftest.er1
14554   ac_status=$?
14555   grep -v '^ *+' conftest.er1 >conftest.err
14556   rm -f conftest.er1
14557   cat conftest.err >&5
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); } &&
14560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14561   { (case "(($ac_try" in
14562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563   *) ac_try_echo=$ac_try;;
14564 esac
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566   (eval "$ac_try") 2>&5
14567   ac_status=$?
14568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14569   (exit $ac_status); }; } &&
14570          { ac_try='test -s conftest.$ac_objext'
14571   { (case "(($ac_try" in
14572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573   *) ac_try_echo=$ac_try;;
14574 esac
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576   (eval "$ac_try") 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; }; then
14580   ac_cv_type_uint64_t=yes
14581 else
14582   echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14584
14585         ac_cv_type_uint64_t=no
14586 fi
14587
14588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589 fi
14590 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14591 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14592 if test $ac_cv_type_uint64_t = yes; then
14593
14594 cat >>confdefs.h <<_ACEOF
14595 #define HAVE_UINT64_T 1
14596 _ACEOF
14597
14598
14599 else
14600   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14601 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14602 if test "${ac_cv_type_u_int64_t+set}" = set; then
14603   echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605   cat >conftest.$ac_ext <<_ACEOF
14606 /* confdefs.h.  */
14607 _ACEOF
14608 cat confdefs.h >>conftest.$ac_ext
14609 cat >>conftest.$ac_ext <<_ACEOF
14610 /* end confdefs.h.  */
14611 $ac_includes_default
14612 typedef u_int64_t ac__type_new_;
14613 int
14614 main ()
14615 {
14616 if ((ac__type_new_ *) 0)
14617   return 0;
14618 if (sizeof (ac__type_new_))
14619   return 0;
14620   ;
14621   return 0;
14622 }
14623 _ACEOF
14624 rm -f conftest.$ac_objext
14625 if { (ac_try="$ac_compile"
14626 case "(($ac_try" in
14627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628   *) ac_try_echo=$ac_try;;
14629 esac
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631   (eval "$ac_compile") 2>conftest.er1
14632   ac_status=$?
14633   grep -v '^ *+' conftest.er1 >conftest.err
14634   rm -f conftest.er1
14635   cat conftest.err >&5
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); } &&
14638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14639   { (case "(($ac_try" in
14640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641   *) ac_try_echo=$ac_try;;
14642 esac
14643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14644   (eval "$ac_try") 2>&5
14645   ac_status=$?
14646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); }; } &&
14648          { ac_try='test -s conftest.$ac_objext'
14649   { (case "(($ac_try" in
14650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651   *) ac_try_echo=$ac_try;;
14652 esac
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654   (eval "$ac_try") 2>&5
14655   ac_status=$?
14656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657   (exit $ac_status); }; }; then
14658   ac_cv_type_u_int64_t=yes
14659 else
14660   echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14662
14663         ac_cv_type_u_int64_t=no
14664 fi
14665
14666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14667 fi
14668 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14669 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14670 if test $ac_cv_type_u_int64_t = yes; then
14671
14672 cat >>confdefs.h <<_ACEOF
14673 #define HAVE_U_INT64_T 1
14674 _ACEOF
14675
14676
14677 else
14678   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14679 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14680    { (exit 1); exit 1; }; }
14681 fi
14682
14683 fi
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14695 do
14696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14697 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14699 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14700   echo $ECHO_N "(cached) $ECHO_C" >&6
14701 else
14702   cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h.  */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h.  */
14708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14710 #define $ac_func innocuous_$ac_func
14711
14712 /* System header to define __stub macros and hopefully few prototypes,
14713     which can conflict with char $ac_func (); below.
14714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14715     <limits.h> exists even on freestanding compilers.  */
14716
14717 #ifdef __STDC__
14718 # include <limits.h>
14719 #else
14720 # include <assert.h>
14721 #endif
14722
14723 #undef $ac_func
14724
14725 /* Override any GCC internal prototype to avoid an error.
14726    Use char because int might match the return type of a GCC
14727    builtin and then its argument prototype would still apply.  */
14728 #ifdef __cplusplus
14729 extern "C"
14730 #endif
14731 char $ac_func ();
14732 /* The GNU C library defines this for functions which it implements
14733     to always fail with ENOSYS.  Some functions are actually named
14734     something starting with __ and the normal name is an alias.  */
14735 #if defined __stub_$ac_func || defined __stub___$ac_func
14736 choke me
14737 #endif
14738
14739 int
14740 main ()
14741 {
14742 return $ac_func ();
14743   ;
14744   return 0;
14745 }
14746 _ACEOF
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (ac_try="$ac_link"
14749 case "(($ac_try" in
14750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14751   *) ac_try_echo=$ac_try;;
14752 esac
14753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14754   (eval "$ac_link") 2>conftest.er1
14755   ac_status=$?
14756   grep -v '^ *+' conftest.er1 >conftest.err
14757   rm -f conftest.er1
14758   cat conftest.err >&5
14759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760   (exit $ac_status); } &&
14761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14762   { (case "(($ac_try" in
14763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764   *) ac_try_echo=$ac_try;;
14765 esac
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767   (eval "$ac_try") 2>&5
14768   ac_status=$?
14769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770   (exit $ac_status); }; } &&
14771          { ac_try='test -s conftest$ac_exeext'
14772   { (case "(($ac_try" in
14773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14774   *) ac_try_echo=$ac_try;;
14775 esac
14776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14777   (eval "$ac_try") 2>&5
14778   ac_status=$?
14779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780   (exit $ac_status); }; }; then
14781   eval "$as_ac_var=yes"
14782 else
14783   echo "$as_me: failed program was:" >&5
14784 sed 's/^/| /' conftest.$ac_ext >&5
14785
14786         eval "$as_ac_var=no"
14787 fi
14788
14789 rm -f core conftest.err conftest.$ac_objext \
14790       conftest$ac_exeext conftest.$ac_ext
14791 fi
14792 ac_res=`eval echo '${'$as_ac_var'}'`
14793                { echo "$as_me:$LINENO: result: $ac_res" >&5
14794 echo "${ECHO_T}$ac_res" >&6; }
14795 if test `eval echo '${'$as_ac_var'}'` = yes; then
14796   cat >>confdefs.h <<_ACEOF
14797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14798 _ACEOF
14799
14800 fi
14801 done
14802
14803
14804
14805
14806
14807 for ac_func in powf fmodf strtof round
14808 do
14809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14813   echo $ECHO_N "(cached) $ECHO_C" >&6
14814 else
14815   cat >conftest.$ac_ext <<_ACEOF
14816 /* confdefs.h.  */
14817 _ACEOF
14818 cat confdefs.h >>conftest.$ac_ext
14819 cat >>conftest.$ac_ext <<_ACEOF
14820 /* end confdefs.h.  */
14821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14823 #define $ac_func innocuous_$ac_func
14824
14825 /* System header to define __stub macros and hopefully few prototypes,
14826     which can conflict with char $ac_func (); below.
14827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14828     <limits.h> exists even on freestanding compilers.  */
14829
14830 #ifdef __STDC__
14831 # include <limits.h>
14832 #else
14833 # include <assert.h>
14834 #endif
14835
14836 #undef $ac_func
14837
14838 /* Override any GCC internal prototype to avoid an error.
14839    Use char because int might match the return type of a GCC
14840    builtin and then its argument prototype would still apply.  */
14841 #ifdef __cplusplus
14842 extern "C"
14843 #endif
14844 char $ac_func ();
14845 /* The GNU C library defines this for functions which it implements
14846     to always fail with ENOSYS.  Some functions are actually named
14847     something starting with __ and the normal name is an alias.  */
14848 #if defined __stub_$ac_func || defined __stub___$ac_func
14849 choke me
14850 #endif
14851
14852 int
14853 main ()
14854 {
14855 return $ac_func ();
14856   ;
14857   return 0;
14858 }
14859 _ACEOF
14860 rm -f conftest.$ac_objext conftest$ac_exeext
14861 if { (ac_try="$ac_link"
14862 case "(($ac_try" in
14863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864   *) ac_try_echo=$ac_try;;
14865 esac
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867   (eval "$ac_link") 2>conftest.er1
14868   ac_status=$?
14869   grep -v '^ *+' conftest.er1 >conftest.err
14870   rm -f conftest.er1
14871   cat conftest.err >&5
14872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873   (exit $ac_status); } &&
14874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14875   { (case "(($ac_try" in
14876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877   *) ac_try_echo=$ac_try;;
14878 esac
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880   (eval "$ac_try") 2>&5
14881   ac_status=$?
14882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883   (exit $ac_status); }; } &&
14884          { ac_try='test -s conftest$ac_exeext'
14885   { (case "(($ac_try" in
14886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887   *) ac_try_echo=$ac_try;;
14888 esac
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890   (eval "$ac_try") 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); }; }; then
14894   eval "$as_ac_var=yes"
14895 else
14896   echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899         eval "$as_ac_var=no"
14900 fi
14901
14902 rm -f core conftest.err conftest.$ac_objext \
14903       conftest$ac_exeext conftest.$ac_ext
14904 fi
14905 ac_res=`eval echo '${'$as_ac_var'}'`
14906                { echo "$as_me:$LINENO: result: $ac_res" >&5
14907 echo "${ECHO_T}$ac_res" >&6; }
14908 if test `eval echo '${'$as_ac_var'}'` = yes; then
14909   cat >>confdefs.h <<_ACEOF
14910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14911 _ACEOF
14912
14913 fi
14914 done
14915
14916
14917
14918
14919
14920
14921 for ac_func in log log2 log10 exp exp2
14922 do
14923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14927   echo $ECHO_N "(cached) $ECHO_C" >&6
14928 else
14929   cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h.  */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h.  */
14935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14937 #define $ac_func innocuous_$ac_func
14938
14939 /* System header to define __stub macros and hopefully few prototypes,
14940     which can conflict with char $ac_func (); below.
14941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14942     <limits.h> exists even on freestanding compilers.  */
14943
14944 #ifdef __STDC__
14945 # include <limits.h>
14946 #else
14947 # include <assert.h>
14948 #endif
14949
14950 #undef $ac_func
14951
14952 /* Override any GCC internal prototype to avoid an error.
14953    Use char because int might match the return type of a GCC
14954    builtin and then its argument prototype would still apply.  */
14955 #ifdef __cplusplus
14956 extern "C"
14957 #endif
14958 char $ac_func ();
14959 /* The GNU C library defines this for functions which it implements
14960     to always fail with ENOSYS.  Some functions are actually named
14961     something starting with __ and the normal name is an alias.  */
14962 #if defined __stub_$ac_func || defined __stub___$ac_func
14963 choke me
14964 #endif
14965
14966 int
14967 main ()
14968 {
14969 return $ac_func ();
14970   ;
14971   return 0;
14972 }
14973 _ACEOF
14974 rm -f conftest.$ac_objext conftest$ac_exeext
14975 if { (ac_try="$ac_link"
14976 case "(($ac_try" in
14977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978   *) ac_try_echo=$ac_try;;
14979 esac
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981   (eval "$ac_link") 2>conftest.er1
14982   ac_status=$?
14983   grep -v '^ *+' conftest.er1 >conftest.err
14984   rm -f conftest.er1
14985   cat conftest.err >&5
14986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987   (exit $ac_status); } &&
14988          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14989   { (case "(($ac_try" in
14990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991   *) ac_try_echo=$ac_try;;
14992 esac
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994   (eval "$ac_try") 2>&5
14995   ac_status=$?
14996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997   (exit $ac_status); }; } &&
14998          { ac_try='test -s conftest$ac_exeext'
14999   { (case "(($ac_try" in
15000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001   *) ac_try_echo=$ac_try;;
15002 esac
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004   (eval "$ac_try") 2>&5
15005   ac_status=$?
15006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007   (exit $ac_status); }; }; then
15008   eval "$as_ac_var=yes"
15009 else
15010   echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013         eval "$as_ac_var=no"
15014 fi
15015
15016 rm -f core conftest.err conftest.$ac_objext \
15017       conftest$ac_exeext conftest.$ac_ext
15018 fi
15019 ac_res=`eval echo '${'$as_ac_var'}'`
15020                { echo "$as_me:$LINENO: result: $ac_res" >&5
15021 echo "${ECHO_T}$ac_res" >&6; }
15022 if test `eval echo '${'$as_ac_var'}'` = yes; then
15023   cat >>confdefs.h <<_ACEOF
15024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15025 _ACEOF
15026
15027 fi
15028 done
15029
15030
15031
15032
15033
15034
15035 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
15036 do
15037 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15038 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15041   echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043   cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h.  */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h.  */
15049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15050    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15051 #define $ac_func innocuous_$ac_func
15052
15053 /* System header to define __stub macros and hopefully few prototypes,
15054     which can conflict with char $ac_func (); below.
15055     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15056     <limits.h> exists even on freestanding compilers.  */
15057
15058 #ifdef __STDC__
15059 # include <limits.h>
15060 #else
15061 # include <assert.h>
15062 #endif
15063
15064 #undef $ac_func
15065
15066 /* Override any GCC internal prototype to avoid an error.
15067    Use char because int might match the return type of a GCC
15068    builtin and then its argument prototype would still apply.  */
15069 #ifdef __cplusplus
15070 extern "C"
15071 #endif
15072 char $ac_func ();
15073 /* The GNU C library defines this for functions which it implements
15074     to always fail with ENOSYS.  Some functions are actually named
15075     something starting with __ and the normal name is an alias.  */
15076 #if defined __stub_$ac_func || defined __stub___$ac_func
15077 choke me
15078 #endif
15079
15080 int
15081 main ()
15082 {
15083 return $ac_func ();
15084   ;
15085   return 0;
15086 }
15087 _ACEOF
15088 rm -f conftest.$ac_objext conftest$ac_exeext
15089 if { (ac_try="$ac_link"
15090 case "(($ac_try" in
15091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092   *) ac_try_echo=$ac_try;;
15093 esac
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095   (eval "$ac_link") 2>conftest.er1
15096   ac_status=$?
15097   grep -v '^ *+' conftest.er1 >conftest.err
15098   rm -f conftest.er1
15099   cat conftest.err >&5
15100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101   (exit $ac_status); } &&
15102          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15103   { (case "(($ac_try" in
15104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105   *) ac_try_echo=$ac_try;;
15106 esac
15107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108   (eval "$ac_try") 2>&5
15109   ac_status=$?
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   (exit $ac_status); }; } &&
15112          { ac_try='test -s conftest$ac_exeext'
15113   { (case "(($ac_try" in
15114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115   *) ac_try_echo=$ac_try;;
15116 esac
15117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118   (eval "$ac_try") 2>&5
15119   ac_status=$?
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); }; }; then
15122   eval "$as_ac_var=yes"
15123 else
15124   echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15126
15127         eval "$as_ac_var=no"
15128 fi
15129
15130 rm -f core conftest.err conftest.$ac_objext \
15131       conftest$ac_exeext conftest.$ac_ext
15132 fi
15133 ac_res=`eval echo '${'$as_ac_var'}'`
15134                { echo "$as_me:$LINENO: result: $ac_res" >&5
15135 echo "${ECHO_T}$ac_res" >&6; }
15136 if test `eval echo '${'$as_ac_var'}'` = yes; then
15137   cat >>confdefs.h <<_ACEOF
15138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15139 _ACEOF
15140
15141 fi
15142 done
15143
15144
15145
15146
15147 for ac_func in isatty mkdtemp mkstemp
15148 do
15149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15153   echo $ECHO_N "(cached) $ECHO_C" >&6
15154 else
15155   cat >conftest.$ac_ext <<_ACEOF
15156 /* confdefs.h.  */
15157 _ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h.  */
15161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15163 #define $ac_func innocuous_$ac_func
15164
15165 /* System header to define __stub macros and hopefully few prototypes,
15166     which can conflict with char $ac_func (); below.
15167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15168     <limits.h> exists even on freestanding compilers.  */
15169
15170 #ifdef __STDC__
15171 # include <limits.h>
15172 #else
15173 # include <assert.h>
15174 #endif
15175
15176 #undef $ac_func
15177
15178 /* Override any GCC internal prototype to avoid an error.
15179    Use char because int might match the return type of a GCC
15180    builtin and then its argument prototype would still apply.  */
15181 #ifdef __cplusplus
15182 extern "C"
15183 #endif
15184 char $ac_func ();
15185 /* The GNU C library defines this for functions which it implements
15186     to always fail with ENOSYS.  Some functions are actually named
15187     something starting with __ and the normal name is an alias.  */
15188 #if defined __stub_$ac_func || defined __stub___$ac_func
15189 choke me
15190 #endif
15191
15192 int
15193 main ()
15194 {
15195 return $ac_func ();
15196   ;
15197   return 0;
15198 }
15199 _ACEOF
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (ac_try="$ac_link"
15202 case "(($ac_try" in
15203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204   *) ac_try_echo=$ac_try;;
15205 esac
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207   (eval "$ac_link") 2>conftest.er1
15208   ac_status=$?
15209   grep -v '^ *+' conftest.er1 >conftest.err
15210   rm -f conftest.er1
15211   cat conftest.err >&5
15212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213   (exit $ac_status); } &&
15214          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15215   { (case "(($ac_try" in
15216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217   *) ac_try_echo=$ac_try;;
15218 esac
15219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220   (eval "$ac_try") 2>&5
15221   ac_status=$?
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); }; } &&
15224          { ac_try='test -s conftest$ac_exeext'
15225   { (case "(($ac_try" in
15226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227   *) ac_try_echo=$ac_try;;
15228 esac
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230   (eval "$ac_try") 2>&5
15231   ac_status=$?
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); }; }; then
15234   eval "$as_ac_var=yes"
15235 else
15236   echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15238
15239         eval "$as_ac_var=no"
15240 fi
15241
15242 rm -f core conftest.err conftest.$ac_objext \
15243       conftest$ac_exeext conftest.$ac_ext
15244 fi
15245 ac_res=`eval echo '${'$as_ac_var'}'`
15246                { echo "$as_me:$LINENO: result: $ac_res" >&5
15247 echo "${ECHO_T}$ac_res" >&6; }
15248 if test `eval echo '${'$as_ac_var'}'` = yes; then
15249   cat >>confdefs.h <<_ACEOF
15250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15251 _ACEOF
15252
15253 fi
15254 done
15255
15256
15257
15258
15259
15260
15261
15262 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
15263 do
15264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15268   echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270   cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h.  */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h.  */
15276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15278 #define $ac_func innocuous_$ac_func
15279
15280 /* System header to define __stub macros and hopefully few prototypes,
15281     which can conflict with char $ac_func (); below.
15282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15283     <limits.h> exists even on freestanding compilers.  */
15284
15285 #ifdef __STDC__
15286 # include <limits.h>
15287 #else
15288 # include <assert.h>
15289 #endif
15290
15291 #undef $ac_func
15292
15293 /* Override any GCC internal prototype to avoid an error.
15294    Use char because int might match the return type of a GCC
15295    builtin and then its argument prototype would still apply.  */
15296 #ifdef __cplusplus
15297 extern "C"
15298 #endif
15299 char $ac_func ();
15300 /* The GNU C library defines this for functions which it implements
15301     to always fail with ENOSYS.  Some functions are actually named
15302     something starting with __ and the normal name is an alias.  */
15303 #if defined __stub_$ac_func || defined __stub___$ac_func
15304 choke me
15305 #endif
15306
15307 int
15308 main ()
15309 {
15310 return $ac_func ();
15311   ;
15312   return 0;
15313 }
15314 _ACEOF
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322   (eval "$ac_link") 2>conftest.er1
15323   ac_status=$?
15324   grep -v '^ *+' conftest.er1 >conftest.err
15325   rm -f conftest.er1
15326   cat conftest.err >&5
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); } &&
15329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15330   { (case "(($ac_try" in
15331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332   *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335   (eval "$ac_try") 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; } &&
15339          { ac_try='test -s conftest$ac_exeext'
15340   { (case "(($ac_try" in
15341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342   *) ac_try_echo=$ac_try;;
15343 esac
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345   (eval "$ac_try") 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; }; then
15349   eval "$as_ac_var=yes"
15350 else
15351   echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15353
15354         eval "$as_ac_var=no"
15355 fi
15356
15357 rm -f core conftest.err conftest.$ac_objext \
15358       conftest$ac_exeext conftest.$ac_ext
15359 fi
15360 ac_res=`eval echo '${'$as_ac_var'}'`
15361                { echo "$as_me:$LINENO: result: $ac_res" >&5
15362 echo "${ECHO_T}$ac_res" >&6; }
15363 if test `eval echo '${'$as_ac_var'}'` = yes; then
15364   cat >>confdefs.h <<_ACEOF
15365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15366 _ACEOF
15367
15368 fi
15369 done
15370
15371
15372
15373
15374 for ac_func in strerror strerror_r setenv
15375 do
15376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15380   echo $ECHO_N "(cached) $ECHO_C" >&6
15381 else
15382   cat >conftest.$ac_ext <<_ACEOF
15383 /* confdefs.h.  */
15384 _ACEOF
15385 cat confdefs.h >>conftest.$ac_ext
15386 cat >>conftest.$ac_ext <<_ACEOF
15387 /* end confdefs.h.  */
15388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15390 #define $ac_func innocuous_$ac_func
15391
15392 /* System header to define __stub macros and hopefully few prototypes,
15393     which can conflict with char $ac_func (); below.
15394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15395     <limits.h> exists even on freestanding compilers.  */
15396
15397 #ifdef __STDC__
15398 # include <limits.h>
15399 #else
15400 # include <assert.h>
15401 #endif
15402
15403 #undef $ac_func
15404
15405 /* Override any GCC internal prototype to avoid an error.
15406    Use char because int might match the return type of a GCC
15407    builtin and then its argument prototype would still apply.  */
15408 #ifdef __cplusplus
15409 extern "C"
15410 #endif
15411 char $ac_func ();
15412 /* The GNU C library defines this for functions which it implements
15413     to always fail with ENOSYS.  Some functions are actually named
15414     something starting with __ and the normal name is an alias.  */
15415 #if defined __stub_$ac_func || defined __stub___$ac_func
15416 choke me
15417 #endif
15418
15419 int
15420 main ()
15421 {
15422 return $ac_func ();
15423   ;
15424   return 0;
15425 }
15426 _ACEOF
15427 rm -f conftest.$ac_objext conftest$ac_exeext
15428 if { (ac_try="$ac_link"
15429 case "(($ac_try" in
15430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431   *) ac_try_echo=$ac_try;;
15432 esac
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434   (eval "$ac_link") 2>conftest.er1
15435   ac_status=$?
15436   grep -v '^ *+' conftest.er1 >conftest.err
15437   rm -f conftest.er1
15438   cat conftest.err >&5
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); } &&
15441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15442   { (case "(($ac_try" in
15443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444   *) ac_try_echo=$ac_try;;
15445 esac
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447   (eval "$ac_try") 2>&5
15448   ac_status=$?
15449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450   (exit $ac_status); }; } &&
15451          { ac_try='test -s conftest$ac_exeext'
15452   { (case "(($ac_try" in
15453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454   *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457   (eval "$ac_try") 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); }; }; then
15461   eval "$as_ac_var=yes"
15462 else
15463   echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15465
15466         eval "$as_ac_var=no"
15467 fi
15468
15469 rm -f core conftest.err conftest.$ac_objext \
15470       conftest$ac_exeext conftest.$ac_ext
15471 fi
15472 ac_res=`eval echo '${'$as_ac_var'}'`
15473                { echo "$as_me:$LINENO: result: $ac_res" >&5
15474 echo "${ECHO_T}$ac_res" >&6; }
15475 if test `eval echo '${'$as_ac_var'}'` = yes; then
15476   cat >>confdefs.h <<_ACEOF
15477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15478 _ACEOF
15479
15480 fi
15481 done
15482
15483
15484
15485
15486
15487 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
15488 do
15489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15493   echo $ECHO_N "(cached) $ECHO_C" >&6
15494 else
15495   cat >conftest.$ac_ext <<_ACEOF
15496 /* confdefs.h.  */
15497 _ACEOF
15498 cat confdefs.h >>conftest.$ac_ext
15499 cat >>conftest.$ac_ext <<_ACEOF
15500 /* end confdefs.h.  */
15501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15502    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15503 #define $ac_func innocuous_$ac_func
15504
15505 /* System header to define __stub macros and hopefully few prototypes,
15506     which can conflict with char $ac_func (); below.
15507     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15508     <limits.h> exists even on freestanding compilers.  */
15509
15510 #ifdef __STDC__
15511 # include <limits.h>
15512 #else
15513 # include <assert.h>
15514 #endif
15515
15516 #undef $ac_func
15517
15518 /* Override any GCC internal prototype to avoid an error.
15519    Use char because int might match the return type of a GCC
15520    builtin and then its argument prototype would still apply.  */
15521 #ifdef __cplusplus
15522 extern "C"
15523 #endif
15524 char $ac_func ();
15525 /* The GNU C library defines this for functions which it implements
15526     to always fail with ENOSYS.  Some functions are actually named
15527     something starting with __ and the normal name is an alias.  */
15528 #if defined __stub_$ac_func || defined __stub___$ac_func
15529 choke me
15530 #endif
15531
15532 int
15533 main ()
15534 {
15535 return $ac_func ();
15536   ;
15537   return 0;
15538 }
15539 _ACEOF
15540 rm -f conftest.$ac_objext conftest$ac_exeext
15541 if { (ac_try="$ac_link"
15542 case "(($ac_try" in
15543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544   *) ac_try_echo=$ac_try;;
15545 esac
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547   (eval "$ac_link") 2>conftest.er1
15548   ac_status=$?
15549   grep -v '^ *+' conftest.er1 >conftest.err
15550   rm -f conftest.er1
15551   cat conftest.err >&5
15552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553   (exit $ac_status); } &&
15554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15555   { (case "(($ac_try" in
15556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557   *) ac_try_echo=$ac_try;;
15558 esac
15559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15560   (eval "$ac_try") 2>&5
15561   ac_status=$?
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); }; } &&
15564          { ac_try='test -s conftest$ac_exeext'
15565   { (case "(($ac_try" in
15566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567   *) ac_try_echo=$ac_try;;
15568 esac
15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570   (eval "$ac_try") 2>&5
15571   ac_status=$?
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); }; }; then
15574   eval "$as_ac_var=yes"
15575 else
15576   echo "$as_me: failed program was:" >&5
15577 sed 's/^/| /' conftest.$ac_ext >&5
15578
15579         eval "$as_ac_var=no"
15580 fi
15581
15582 rm -f core conftest.err conftest.$ac_objext \
15583       conftest$ac_exeext conftest.$ac_ext
15584 fi
15585 ac_res=`eval echo '${'$as_ac_var'}'`
15586                { echo "$as_me:$LINENO: result: $ac_res" >&5
15587 echo "${ECHO_T}$ac_res" >&6; }
15588 if test `eval echo '${'$as_ac_var'}'` = yes; then
15589   cat >>confdefs.h <<_ACEOF
15590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15591 _ACEOF
15592
15593 fi
15594 done
15595
15596
15597
15598
15599
15600
15601 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15602 do
15603 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15604 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15605 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15607   echo $ECHO_N "(cached) $ECHO_C" >&6
15608 else
15609   cat >conftest.$ac_ext <<_ACEOF
15610 /* confdefs.h.  */
15611 _ACEOF
15612 cat confdefs.h >>conftest.$ac_ext
15613 cat >>conftest.$ac_ext <<_ACEOF
15614 /* end confdefs.h.  */
15615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15617 #define $ac_func innocuous_$ac_func
15618
15619 /* System header to define __stub macros and hopefully few prototypes,
15620     which can conflict with char $ac_func (); below.
15621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15622     <limits.h> exists even on freestanding compilers.  */
15623
15624 #ifdef __STDC__
15625 # include <limits.h>
15626 #else
15627 # include <assert.h>
15628 #endif
15629
15630 #undef $ac_func
15631
15632 /* Override any GCC internal prototype to avoid an error.
15633    Use char because int might match the return type of a GCC
15634    builtin and then its argument prototype would still apply.  */
15635 #ifdef __cplusplus
15636 extern "C"
15637 #endif
15638 char $ac_func ();
15639 /* The GNU C library defines this for functions which it implements
15640     to always fail with ENOSYS.  Some functions are actually named
15641     something starting with __ and the normal name is an alias.  */
15642 #if defined __stub_$ac_func || defined __stub___$ac_func
15643 choke me
15644 #endif
15645
15646 int
15647 main ()
15648 {
15649 return $ac_func ();
15650   ;
15651   return 0;
15652 }
15653 _ACEOF
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658   *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661   (eval "$ac_link") 2>conftest.er1
15662   ac_status=$?
15663   grep -v '^ *+' conftest.er1 >conftest.err
15664   rm -f conftest.er1
15665   cat conftest.err >&5
15666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667   (exit $ac_status); } &&
15668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15669   { (case "(($ac_try" in
15670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15671   *) ac_try_echo=$ac_try;;
15672 esac
15673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15674   (eval "$ac_try") 2>&5
15675   ac_status=$?
15676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15677   (exit $ac_status); }; } &&
15678          { ac_try='test -s conftest$ac_exeext'
15679   { (case "(($ac_try" in
15680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681   *) ac_try_echo=$ac_try;;
15682 esac
15683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15684   (eval "$ac_try") 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; }; then
15688   eval "$as_ac_var=yes"
15689 else
15690   echo "$as_me: failed program was:" >&5
15691 sed 's/^/| /' conftest.$ac_ext >&5
15692
15693         eval "$as_ac_var=no"
15694 fi
15695
15696 rm -f core conftest.err conftest.$ac_objext \
15697       conftest$ac_exeext conftest.$ac_ext
15698 fi
15699 ac_res=`eval echo '${'$as_ac_var'}'`
15700                { echo "$as_me:$LINENO: result: $ac_res" >&5
15701 echo "${ECHO_T}$ac_res" >&6; }
15702 if test `eval echo '${'$as_ac_var'}'` = yes; then
15703   cat >>confdefs.h <<_ACEOF
15704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15705 _ACEOF
15706
15707 fi
15708 done
15709
15710
15711
15712 for ac_func in futimes futimens
15713 do
15714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15718   echo $ECHO_N "(cached) $ECHO_C" >&6
15719 else
15720   cat >conftest.$ac_ext <<_ACEOF
15721 /* confdefs.h.  */
15722 _ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h.  */
15726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15727    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15728 #define $ac_func innocuous_$ac_func
15729
15730 /* System header to define __stub macros and hopefully few prototypes,
15731     which can conflict with char $ac_func (); below.
15732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15733     <limits.h> exists even on freestanding compilers.  */
15734
15735 #ifdef __STDC__
15736 # include <limits.h>
15737 #else
15738 # include <assert.h>
15739 #endif
15740
15741 #undef $ac_func
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 $ac_func ();
15750 /* The GNU C library defines this for functions which it implements
15751     to always fail with ENOSYS.  Some functions are actually named
15752     something starting with __ and the normal name is an alias.  */
15753 #if defined __stub_$ac_func || defined __stub___$ac_func
15754 choke me
15755 #endif
15756
15757 int
15758 main ()
15759 {
15760 return $ac_func ();
15761   ;
15762   return 0;
15763 }
15764 _ACEOF
15765 rm -f conftest.$ac_objext conftest$ac_exeext
15766 if { (ac_try="$ac_link"
15767 case "(($ac_try" in
15768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769   *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772   (eval "$ac_link") 2>conftest.er1
15773   ac_status=$?
15774   grep -v '^ *+' conftest.er1 >conftest.err
15775   rm -f conftest.er1
15776   cat conftest.err >&5
15777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } &&
15779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15780   { (case "(($ac_try" in
15781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782   *) ac_try_echo=$ac_try;;
15783 esac
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785   (eval "$ac_try") 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; } &&
15789          { ac_try='test -s conftest$ac_exeext'
15790   { (case "(($ac_try" in
15791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792   *) ac_try_echo=$ac_try;;
15793 esac
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795   (eval "$ac_try") 2>&5
15796   ac_status=$?
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); }; }; then
15799   eval "$as_ac_var=yes"
15800 else
15801   echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15803
15804         eval "$as_ac_var=no"
15805 fi
15806
15807 rm -f core conftest.err conftest.$ac_objext \
15808       conftest$ac_exeext conftest.$ac_ext
15809 fi
15810 ac_res=`eval echo '${'$as_ac_var'}'`
15811                { echo "$as_me:$LINENO: result: $ac_res" >&5
15812 echo "${ECHO_T}$ac_res" >&6; }
15813 if test `eval echo '${'$as_ac_var'}'` = yes; then
15814   cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15816 _ACEOF
15817
15818 fi
15819 done
15820
15821 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15822 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15823 if test "${llvm_cv_c_printf_a+set}" = set; then
15824   echo $ECHO_N "(cached) $ECHO_C" >&6
15825 else
15826   ac_ext=c
15827 ac_cpp='$CPP $CPPFLAGS'
15828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15831
15832  if test "$cross_compiling" = yes; then
15833   llvmac_cv_c_printf_a=no
15834 else
15835   cat >conftest.$ac_ext <<_ACEOF
15836
15837   /* confdefs.h.  */
15838 _ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h.  */
15842
15843 #include <stdio.h>
15844 #include <stdlib.h>
15845
15846 int
15847 main ()
15848 {
15849
15850 volatile double A, B;
15851 char Buffer[100];
15852 A = 1;
15853 A /= 10.0;
15854 sprintf(Buffer, "%a", A);
15855 B = atof(Buffer);
15856 if (A != B)
15857   return (1);
15858 if (A != 0x1.999999999999ap-4)
15859   return (1);
15860 return (0);
15861   ;
15862   return 0;
15863 }
15864 _ACEOF
15865 rm -f conftest$ac_exeext
15866 if { (ac_try="$ac_link"
15867 case "(($ac_try" in
15868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869   *) ac_try_echo=$ac_try;;
15870 esac
15871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15872   (eval "$ac_link") 2>&5
15873   ac_status=$?
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15876   { (case "(($ac_try" in
15877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878   *) ac_try_echo=$ac_try;;
15879 esac
15880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15881   (eval "$ac_try") 2>&5
15882   ac_status=$?
15883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); }; }; then
15885   llvm_cv_c_printf_a=yes
15886 else
15887   echo "$as_me: program exited with status $ac_status" >&5
15888 echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15890
15891 ( exit $ac_status )
15892 llvmac_cv_c_printf_a=no
15893 fi
15894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15895 fi
15896
15897
15898  ac_ext=c
15899 ac_cpp='$CPP $CPPFLAGS'
15900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15903
15904 fi
15905 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15906 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15907  if test "$llvm_cv_c_printf_a" = "yes"; then
15908
15909 cat >>confdefs.h <<\_ACEOF
15910 #define HAVE_PRINTF_A 1
15911 _ACEOF
15912
15913  fi
15914
15915
15916
15917   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15918 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15919 if test "${ac_cv_func_rand48+set}" = set; then
15920   echo $ECHO_N "(cached) $ECHO_C" >&6
15921 else
15922
15923     ac_ext=cpp
15924 ac_cpp='$CXXCPP $CPPFLAGS'
15925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15928
15929     cat >conftest.$ac_ext <<_ACEOF
15930 /* confdefs.h.  */
15931 _ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h.  */
15935 #include <stdlib.h>
15936 int
15937 main ()
15938 {
15939 srand48(0);lrand48();drand48();
15940   ;
15941   return 0;
15942 }
15943 _ACEOF
15944 rm -f conftest.$ac_objext
15945 if { (ac_try="$ac_compile"
15946 case "(($ac_try" in
15947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948   *) ac_try_echo=$ac_try;;
15949 esac
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951   (eval "$ac_compile") 2>conftest.er1
15952   ac_status=$?
15953   grep -v '^ *+' conftest.er1 >conftest.err
15954   rm -f conftest.er1
15955   cat conftest.err >&5
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); } &&
15958          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15959   { (case "(($ac_try" in
15960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961   *) ac_try_echo=$ac_try;;
15962 esac
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964   (eval "$ac_try") 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); }; } &&
15968          { ac_try='test -s conftest.$ac_objext'
15969   { (case "(($ac_try" in
15970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971   *) ac_try_echo=$ac_try;;
15972 esac
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974   (eval "$ac_try") 2>&5
15975   ac_status=$?
15976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977   (exit $ac_status); }; }; then
15978   ac_cv_func_rand48=yes
15979 else
15980   echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15982
15983         ac_cv_func_rand48=no
15984 fi
15985
15986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987     ac_ext=c
15988 ac_cpp='$CPP $CPPFLAGS'
15989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15992
15993
15994 fi
15995 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15996 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15997
15998 if test "$ac_cv_func_rand48" = "yes" ; then
15999
16000 cat >>confdefs.h <<\_ACEOF
16001 #define HAVE_RAND48 1
16002 _ACEOF
16003
16004 fi
16005
16006
16007 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
16008 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
16009 if test "${ac_cv_have_decl_arc4random+set}" = set; then
16010   echo $ECHO_N "(cached) $ECHO_C" >&6
16011 else
16012   cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h.  */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h.  */
16018 $ac_includes_default
16019 int
16020 main ()
16021 {
16022 #ifndef arc4random
16023   char *p = (char *) arc4random;
16024   return !p;
16025 #endif
16026
16027   ;
16028   return 0;
16029 }
16030 _ACEOF
16031 rm -f conftest.$ac_objext
16032 if { (ac_try="$ac_compile"
16033 case "(($ac_try" in
16034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035   *) ac_try_echo=$ac_try;;
16036 esac
16037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038   (eval "$ac_compile") 2>conftest.er1
16039   ac_status=$?
16040   grep -v '^ *+' conftest.er1 >conftest.err
16041   rm -f conftest.er1
16042   cat conftest.err >&5
16043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044   (exit $ac_status); } &&
16045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16046   { (case "(($ac_try" in
16047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048   *) ac_try_echo=$ac_try;;
16049 esac
16050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051   (eval "$ac_try") 2>&5
16052   ac_status=$?
16053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054   (exit $ac_status); }; } &&
16055          { ac_try='test -s conftest.$ac_objext'
16056   { (case "(($ac_try" in
16057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058   *) ac_try_echo=$ac_try;;
16059 esac
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061   (eval "$ac_try") 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); }; }; then
16065   ac_cv_have_decl_arc4random=yes
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070         ac_cv_have_decl_arc4random=no
16071 fi
16072
16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074 fi
16075 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
16076 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
16077 if test $ac_cv_have_decl_arc4random = yes; then
16078
16079 cat >>confdefs.h <<_ACEOF
16080 #define HAVE_DECL_ARC4RANDOM 1
16081 _ACEOF
16082
16083
16084 else
16085   cat >>confdefs.h <<_ACEOF
16086 #define HAVE_DECL_ARC4RANDOM 0
16087 _ACEOF
16088
16089
16090 fi
16091
16092
16093
16094 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16095 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16096 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16097   echo $ECHO_N "(cached) $ECHO_C" >&6
16098 else
16099   cat >conftest.$ac_ext <<_ACEOF
16100 /* confdefs.h.  */
16101 _ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h.  */
16105 $ac_includes_default
16106 int
16107 main ()
16108 {
16109 #ifndef strerror_s
16110   char *p = (char *) strerror_s;
16111   return !p;
16112 #endif
16113
16114   ;
16115   return 0;
16116 }
16117 _ACEOF
16118 rm -f conftest.$ac_objext
16119 if { (ac_try="$ac_compile"
16120 case "(($ac_try" in
16121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122   *) ac_try_echo=$ac_try;;
16123 esac
16124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125   (eval "$ac_compile") 2>conftest.er1
16126   ac_status=$?
16127   grep -v '^ *+' conftest.er1 >conftest.err
16128   rm -f conftest.er1
16129   cat conftest.err >&5
16130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131   (exit $ac_status); } &&
16132          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16133   { (case "(($ac_try" in
16134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135   *) ac_try_echo=$ac_try;;
16136 esac
16137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138   (eval "$ac_try") 2>&5
16139   ac_status=$?
16140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141   (exit $ac_status); }; } &&
16142          { ac_try='test -s conftest.$ac_objext'
16143   { (case "(($ac_try" in
16144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145   *) ac_try_echo=$ac_try;;
16146 esac
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148   (eval "$ac_try") 2>&5
16149   ac_status=$?
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); }; }; then
16152   ac_cv_have_decl_strerror_s=yes
16153 else
16154   echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16156
16157         ac_cv_have_decl_strerror_s=no
16158 fi
16159
16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161 fi
16162 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16163 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16164 if test $ac_cv_have_decl_strerror_s = yes; then
16165
16166 cat >>confdefs.h <<_ACEOF
16167 #define HAVE_DECL_STRERROR_S 1
16168 _ACEOF
16169
16170
16171 else
16172   cat >>confdefs.h <<_ACEOF
16173 #define HAVE_DECL_STRERROR_S 0
16174 _ACEOF
16175
16176
16177 fi
16178
16179
16180
16181 if test "$llvm_cv_os_type" = "MingW" ; then
16182   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16183 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16184 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16185   echo $ECHO_N "(cached) $ECHO_C" >&6
16186 else
16187   ac_check_lib_save_LIBS=$LIBS
16188 LIBS="-lgcc  $LIBS"
16189 cat >conftest.$ac_ext <<_ACEOF
16190 /* confdefs.h.  */
16191 _ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h.  */
16195
16196 /* Override any GCC internal prototype to avoid an error.
16197    Use char because int might match the return type of a GCC
16198    builtin and then its argument prototype would still apply.  */
16199 #ifdef __cplusplus
16200 extern "C"
16201 #endif
16202 char _alloca ();
16203 int
16204 main ()
16205 {
16206 return _alloca ();
16207   ;
16208   return 0;
16209 }
16210 _ACEOF
16211 rm -f conftest.$ac_objext conftest$ac_exeext
16212 if { (ac_try="$ac_link"
16213 case "(($ac_try" in
16214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215   *) ac_try_echo=$ac_try;;
16216 esac
16217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218   (eval "$ac_link") 2>conftest.er1
16219   ac_status=$?
16220   grep -v '^ *+' conftest.er1 >conftest.err
16221   rm -f conftest.er1
16222   cat conftest.err >&5
16223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224   (exit $ac_status); } &&
16225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16226   { (case "(($ac_try" in
16227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228   *) ac_try_echo=$ac_try;;
16229 esac
16230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16231   (eval "$ac_try") 2>&5
16232   ac_status=$?
16233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234   (exit $ac_status); }; } &&
16235          { ac_try='test -s conftest$ac_exeext'
16236   { (case "(($ac_try" in
16237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238   *) ac_try_echo=$ac_try;;
16239 esac
16240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241   (eval "$ac_try") 2>&5
16242   ac_status=$?
16243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244   (exit $ac_status); }; }; then
16245   ac_cv_lib_gcc__alloca=yes
16246 else
16247   echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16249
16250         ac_cv_lib_gcc__alloca=no
16251 fi
16252
16253 rm -f core conftest.err conftest.$ac_objext \
16254       conftest$ac_exeext conftest.$ac_ext
16255 LIBS=$ac_check_lib_save_LIBS
16256 fi
16257 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16258 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16259 if test $ac_cv_lib_gcc__alloca = yes; then
16260
16261 cat >>confdefs.h <<\_ACEOF
16262 #define HAVE__ALLOCA 1
16263 _ACEOF
16264
16265 fi
16266
16267   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16268 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16269 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16270   echo $ECHO_N "(cached) $ECHO_C" >&6
16271 else
16272   ac_check_lib_save_LIBS=$LIBS
16273 LIBS="-lgcc  $LIBS"
16274 cat >conftest.$ac_ext <<_ACEOF
16275 /* confdefs.h.  */
16276 _ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h.  */
16280
16281 /* Override any GCC internal prototype to avoid an error.
16282    Use char because int might match the return type of a GCC
16283    builtin and then its argument prototype would still apply.  */
16284 #ifdef __cplusplus
16285 extern "C"
16286 #endif
16287 char __alloca ();
16288 int
16289 main ()
16290 {
16291 return __alloca ();
16292   ;
16293   return 0;
16294 }
16295 _ACEOF
16296 rm -f conftest.$ac_objext conftest$ac_exeext
16297 if { (ac_try="$ac_link"
16298 case "(($ac_try" in
16299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300   *) ac_try_echo=$ac_try;;
16301 esac
16302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303   (eval "$ac_link") 2>conftest.er1
16304   ac_status=$?
16305   grep -v '^ *+' conftest.er1 >conftest.err
16306   rm -f conftest.er1
16307   cat conftest.err >&5
16308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309   (exit $ac_status); } &&
16310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16311   { (case "(($ac_try" in
16312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313   *) ac_try_echo=$ac_try;;
16314 esac
16315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316   (eval "$ac_try") 2>&5
16317   ac_status=$?
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); }; } &&
16320          { ac_try='test -s conftest$ac_exeext'
16321   { (case "(($ac_try" in
16322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16323   *) ac_try_echo=$ac_try;;
16324 esac
16325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16326   (eval "$ac_try") 2>&5
16327   ac_status=$?
16328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329   (exit $ac_status); }; }; then
16330   ac_cv_lib_gcc___alloca=yes
16331 else
16332   echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16334
16335         ac_cv_lib_gcc___alloca=no
16336 fi
16337
16338 rm -f core conftest.err conftest.$ac_objext \
16339       conftest$ac_exeext conftest.$ac_ext
16340 LIBS=$ac_check_lib_save_LIBS
16341 fi
16342 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16343 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16344 if test $ac_cv_lib_gcc___alloca = yes; then
16345
16346 cat >>confdefs.h <<\_ACEOF
16347 #define HAVE___ALLOCA 1
16348 _ACEOF
16349
16350 fi
16351
16352   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16353 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16354 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16355   echo $ECHO_N "(cached) $ECHO_C" >&6
16356 else
16357   ac_check_lib_save_LIBS=$LIBS
16358 LIBS="-lgcc  $LIBS"
16359 cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h.  */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h.  */
16365
16366 /* Override any GCC internal prototype to avoid an error.
16367    Use char because int might match the return type of a GCC
16368    builtin and then its argument prototype would still apply.  */
16369 #ifdef __cplusplus
16370 extern "C"
16371 #endif
16372 char __chkstk ();
16373 int
16374 main ()
16375 {
16376 return __chkstk ();
16377   ;
16378   return 0;
16379 }
16380 _ACEOF
16381 rm -f conftest.$ac_objext conftest$ac_exeext
16382 if { (ac_try="$ac_link"
16383 case "(($ac_try" in
16384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385   *) ac_try_echo=$ac_try;;
16386 esac
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388   (eval "$ac_link") 2>conftest.er1
16389   ac_status=$?
16390   grep -v '^ *+' conftest.er1 >conftest.err
16391   rm -f conftest.er1
16392   cat conftest.err >&5
16393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394   (exit $ac_status); } &&
16395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16396   { (case "(($ac_try" in
16397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398   *) ac_try_echo=$ac_try;;
16399 esac
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401   (eval "$ac_try") 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); }; } &&
16405          { ac_try='test -s conftest$ac_exeext'
16406   { (case "(($ac_try" in
16407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408   *) ac_try_echo=$ac_try;;
16409 esac
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411   (eval "$ac_try") 2>&5
16412   ac_status=$?
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); }; }; then
16415   ac_cv_lib_gcc___chkstk=yes
16416 else
16417   echo "$as_me: failed program was:" >&5
16418 sed 's/^/| /' conftest.$ac_ext >&5
16419
16420         ac_cv_lib_gcc___chkstk=no
16421 fi
16422
16423 rm -f core conftest.err conftest.$ac_objext \
16424       conftest$ac_exeext conftest.$ac_ext
16425 LIBS=$ac_check_lib_save_LIBS
16426 fi
16427 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16428 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16429 if test $ac_cv_lib_gcc___chkstk = yes; then
16430
16431 cat >>confdefs.h <<\_ACEOF
16432 #define HAVE___CHKSTK 1
16433 _ACEOF
16434
16435 fi
16436
16437   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16438 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16439 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16440   echo $ECHO_N "(cached) $ECHO_C" >&6
16441 else
16442   ac_check_lib_save_LIBS=$LIBS
16443 LIBS="-lgcc  $LIBS"
16444 cat >conftest.$ac_ext <<_ACEOF
16445 /* confdefs.h.  */
16446 _ACEOF
16447 cat confdefs.h >>conftest.$ac_ext
16448 cat >>conftest.$ac_ext <<_ACEOF
16449 /* end confdefs.h.  */
16450
16451 /* Override any GCC internal prototype to avoid an error.
16452    Use char because int might match the return type of a GCC
16453    builtin and then its argument prototype would still apply.  */
16454 #ifdef __cplusplus
16455 extern "C"
16456 #endif
16457 char ___chkstk ();
16458 int
16459 main ()
16460 {
16461 return ___chkstk ();
16462   ;
16463   return 0;
16464 }
16465 _ACEOF
16466 rm -f conftest.$ac_objext conftest$ac_exeext
16467 if { (ac_try="$ac_link"
16468 case "(($ac_try" in
16469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470   *) ac_try_echo=$ac_try;;
16471 esac
16472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473   (eval "$ac_link") 2>conftest.er1
16474   ac_status=$?
16475   grep -v '^ *+' conftest.er1 >conftest.err
16476   rm -f conftest.er1
16477   cat conftest.err >&5
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); } &&
16480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16481   { (case "(($ac_try" in
16482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483   *) ac_try_echo=$ac_try;;
16484 esac
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486   (eval "$ac_try") 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); }; } &&
16490          { ac_try='test -s conftest$ac_exeext'
16491   { (case "(($ac_try" in
16492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16493   *) ac_try_echo=$ac_try;;
16494 esac
16495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16496   (eval "$ac_try") 2>&5
16497   ac_status=$?
16498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499   (exit $ac_status); }; }; then
16500   ac_cv_lib_gcc____chkstk=yes
16501 else
16502   echo "$as_me: failed program was:" >&5
16503 sed 's/^/| /' conftest.$ac_ext >&5
16504
16505         ac_cv_lib_gcc____chkstk=no
16506 fi
16507
16508 rm -f core conftest.err conftest.$ac_objext \
16509       conftest$ac_exeext conftest.$ac_ext
16510 LIBS=$ac_check_lib_save_LIBS
16511 fi
16512 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16513 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16514 if test $ac_cv_lib_gcc____chkstk = yes; then
16515
16516 cat >>confdefs.h <<\_ACEOF
16517 #define HAVE____CHKSTK 1
16518 _ACEOF
16519
16520 fi
16521
16522
16523   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16524 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16525 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16526   echo $ECHO_N "(cached) $ECHO_C" >&6
16527 else
16528   ac_check_lib_save_LIBS=$LIBS
16529 LIBS="-lgcc  $LIBS"
16530 cat >conftest.$ac_ext <<_ACEOF
16531 /* confdefs.h.  */
16532 _ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h.  */
16536
16537 /* Override any GCC internal prototype to avoid an error.
16538    Use char because int might match the return type of a GCC
16539    builtin and then its argument prototype would still apply.  */
16540 #ifdef __cplusplus
16541 extern "C"
16542 #endif
16543 char __ashldi3 ();
16544 int
16545 main ()
16546 {
16547 return __ashldi3 ();
16548   ;
16549   return 0;
16550 }
16551 _ACEOF
16552 rm -f conftest.$ac_objext conftest$ac_exeext
16553 if { (ac_try="$ac_link"
16554 case "(($ac_try" in
16555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16556   *) ac_try_echo=$ac_try;;
16557 esac
16558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16559   (eval "$ac_link") 2>conftest.er1
16560   ac_status=$?
16561   grep -v '^ *+' conftest.er1 >conftest.err
16562   rm -f conftest.er1
16563   cat conftest.err >&5
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); } &&
16566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16567   { (case "(($ac_try" in
16568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569   *) ac_try_echo=$ac_try;;
16570 esac
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572   (eval "$ac_try") 2>&5
16573   ac_status=$?
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); }; } &&
16576          { ac_try='test -s conftest$ac_exeext'
16577   { (case "(($ac_try" in
16578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579   *) ac_try_echo=$ac_try;;
16580 esac
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582   (eval "$ac_try") 2>&5
16583   ac_status=$?
16584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585   (exit $ac_status); }; }; then
16586   ac_cv_lib_gcc___ashldi3=yes
16587 else
16588   echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591         ac_cv_lib_gcc___ashldi3=no
16592 fi
16593
16594 rm -f core conftest.err conftest.$ac_objext \
16595       conftest$ac_exeext conftest.$ac_ext
16596 LIBS=$ac_check_lib_save_LIBS
16597 fi
16598 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16599 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16600 if test $ac_cv_lib_gcc___ashldi3 = yes; then
16601
16602 cat >>confdefs.h <<\_ACEOF
16603 #define HAVE___ASHLDI3 1
16604 _ACEOF
16605
16606 fi
16607
16608   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16609 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16610 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16611   echo $ECHO_N "(cached) $ECHO_C" >&6
16612 else
16613   ac_check_lib_save_LIBS=$LIBS
16614 LIBS="-lgcc  $LIBS"
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621
16622 /* Override any GCC internal prototype to avoid an error.
16623    Use char because int might match the return type of a GCC
16624    builtin and then its argument prototype would still apply.  */
16625 #ifdef __cplusplus
16626 extern "C"
16627 #endif
16628 char __ashrdi3 ();
16629 int
16630 main ()
16631 {
16632 return __ashrdi3 ();
16633   ;
16634   return 0;
16635 }
16636 _ACEOF
16637 rm -f conftest.$ac_objext conftest$ac_exeext
16638 if { (ac_try="$ac_link"
16639 case "(($ac_try" in
16640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16641   *) ac_try_echo=$ac_try;;
16642 esac
16643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16644   (eval "$ac_link") 2>conftest.er1
16645   ac_status=$?
16646   grep -v '^ *+' conftest.er1 >conftest.err
16647   rm -f conftest.er1
16648   cat conftest.err >&5
16649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16650   (exit $ac_status); } &&
16651          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16652   { (case "(($ac_try" in
16653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16654   *) ac_try_echo=$ac_try;;
16655 esac
16656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16657   (eval "$ac_try") 2>&5
16658   ac_status=$?
16659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660   (exit $ac_status); }; } &&
16661          { ac_try='test -s conftest$ac_exeext'
16662   { (case "(($ac_try" in
16663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664   *) ac_try_echo=$ac_try;;
16665 esac
16666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667   (eval "$ac_try") 2>&5
16668   ac_status=$?
16669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670   (exit $ac_status); }; }; then
16671   ac_cv_lib_gcc___ashrdi3=yes
16672 else
16673   echo "$as_me: failed program was:" >&5
16674 sed 's/^/| /' conftest.$ac_ext >&5
16675
16676         ac_cv_lib_gcc___ashrdi3=no
16677 fi
16678
16679 rm -f core conftest.err conftest.$ac_objext \
16680       conftest$ac_exeext conftest.$ac_ext
16681 LIBS=$ac_check_lib_save_LIBS
16682 fi
16683 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16684 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16685 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16686
16687 cat >>confdefs.h <<\_ACEOF
16688 #define HAVE___ASHRDI3 1
16689 _ACEOF
16690
16691 fi
16692
16693   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16694 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16695 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16696   echo $ECHO_N "(cached) $ECHO_C" >&6
16697 else
16698   ac_check_lib_save_LIBS=$LIBS
16699 LIBS="-lgcc  $LIBS"
16700 cat >conftest.$ac_ext <<_ACEOF
16701 /* confdefs.h.  */
16702 _ACEOF
16703 cat confdefs.h >>conftest.$ac_ext
16704 cat >>conftest.$ac_ext <<_ACEOF
16705 /* end confdefs.h.  */
16706
16707 /* Override any GCC internal prototype to avoid an error.
16708    Use char because int might match the return type of a GCC
16709    builtin and then its argument prototype would still apply.  */
16710 #ifdef __cplusplus
16711 extern "C"
16712 #endif
16713 char __divdi3 ();
16714 int
16715 main ()
16716 {
16717 return __divdi3 ();
16718   ;
16719   return 0;
16720 }
16721 _ACEOF
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (ac_try="$ac_link"
16724 case "(($ac_try" in
16725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726   *) ac_try_echo=$ac_try;;
16727 esac
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729   (eval "$ac_link") 2>conftest.er1
16730   ac_status=$?
16731   grep -v '^ *+' conftest.er1 >conftest.err
16732   rm -f conftest.er1
16733   cat conftest.err >&5
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); } &&
16736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16737   { (case "(($ac_try" in
16738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739   *) ac_try_echo=$ac_try;;
16740 esac
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742   (eval "$ac_try") 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; } &&
16746          { ac_try='test -s conftest$ac_exeext'
16747   { (case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752   (eval "$ac_try") 2>&5
16753   ac_status=$?
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); }; }; then
16756   ac_cv_lib_gcc___divdi3=yes
16757 else
16758   echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16760
16761         ac_cv_lib_gcc___divdi3=no
16762 fi
16763
16764 rm -f core conftest.err conftest.$ac_objext \
16765       conftest$ac_exeext conftest.$ac_ext
16766 LIBS=$ac_check_lib_save_LIBS
16767 fi
16768 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16769 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16770 if test $ac_cv_lib_gcc___divdi3 = yes; then
16771
16772 cat >>confdefs.h <<\_ACEOF
16773 #define HAVE___DIVDI3 1
16774 _ACEOF
16775
16776 fi
16777
16778   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16779 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16780 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16781   echo $ECHO_N "(cached) $ECHO_C" >&6
16782 else
16783   ac_check_lib_save_LIBS=$LIBS
16784 LIBS="-lgcc  $LIBS"
16785 cat >conftest.$ac_ext <<_ACEOF
16786 /* confdefs.h.  */
16787 _ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h.  */
16791
16792 /* Override any GCC internal prototype to avoid an error.
16793    Use char because int might match the return type of a GCC
16794    builtin and then its argument prototype would still apply.  */
16795 #ifdef __cplusplus
16796 extern "C"
16797 #endif
16798 char __fixdfdi ();
16799 int
16800 main ()
16801 {
16802 return __fixdfdi ();
16803   ;
16804   return 0;
16805 }
16806 _ACEOF
16807 rm -f conftest.$ac_objext conftest$ac_exeext
16808 if { (ac_try="$ac_link"
16809 case "(($ac_try" in
16810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811   *) ac_try_echo=$ac_try;;
16812 esac
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814   (eval "$ac_link") 2>conftest.er1
16815   ac_status=$?
16816   grep -v '^ *+' conftest.er1 >conftest.err
16817   rm -f conftest.er1
16818   cat conftest.err >&5
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); } &&
16821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16822   { (case "(($ac_try" in
16823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824   *) ac_try_echo=$ac_try;;
16825 esac
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827   (eval "$ac_try") 2>&5
16828   ac_status=$?
16829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830   (exit $ac_status); }; } &&
16831          { ac_try='test -s conftest$ac_exeext'
16832   { (case "(($ac_try" in
16833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834   *) ac_try_echo=$ac_try;;
16835 esac
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837   (eval "$ac_try") 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }; }; then
16841   ac_cv_lib_gcc___fixdfdi=yes
16842 else
16843   echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16845
16846         ac_cv_lib_gcc___fixdfdi=no
16847 fi
16848
16849 rm -f core conftest.err conftest.$ac_objext \
16850       conftest$ac_exeext conftest.$ac_ext
16851 LIBS=$ac_check_lib_save_LIBS
16852 fi
16853 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16854 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16855 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16856
16857 cat >>confdefs.h <<\_ACEOF
16858 #define HAVE___FIXDFDI 1
16859 _ACEOF
16860
16861 fi
16862
16863   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16864 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16865 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16866   echo $ECHO_N "(cached) $ECHO_C" >&6
16867 else
16868   ac_check_lib_save_LIBS=$LIBS
16869 LIBS="-lgcc  $LIBS"
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h.  */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h.  */
16876
16877 /* Override any GCC internal prototype to avoid an error.
16878    Use char because int might match the return type of a GCC
16879    builtin and then its argument prototype would still apply.  */
16880 #ifdef __cplusplus
16881 extern "C"
16882 #endif
16883 char __fixsfdi ();
16884 int
16885 main ()
16886 {
16887 return __fixsfdi ();
16888   ;
16889   return 0;
16890 }
16891 _ACEOF
16892 rm -f conftest.$ac_objext conftest$ac_exeext
16893 if { (ac_try="$ac_link"
16894 case "(($ac_try" in
16895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896   *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899   (eval "$ac_link") 2>conftest.er1
16900   ac_status=$?
16901   grep -v '^ *+' conftest.er1 >conftest.err
16902   rm -f conftest.er1
16903   cat conftest.err >&5
16904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905   (exit $ac_status); } &&
16906          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907   { (case "(($ac_try" in
16908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909   *) ac_try_echo=$ac_try;;
16910 esac
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912   (eval "$ac_try") 2>&5
16913   ac_status=$?
16914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915   (exit $ac_status); }; } &&
16916          { ac_try='test -s conftest$ac_exeext'
16917   { (case "(($ac_try" in
16918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919   *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922   (eval "$ac_try") 2>&5
16923   ac_status=$?
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); }; }; then
16926   ac_cv_lib_gcc___fixsfdi=yes
16927 else
16928   echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16930
16931         ac_cv_lib_gcc___fixsfdi=no
16932 fi
16933
16934 rm -f core conftest.err conftest.$ac_objext \
16935       conftest$ac_exeext conftest.$ac_ext
16936 LIBS=$ac_check_lib_save_LIBS
16937 fi
16938 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16939 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16940 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16941
16942 cat >>confdefs.h <<\_ACEOF
16943 #define HAVE___FIXSFDI 1
16944 _ACEOF
16945
16946 fi
16947
16948   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16949 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16950 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16951   echo $ECHO_N "(cached) $ECHO_C" >&6
16952 else
16953   ac_check_lib_save_LIBS=$LIBS
16954 LIBS="-lgcc  $LIBS"
16955 cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h.  */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h.  */
16961
16962 /* Override any GCC internal prototype to avoid an error.
16963    Use char because int might match the return type of a GCC
16964    builtin and then its argument prototype would still apply.  */
16965 #ifdef __cplusplus
16966 extern "C"
16967 #endif
16968 char __floatdidf ();
16969 int
16970 main ()
16971 {
16972 return __floatdidf ();
16973   ;
16974   return 0;
16975 }
16976 _ACEOF
16977 rm -f conftest.$ac_objext conftest$ac_exeext
16978 if { (ac_try="$ac_link"
16979 case "(($ac_try" in
16980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981   *) ac_try_echo=$ac_try;;
16982 esac
16983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16984   (eval "$ac_link") 2>conftest.er1
16985   ac_status=$?
16986   grep -v '^ *+' conftest.er1 >conftest.err
16987   rm -f conftest.er1
16988   cat conftest.err >&5
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); } &&
16991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16992   { (case "(($ac_try" in
16993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994   *) ac_try_echo=$ac_try;;
16995 esac
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997   (eval "$ac_try") 2>&5
16998   ac_status=$?
16999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000   (exit $ac_status); }; } &&
17001          { ac_try='test -s conftest$ac_exeext'
17002   { (case "(($ac_try" in
17003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004   *) ac_try_echo=$ac_try;;
17005 esac
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007   (eval "$ac_try") 2>&5
17008   ac_status=$?
17009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010   (exit $ac_status); }; }; then
17011   ac_cv_lib_gcc___floatdidf=yes
17012 else
17013   echo "$as_me: failed program was:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17015
17016         ac_cv_lib_gcc___floatdidf=no
17017 fi
17018
17019 rm -f core conftest.err conftest.$ac_objext \
17020       conftest$ac_exeext conftest.$ac_ext
17021 LIBS=$ac_check_lib_save_LIBS
17022 fi
17023 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
17024 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
17025 if test $ac_cv_lib_gcc___floatdidf = yes; then
17026
17027 cat >>confdefs.h <<\_ACEOF
17028 #define HAVE___FLOATDIDF 1
17029 _ACEOF
17030
17031 fi
17032
17033   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
17034 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
17035 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
17036   echo $ECHO_N "(cached) $ECHO_C" >&6
17037 else
17038   ac_check_lib_save_LIBS=$LIBS
17039 LIBS="-lgcc  $LIBS"
17040 cat >conftest.$ac_ext <<_ACEOF
17041 /* confdefs.h.  */
17042 _ACEOF
17043 cat confdefs.h >>conftest.$ac_ext
17044 cat >>conftest.$ac_ext <<_ACEOF
17045 /* end confdefs.h.  */
17046
17047 /* Override any GCC internal prototype to avoid an error.
17048    Use char because int might match the return type of a GCC
17049    builtin and then its argument prototype would still apply.  */
17050 #ifdef __cplusplus
17051 extern "C"
17052 #endif
17053 char __lshrdi3 ();
17054 int
17055 main ()
17056 {
17057 return __lshrdi3 ();
17058   ;
17059   return 0;
17060 }
17061 _ACEOF
17062 rm -f conftest.$ac_objext conftest$ac_exeext
17063 if { (ac_try="$ac_link"
17064 case "(($ac_try" in
17065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066   *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069   (eval "$ac_link") 2>conftest.er1
17070   ac_status=$?
17071   grep -v '^ *+' conftest.er1 >conftest.err
17072   rm -f conftest.er1
17073   cat conftest.err >&5
17074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075   (exit $ac_status); } &&
17076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17077   { (case "(($ac_try" in
17078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079   *) ac_try_echo=$ac_try;;
17080 esac
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082   (eval "$ac_try") 2>&5
17083   ac_status=$?
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); }; } &&
17086          { ac_try='test -s conftest$ac_exeext'
17087   { (case "(($ac_try" in
17088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089   *) ac_try_echo=$ac_try;;
17090 esac
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092   (eval "$ac_try") 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; }; then
17096   ac_cv_lib_gcc___lshrdi3=yes
17097 else
17098   echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17100
17101         ac_cv_lib_gcc___lshrdi3=no
17102 fi
17103
17104 rm -f core conftest.err conftest.$ac_objext \
17105       conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17107 fi
17108 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17109 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17110 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17111
17112 cat >>confdefs.h <<\_ACEOF
17113 #define HAVE___LSHRDI3 1
17114 _ACEOF
17115
17116 fi
17117
17118   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17119 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17120 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17121   echo $ECHO_N "(cached) $ECHO_C" >&6
17122 else
17123   ac_check_lib_save_LIBS=$LIBS
17124 LIBS="-lgcc  $LIBS"
17125 cat >conftest.$ac_ext <<_ACEOF
17126 /* confdefs.h.  */
17127 _ACEOF
17128 cat confdefs.h >>conftest.$ac_ext
17129 cat >>conftest.$ac_ext <<_ACEOF
17130 /* end confdefs.h.  */
17131
17132 /* Override any GCC internal prototype to avoid an error.
17133    Use char because int might match the return type of a GCC
17134    builtin and then its argument prototype would still apply.  */
17135 #ifdef __cplusplus
17136 extern "C"
17137 #endif
17138 char __moddi3 ();
17139 int
17140 main ()
17141 {
17142 return __moddi3 ();
17143   ;
17144   return 0;
17145 }
17146 _ACEOF
17147 rm -f conftest.$ac_objext conftest$ac_exeext
17148 if { (ac_try="$ac_link"
17149 case "(($ac_try" in
17150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151   *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154   (eval "$ac_link") 2>conftest.er1
17155   ac_status=$?
17156   grep -v '^ *+' conftest.er1 >conftest.err
17157   rm -f conftest.er1
17158   cat conftest.err >&5
17159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160   (exit $ac_status); } &&
17161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17162   { (case "(($ac_try" in
17163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17164   *) ac_try_echo=$ac_try;;
17165 esac
17166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17167   (eval "$ac_try") 2>&5
17168   ac_status=$?
17169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170   (exit $ac_status); }; } &&
17171          { ac_try='test -s conftest$ac_exeext'
17172   { (case "(($ac_try" in
17173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174   *) ac_try_echo=$ac_try;;
17175 esac
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177   (eval "$ac_try") 2>&5
17178   ac_status=$?
17179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180   (exit $ac_status); }; }; then
17181   ac_cv_lib_gcc___moddi3=yes
17182 else
17183   echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17185
17186         ac_cv_lib_gcc___moddi3=no
17187 fi
17188
17189 rm -f core conftest.err conftest.$ac_objext \
17190       conftest$ac_exeext conftest.$ac_ext
17191 LIBS=$ac_check_lib_save_LIBS
17192 fi
17193 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17194 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17195 if test $ac_cv_lib_gcc___moddi3 = yes; then
17196
17197 cat >>confdefs.h <<\_ACEOF
17198 #define HAVE___MODDI3 1
17199 _ACEOF
17200
17201 fi
17202
17203   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17204 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17205 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17206   echo $ECHO_N "(cached) $ECHO_C" >&6
17207 else
17208   ac_check_lib_save_LIBS=$LIBS
17209 LIBS="-lgcc  $LIBS"
17210 cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h.  */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h.  */
17216
17217 /* Override any GCC internal prototype to avoid an error.
17218    Use char because int might match the return type of a GCC
17219    builtin and then its argument prototype would still apply.  */
17220 #ifdef __cplusplus
17221 extern "C"
17222 #endif
17223 char __udivdi3 ();
17224 int
17225 main ()
17226 {
17227 return __udivdi3 ();
17228   ;
17229   return 0;
17230 }
17231 _ACEOF
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17240   ac_status=$?
17241   grep -v '^ *+' conftest.er1 >conftest.err
17242   rm -f conftest.er1
17243   cat conftest.err >&5
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); } &&
17246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17247   { (case "(($ac_try" in
17248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249   *) ac_try_echo=$ac_try;;
17250 esac
17251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17252   (eval "$ac_try") 2>&5
17253   ac_status=$?
17254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255   (exit $ac_status); }; } &&
17256          { ac_try='test -s conftest$ac_exeext'
17257   { (case "(($ac_try" in
17258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259   *) ac_try_echo=$ac_try;;
17260 esac
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262   (eval "$ac_try") 2>&5
17263   ac_status=$?
17264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265   (exit $ac_status); }; }; then
17266   ac_cv_lib_gcc___udivdi3=yes
17267 else
17268   echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17270
17271         ac_cv_lib_gcc___udivdi3=no
17272 fi
17273
17274 rm -f core conftest.err conftest.$ac_objext \
17275       conftest$ac_exeext conftest.$ac_ext
17276 LIBS=$ac_check_lib_save_LIBS
17277 fi
17278 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17279 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17280 if test $ac_cv_lib_gcc___udivdi3 = yes; then
17281
17282 cat >>confdefs.h <<\_ACEOF
17283 #define HAVE___UDIVDI3 1
17284 _ACEOF
17285
17286 fi
17287
17288   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17289 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17290 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17291   echo $ECHO_N "(cached) $ECHO_C" >&6
17292 else
17293   ac_check_lib_save_LIBS=$LIBS
17294 LIBS="-lgcc  $LIBS"
17295 cat >conftest.$ac_ext <<_ACEOF
17296 /* confdefs.h.  */
17297 _ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h.  */
17301
17302 /* Override any GCC internal prototype to avoid an error.
17303    Use char because int might match the return type of a GCC
17304    builtin and then its argument prototype would still apply.  */
17305 #ifdef __cplusplus
17306 extern "C"
17307 #endif
17308 char __umoddi3 ();
17309 int
17310 main ()
17311 {
17312 return __umoddi3 ();
17313   ;
17314   return 0;
17315 }
17316 _ACEOF
17317 rm -f conftest.$ac_objext conftest$ac_exeext
17318 if { (ac_try="$ac_link"
17319 case "(($ac_try" in
17320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321   *) ac_try_echo=$ac_try;;
17322 esac
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324   (eval "$ac_link") 2>conftest.er1
17325   ac_status=$?
17326   grep -v '^ *+' conftest.er1 >conftest.err
17327   rm -f conftest.er1
17328   cat conftest.err >&5
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); } &&
17331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17332   { (case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337   (eval "$ac_try") 2>&5
17338   ac_status=$?
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); }; } &&
17341          { ac_try='test -s conftest$ac_exeext'
17342   { (case "(($ac_try" in
17343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344   *) ac_try_echo=$ac_try;;
17345 esac
17346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17347   (eval "$ac_try") 2>&5
17348   ac_status=$?
17349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350   (exit $ac_status); }; }; then
17351   ac_cv_lib_gcc___umoddi3=yes
17352 else
17353   echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17355
17356         ac_cv_lib_gcc___umoddi3=no
17357 fi
17358
17359 rm -f core conftest.err conftest.$ac_objext \
17360       conftest$ac_exeext conftest.$ac_ext
17361 LIBS=$ac_check_lib_save_LIBS
17362 fi
17363 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17364 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17365 if test $ac_cv_lib_gcc___umoddi3 = yes; then
17366
17367 cat >>confdefs.h <<\_ACEOF
17368 #define HAVE___UMODDI3 1
17369 _ACEOF
17370
17371 fi
17372
17373
17374   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17375 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17376 if test "${ac_cv_lib_gcc___main+set}" = set; then
17377   echo $ECHO_N "(cached) $ECHO_C" >&6
17378 else
17379   ac_check_lib_save_LIBS=$LIBS
17380 LIBS="-lgcc  $LIBS"
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h.  */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h.  */
17387
17388 /* Override any GCC internal prototype to avoid an error.
17389    Use char because int might match the return type of a GCC
17390    builtin and then its argument prototype would still apply.  */
17391 #ifdef __cplusplus
17392 extern "C"
17393 #endif
17394 char __main ();
17395 int
17396 main ()
17397 {
17398 return __main ();
17399   ;
17400   return 0;
17401 }
17402 _ACEOF
17403 rm -f conftest.$ac_objext conftest$ac_exeext
17404 if { (ac_try="$ac_link"
17405 case "(($ac_try" in
17406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17407   *) ac_try_echo=$ac_try;;
17408 esac
17409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17410   (eval "$ac_link") 2>conftest.er1
17411   ac_status=$?
17412   grep -v '^ *+' conftest.er1 >conftest.err
17413   rm -f conftest.er1
17414   cat conftest.err >&5
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); } &&
17417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17418   { (case "(($ac_try" in
17419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420   *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423   (eval "$ac_try") 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); }; } &&
17427          { ac_try='test -s conftest$ac_exeext'
17428   { (case "(($ac_try" in
17429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17430   *) ac_try_echo=$ac_try;;
17431 esac
17432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17433   (eval "$ac_try") 2>&5
17434   ac_status=$?
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); }; }; then
17437   ac_cv_lib_gcc___main=yes
17438 else
17439   echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442         ac_cv_lib_gcc___main=no
17443 fi
17444
17445 rm -f core conftest.err conftest.$ac_objext \
17446       conftest$ac_exeext conftest.$ac_ext
17447 LIBS=$ac_check_lib_save_LIBS
17448 fi
17449 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17450 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17451 if test $ac_cv_lib_gcc___main = yes; then
17452
17453 cat >>confdefs.h <<\_ACEOF
17454 #define HAVE___MAIN 1
17455 _ACEOF
17456
17457 fi
17458
17459   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17460 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17461 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17462   echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464   ac_check_lib_save_LIBS=$LIBS
17465 LIBS="-lgcc  $LIBS"
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
17473 /* Override any GCC internal prototype to avoid an error.
17474    Use char because int might match the return type of a GCC
17475    builtin and then its argument prototype would still apply.  */
17476 #ifdef __cplusplus
17477 extern "C"
17478 #endif
17479 char __cmpdi2 ();
17480 int
17481 main ()
17482 {
17483 return __cmpdi2 ();
17484   ;
17485   return 0;
17486 }
17487 _ACEOF
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (ac_try="$ac_link"
17490 case "(($ac_try" in
17491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492   *) ac_try_echo=$ac_try;;
17493 esac
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495   (eval "$ac_link") 2>conftest.er1
17496   ac_status=$?
17497   grep -v '^ *+' conftest.er1 >conftest.err
17498   rm -f conftest.er1
17499   cat conftest.err >&5
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); } &&
17502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17503   { (case "(($ac_try" in
17504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505   *) ac_try_echo=$ac_try;;
17506 esac
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508   (eval "$ac_try") 2>&5
17509   ac_status=$?
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); }; } &&
17512          { ac_try='test -s conftest$ac_exeext'
17513   { (case "(($ac_try" in
17514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515   *) ac_try_echo=$ac_try;;
17516 esac
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518   (eval "$ac_try") 2>&5
17519   ac_status=$?
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); }; }; then
17522   ac_cv_lib_gcc___cmpdi2=yes
17523 else
17524   echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17526
17527         ac_cv_lib_gcc___cmpdi2=no
17528 fi
17529
17530 rm -f core conftest.err conftest.$ac_objext \
17531       conftest$ac_exeext conftest.$ac_ext
17532 LIBS=$ac_check_lib_save_LIBS
17533 fi
17534 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17535 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17536 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17537
17538 cat >>confdefs.h <<\_ACEOF
17539 #define HAVE___CMPDI2 1
17540 _ACEOF
17541
17542 fi
17543
17544 fi
17545
17546 if test "$llvm_cv_os_type" = "MingW" ; then
17547   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17548 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17549   cat >conftest.$ac_ext <<_ACEOF
17550
17551   /* confdefs.h.  */
17552 _ACEOF
17553 cat confdefs.h >>conftest.$ac_ext
17554 cat >>conftest.$ac_ext <<_ACEOF
17555 /* end confdefs.h.  */
17556
17557     #include <windows.h>
17558     #include <imagehlp.h>
17559     extern void foo(PENUMLOADED_MODULES_CALLBACK);
17560     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17561
17562
17563 _ACEOF
17564 rm -f conftest.$ac_objext
17565 if { (ac_try="$ac_compile"
17566 case "(($ac_try" in
17567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568   *) ac_try_echo=$ac_try;;
17569 esac
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571   (eval "$ac_compile") 2>conftest.er1
17572   ac_status=$?
17573   grep -v '^ *+' conftest.er1 >conftest.err
17574   rm -f conftest.er1
17575   cat conftest.err >&5
17576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577   (exit $ac_status); } &&
17578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17579   { (case "(($ac_try" in
17580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581   *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584   (eval "$ac_try") 2>&5
17585   ac_status=$?
17586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587   (exit $ac_status); }; } &&
17588          { ac_try='test -s conftest.$ac_objext'
17589   { (case "(($ac_try" in
17590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591   *) ac_try_echo=$ac_try;;
17592 esac
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594   (eval "$ac_try") 2>&5
17595   ac_status=$?
17596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597   (exit $ac_status); }; }; then
17598
17599   { echo "$as_me:$LINENO: result: yes" >&5
17600 echo "${ECHO_T}yes" >&6; }
17601   llvm_cv_win32_elmcb_pcstr="PCSTR"
17602
17603 else
17604   echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.$ac_ext >&5
17606
17607
17608   { echo "$as_me:$LINENO: result: no" >&5
17609 echo "${ECHO_T}no" >&6; }
17610   llvm_cv_win32_elmcb_pcstr="PSTR"
17611
17612 fi
17613
17614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17615
17616 cat >>confdefs.h <<_ACEOF
17617 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17618 _ACEOF
17619
17620 fi
17621
17622
17623
17624   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17625 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17626 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17627   echo $ECHO_N "(cached) $ECHO_C" >&6
17628 else
17629
17630     ac_ext=cpp
17631 ac_cpp='$CXXCPP $CPPFLAGS'
17632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17635
17636     cat >conftest.$ac_ext <<_ACEOF
17637 /* confdefs.h.  */
17638 _ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h.  */
17642 #include <math.h>
17643 int
17644 main ()
17645 {
17646 float f; isnan(f);
17647   ;
17648   return 0;
17649 }
17650 _ACEOF
17651 rm -f conftest.$ac_objext
17652 if { (ac_try="$ac_compile"
17653 case "(($ac_try" in
17654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655   *) ac_try_echo=$ac_try;;
17656 esac
17657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658   (eval "$ac_compile") 2>conftest.er1
17659   ac_status=$?
17660   grep -v '^ *+' conftest.er1 >conftest.err
17661   rm -f conftest.er1
17662   cat conftest.err >&5
17663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664   (exit $ac_status); } &&
17665          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17666   { (case "(($ac_try" in
17667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668   *) ac_try_echo=$ac_try;;
17669 esac
17670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17671   (eval "$ac_try") 2>&5
17672   ac_status=$?
17673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674   (exit $ac_status); }; } &&
17675          { ac_try='test -s conftest.$ac_objext'
17676   { (case "(($ac_try" in
17677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678   *) ac_try_echo=$ac_try;;
17679 esac
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681   (eval "$ac_try") 2>&5
17682   ac_status=$?
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); }; }; then
17685   ac_cv_func_isnan_in_math_h=yes
17686 else
17687   echo "$as_me: failed program was:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17689
17690         ac_cv_func_isnan_in_math_h=no
17691 fi
17692
17693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694     ac_ext=c
17695 ac_cpp='$CPP $CPPFLAGS'
17696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17699
17700
17701 fi
17702 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17703 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17704
17705
17706 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17707
17708 cat >>confdefs.h <<\_ACEOF
17709 #define HAVE_ISNAN_IN_MATH_H 1
17710 _ACEOF
17711
17712 fi
17713
17714
17715   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17716 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17717 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17718   echo $ECHO_N "(cached) $ECHO_C" >&6
17719 else
17720
17721     ac_ext=cpp
17722 ac_cpp='$CXXCPP $CPPFLAGS'
17723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17726
17727     cat >conftest.$ac_ext <<_ACEOF
17728 /* confdefs.h.  */
17729 _ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h.  */
17733 #include <cmath>
17734 int
17735 main ()
17736 {
17737 float f; isnan(f);
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext
17743 if { (ac_try="$ac_compile"
17744 case "(($ac_try" in
17745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746   *) ac_try_echo=$ac_try;;
17747 esac
17748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17749   (eval "$ac_compile") 2>conftest.er1
17750   ac_status=$?
17751   grep -v '^ *+' conftest.er1 >conftest.err
17752   rm -f conftest.er1
17753   cat conftest.err >&5
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); } &&
17756          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17757   { (case "(($ac_try" in
17758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759   *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762   (eval "$ac_try") 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; } &&
17766          { ac_try='test -s conftest.$ac_objext'
17767   { (case "(($ac_try" in
17768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769   *) ac_try_echo=$ac_try;;
17770 esac
17771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17772   (eval "$ac_try") 2>&5
17773   ac_status=$?
17774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775   (exit $ac_status); }; }; then
17776   ac_cv_func_isnan_in_cmath=yes
17777 else
17778   echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17780
17781         ac_cv_func_isnan_in_cmath=no
17782 fi
17783
17784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17785     ac_ext=c
17786 ac_cpp='$CPP $CPPFLAGS'
17787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17790
17791
17792 fi
17793 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17794 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17795
17796 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17797
17798 cat >>confdefs.h <<\_ACEOF
17799 #define HAVE_ISNAN_IN_CMATH 1
17800 _ACEOF
17801
17802 fi
17803
17804
17805   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17806 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17807 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17808   echo $ECHO_N "(cached) $ECHO_C" >&6
17809 else
17810
17811     ac_ext=cpp
17812 ac_cpp='$CXXCPP $CPPFLAGS'
17813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17816
17817     cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h.  */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h.  */
17823 #include <cmath>
17824 int
17825 main ()
17826 {
17827 float f; std::isnan(f);
17828   ;
17829   return 0;
17830 }
17831 _ACEOF
17832 rm -f conftest.$ac_objext
17833 if { (ac_try="$ac_compile"
17834 case "(($ac_try" in
17835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836   *) ac_try_echo=$ac_try;;
17837 esac
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839   (eval "$ac_compile") 2>conftest.er1
17840   ac_status=$?
17841   grep -v '^ *+' conftest.er1 >conftest.err
17842   rm -f conftest.er1
17843   cat conftest.err >&5
17844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845   (exit $ac_status); } &&
17846          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17847   { (case "(($ac_try" in
17848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849   *) ac_try_echo=$ac_try;;
17850 esac
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852   (eval "$ac_try") 2>&5
17853   ac_status=$?
17854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17855   (exit $ac_status); }; } &&
17856          { ac_try='test -s conftest.$ac_objext'
17857   { (case "(($ac_try" in
17858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859   *) ac_try_echo=$ac_try;;
17860 esac
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862   (eval "$ac_try") 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; }; then
17866   ac_cv_func_std_isnan_in_cmath=yes
17867 else
17868   echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17870
17871         ac_cv_func_std_isnan_in_cmath=no
17872 fi
17873
17874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17875     ac_ext=c
17876 ac_cpp='$CPP $CPPFLAGS'
17877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17880
17881
17882 fi
17883 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17884 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17885
17886 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17887
17888 cat >>confdefs.h <<\_ACEOF
17889 #define HAVE_STD_ISNAN_IN_CMATH 1
17890 _ACEOF
17891
17892 fi
17893
17894
17895
17896
17897   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17898 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17899 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17900   echo $ECHO_N "(cached) $ECHO_C" >&6
17901 else
17902
17903     ac_ext=cpp
17904 ac_cpp='$CXXCPP $CPPFLAGS'
17905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17908
17909     cat >conftest.$ac_ext <<_ACEOF
17910 /* confdefs.h.  */
17911 _ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h.  */
17915 #include <math.h>
17916 int
17917 main ()
17918 {
17919 float f; isinf(f);
17920   ;
17921   return 0;
17922 }
17923 _ACEOF
17924 rm -f conftest.$ac_objext
17925 if { (ac_try="$ac_compile"
17926 case "(($ac_try" in
17927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928   *) ac_try_echo=$ac_try;;
17929 esac
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931   (eval "$ac_compile") 2>conftest.er1
17932   ac_status=$?
17933   grep -v '^ *+' conftest.er1 >conftest.err
17934   rm -f conftest.er1
17935   cat conftest.err >&5
17936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937   (exit $ac_status); } &&
17938          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17939   { (case "(($ac_try" in
17940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941   *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944   (eval "$ac_try") 2>&5
17945   ac_status=$?
17946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947   (exit $ac_status); }; } &&
17948          { ac_try='test -s conftest.$ac_objext'
17949   { (case "(($ac_try" in
17950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951   *) ac_try_echo=$ac_try;;
17952 esac
17953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17954   (eval "$ac_try") 2>&5
17955   ac_status=$?
17956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957   (exit $ac_status); }; }; then
17958   ac_cv_func_isinf_in_math_h=yes
17959 else
17960   echo "$as_me: failed program was:" >&5
17961 sed 's/^/| /' conftest.$ac_ext >&5
17962
17963         ac_cv_func_isinf_in_math_h=no
17964 fi
17965
17966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17967     ac_ext=c
17968 ac_cpp='$CPP $CPPFLAGS'
17969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17972
17973
17974 fi
17975 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17976 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17977
17978 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17979
17980 cat >>confdefs.h <<\_ACEOF
17981 #define HAVE_ISINF_IN_MATH_H 1
17982 _ACEOF
17983
17984 fi
17985
17986
17987   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17988 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17989 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17990   echo $ECHO_N "(cached) $ECHO_C" >&6
17991 else
17992
17993     ac_ext=cpp
17994 ac_cpp='$CXXCPP $CPPFLAGS'
17995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17998
17999     cat >conftest.$ac_ext <<_ACEOF
18000 /* confdefs.h.  */
18001 _ACEOF
18002 cat confdefs.h >>conftest.$ac_ext
18003 cat >>conftest.$ac_ext <<_ACEOF
18004 /* end confdefs.h.  */
18005 #include <cmath>
18006 int
18007 main ()
18008 {
18009 float f; isinf(f);
18010   ;
18011   return 0;
18012 }
18013 _ACEOF
18014 rm -f conftest.$ac_objext
18015 if { (ac_try="$ac_compile"
18016 case "(($ac_try" in
18017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18018   *) ac_try_echo=$ac_try;;
18019 esac
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021   (eval "$ac_compile") 2>conftest.er1
18022   ac_status=$?
18023   grep -v '^ *+' conftest.er1 >conftest.err
18024   rm -f conftest.er1
18025   cat conftest.err >&5
18026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027   (exit $ac_status); } &&
18028          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18029   { (case "(($ac_try" in
18030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18031   *) ac_try_echo=$ac_try;;
18032 esac
18033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18034   (eval "$ac_try") 2>&5
18035   ac_status=$?
18036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037   (exit $ac_status); }; } &&
18038          { ac_try='test -s conftest.$ac_objext'
18039   { (case "(($ac_try" in
18040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18041   *) ac_try_echo=$ac_try;;
18042 esac
18043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18044   (eval "$ac_try") 2>&5
18045   ac_status=$?
18046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047   (exit $ac_status); }; }; then
18048   ac_cv_func_isinf_in_cmath=yes
18049 else
18050   echo "$as_me: failed program was:" >&5
18051 sed 's/^/| /' conftest.$ac_ext >&5
18052
18053         ac_cv_func_isinf_in_cmath=no
18054 fi
18055
18056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18057     ac_ext=c
18058 ac_cpp='$CPP $CPPFLAGS'
18059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18062
18063
18064 fi
18065 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18066 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18067
18068 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18069
18070 cat >>confdefs.h <<\_ACEOF
18071 #define HAVE_ISINF_IN_CMATH 1
18072 _ACEOF
18073
18074 fi
18075
18076
18077   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18078 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18079 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18080   echo $ECHO_N "(cached) $ECHO_C" >&6
18081 else
18082
18083     ac_ext=cpp
18084 ac_cpp='$CXXCPP $CPPFLAGS'
18085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18088
18089     cat >conftest.$ac_ext <<_ACEOF
18090 /* confdefs.h.  */
18091 _ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h.  */
18095 #include <cmath>
18096 int
18097 main ()
18098 {
18099 float f; std::isinf(f);
18100   ;
18101   return 0;
18102 }
18103 _ACEOF
18104 rm -f conftest.$ac_objext
18105 if { (ac_try="$ac_compile"
18106 case "(($ac_try" in
18107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18108   *) ac_try_echo=$ac_try;;
18109 esac
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111   (eval "$ac_compile") 2>conftest.er1
18112   ac_status=$?
18113   grep -v '^ *+' conftest.er1 >conftest.err
18114   rm -f conftest.er1
18115   cat conftest.err >&5
18116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117   (exit $ac_status); } &&
18118          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18119   { (case "(($ac_try" in
18120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121   *) ac_try_echo=$ac_try;;
18122 esac
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124   (eval "$ac_try") 2>&5
18125   ac_status=$?
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); }; } &&
18128          { ac_try='test -s conftest.$ac_objext'
18129   { (case "(($ac_try" in
18130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131   *) ac_try_echo=$ac_try;;
18132 esac
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134   (eval "$ac_try") 2>&5
18135   ac_status=$?
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); }; }; then
18138   ac_cv_func_std_isinf_in_cmath=yes
18139 else
18140   echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143         ac_cv_func_std_isinf_in_cmath=no
18144 fi
18145
18146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18147     ac_ext=c
18148 ac_cpp='$CPP $CPPFLAGS'
18149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18152
18153
18154 fi
18155 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18156 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18157
18158 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18159
18160 cat >>confdefs.h <<\_ACEOF
18161 #define HAVE_STD_ISINF_IN_CMATH 1
18162 _ACEOF
18163
18164 fi
18165
18166
18167   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18168 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18169 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18170   echo $ECHO_N "(cached) $ECHO_C" >&6
18171 else
18172
18173     ac_ext=cpp
18174 ac_cpp='$CXXCPP $CPPFLAGS'
18175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18178
18179     cat >conftest.$ac_ext <<_ACEOF
18180 /* confdefs.h.  */
18181 _ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h.  */
18185 #include <ieeefp.h>
18186 int
18187 main ()
18188 {
18189 float f; finite(f);
18190   ;
18191   return 0;
18192 }
18193 _ACEOF
18194 rm -f conftest.$ac_objext
18195 if { (ac_try="$ac_compile"
18196 case "(($ac_try" in
18197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18198   *) ac_try_echo=$ac_try;;
18199 esac
18200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18201   (eval "$ac_compile") 2>conftest.er1
18202   ac_status=$?
18203   grep -v '^ *+' conftest.er1 >conftest.err
18204   rm -f conftest.er1
18205   cat conftest.err >&5
18206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207   (exit $ac_status); } &&
18208          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18209   { (case "(($ac_try" in
18210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211   *) ac_try_echo=$ac_try;;
18212 esac
18213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18214   (eval "$ac_try") 2>&5
18215   ac_status=$?
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); }; } &&
18218          { ac_try='test -s conftest.$ac_objext'
18219   { (case "(($ac_try" in
18220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221   *) ac_try_echo=$ac_try;;
18222 esac
18223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224   (eval "$ac_try") 2>&5
18225   ac_status=$?
18226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18227   (exit $ac_status); }; }; then
18228   ac_cv_func_finite_in_ieeefp_h=yes
18229 else
18230   echo "$as_me: failed program was:" >&5
18231 sed 's/^/| /' conftest.$ac_ext >&5
18232
18233         ac_cv_func_finite_in_ieeefp_h=no
18234 fi
18235
18236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18237     ac_ext=c
18238 ac_cpp='$CPP $CPPFLAGS'
18239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18242
18243
18244 fi
18245 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18246 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18247
18248 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18249
18250 cat >>confdefs.h <<\_ACEOF
18251 #define HAVE_FINITE_IN_IEEEFP_H 1
18252 _ACEOF
18253
18254 fi
18255
18256
18257
18258 if test "$llvm_cv_platform_type" = "Unix" ; then
18259
18260
18261 for ac_header in stdlib.h unistd.h
18262 do
18263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18265   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18268   echo $ECHO_N "(cached) $ECHO_C" >&6
18269 fi
18270 ac_res=`eval echo '${'$as_ac_Header'}'`
18271                { echo "$as_me:$LINENO: result: $ac_res" >&5
18272 echo "${ECHO_T}$ac_res" >&6; }
18273 else
18274   # Is the header compilable?
18275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18277 cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h.  */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h.  */
18283 $ac_includes_default
18284 #include <$ac_header>
18285 _ACEOF
18286 rm -f conftest.$ac_objext
18287 if { (ac_try="$ac_compile"
18288 case "(($ac_try" in
18289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290   *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293   (eval "$ac_compile") 2>conftest.er1
18294   ac_status=$?
18295   grep -v '^ *+' conftest.er1 >conftest.err
18296   rm -f conftest.er1
18297   cat conftest.err >&5
18298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299   (exit $ac_status); } &&
18300          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18301   { (case "(($ac_try" in
18302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303   *) ac_try_echo=$ac_try;;
18304 esac
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306   (eval "$ac_try") 2>&5
18307   ac_status=$?
18308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309   (exit $ac_status); }; } &&
18310          { ac_try='test -s conftest.$ac_objext'
18311   { (case "(($ac_try" in
18312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313   *) ac_try_echo=$ac_try;;
18314 esac
18315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18316   (eval "$ac_try") 2>&5
18317   ac_status=$?
18318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319   (exit $ac_status); }; }; then
18320   ac_header_compiler=yes
18321 else
18322   echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18324
18325         ac_header_compiler=no
18326 fi
18327
18328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18330 echo "${ECHO_T}$ac_header_compiler" >&6; }
18331
18332 # Is the header present?
18333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18335 cat >conftest.$ac_ext <<_ACEOF
18336 /* confdefs.h.  */
18337 _ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h.  */
18341 #include <$ac_header>
18342 _ACEOF
18343 if { (ac_try="$ac_cpp conftest.$ac_ext"
18344 case "(($ac_try" in
18345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18346   *) ac_try_echo=$ac_try;;
18347 esac
18348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18349   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18350   ac_status=$?
18351   grep -v '^ *+' conftest.er1 >conftest.err
18352   rm -f conftest.er1
18353   cat conftest.err >&5
18354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355   (exit $ac_status); } >/dev/null; then
18356   if test -s conftest.err; then
18357     ac_cpp_err=$ac_c_preproc_warn_flag
18358     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18359   else
18360     ac_cpp_err=
18361   fi
18362 else
18363   ac_cpp_err=yes
18364 fi
18365 if test -z "$ac_cpp_err"; then
18366   ac_header_preproc=yes
18367 else
18368   echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18370
18371   ac_header_preproc=no
18372 fi
18373
18374 rm -f conftest.err conftest.$ac_ext
18375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18376 echo "${ECHO_T}$ac_header_preproc" >&6; }
18377
18378 # So?  What about this header?
18379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18380   yes:no: )
18381     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18383     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18384 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18385     ac_header_preproc=yes
18386     ;;
18387   no:yes:* )
18388     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18389 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18390     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18391 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18392     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18393 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18394     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18395 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18396     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18398     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18399 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18400     ( cat <<\_ASBOX
18401 ## ------------------------------------ ##
18402 ## Report this to http://llvm.org/bugs/ ##
18403 ## ------------------------------------ ##
18404 _ASBOX
18405      ) | sed "s/^/$as_me: WARNING:     /" >&2
18406     ;;
18407 esac
18408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18411   echo $ECHO_N "(cached) $ECHO_C" >&6
18412 else
18413   eval "$as_ac_Header=\$ac_header_preproc"
18414 fi
18415 ac_res=`eval echo '${'$as_ac_Header'}'`
18416                { echo "$as_me:$LINENO: result: $ac_res" >&5
18417 echo "${ECHO_T}$ac_res" >&6; }
18418
18419 fi
18420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18421   cat >>confdefs.h <<_ACEOF
18422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18423 _ACEOF
18424
18425 fi
18426
18427 done
18428
18429
18430 for ac_func in getpagesize
18431 do
18432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18436   echo $ECHO_N "(cached) $ECHO_C" >&6
18437 else
18438   cat >conftest.$ac_ext <<_ACEOF
18439 /* confdefs.h.  */
18440 _ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h.  */
18444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18445    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18446 #define $ac_func innocuous_$ac_func
18447
18448 /* System header to define __stub macros and hopefully few prototypes,
18449     which can conflict with char $ac_func (); below.
18450     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18451     <limits.h> exists even on freestanding compilers.  */
18452
18453 #ifdef __STDC__
18454 # include <limits.h>
18455 #else
18456 # include <assert.h>
18457 #endif
18458
18459 #undef $ac_func
18460
18461 /* Override any GCC internal prototype to avoid an error.
18462    Use char because int might match the return type of a GCC
18463    builtin and then its argument prototype would still apply.  */
18464 #ifdef __cplusplus
18465 extern "C"
18466 #endif
18467 char $ac_func ();
18468 /* The GNU C library defines this for functions which it implements
18469     to always fail with ENOSYS.  Some functions are actually named
18470     something starting with __ and the normal name is an alias.  */
18471 #if defined __stub_$ac_func || defined __stub___$ac_func
18472 choke me
18473 #endif
18474
18475 int
18476 main ()
18477 {
18478 return $ac_func ();
18479   ;
18480   return 0;
18481 }
18482 _ACEOF
18483 rm -f conftest.$ac_objext conftest$ac_exeext
18484 if { (ac_try="$ac_link"
18485 case "(($ac_try" in
18486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487   *) ac_try_echo=$ac_try;;
18488 esac
18489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18490   (eval "$ac_link") 2>conftest.er1
18491   ac_status=$?
18492   grep -v '^ *+' conftest.er1 >conftest.err
18493   rm -f conftest.er1
18494   cat conftest.err >&5
18495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496   (exit $ac_status); } &&
18497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18498   { (case "(($ac_try" in
18499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500   *) ac_try_echo=$ac_try;;
18501 esac
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503   (eval "$ac_try") 2>&5
18504   ac_status=$?
18505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506   (exit $ac_status); }; } &&
18507          { ac_try='test -s conftest$ac_exeext'
18508   { (case "(($ac_try" in
18509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510   *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513   (eval "$ac_try") 2>&5
18514   ac_status=$?
18515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516   (exit $ac_status); }; }; then
18517   eval "$as_ac_var=yes"
18518 else
18519   echo "$as_me: failed program was:" >&5
18520 sed 's/^/| /' conftest.$ac_ext >&5
18521
18522         eval "$as_ac_var=no"
18523 fi
18524
18525 rm -f core conftest.err conftest.$ac_objext \
18526       conftest$ac_exeext conftest.$ac_ext
18527 fi
18528 ac_res=`eval echo '${'$as_ac_var'}'`
18529                { echo "$as_me:$LINENO: result: $ac_res" >&5
18530 echo "${ECHO_T}$ac_res" >&6; }
18531 if test `eval echo '${'$as_ac_var'}'` = yes; then
18532   cat >>confdefs.h <<_ACEOF
18533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18534 _ACEOF
18535
18536 fi
18537 done
18538
18539 { echo "$as_me:$LINENO: checking for working mmap" >&5
18540 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18541 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18542   echo $ECHO_N "(cached) $ECHO_C" >&6
18543 else
18544   if test "$cross_compiling" = yes; then
18545   ac_cv_func_mmap_fixed_mapped=no
18546 else
18547   cat >conftest.$ac_ext <<_ACEOF
18548 /* confdefs.h.  */
18549 _ACEOF
18550 cat confdefs.h >>conftest.$ac_ext
18551 cat >>conftest.$ac_ext <<_ACEOF
18552 /* end confdefs.h.  */
18553 $ac_includes_default
18554 /* malloc might have been renamed as rpl_malloc. */
18555 #undef malloc
18556
18557 /* Thanks to Mike Haertel and Jim Avera for this test.
18558    Here is a matrix of mmap possibilities:
18559         mmap private not fixed
18560         mmap private fixed at somewhere currently unmapped
18561         mmap private fixed at somewhere already mapped
18562         mmap shared not fixed
18563         mmap shared fixed at somewhere currently unmapped
18564         mmap shared fixed at somewhere already mapped
18565    For private mappings, we should verify that changes cannot be read()
18566    back from the file, nor mmap's back from the file at a different
18567    address.  (There have been systems where private was not correctly
18568    implemented like the infamous i386 svr4.0, and systems where the
18569    VM page cache was not coherent with the file system buffer cache
18570    like early versions of FreeBSD and possibly contemporary NetBSD.)
18571    For shared mappings, we should conversely verify that changes get
18572    propagated back to all the places they're supposed to be.
18573
18574    Grep wants private fixed already mapped.
18575    The main things grep needs to know about mmap are:
18576    * does it exist and is it safe to write into the mmap'd area
18577    * how to use it (BSD variants)  */
18578
18579 #include <fcntl.h>
18580 #include <sys/mman.h>
18581
18582 #if !STDC_HEADERS && !HAVE_STDLIB_H
18583 char *malloc ();
18584 #endif
18585
18586 /* This mess was copied from the GNU getpagesize.h.  */
18587 #if !HAVE_GETPAGESIZE
18588 /* Assume that all systems that can run configure have sys/param.h.  */
18589 # if !HAVE_SYS_PARAM_H
18590 #  define HAVE_SYS_PARAM_H 1
18591 # endif
18592
18593 # ifdef _SC_PAGESIZE
18594 #  define getpagesize() sysconf(_SC_PAGESIZE)
18595 # else /* no _SC_PAGESIZE */
18596 #  if HAVE_SYS_PARAM_H
18597 #   include <sys/param.h>
18598 #   ifdef EXEC_PAGESIZE
18599 #    define getpagesize() EXEC_PAGESIZE
18600 #   else /* no EXEC_PAGESIZE */
18601 #    ifdef NBPG
18602 #     define getpagesize() NBPG * CLSIZE
18603 #     ifndef CLSIZE
18604 #      define CLSIZE 1
18605 #     endif /* no CLSIZE */
18606 #    else /* no NBPG */
18607 #     ifdef NBPC
18608 #      define getpagesize() NBPC
18609 #     else /* no NBPC */
18610 #      ifdef PAGESIZE
18611 #       define getpagesize() PAGESIZE
18612 #      endif /* PAGESIZE */
18613 #     endif /* no NBPC */
18614 #    endif /* no NBPG */
18615 #   endif /* no EXEC_PAGESIZE */
18616 #  else /* no HAVE_SYS_PARAM_H */
18617 #   define getpagesize() 8192   /* punt totally */
18618 #  endif /* no HAVE_SYS_PARAM_H */
18619 # endif /* no _SC_PAGESIZE */
18620
18621 #endif /* no HAVE_GETPAGESIZE */
18622
18623 int
18624 main ()
18625 {
18626   char *data, *data2, *data3;
18627   int i, pagesize;
18628   int fd;
18629
18630   pagesize = getpagesize ();
18631
18632   /* First, make a file with some known garbage in it. */
18633   data = (char *) malloc (pagesize);
18634   if (!data)
18635     return 1;
18636   for (i = 0; i < pagesize; ++i)
18637     *(data + i) = rand ();
18638   umask (0);
18639   fd = creat ("conftest.mmap", 0600);
18640   if (fd < 0)
18641     return 1;
18642   if (write (fd, data, pagesize) != pagesize)
18643     return 1;
18644   close (fd);
18645
18646   /* Next, try to mmap the file at a fixed address which already has
18647      something else allocated at it.  If we can, also make sure that
18648      we see the same garbage.  */
18649   fd = open ("conftest.mmap", O_RDWR);
18650   if (fd < 0)
18651     return 1;
18652   data2 = (char *) malloc (2 * pagesize);
18653   if (!data2)
18654     return 1;
18655   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18656   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18657                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18658     return 1;
18659   for (i = 0; i < pagesize; ++i)
18660     if (*(data + i) != *(data2 + i))
18661       return 1;
18662
18663   /* Finally, make sure that changes to the mapped area do not
18664      percolate back to the file as seen by read().  (This is a bug on
18665      some variants of i386 svr4.0.)  */
18666   for (i = 0; i < pagesize; ++i)
18667     *(data2 + i) = *(data2 + i) + 1;
18668   data3 = (char *) malloc (pagesize);
18669   if (!data3)
18670     return 1;
18671   if (read (fd, data3, pagesize) != pagesize)
18672     return 1;
18673   for (i = 0; i < pagesize; ++i)
18674     if (*(data + i) != *(data3 + i))
18675       return 1;
18676   close (fd);
18677   return 0;
18678 }
18679 _ACEOF
18680 rm -f conftest$ac_exeext
18681 if { (ac_try="$ac_link"
18682 case "(($ac_try" in
18683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684   *) ac_try_echo=$ac_try;;
18685 esac
18686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687   (eval "$ac_link") 2>&5
18688   ac_status=$?
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18691   { (case "(($ac_try" in
18692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693   *) ac_try_echo=$ac_try;;
18694 esac
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696   (eval "$ac_try") 2>&5
18697   ac_status=$?
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); }; }; then
18700   ac_cv_func_mmap_fixed_mapped=yes
18701 else
18702   echo "$as_me: program exited with status $ac_status" >&5
18703 echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18705
18706 ( exit $ac_status )
18707 ac_cv_func_mmap_fixed_mapped=no
18708 fi
18709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18710 fi
18711
18712
18713 fi
18714 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18715 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18716 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18717
18718 cat >>confdefs.h <<\_ACEOF
18719 #define HAVE_MMAP 1
18720 _ACEOF
18721
18722 fi
18723 rm -f conftest.mmap
18724
18725   { echo "$as_me:$LINENO: checking for mmap of files" >&5
18726 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18727 if test "${ac_cv_func_mmap_file+set}" = set; then
18728   echo $ECHO_N "(cached) $ECHO_C" >&6
18729 else
18730    ac_ext=c
18731 ac_cpp='$CPP $CPPFLAGS'
18732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18735
18736   if test "$cross_compiling" = yes; then
18737   ac_cv_func_mmap_file=no
18738 else
18739   cat >conftest.$ac_ext <<_ACEOF
18740
18741     /* confdefs.h.  */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h.  */
18746
18747 #include <sys/types.h>
18748 #include <sys/mman.h>
18749 #include <fcntl.h>
18750
18751 int
18752 main ()
18753 {
18754
18755   int fd;
18756   fd = creat ("foo",0777);
18757   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18758   unlink ("foo");
18759   return (fd != (int) MAP_FAILED);
18760   ;
18761   return 0;
18762 }
18763 _ACEOF
18764 rm -f conftest$ac_exeext
18765 if { (ac_try="$ac_link"
18766 case "(($ac_try" in
18767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768   *) ac_try_echo=$ac_try;;
18769 esac
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771   (eval "$ac_link") 2>&5
18772   ac_status=$?
18773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18775   { (case "(($ac_try" in
18776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18777   *) ac_try_echo=$ac_try;;
18778 esac
18779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18780   (eval "$ac_try") 2>&5
18781   ac_status=$?
18782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); }; }; then
18784   ac_cv_func_mmap_file=yes
18785 else
18786   echo "$as_me: program exited with status $ac_status" >&5
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18789
18790 ( exit $ac_status )
18791 ac_cv_func_mmap_file=no
18792 fi
18793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18794 fi
18795
18796
18797   ac_ext=c
18798 ac_cpp='$CPP $CPPFLAGS'
18799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18802
18803
18804 fi
18805 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18806 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18807 if test "$ac_cv_func_mmap_file" = yes; then
18808
18809 cat >>confdefs.h <<\_ACEOF
18810 #define HAVE_MMAP_FILE
18811 _ACEOF
18812
18813    MMAP_FILE=yes
18814
18815 fi
18816
18817   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18818 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18819 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   if test "$llvm_cv_os_type" = "Interix" ; then
18823    ac_cv_need_dev_zero_for_mmap=yes
18824  else
18825    ac_cv_need_dev_zero_for_mmap=no
18826  fi
18827
18828 fi
18829 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18830 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18831 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18832
18833 cat >>confdefs.h <<\_ACEOF
18834 #define NEED_DEV_ZERO_FOR_MMAP 1
18835 _ACEOF
18836
18837 fi
18838
18839   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18840   then
18841     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18842 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18843   fi
18844   if test "$ac_cv_func_mmap_file" = "no"
18845   then
18846     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18847 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18848   fi
18849 fi
18850
18851 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18852 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18853 ac_ext=cpp
18854 ac_cpp='$CXXCPP $CPPFLAGS'
18855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18858
18859 cat >conftest.$ac_ext <<_ACEOF
18860
18861   /* confdefs.h.  */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h.  */
18866
18867     int main() {
18868       volatile unsigned long val = 1;
18869       __sync_synchronize();
18870       __sync_val_compare_and_swap(&val, 1, 0);
18871       __sync_add_and_fetch(&val, 1);
18872       __sync_sub_and_fetch(&val, 1);
18873       return 0;
18874     }
18875
18876
18877 _ACEOF
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (ac_try="$ac_link"
18880 case "(($ac_try" in
18881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882   *) ac_try_echo=$ac_try;;
18883 esac
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885   (eval "$ac_link") 2>conftest.er1
18886   ac_status=$?
18887   grep -v '^ *+' conftest.er1 >conftest.err
18888   rm -f conftest.er1
18889   cat conftest.err >&5
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); } &&
18892          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18893   { (case "(($ac_try" in
18894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895   *) ac_try_echo=$ac_try;;
18896 esac
18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898   (eval "$ac_try") 2>&5
18899   ac_status=$?
18900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18901   (exit $ac_status); }; } &&
18902          { ac_try='test -s conftest$ac_exeext'
18903   { (case "(($ac_try" in
18904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905   *) ac_try_echo=$ac_try;;
18906 esac
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908   (eval "$ac_try") 2>&5
18909   ac_status=$?
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); }; }; then
18912
18913   { echo "$as_me:$LINENO: result: yes" >&5
18914 echo "${ECHO_T}yes" >&6; }
18915
18916 cat >>confdefs.h <<\_ACEOF
18917 #define LLVM_HAS_ATOMICS 1
18918 _ACEOF
18919
18920
18921 else
18922   echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925
18926   { echo "$as_me:$LINENO: result: no" >&5
18927 echo "${ECHO_T}no" >&6; }
18928
18929 cat >>confdefs.h <<\_ACEOF
18930 #define LLVM_HAS_ATOMICS 0
18931 _ACEOF
18932
18933   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18934 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18935
18936 fi
18937
18938 rm -f core conftest.err conftest.$ac_objext \
18939       conftest$ac_exeext conftest.$ac_ext
18940 ac_ext=c
18941 ac_cpp='$CPP $CPPFLAGS'
18942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18945
18946
18947
18948 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18949   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18950 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18951 if test "${llvm_cv_linux_mixed+set}" = set; then
18952   echo $ECHO_N "(cached) $ECHO_C" >&6
18953 else
18954    ac_ext=c
18955 ac_cpp='$CPP $CPPFLAGS'
18956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18959
18960   cat >conftest.$ac_ext <<_ACEOF
18961 /* confdefs.h.  */
18962 _ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h.  */
18966 #ifndef __x86_64__
18967        error: Not x86-64 even if uname says so!
18968       #endif
18969
18970 int
18971 main ()
18972 {
18973
18974   ;
18975   return 0;
18976 }
18977 _ACEOF
18978 rm -f conftest.$ac_objext
18979 if { (ac_try="$ac_compile"
18980 case "(($ac_try" in
18981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982   *) ac_try_echo=$ac_try;;
18983 esac
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985   (eval "$ac_compile") 2>conftest.er1
18986   ac_status=$?
18987   grep -v '^ *+' conftest.er1 >conftest.err
18988   rm -f conftest.er1
18989   cat conftest.err >&5
18990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991   (exit $ac_status); } &&
18992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18993   { (case "(($ac_try" in
18994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995   *) ac_try_echo=$ac_try;;
18996 esac
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998   (eval "$ac_try") 2>&5
18999   ac_status=$?
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); }; } &&
19002          { ac_try='test -s conftest.$ac_objext'
19003   { (case "(($ac_try" in
19004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005   *) ac_try_echo=$ac_try;;
19006 esac
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008   (eval "$ac_try") 2>&5
19009   ac_status=$?
19010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011   (exit $ac_status); }; }; then
19012   llvm_cv_linux_mixed=no
19013 else
19014   echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19016
19017         llvm_cv_linux_mixed=yes
19018 fi
19019
19020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19021   ac_ext=c
19022 ac_cpp='$CPP $CPPFLAGS'
19023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19026
19027
19028 fi
19029 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19030 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19031
19032   if test "$llvm_cv_linux_mixed" = "yes"; then
19033     llvm_cv_target_arch="x86"
19034     ARCH="x86"
19035   fi
19036 fi
19037
19038
19039 for ac_func in __dso_handle
19040 do
19041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19045   echo $ECHO_N "(cached) $ECHO_C" >&6
19046 else
19047   cat >conftest.$ac_ext <<_ACEOF
19048 /* confdefs.h.  */
19049 _ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h.  */
19053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19055 #define $ac_func innocuous_$ac_func
19056
19057 /* System header to define __stub macros and hopefully few prototypes,
19058     which can conflict with char $ac_func (); below.
19059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19060     <limits.h> exists even on freestanding compilers.  */
19061
19062 #ifdef __STDC__
19063 # include <limits.h>
19064 #else
19065 # include <assert.h>
19066 #endif
19067
19068 #undef $ac_func
19069
19070 /* Override any GCC internal prototype to avoid an error.
19071    Use char because int might match the return type of a GCC
19072    builtin and then its argument prototype would still apply.  */
19073 #ifdef __cplusplus
19074 extern "C"
19075 #endif
19076 char $ac_func ();
19077 /* The GNU C library defines this for functions which it implements
19078     to always fail with ENOSYS.  Some functions are actually named
19079     something starting with __ and the normal name is an alias.  */
19080 #if defined __stub_$ac_func || defined __stub___$ac_func
19081 choke me
19082 #endif
19083
19084 int
19085 main ()
19086 {
19087 return $ac_func ();
19088   ;
19089   return 0;
19090 }
19091 _ACEOF
19092 rm -f conftest.$ac_objext conftest$ac_exeext
19093 if { (ac_try="$ac_link"
19094 case "(($ac_try" in
19095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096   *) ac_try_echo=$ac_try;;
19097 esac
19098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099   (eval "$ac_link") 2>conftest.er1
19100   ac_status=$?
19101   grep -v '^ *+' conftest.er1 >conftest.err
19102   rm -f conftest.er1
19103   cat conftest.err >&5
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); } &&
19106          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19107   { (case "(($ac_try" in
19108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109   *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112   (eval "$ac_try") 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; } &&
19116          { ac_try='test -s conftest$ac_exeext'
19117   { (case "(($ac_try" in
19118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119   *) ac_try_echo=$ac_try;;
19120 esac
19121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122   (eval "$ac_try") 2>&5
19123   ac_status=$?
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); }; }; then
19126   eval "$as_ac_var=yes"
19127 else
19128   echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19130
19131         eval "$as_ac_var=no"
19132 fi
19133
19134 rm -f core conftest.err conftest.$ac_objext \
19135       conftest$ac_exeext conftest.$ac_ext
19136 fi
19137 ac_res=`eval echo '${'$as_ac_var'}'`
19138                { echo "$as_me:$LINENO: result: $ac_res" >&5
19139 echo "${ECHO_T}$ac_res" >&6; }
19140 if test `eval echo '${'$as_ac_var'}'` = yes; then
19141   cat >>confdefs.h <<_ACEOF
19142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19143 _ACEOF
19144
19145 fi
19146 done
19147
19148
19149 SHLIBEXT=$llvm_shlib_ext
19150
19151
19152 if test "${prefix}" = "NONE" ; then
19153   prefix="/usr/local"
19154 fi
19155 eval LLVM_PREFIX="${prefix}";
19156 eval LLVM_BINDIR="${prefix}/bin";
19157 eval LLVM_DATADIR="${prefix}/share/llvm";
19158 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19159 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19160 eval LLVM_INCLUDEDIR="${prefix}/include";
19161 eval LLVM_INFODIR="${prefix}/info";
19162 eval LLVM_MANDIR="${prefix}/man";
19163 LLVM_CONFIGTIME=`date`
19164
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174 if test "${ENABLE_TIMESTAMPS}" = "0"; then
19175   LLVM_CONFIGTIME="(timestamp not enabled)"
19176 fi
19177
19178
19179 cat >>confdefs.h <<_ACEOF
19180 #define LLVM_PREFIX "$LLVM_PREFIX"
19181 _ACEOF
19182
19183
19184 cat >>confdefs.h <<_ACEOF
19185 #define LLVM_BINDIR "$LLVM_BINDIR"
19186 _ACEOF
19187
19188
19189 cat >>confdefs.h <<_ACEOF
19190 #define LLVM_DATADIR "$LLVM_DATADIR"
19191 _ACEOF
19192
19193
19194 cat >>confdefs.h <<_ACEOF
19195 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19196 _ACEOF
19197
19198
19199 cat >>confdefs.h <<_ACEOF
19200 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19201 _ACEOF
19202
19203
19204 cat >>confdefs.h <<_ACEOF
19205 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19206 _ACEOF
19207
19208
19209 cat >>confdefs.h <<_ACEOF
19210 #define LLVM_INFODIR "$LLVM_INFODIR"
19211 _ACEOF
19212
19213
19214 cat >>confdefs.h <<_ACEOF
19215 #define LLVM_MANDIR "$LLVM_MANDIR"
19216 _ACEOF
19217
19218
19219 cat >>confdefs.h <<_ACEOF
19220 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19221 _ACEOF
19222
19223
19224 cat >>confdefs.h <<_ACEOF
19225 #define LLVM_HOST_TRIPLE "$host"
19226 _ACEOF
19227
19228
19229 cat >>confdefs.h <<_ACEOF
19230 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
19231 _ACEOF
19232
19233
19234 if test "$BINDINGS_TO_BUILD" = auto ; then
19235   BINDINGS_TO_BUILD=""
19236   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19237     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19238   fi
19239 fi
19240 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19241
19242
19243 ALL_BINDINGS=ocaml
19244
19245
19246 binding_prereqs_failed=0
19247 for a_binding in $BINDINGS_TO_BUILD ; do
19248   case "$a_binding" in
19249   ocaml)
19250     if test "x$OCAMLC" = x ; then
19251       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19252 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19253       binding_prereqs_failed=1
19254     fi
19255     if test "x$OCAMLDEP" = x ; then
19256       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19257 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19258       binding_prereqs_failed=1
19259     fi
19260     if test "x$OCAMLOPT" = x ; then
19261       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19262 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19263           fi
19264     if test "x$with_ocaml_libdir" != xauto ; then
19265       OCAML_LIBDIR=$with_ocaml_libdir
19266
19267     else
19268       ocaml_stdlib="`"$OCAMLC" -where`"
19269       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19270       then
19271         # ocaml stdlib is beneath our prefix; use stdlib
19272         OCAML_LIBDIR=$ocaml_stdlib
19273
19274       else
19275         # ocaml stdlib is outside our prefix; use libdir/ocaml
19276         OCAML_LIBDIR=${prefix}/lib/ocaml
19277
19278       fi
19279     fi
19280     ;;
19281   esac
19282 done
19283 if test "$binding_prereqs_failed" = 1 ; then
19284   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19285 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19286    { (exit 1); exit 1; }; }
19287 fi
19288
19289 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19290 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19291 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19292   echo $ECHO_N "(cached) $ECHO_C" >&6
19293 else
19294    ac_ext=cpp
19295 ac_cpp='$CXXCPP $CPPFLAGS'
19296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19299
19300   oldcxxflags="$CXXFLAGS"
19301   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
19302   cat >conftest.$ac_ext <<_ACEOF
19303 /* confdefs.h.  */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h.  */
19308 template <typename T> struct X { void __attribute__((noinline)) f() {} };
19309 int
19310 main ()
19311 {
19312 X<int>().f();
19313   ;
19314   return 0;
19315 }
19316 _ACEOF
19317 rm -f conftest.$ac_objext
19318 if { (ac_try="$ac_compile"
19319 case "(($ac_try" in
19320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321   *) ac_try_echo=$ac_try;;
19322 esac
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324   (eval "$ac_compile") 2>conftest.er1
19325   ac_status=$?
19326   grep -v '^ *+' conftest.er1 >conftest.err
19327   rm -f conftest.er1
19328   cat conftest.err >&5
19329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330   (exit $ac_status); } &&
19331          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19332   { (case "(($ac_try" in
19333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334   *) ac_try_echo=$ac_try;;
19335 esac
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337   (eval "$ac_try") 2>&5
19338   ac_status=$?
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); }; } &&
19341          { ac_try='test -s conftest.$ac_objext'
19342   { (case "(($ac_try" in
19343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344   *) ac_try_echo=$ac_try;;
19345 esac
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347   (eval "$ac_try") 2>&5
19348   ac_status=$?
19349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350   (exit $ac_status); }; }; then
19351   llvm_cv_cxx_visibility_inlines_hidden=yes
19352 else
19353   echo "$as_me: failed program was:" >&5
19354 sed 's/^/| /' conftest.$ac_ext >&5
19355
19356         llvm_cv_cxx_visibility_inlines_hidden=no
19357 fi
19358
19359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19360   CXXFLAGS="$oldcxxflags"
19361   ac_ext=c
19362 ac_cpp='$CPP $CPPFLAGS'
19363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19366
19367
19368 fi
19369 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19370 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19371 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19372   ENABLE_VISIBILITY_INLINES_HIDDEN=1
19373
19374 else
19375   ENABLE_VISIBILITY_INLINES_HIDDEN=0
19376
19377 fi
19378
19379
19380 if test "$llvm_cv_link_use_r" = "yes" ; then
19381   RPATH="-Wl,-R"
19382 else
19383   RPATH="-Wl,-rpath"
19384 fi
19385
19386
19387 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19388   RDYNAMIC="-rdynamic"
19389 else
19390   RDYNAMIC=""
19391 fi
19392
19393
19394
19395 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
19396
19397
19398
19399
19400
19401
19402 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19403
19404 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19405
19406 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19407
19408 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19409
19410 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
19411
19412
19413 ac_config_files="$ac_config_files Makefile.config"
19414
19415
19416 ac_config_files="$ac_config_files llvm.spec"
19417
19418
19419 ac_config_files="$ac_config_files docs/doxygen.cfg"
19420
19421
19422 if test "${clang_src_root}" = ""; then
19423   clang_src_root="$srcdir/tools/clang"
19424 fi
19425 if test -f ${clang_src_root}/README.txt; then
19426     configh="include/clang/Config/config.h"
19427   doxy="docs/doxygen.cfg"
19428   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
19429
19430   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
19431
19432 fi
19433
19434 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
19435
19436
19437 test "x$program_prefix" = "xNONE" && program_prefix=""
19438
19439
19440
19441 ac_config_commands="$ac_config_commands setup"
19442
19443 ac_config_commands="$ac_config_commands Makefile"
19444
19445
19446 ac_config_commands="$ac_config_commands Makefile.common"
19447
19448
19449 ac_config_commands="$ac_config_commands examples/Makefile"
19450
19451
19452 ac_config_commands="$ac_config_commands lib/Makefile"
19453
19454
19455 ac_config_commands="$ac_config_commands test/Makefile"
19456
19457
19458 ac_config_commands="$ac_config_commands test/Makefile.tests"
19459
19460
19461 ac_config_commands="$ac_config_commands unittests/Makefile"
19462
19463
19464 ac_config_commands="$ac_config_commands tools/Makefile"
19465
19466
19467 ac_config_commands="$ac_config_commands utils/Makefile"
19468
19469
19470 ac_config_commands="$ac_config_commands projects/Makefile"
19471
19472
19473 ac_config_commands="$ac_config_commands bindings/Makefile"
19474
19475
19476 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19477
19478
19479
19480 cat >confcache <<\_ACEOF
19481 # This file is a shell script that caches the results of configure
19482 # tests run on this system so they can be shared between configure
19483 # scripts and configure runs, see configure's option --config-cache.
19484 # It is not useful on other systems.  If it contains results you don't
19485 # want to keep, you may remove or edit it.
19486 #
19487 # config.status only pays attention to the cache file if you give it
19488 # the --recheck option to rerun configure.
19489 #
19490 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19491 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19492 # following values.
19493
19494 _ACEOF
19495
19496 # The following way of writing the cache mishandles newlines in values,
19497 # but we know of no workaround that is simple, portable, and efficient.
19498 # So, we kill variables containing newlines.
19499 # Ultrix sh set writes to stderr and can't be redirected directly,
19500 # and sets the high bit in the cache file unless we assign to the vars.
19501 (
19502   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19503     eval ac_val=\$$ac_var
19504     case $ac_val in #(
19505     *${as_nl}*)
19506       case $ac_var in #(
19507       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19508 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19509       esac
19510       case $ac_var in #(
19511       _ | IFS | as_nl) ;; #(
19512       *) $as_unset $ac_var ;;
19513       esac ;;
19514     esac
19515   done
19516
19517   (set) 2>&1 |
19518     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19519     *${as_nl}ac_space=\ *)
19520       # `set' does not quote correctly, so add quotes (double-quote
19521       # substitution turns \\\\ into \\, and sed turns \\ into \).
19522       sed -n \
19523         "s/'/'\\\\''/g;
19524           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19525       ;; #(
19526     *)
19527       # `set' quotes correctly as required by POSIX, so do not add quotes.
19528       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19529       ;;
19530     esac |
19531     sort
19532 ) |
19533   sed '
19534      /^ac_cv_env_/b end
19535      t clear
19536      :clear
19537      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19538      t end
19539      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19540      :end' >>confcache
19541 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19542   if test -w "$cache_file"; then
19543     test "x$cache_file" != "x/dev/null" &&
19544       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19545 echo "$as_me: updating cache $cache_file" >&6;}
19546     cat confcache >$cache_file
19547   else
19548     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19549 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19550   fi
19551 fi
19552 rm -f confcache
19553
19554 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19555 # Let make expand exec_prefix.
19556 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19557
19558 DEFS=-DHAVE_CONFIG_H
19559
19560 ac_libobjs=
19561 ac_ltlibobjs=
19562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19563   # 1. Remove the extension, and $U if already installed.
19564   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19565   ac_i=`echo "$ac_i" | sed "$ac_script"`
19566   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19567   #    will be set to the directory where LIBOBJS objects are built.
19568   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19569   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19570 done
19571 LIBOBJS=$ac_libobjs
19572
19573 LTLIBOBJS=$ac_ltlibobjs
19574
19575
19576
19577 : ${CONFIG_STATUS=./config.status}
19578 ac_clean_files_save=$ac_clean_files
19579 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19580 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19581 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19582 cat >$CONFIG_STATUS <<_ACEOF
19583 #! $SHELL
19584 # Generated by $as_me.
19585 # Run this file to recreate the current configuration.
19586 # Compiler output produced by configure, useful for debugging
19587 # configure, is in config.log if it exists.
19588
19589 debug=false
19590 ac_cs_recheck=false
19591 ac_cs_silent=false
19592 SHELL=\${CONFIG_SHELL-$SHELL}
19593 _ACEOF
19594
19595 cat >>$CONFIG_STATUS <<\_ACEOF
19596 ## --------------------- ##
19597 ## M4sh Initialization.  ##
19598 ## --------------------- ##
19599
19600 # Be Bourne compatible
19601 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19602   emulate sh
19603   NULLCMD=:
19604   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19605   # is contrary to our usage.  Disable this feature.
19606   alias -g '${1+"$@"}'='"$@"'
19607   setopt NO_GLOB_SUBST
19608 else
19609   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19610 fi
19611 BIN_SH=xpg4; export BIN_SH # for Tru64
19612 DUALCASE=1; export DUALCASE # for MKS sh
19613
19614
19615 # PATH needs CR
19616 # Avoid depending upon Character Ranges.
19617 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19618 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19619 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19620 as_cr_digits='0123456789'
19621 as_cr_alnum=$as_cr_Letters$as_cr_digits
19622
19623 # The user is always right.
19624 if test "${PATH_SEPARATOR+set}" != set; then
19625   echo "#! /bin/sh" >conf$$.sh
19626   echo  "exit 0"   >>conf$$.sh
19627   chmod +x conf$$.sh
19628   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19629     PATH_SEPARATOR=';'
19630   else
19631     PATH_SEPARATOR=:
19632   fi
19633   rm -f conf$$.sh
19634 fi
19635
19636 # Support unset when possible.
19637 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19638   as_unset=unset
19639 else
19640   as_unset=false
19641 fi
19642
19643
19644 # IFS
19645 # We need space, tab and new line, in precisely that order.  Quoting is
19646 # there to prevent editors from complaining about space-tab.
19647 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19648 # splitting by setting IFS to empty value.)
19649 as_nl='
19650 '
19651 IFS=" ""        $as_nl"
19652
19653 # Find who we are.  Look in the path if we contain no directory separator.
19654 case $0 in
19655   *[\\/]* ) as_myself=$0 ;;
19656   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19657 for as_dir in $PATH
19658 do
19659   IFS=$as_save_IFS
19660   test -z "$as_dir" && as_dir=.
19661   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19662 done
19663 IFS=$as_save_IFS
19664
19665      ;;
19666 esac
19667 # We did not find ourselves, most probably we were run as `sh COMMAND'
19668 # in which case we are not to be found in the path.
19669 if test "x$as_myself" = x; then
19670   as_myself=$0
19671 fi
19672 if test ! -f "$as_myself"; then
19673   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19674   { (exit 1); exit 1; }
19675 fi
19676
19677 # Work around bugs in pre-3.0 UWIN ksh.
19678 for as_var in ENV MAIL MAILPATH
19679 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19680 done
19681 PS1='$ '
19682 PS2='> '
19683 PS4='+ '
19684
19685 # NLS nuisances.
19686 for as_var in \
19687   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19688   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19689   LC_TELEPHONE LC_TIME
19690 do
19691   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19692     eval $as_var=C; export $as_var
19693   else
19694     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19695   fi
19696 done
19697
19698 # Required to use basename.
19699 if expr a : '\(a\)' >/dev/null 2>&1 &&
19700    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19701   as_expr=expr
19702 else
19703   as_expr=false
19704 fi
19705
19706 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19707   as_basename=basename
19708 else
19709   as_basename=false
19710 fi
19711
19712
19713 # Name of the executable.
19714 as_me=`$as_basename -- "$0" ||
19715 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19716          X"$0" : 'X\(//\)$' \| \
19717          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19718 echo X/"$0" |
19719     sed '/^.*\/\([^/][^/]*\)\/*$/{
19720             s//\1/
19721             q
19722           }
19723           /^X\/\(\/\/\)$/{
19724             s//\1/
19725             q
19726           }
19727           /^X\/\(\/\).*/{
19728             s//\1/
19729             q
19730           }
19731           s/.*/./; q'`
19732
19733 # CDPATH.
19734 $as_unset CDPATH
19735
19736
19737
19738   as_lineno_1=$LINENO
19739   as_lineno_2=$LINENO
19740   test "x$as_lineno_1" != "x$as_lineno_2" &&
19741   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19742
19743   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19744   # uniformly replaced by the line number.  The first 'sed' inserts a
19745   # line-number line after each line using $LINENO; the second 'sed'
19746   # does the real work.  The second script uses 'N' to pair each
19747   # line-number line with the line containing $LINENO, and appends
19748   # trailing '-' during substitution so that $LINENO is not a special
19749   # case at line end.
19750   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19751   # scripts with optimization help from Paolo Bonzini.  Blame Lee
19752   # E. McMahon (1931-1989) for sed's syntax.  :-)
19753   sed -n '
19754     p
19755     /[$]LINENO/=
19756   ' <$as_myself |
19757     sed '
19758       s/[$]LINENO.*/&-/
19759       t lineno
19760       b
19761       :lineno
19762       N
19763       :loop
19764       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19765       t loop
19766       s/-\n.*//
19767     ' >$as_me.lineno &&
19768   chmod +x "$as_me.lineno" ||
19769     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19770    { (exit 1); exit 1; }; }
19771
19772   # Don't try to exec as it changes $[0], causing all sort of problems
19773   # (the dirname of $[0] is not the place where we might find the
19774   # original and so on.  Autoconf is especially sensitive to this).
19775   . "./$as_me.lineno"
19776   # Exit status is that of the last command.
19777   exit
19778 }
19779
19780
19781 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19782   as_dirname=dirname
19783 else
19784   as_dirname=false
19785 fi
19786
19787 ECHO_C= ECHO_N= ECHO_T=
19788 case `echo -n x` in
19789 -n*)
19790   case `echo 'x\c'` in
19791   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19792   *)   ECHO_C='\c';;
19793   esac;;
19794 *)
19795   ECHO_N='-n';;
19796 esac
19797
19798 if expr a : '\(a\)' >/dev/null 2>&1 &&
19799    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19800   as_expr=expr
19801 else
19802   as_expr=false
19803 fi
19804
19805 rm -f conf$$ conf$$.exe conf$$.file
19806 if test -d conf$$.dir; then
19807   rm -f conf$$.dir/conf$$.file
19808 else
19809   rm -f conf$$.dir
19810   mkdir conf$$.dir
19811 fi
19812 echo >conf$$.file
19813 if ln -s conf$$.file conf$$ 2>/dev/null; then
19814   as_ln_s='ln -s'
19815   # ... but there are two gotchas:
19816   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19817   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19818   # In both cases, we have to default to `cp -p'.
19819   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19820     as_ln_s='cp -p'
19821 elif ln conf$$.file conf$$ 2>/dev/null; then
19822   as_ln_s=ln
19823 else
19824   as_ln_s='cp -p'
19825 fi
19826 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19827 rmdir conf$$.dir 2>/dev/null
19828
19829 if mkdir -p . 2>/dev/null; then
19830   as_mkdir_p=:
19831 else
19832   test -d ./-p && rmdir ./-p
19833   as_mkdir_p=false
19834 fi
19835
19836 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19837 # systems may use methods other than mode bits to determine executability.
19838 cat >conf$$.file <<_ASEOF
19839 #! /bin/sh
19840 exit 0
19841 _ASEOF
19842 chmod +x conf$$.file
19843 if test -x conf$$.file >/dev/null 2>&1; then
19844   as_executable_p="test -x"
19845 else
19846   as_executable_p=:
19847 fi
19848 rm -f conf$$.file
19849
19850 # Sed expression to map a string onto a valid CPP name.
19851 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19852
19853 # Sed expression to map a string onto a valid variable name.
19854 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19855
19856
19857 exec 6>&1
19858
19859 # Save the log message, to keep $[0] and so on meaningful, and to
19860 # report actual input values of CONFIG_FILES etc. instead of their
19861 # values after options handling.
19862 ac_log="
19863 This file was extended by LLVM $as_me 3.5.0svn, which was
19864 generated by GNU Autoconf 2.60.  Invocation command line was
19865
19866   CONFIG_FILES    = $CONFIG_FILES
19867   CONFIG_HEADERS  = $CONFIG_HEADERS
19868   CONFIG_LINKS    = $CONFIG_LINKS
19869   CONFIG_COMMANDS = $CONFIG_COMMANDS
19870   $ $0 $@
19871
19872 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19873 "
19874
19875 _ACEOF
19876
19877 cat >>$CONFIG_STATUS <<_ACEOF
19878 # Files that config.status was made for.
19879 config_files="$ac_config_files"
19880 config_headers="$ac_config_headers"
19881 config_commands="$ac_config_commands"
19882
19883 _ACEOF
19884
19885 cat >>$CONFIG_STATUS <<\_ACEOF
19886 ac_cs_usage="\
19887 \`$as_me' instantiates files from templates according to the
19888 current configuration.
19889
19890 Usage: $0 [OPTIONS] [FILE]...
19891
19892   -h, --help       print this help, then exit
19893   -V, --version    print version number, then exit
19894   -q, --quiet      do not print progress messages
19895   -d, --debug      don't remove temporary files
19896       --recheck    update $as_me by reconfiguring in the same conditions
19897   --file=FILE[:TEMPLATE]
19898                    instantiate the configuration file FILE
19899   --header=FILE[:TEMPLATE]
19900                    instantiate the configuration header FILE
19901
19902 Configuration files:
19903 $config_files
19904
19905 Configuration headers:
19906 $config_headers
19907
19908 Configuration commands:
19909 $config_commands
19910
19911 Report bugs to <bug-autoconf@gnu.org>."
19912
19913 _ACEOF
19914 cat >>$CONFIG_STATUS <<_ACEOF
19915 ac_cs_version="\\
19916 LLVM config.status 3.5.0svn
19917 configured by $0, generated by GNU Autoconf 2.60,
19918   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19919
19920 Copyright (C) 2006 Free Software Foundation, Inc.
19921 This config.status script is free software; the Free Software Foundation
19922 gives unlimited permission to copy, distribute and modify it."
19923
19924 ac_pwd='$ac_pwd'
19925 srcdir='$srcdir'
19926 INSTALL='$INSTALL'
19927 _ACEOF
19928
19929 cat >>$CONFIG_STATUS <<\_ACEOF
19930 # If no file are specified by the user, then we need to provide default
19931 # value.  By we need to know if files were specified by the user.
19932 ac_need_defaults=:
19933 while test $# != 0
19934 do
19935   case $1 in
19936   --*=*)
19937     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19938     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19939     ac_shift=:
19940     ;;
19941   *)
19942     ac_option=$1
19943     ac_optarg=$2
19944     ac_shift=shift
19945     ;;
19946   esac
19947
19948   case $ac_option in
19949   # Handling of the options.
19950   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19951     ac_cs_recheck=: ;;
19952   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19953     echo "$ac_cs_version"; exit ;;
19954   --debug | --debu | --deb | --de | --d | -d )
19955     debug=: ;;
19956   --file | --fil | --fi | --f )
19957     $ac_shift
19958     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19959     ac_need_defaults=false;;
19960   --header | --heade | --head | --hea )
19961     $ac_shift
19962     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19963     ac_need_defaults=false;;
19964   --he | --h)
19965     # Conflict between --help and --header
19966     { echo "$as_me: error: ambiguous option: $1
19967 Try \`$0 --help' for more information." >&2
19968    { (exit 1); exit 1; }; };;
19969   --help | --hel | -h )
19970     echo "$ac_cs_usage"; exit ;;
19971   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19972   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19973     ac_cs_silent=: ;;
19974
19975   # This is an error.
19976   -*) { echo "$as_me: error: unrecognized option: $1
19977 Try \`$0 --help' for more information." >&2
19978    { (exit 1); exit 1; }; } ;;
19979
19980   *) ac_config_targets="$ac_config_targets $1"
19981      ac_need_defaults=false ;;
19982
19983   esac
19984   shift
19985 done
19986
19987 ac_configure_extra_args=
19988
19989 if $ac_cs_silent; then
19990   exec 6>/dev/null
19991   ac_configure_extra_args="$ac_configure_extra_args --silent"
19992 fi
19993
19994 _ACEOF
19995 cat >>$CONFIG_STATUS <<_ACEOF
19996 if \$ac_cs_recheck; then
19997   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19998   CONFIG_SHELL=$SHELL
19999   export CONFIG_SHELL
20000   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20001 fi
20002
20003 _ACEOF
20004 cat >>$CONFIG_STATUS <<\_ACEOF
20005 exec 5>>config.log
20006 {
20007   echo
20008   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20009 ## Running $as_me. ##
20010 _ASBOX
20011   echo "$ac_log"
20012 } >&5
20013
20014 _ACEOF
20015 cat >>$CONFIG_STATUS <<_ACEOF
20016 #
20017 # INIT-COMMANDS
20018 #
20019 llvm_src="${srcdir}"
20020
20021 _ACEOF
20022
20023 cat >>$CONFIG_STATUS <<\_ACEOF
20024
20025 # Handling of arguments.
20026 for ac_config_target in $ac_config_targets
20027 do
20028   case $ac_config_target in
20029     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20030     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
20031     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20032     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20033     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20034     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20035     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
20036     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20037     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20038     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20039     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
20040     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
20041     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
20042     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20043     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20044     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20045     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20046     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20047     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20048     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20049     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20050     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20051     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20052     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20053     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20054     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20055
20056   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20057 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20058    { (exit 1); exit 1; }; };;
20059   esac
20060 done
20061
20062
20063 # If the user did not use the arguments to specify the items to instantiate,
20064 # then the envvar interface is used.  Set only those that are not.
20065 # We use the long form for the default assignment because of an extremely
20066 # bizarre bug on SunOS 4.1.3.
20067 if $ac_need_defaults; then
20068   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20069   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20070   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20071 fi
20072
20073 # Have a temporary directory for convenience.  Make it in the build tree
20074 # simply because there is no reason against having it here, and in addition,
20075 # creating and moving files from /tmp can sometimes cause problems.
20076 # Hook for its removal unless debugging.
20077 # Note that there is a small window in which the directory will not be cleaned:
20078 # after its creation but before its name has been assigned to `$tmp'.
20079 $debug ||
20080 {
20081   tmp=
20082   trap 'exit_status=$?
20083   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20084 ' 0
20085   trap '{ (exit 1); exit 1; }' 1 2 13 15
20086 }
20087 # Create a (secure) tmp directory for tmp files.
20088
20089 {
20090   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20091   test -n "$tmp" && test -d "$tmp"
20092 }  ||
20093 {
20094   tmp=./conf$$-$RANDOM
20095   (umask 077 && mkdir "$tmp")
20096 } ||
20097 {
20098    echo "$me: cannot create a temporary directory in ." >&2
20099    { (exit 1); exit 1; }
20100 }
20101
20102 #
20103 # Set up the sed scripts for CONFIG_FILES section.
20104 #
20105
20106 # No need to generate the scripts if there are no CONFIG_FILES.
20107 # This happens for instance when ./config.status config.h
20108 if test -n "$CONFIG_FILES"; then
20109
20110 _ACEOF
20111
20112
20113
20114 ac_delim='%!_!# '
20115 for ac_last_try in false false false false false :; do
20116   cat >conf$$subs.sed <<_ACEOF
20117 SHELL!$SHELL$ac_delim
20118 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20119 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20120 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20121 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20122 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20123 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20124 exec_prefix!$exec_prefix$ac_delim
20125 prefix!$prefix$ac_delim
20126 program_transform_name!$program_transform_name$ac_delim
20127 bindir!$bindir$ac_delim
20128 sbindir!$sbindir$ac_delim
20129 libexecdir!$libexecdir$ac_delim
20130 datarootdir!$datarootdir$ac_delim
20131 datadir!$datadir$ac_delim
20132 sysconfdir!$sysconfdir$ac_delim
20133 sharedstatedir!$sharedstatedir$ac_delim
20134 localstatedir!$localstatedir$ac_delim
20135 includedir!$includedir$ac_delim
20136 oldincludedir!$oldincludedir$ac_delim
20137 docdir!$docdir$ac_delim
20138 infodir!$infodir$ac_delim
20139 htmldir!$htmldir$ac_delim
20140 dvidir!$dvidir$ac_delim
20141 pdfdir!$pdfdir$ac_delim
20142 psdir!$psdir$ac_delim
20143 libdir!$libdir$ac_delim
20144 localedir!$localedir$ac_delim
20145 mandir!$mandir$ac_delim
20146 DEFS!$DEFS$ac_delim
20147 ECHO_C!$ECHO_C$ac_delim
20148 ECHO_N!$ECHO_N$ac_delim
20149 ECHO_T!$ECHO_T$ac_delim
20150 LIBS!$LIBS$ac_delim
20151 build_alias!$build_alias$ac_delim
20152 host_alias!$host_alias$ac_delim
20153 target_alias!$target_alias$ac_delim
20154 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
20155 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
20156 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
20157 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
20158 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20159 CC!$CC$ac_delim
20160 CFLAGS!$CFLAGS$ac_delim
20161 LDFLAGS!$LDFLAGS$ac_delim
20162 CPPFLAGS!$CPPFLAGS$ac_delim
20163 ac_ct_CC!$ac_ct_CC$ac_delim
20164 EXEEXT!$EXEEXT$ac_delim
20165 OBJEXT!$OBJEXT$ac_delim
20166 CXX!$CXX$ac_delim
20167 CXXFLAGS!$CXXFLAGS$ac_delim
20168 ac_ct_CXX!$ac_ct_CXX$ac_delim
20169 CPP!$CPP$ac_delim
20170 subdirs!$subdirs$ac_delim
20171 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
20172 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
20173 build!$build$ac_delim
20174 build_cpu!$build_cpu$ac_delim
20175 build_vendor!$build_vendor$ac_delim
20176 build_os!$build_os$ac_delim
20177 host!$host$ac_delim
20178 host_cpu!$host_cpu$ac_delim
20179 host_vendor!$host_vendor$ac_delim
20180 host_os!$host_os$ac_delim
20181 target!$target$ac_delim
20182 target_cpu!$target_cpu$ac_delim
20183 target_vendor!$target_vendor$ac_delim
20184 target_os!$target_os$ac_delim
20185 OS!$OS$ac_delim
20186 HOST_OS!$HOST_OS$ac_delim
20187 TARGET_OS!$TARGET_OS$ac_delim
20188 LINKALL!$LINKALL$ac_delim
20189 NOLINKALL!$NOLINKALL$ac_delim
20190 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20191 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20192 ARCH!$ARCH$ac_delim
20193 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
20194 HOST_ARCH!$HOST_ARCH$ac_delim
20195 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20196 BUILD_CC!$BUILD_CC$ac_delim
20197 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20198 BUILD_CXX!$BUILD_CXX$ac_delim
20199 CVSBUILD!$CVSBUILD$ac_delim
20200 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
20201 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
20202 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
20203 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
20204 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
20205 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
20206 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
20207 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20208 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20209 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20210 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
20211 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20212 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20213 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20214 _ACEOF
20215
20216   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20217     break
20218   elif $ac_last_try; then
20219     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20220 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20221    { (exit 1); exit 1; }; }
20222   else
20223     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20224   fi
20225 done
20226
20227 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20228 if test -n "$ac_eof"; then
20229   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20230   ac_eof=`expr $ac_eof + 1`
20231 fi
20232
20233 cat >>$CONFIG_STATUS <<_ACEOF
20234 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20236 _ACEOF
20237 sed '
20238 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20239 s/^/s,@/; s/!/@,|#_!!_#|/
20240 :n
20241 t n
20242 s/'"$ac_delim"'$/,g/; t
20243 s/$/\\/; p
20244 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20245 ' >>$CONFIG_STATUS <conf$$subs.sed
20246 rm -f conf$$subs.sed
20247 cat >>$CONFIG_STATUS <<_ACEOF
20248 CEOF$ac_eof
20249 _ACEOF
20250
20251
20252 ac_delim='%!_!# '
20253 for ac_last_try in false false false false false :; do
20254   cat >conf$$subs.sed <<_ACEOF
20255 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20256 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
20257 JIT!$JIT$ac_delim
20258 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20259 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
20260 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
20261 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20262 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
20263 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
20264 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
20265 ENABLE_PIC!$ENABLE_PIC$ac_delim
20266 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20267 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
20268 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
20269 ALL_TARGETS!$ALL_TARGETS$ac_delim
20270 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20271 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20272 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20273 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20274 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20275 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20276 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20277 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
20278 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
20279 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20280 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
20281 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
20282 ifGNUmake!$ifGNUmake$ac_delim
20283 LN_S!$LN_S$ac_delim
20284 NM!$NM$ac_delim
20285 CMP!$CMP$ac_delim
20286 CP!$CP$ac_delim
20287 DATE!$DATE$ac_delim
20288 FIND!$FIND$ac_delim
20289 GREP!$GREP$ac_delim
20290 MKDIR!$MKDIR$ac_delim
20291 MV!$MV$ac_delim
20292 RANLIB!$RANLIB$ac_delim
20293 AR!$AR$ac_delim
20294 RM!$RM$ac_delim
20295 SED!$SED$ac_delim
20296 TAR!$TAR$ac_delim
20297 BINPWD!$BINPWD$ac_delim
20298 GRAPHVIZ!$GRAPHVIZ$ac_delim
20299 DOT!$DOT$ac_delim
20300 FDP!$FDP$ac_delim
20301 NEATO!$NEATO$ac_delim
20302 TWOPI!$TWOPI$ac_delim
20303 CIRCO!$CIRCO$ac_delim
20304 GV!$GV$ac_delim
20305 DOTTY!$DOTTY$ac_delim
20306 XDOT!$XDOT$ac_delim
20307 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20308 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20309 INSTALL_DATA!$INSTALL_DATA$ac_delim
20310 BZIP2!$BZIP2$ac_delim
20311 CAT!$CAT$ac_delim
20312 DOXYGEN!$DOXYGEN$ac_delim
20313 GROFF!$GROFF$ac_delim
20314 GZIPBIN!$GZIPBIN$ac_delim
20315 PDFROFF!$PDFROFF$ac_delim
20316 ZIP!$ZIP$ac_delim
20317 OCAMLC!$OCAMLC$ac_delim
20318 OCAMLOPT!$OCAMLOPT$ac_delim
20319 OCAMLDEP!$OCAMLDEP$ac_delim
20320 OCAMLDOC!$OCAMLDOC$ac_delim
20321 GAS!$GAS$ac_delim
20322 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
20323 EGREP!$EGREP$ac_delim
20324 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20325 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20326 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
20327 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
20328 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
20329 PYTHON!$PYTHON$ac_delim
20330 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
20331 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
20332 USE_UDIS86!$USE_UDIS86$ac_delim
20333 USE_OPROFILE!$USE_OPROFILE$ac_delim
20334 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
20335 XML2CONFIG!$XML2CONFIG$ac_delim
20336 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
20337 LIBXML2_INC!$LIBXML2_INC$ac_delim
20338 CXXCPP!$CXXCPP$ac_delim
20339 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20340 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
20341 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20342 MMAP_FILE!$MMAP_FILE$ac_delim
20343 SHLIBEXT!$SHLIBEXT$ac_delim
20344 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20345 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20346 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20347 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20348 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20349 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20350 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20351 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20352 _ACEOF
20353
20354   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20355     break
20356   elif $ac_last_try; then
20357     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20358 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20359    { (exit 1); exit 1; }; }
20360   else
20361     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20362   fi
20363 done
20364
20365 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20366 if test -n "$ac_eof"; then
20367   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20368   ac_eof=`expr $ac_eof + 1`
20369 fi
20370
20371 cat >>$CONFIG_STATUS <<_ACEOF
20372 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20373 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20374 _ACEOF
20375 sed '
20376 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20377 s/^/s,@/; s/!/@,|#_!!_#|/
20378 :n
20379 t n
20380 s/'"$ac_delim"'$/,g/; t
20381 s/$/\\/; p
20382 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20383 ' >>$CONFIG_STATUS <conf$$subs.sed
20384 rm -f conf$$subs.sed
20385 cat >>$CONFIG_STATUS <<_ACEOF
20386 CEOF$ac_eof
20387 _ACEOF
20388
20389
20390 ac_delim='%!_!# '
20391 for ac_last_try in false false false false false :; do
20392   cat >conf$$subs.sed <<_ACEOF
20393 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20394 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20395 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20396 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20397 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20398 RPATH!$RPATH$ac_delim
20399 RDYNAMIC!$RDYNAMIC$ac_delim
20400 program_prefix!$program_prefix$ac_delim
20401 LIBOBJS!$LIBOBJS$ac_delim
20402 LTLIBOBJS!$LTLIBOBJS$ac_delim
20403 _ACEOF
20404
20405   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
20406     break
20407   elif $ac_last_try; then
20408     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20409 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20410    { (exit 1); exit 1; }; }
20411   else
20412     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20413   fi
20414 done
20415
20416 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20417 if test -n "$ac_eof"; then
20418   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20419   ac_eof=`expr $ac_eof + 1`
20420 fi
20421
20422 cat >>$CONFIG_STATUS <<_ACEOF
20423 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
20424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20425 _ACEOF
20426 sed '
20427 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20428 s/^/s,@/; s/!/@,|#_!!_#|/
20429 :n
20430 t n
20431 s/'"$ac_delim"'$/,g/; t
20432 s/$/\\/; p
20433 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20434 ' >>$CONFIG_STATUS <conf$$subs.sed
20435 rm -f conf$$subs.sed
20436 cat >>$CONFIG_STATUS <<_ACEOF
20437 :end
20438 s/|#_!!_#|//g
20439 CEOF$ac_eof
20440 _ACEOF
20441
20442
20443 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20444 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20445 # trailing colons and then remove the whole line if VPATH becomes empty
20446 # (actually we leave an empty line to preserve line numbers).
20447 if test "x$srcdir" = x.; then
20448   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20449 s/:*\$(srcdir):*/:/
20450 s/:*\${srcdir}:*/:/
20451 s/:*@srcdir@:*/:/
20452 s/^\([^=]*=[     ]*\):*/\1/
20453 s/:*$//
20454 s/^[^=]*=[       ]*$//
20455 }'
20456 fi
20457
20458 cat >>$CONFIG_STATUS <<\_ACEOF
20459 fi # test -n "$CONFIG_FILES"
20460
20461
20462 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20463 do
20464   case $ac_tag in
20465   :[FHLC]) ac_mode=$ac_tag; continue;;
20466   esac
20467   case $ac_mode$ac_tag in
20468   :[FHL]*:*);;
20469   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20470 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20471    { (exit 1); exit 1; }; };;
20472   :[FH]-) ac_tag=-:-;;
20473   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20474   esac
20475   ac_save_IFS=$IFS
20476   IFS=:
20477   set x $ac_tag
20478   IFS=$ac_save_IFS
20479   shift
20480   ac_file=$1
20481   shift
20482
20483   case $ac_mode in
20484   :L) ac_source=$1;;
20485   :[FH])
20486     ac_file_inputs=
20487     for ac_f
20488     do
20489       case $ac_f in
20490       -) ac_f="$tmp/stdin";;
20491       *) # Look for the file first in the build tree, then in the source tree
20492          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20493          # because $ac_f cannot contain `:'.
20494          test -f "$ac_f" ||
20495            case $ac_f in
20496            [\\/$]*) false;;
20497            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20498            esac ||
20499            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20500 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20501    { (exit 1); exit 1; }; };;
20502       esac
20503       ac_file_inputs="$ac_file_inputs $ac_f"
20504     done
20505
20506     # Let's still pretend it is `configure' which instantiates (i.e., don't
20507     # use $as_me), people would be surprised to read:
20508     #    /* config.h.  Generated by config.status.  */
20509     configure_input="Generated from "`IFS=:
20510           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20511     if test x"$ac_file" != x-; then
20512       configure_input="$ac_file.  $configure_input"
20513       { echo "$as_me:$LINENO: creating $ac_file" >&5
20514 echo "$as_me: creating $ac_file" >&6;}
20515     fi
20516
20517     case $ac_tag in
20518     *:-:* | *:-) cat >"$tmp/stdin";;
20519     esac
20520     ;;
20521   esac
20522
20523   ac_dir=`$as_dirname -- "$ac_file" ||
20524 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20525          X"$ac_file" : 'X\(//\)[^/]' \| \
20526          X"$ac_file" : 'X\(//\)$' \| \
20527          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20528 echo X"$ac_file" |
20529     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20530             s//\1/
20531             q
20532           }
20533           /^X\(\/\/\)[^/].*/{
20534             s//\1/
20535             q
20536           }
20537           /^X\(\/\/\)$/{
20538             s//\1/
20539             q
20540           }
20541           /^X\(\/\).*/{
20542             s//\1/
20543             q
20544           }
20545           s/.*/./; q'`
20546   { as_dir="$ac_dir"
20547   case $as_dir in #(
20548   -*) as_dir=./$as_dir;;
20549   esac
20550   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20551     as_dirs=
20552     while :; do
20553       case $as_dir in #(
20554       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20555       *) as_qdir=$as_dir;;
20556       esac
20557       as_dirs="'$as_qdir' $as_dirs"
20558       as_dir=`$as_dirname -- "$as_dir" ||
20559 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20560          X"$as_dir" : 'X\(//\)[^/]' \| \
20561          X"$as_dir" : 'X\(//\)$' \| \
20562          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20563 echo X"$as_dir" |
20564     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20565             s//\1/
20566             q
20567           }
20568           /^X\(\/\/\)[^/].*/{
20569             s//\1/
20570             q
20571           }
20572           /^X\(\/\/\)$/{
20573             s//\1/
20574             q
20575           }
20576           /^X\(\/\).*/{
20577             s//\1/
20578             q
20579           }
20580           s/.*/./; q'`
20581       test -d "$as_dir" && break
20582     done
20583     test -z "$as_dirs" || eval "mkdir $as_dirs"
20584   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20585 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20586    { (exit 1); exit 1; }; }; }
20587   ac_builddir=.
20588
20589 case "$ac_dir" in
20590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20591 *)
20592   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20593   # A ".." for each directory in $ac_dir_suffix.
20594   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20595   case $ac_top_builddir_sub in
20596   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20597   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20598   esac ;;
20599 esac
20600 ac_abs_top_builddir=$ac_pwd
20601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20602 # for backward compatibility:
20603 ac_top_builddir=$ac_top_build_prefix
20604
20605 case $srcdir in
20606   .)  # We are building in place.
20607     ac_srcdir=.
20608     ac_top_srcdir=$ac_top_builddir_sub
20609     ac_abs_top_srcdir=$ac_pwd ;;
20610   [\\/]* | ?:[\\/]* )  # Absolute name.
20611     ac_srcdir=$srcdir$ac_dir_suffix;
20612     ac_top_srcdir=$srcdir
20613     ac_abs_top_srcdir=$srcdir ;;
20614   *) # Relative name.
20615     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20616     ac_top_srcdir=$ac_top_build_prefix$srcdir
20617     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20618 esac
20619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20620
20621
20622   case $ac_mode in
20623   :F)
20624   #
20625   # CONFIG_FILE
20626   #
20627
20628   case $INSTALL in
20629   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20630   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20631   esac
20632 _ACEOF
20633
20634 cat >>$CONFIG_STATUS <<\_ACEOF
20635 # If the template does not know about datarootdir, expand it.
20636 # FIXME: This hack should be removed a few years after 2.60.
20637 ac_datarootdir_hack=; ac_datarootdir_seen=
20638
20639 case `sed -n '/datarootdir/ {
20640   p
20641   q
20642 }
20643 /@datadir@/p
20644 /@docdir@/p
20645 /@infodir@/p
20646 /@localedir@/p
20647 /@mandir@/p
20648 ' $ac_file_inputs` in
20649 *datarootdir*) ac_datarootdir_seen=yes;;
20650 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20651   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20652 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20653 _ACEOF
20654 cat >>$CONFIG_STATUS <<_ACEOF
20655   ac_datarootdir_hack='
20656   s&@datadir@&$datadir&g
20657   s&@docdir@&$docdir&g
20658   s&@infodir@&$infodir&g
20659   s&@localedir@&$localedir&g
20660   s&@mandir@&$mandir&g
20661     s&\\\${datarootdir}&$datarootdir&g' ;;
20662 esac
20663 _ACEOF
20664
20665 # Neutralize VPATH when `$srcdir' = `.'.
20666 # Shell code in configure.ac might set extrasub.
20667 # FIXME: do we really want to maintain this feature?
20668 cat >>$CONFIG_STATUS <<_ACEOF
20669   sed "$ac_vpsub
20670 $extrasub
20671 _ACEOF
20672 cat >>$CONFIG_STATUS <<\_ACEOF
20673 :t
20674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20675 s&@configure_input@&$configure_input&;t t
20676 s&@top_builddir@&$ac_top_builddir_sub&;t t
20677 s&@srcdir@&$ac_srcdir&;t t
20678 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20679 s&@top_srcdir@&$ac_top_srcdir&;t t
20680 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20681 s&@builddir@&$ac_builddir&;t t
20682 s&@abs_builddir@&$ac_abs_builddir&;t t
20683 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20684 s&@INSTALL@&$ac_INSTALL&;t t
20685 $ac_datarootdir_hack
20686 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
20687
20688 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20689   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20690   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20691   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20692 which seems to be undefined.  Please make sure it is defined." >&5
20693 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20694 which seems to be undefined.  Please make sure it is defined." >&2;}
20695
20696   rm -f "$tmp/stdin"
20697   case $ac_file in
20698   -) cat "$tmp/out"; rm -f "$tmp/out";;
20699   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20700   esac
20701  ;;
20702   :H)
20703   #
20704   # CONFIG_HEADER
20705   #
20706 _ACEOF
20707
20708 # Transform confdefs.h into a sed script `conftest.defines', that
20709 # substitutes the proper values into config.h.in to produce config.h.
20710 rm -f conftest.defines conftest.tail
20711 # First, append a space to every undef/define line, to ease matching.
20712 echo 's/$/ /' >conftest.defines
20713 # Then, protect against being on the right side of a sed subst, or in
20714 # an unquoted here document, in config.status.  If some macros were
20715 # called several times there might be several #defines for the same
20716 # symbol, which is useless.  But do not sort them, since the last
20717 # AC_DEFINE must be honored.
20718 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20719 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20720 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20721 # PARAMS is the parameter list in the macro definition--in most cases, it's
20722 # just an empty string.
20723 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
20724 ac_dB='\\)[      (].*,\\1define\\2'
20725 ac_dC=' '
20726 ac_dD=' ,'
20727
20728 uniq confdefs.h |
20729   sed -n '
20730         t rset
20731         :rset
20732         s/^[     ]*#[    ]*define[       ][      ]*//
20733         t ok
20734         d
20735         :ok
20736         s/[\\&,]/\\&/g
20737         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20738         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20739   ' >>conftest.defines
20740
20741 # Remove the space that was appended to ease matching.
20742 # Then replace #undef with comments.  This is necessary, for
20743 # example, in the case of _POSIX_SOURCE, which is predefined and required
20744 # on some systems where configure will not decide to define it.
20745 # (The regexp can be short, since the line contains either #define or #undef.)
20746 echo 's/ $//
20747 s,^[     #]*u.*,/* & */,' >>conftest.defines
20748
20749 # Break up conftest.defines:
20750 ac_max_sed_lines=50
20751
20752 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20753 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20754 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20755 # et cetera.
20756 ac_in='$ac_file_inputs'
20757 ac_out='"$tmp/out1"'
20758 ac_nxt='"$tmp/out2"'
20759
20760 while :
20761 do
20762   # Write a here document:
20763     cat >>$CONFIG_STATUS <<_ACEOF
20764     # First, check the format of the line:
20765     cat >"\$tmp/defines.sed" <<\\CEOF
20766 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
20767 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
20768 b
20769 :def
20770 _ACEOF
20771   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20772   echo 'CEOF
20773     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20774   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20775   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20776   grep . conftest.tail >/dev/null || break
20777   rm -f conftest.defines
20778   mv conftest.tail conftest.defines
20779 done
20780 rm -f conftest.defines conftest.tail
20781
20782 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20783 cat >>$CONFIG_STATUS <<\_ACEOF
20784   if test x"$ac_file" != x-; then
20785     echo "/* $configure_input  */" >"$tmp/config.h"
20786     cat "$ac_result" >>"$tmp/config.h"
20787     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20788       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20789 echo "$as_me: $ac_file is unchanged" >&6;}
20790     else
20791       rm -f $ac_file
20792       mv "$tmp/config.h" $ac_file
20793     fi
20794   else
20795     echo "/* $configure_input  */"
20796     cat "$ac_result"
20797   fi
20798   rm -f "$tmp/out12"
20799  ;;
20800
20801   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20802 echo "$as_me: executing $ac_file commands" >&6;}
20803  ;;
20804   esac
20805
20806
20807   case $ac_file$ac_mode in
20808     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20809    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20810     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20811    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20812     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20813    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20814     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20815    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20816     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20817    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20818     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20819    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20820     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20821    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20822     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20823    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20824     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20825    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20826     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20827    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20828     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20829    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20830     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20831    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20832
20833   esac
20834 done # for ac_tag
20835
20836
20837 { (exit 0); exit 0; }
20838 _ACEOF
20839 chmod +x $CONFIG_STATUS
20840 ac_clean_files=$ac_clean_files_save
20841
20842
20843 # configure is writing to config.log, and then calls config.status.
20844 # config.status does its own redirection, appending to config.log.
20845 # Unfortunately, on DOS this fails, as config.log is still kept open
20846 # by configure, so config.status won't be able to write to it; its
20847 # output is simply discarded.  So we exec the FD to /dev/null,
20848 # effectively closing config.log, so it can be properly (re)opened and
20849 # appended to by config.status.  When coming back to configure, we
20850 # need to make the FD available again.
20851 if test "$no_create" != yes; then
20852   ac_cs_success=:
20853   ac_config_status_args=
20854   test "$silent" = yes &&
20855     ac_config_status_args="$ac_config_status_args --quiet"
20856   exec 5>/dev/null
20857   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20858   exec 5>>config.log
20859   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20860   # would make configure fail if this is the last instruction.
20861   $ac_cs_success || { (exit 1); exit 1; }
20862 fi
20863
20864 #
20865 # CONFIG_SUBDIRS section.
20866 #
20867 if test "$no_recursion" != yes; then
20868
20869   # Remove --cache-file and --srcdir arguments so they do not pile up.
20870   ac_sub_configure_args=
20871   ac_prev=
20872   eval "set x $ac_configure_args"
20873   shift
20874   for ac_arg
20875   do
20876     if test -n "$ac_prev"; then
20877       ac_prev=
20878       continue
20879     fi
20880     case $ac_arg in
20881     -cache-file | --cache-file | --cache-fil | --cache-fi \
20882     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20883       ac_prev=cache_file ;;
20884     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20885     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20886     | --c=*)
20887       ;;
20888     --config-cache | -C)
20889       ;;
20890     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20891       ac_prev=srcdir ;;
20892     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20893       ;;
20894     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20895       ac_prev=prefix ;;
20896     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20897       ;;
20898     *)
20899       case $ac_arg in
20900       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20901       esac
20902       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20903     esac
20904   done
20905
20906   # Always prepend --prefix to ensure using the same prefix
20907   # in subdir configurations.
20908   ac_arg="--prefix=$prefix"
20909   case $ac_arg in
20910   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20911   esac
20912   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20913
20914   ac_popdir=`pwd`
20915   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20916
20917     # Do not complain, so a configure script can configure whichever
20918     # parts of a large source tree are present.
20919     test -d "$srcdir/$ac_dir" || continue
20920
20921     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20922     echo "$as_me:$LINENO: $ac_msg" >&5
20923     echo "$ac_msg" >&6
20924     { as_dir="$ac_dir"
20925   case $as_dir in #(
20926   -*) as_dir=./$as_dir;;
20927   esac
20928   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20929     as_dirs=
20930     while :; do
20931       case $as_dir in #(
20932       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20933       *) as_qdir=$as_dir;;
20934       esac
20935       as_dirs="'$as_qdir' $as_dirs"
20936       as_dir=`$as_dirname -- "$as_dir" ||
20937 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20938          X"$as_dir" : 'X\(//\)[^/]' \| \
20939          X"$as_dir" : 'X\(//\)$' \| \
20940          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20941 echo X"$as_dir" |
20942     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20943             s//\1/
20944             q
20945           }
20946           /^X\(\/\/\)[^/].*/{
20947             s//\1/
20948             q
20949           }
20950           /^X\(\/\/\)$/{
20951             s//\1/
20952             q
20953           }
20954           /^X\(\/\).*/{
20955             s//\1/
20956             q
20957           }
20958           s/.*/./; q'`
20959       test -d "$as_dir" && break
20960     done
20961     test -z "$as_dirs" || eval "mkdir $as_dirs"
20962   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20963 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20964    { (exit 1); exit 1; }; }; }
20965     ac_builddir=.
20966
20967 case "$ac_dir" in
20968 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20969 *)
20970   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20971   # A ".." for each directory in $ac_dir_suffix.
20972   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20973   case $ac_top_builddir_sub in
20974   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20975   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20976   esac ;;
20977 esac
20978 ac_abs_top_builddir=$ac_pwd
20979 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20980 # for backward compatibility:
20981 ac_top_builddir=$ac_top_build_prefix
20982
20983 case $srcdir in
20984   .)  # We are building in place.
20985     ac_srcdir=.
20986     ac_top_srcdir=$ac_top_builddir_sub
20987     ac_abs_top_srcdir=$ac_pwd ;;
20988   [\\/]* | ?:[\\/]* )  # Absolute name.
20989     ac_srcdir=$srcdir$ac_dir_suffix;
20990     ac_top_srcdir=$srcdir
20991     ac_abs_top_srcdir=$srcdir ;;
20992   *) # Relative name.
20993     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20994     ac_top_srcdir=$ac_top_build_prefix$srcdir
20995     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20996 esac
20997 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20998
20999
21000     cd "$ac_dir"
21001
21002     # Check for guested configure; otherwise get Cygnus style configure.
21003     if test -f "$ac_srcdir/configure.gnu"; then
21004       ac_sub_configure=$ac_srcdir/configure.gnu
21005     elif test -f "$ac_srcdir/configure"; then
21006       ac_sub_configure=$ac_srcdir/configure
21007     elif test -f "$ac_srcdir/configure.in"; then
21008       # This should be Cygnus configure.
21009       ac_sub_configure=$ac_aux_dir/configure
21010     else
21011       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21012 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21013       ac_sub_configure=
21014     fi
21015
21016     # The recursion is here.
21017     if test -n "$ac_sub_configure"; then
21018       # Make the cache file name correct relative to the subdirectory.
21019       case $cache_file in
21020       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21021       *) # Relative name.
21022         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21023       esac
21024
21025       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21026 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21027       # The eval makes quoting arguments work.
21028       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21029            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21030         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21031 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21032    { (exit 1); exit 1; }; }
21033     fi
21034
21035     cd "$ac_popdir"
21036   done
21037 fi
21038