MC: Appease the buildbots
[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 ENABLE_CLANG_STATIC_ANALYZER
693 ENABLE_CLANG_REWRITER
694 ENABLE_OPTIMIZED
695 ENABLE_PROFILING
696 DISABLE_ASSERTIONS
697 ENABLE_WERROR
698 ENABLE_EXPENSIVE_CHECKS
699 EXPENSIVE_CHECKS
700 DEBUG_RUNTIME
701 DEBUG_SYMBOLS
702 KEEP_SYMBOLS
703 JIT
704 TARGET_HAS_JIT
705 TARGETS_WITH_JIT
706 ENABLE_DOCS
707 ENABLE_DOXYGEN
708 LLVM_ENABLE_THREADS
709 ENABLE_PTHREADS
710 LLVM_ENABLE_ZLIB
711 ENABLE_PIC
712 ENABLE_SHARED
713 ENABLE_EMBED_STDCXX
714 ENABLE_TIMESTAMPS
715 ALL_TARGETS
716 TARGETS_TO_BUILD
717 LLVM_ENUM_TARGETS
718 LLVM_ENUM_ASM_PRINTERS
719 LLVM_ENUM_ASM_PARSERS
720 LLVM_ENUM_DISASSEMBLERS
721 OPTIMIZE_OPTION
722 EXTRA_OPTIONS
723 EXTRA_LD_OPTIONS
724 CLANG_SRC_ROOT
725 BINUTILS_INCDIR
726 ENABLE_TERMINFO
727 INTERNAL_PREFIX
728 ifGNUmake
729 LN_S
730 NM
731 CMP
732 CP
733 DATE
734 FIND
735 GREP
736 MKDIR
737 MV
738 RANLIB
739 AR
740 RM
741 SED
742 TAR
743 BINPWD
744 GRAPHVIZ
745 DOT
746 FDP
747 NEATO
748 TWOPI
749 CIRCO
750 GV
751 DOTTY
752 XDOT
753 INSTALL_PROGRAM
754 INSTALL_SCRIPT
755 INSTALL_DATA
756 BZIP2
757 CAT
758 DOXYGEN
759 GROFF
760 GZIPBIN
761 PDFROFF
762 ZIP
763 OCAMLC
764 OCAMLOPT
765 OCAMLDEP
766 OCAMLDOC
767 GAS
768 HAVE_LINK_VERSION_SCRIPT
769 EGREP
770 NO_VARIADIC_MACROS
771 NO_MISSING_FIELD_INITIALIZERS
772 COVERED_SWITCH_DEFAULT
773 NO_MAYBE_UNINITIALIZED
774 NO_UNINITIALIZED
775 PYTHON
776 HAVE_DLOPEN
777 HAVE_TERMINFO
778 USE_UDIS86
779 USE_OPROFILE
780 USE_INTEL_JITEVENTS
781 XML2CONFIG
782 LIBXML2_LIBS
783 LIBXML2_INC
784 CXXCPP
785 HAVE_PTHREAD
786 HAVE_LIBZ
787 HUGE_VAL_SANITY
788 MMAP_FILE
789 SHLIBEXT
790 LLVM_PREFIX
791 LLVM_BINDIR
792 LLVM_DATADIR
793 LLVM_DOCSDIR
794 LLVM_ETCDIR
795 LLVM_INCLUDEDIR
796 LLVM_INFODIR
797 LLVM_MANDIR
798 LLVM_CONFIGTIME
799 BINDINGS_TO_BUILD
800 ALL_BINDINGS
801 OCAML_LIBDIR
802 ENABLE_VISIBILITY_INLINES_HIDDEN
803 RPATH
804 RDYNAMIC
805 program_prefix
806 LIBOBJS
807 LTLIBOBJS'
808 ac_subst_files=''
809       ac_precious_vars='build_alias
810 host_alias
811 target_alias
812 CC
813 CFLAGS
814 LDFLAGS
815 CPPFLAGS
816 CXX
817 CXXFLAGS
818 CCC
819 CPP
820 CXXCPP'
821 ac_subdirs_all='projects/test-suite
822 projects/llvm-test
823 projects/poolalloc
824 projects/llvm-poolalloc
825 projects/sample
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-static-analyzer
1411                           Enable building of clang Static Analyzer (default is
1412                           YES)
1413   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1414   --enable-optimized      Compile with optimizations enabled (default is NO)
1415   --enable-profiling      Compile with profiling enabled (default is NO)
1416   --enable-assertions     Compile with assertion checks enabled (default is
1417                           YES)
1418   --enable-werror         Compile with -Werror enabled (default is NO)
1419   --enable-expensive-checks
1420                           Compile with expensive debug checks enabled (default
1421                           is NO)
1422   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1423                           NO)
1424   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1425                           optimization is on and YES if it's off)
1426   --enable-keep-symbols   Do not strip installed executables)
1427   --enable-jit            Enable Just In Time Compiling (default is YES)
1428   --enable-docs           Build documents (default is YES)
1429   --enable-doxygen        Build doxygen documentation (default is NO)
1430   --enable-threads        Use threads if available (default is YES)
1431   --enable-pthreads       Use pthreads if available (default is YES)
1432   --enable-zlib           Use zlib for compression/decompression if available
1433                           (default is YES)
1434   --enable-pic            Build LLVM with Position Independent Code (default
1435                           is YES)
1436   --enable-shared         Build a shared library and link tools against it
1437                           (default is NO)
1438   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1439                           Win32 DLL (default is NO)
1440   --enable-timestamps     Enable embedding timestamp information in build
1441                           (default is YES)
1442   --enable-backtraces     Enable embedding backtraces on crash (default is
1443                           YES)
1444   --enable-crash-overrides
1445                           Enable crash handling overrides (default is YES)
1446   --enable-targets        Build specific host targets: all or
1447                           target1,target2,... Valid targets are: host, x86,
1448                           x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1449                           xcore, msp430, nvptx, systemz, r600, and cpp
1450                           (default=all)
1451   --enable-experimental-targets
1452                           Build experimental host targets: disable or
1453                           target1,target2,... (default=disable)
1454   --enable-bindings       Build specific language bindings:
1455                           all,auto,none,{binding-name} (default=auto)
1456   --enable-terminfo       Query the terminfo database if available (default is
1457                           YES)
1458   --enable-libedit        Use libedit if available (default is YES)
1459   --enable-libffi         Check for the presence of libffi (default is NO)
1460
1461 Optional Packages:
1462   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1463   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1464   --with-optimize-option  Select the compiler options to use for optimized
1465                           builds
1466   --with-extra-options    Specify additional options to compile LLVM with
1467   --with-extra-ld-options Specify additional options to link LLVM with
1468   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1469                           is stdlib)
1470   --with-clang-srcdir     Directory to the out-of-tree Clang source
1471   --with-clang-resource-dir
1472                           Relative directory from the Clang binary for
1473                           resource files
1474   --with-c-include-dirs   Colon separated list of directories clang will
1475                           search for headers
1476   --with-gcc-toolchain    Directory where gcc is installed.
1477   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1478   --with-binutils-include Specify path to binutils/include/ containing
1479                           plugin-api.h file for gold plugin.
1480   --with-bug-report-url   Specify the URL where bug reports should be
1481                           submitted (default=http://llvm.org/bugs/)
1482   --with-internal-prefix  Installation directory for internal files
1483   --with-python           path to python
1484   --with-udis86=<path>    Use udis86 external x86 disassembler library
1485   --with-oprofile=<prefix>
1486                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1487   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1488
1489
1490 Some influential environment variables:
1491   CC          C compiler command
1492   CFLAGS      C compiler flags
1493   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494               nonstandard directory <lib dir>
1495   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1496               you have headers in a nonstandard directory <include dir>
1497   CXX         C++ compiler command
1498   CXXFLAGS    C++ compiler flags
1499   CPP         C preprocessor
1500   CXXCPP      C++ preprocessor
1501
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1504
1505 Report bugs to <http://llvm.org/bugs/>.
1506 _ACEOF
1507 ac_status=$?
1508 fi
1509
1510 if test "$ac_init_help" = "recursive"; then
1511   # If there are subdirs, report their specific --help.
1512   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513     test -d "$ac_dir" || continue
1514     ac_builddir=.
1515
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *)
1519   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1520   # A ".." for each directory in $ac_dir_suffix.
1521   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522   case $ac_top_builddir_sub in
1523   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525   esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1531
1532 case $srcdir in
1533   .)  # We are building in place.
1534     ac_srcdir=.
1535     ac_top_srcdir=$ac_top_builddir_sub
1536     ac_abs_top_srcdir=$ac_pwd ;;
1537   [\\/]* | ?:[\\/]* )  # Absolute name.
1538     ac_srcdir=$srcdir$ac_dir_suffix;
1539     ac_top_srcdir=$srcdir
1540     ac_abs_top_srcdir=$srcdir ;;
1541   *) # Relative name.
1542     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543     ac_top_srcdir=$ac_top_build_prefix$srcdir
1544     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1547
1548     cd "$ac_dir" || { ac_status=$?; continue; }
1549     # Check for guested configure.
1550     if test -f "$ac_srcdir/configure.gnu"; then
1551       echo &&
1552       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553     elif test -f "$ac_srcdir/configure"; then
1554       echo &&
1555       $SHELL "$ac_srcdir/configure" --help=recursive
1556     else
1557       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558     fi || ac_status=$?
1559     cd "$ac_pwd" || { ac_status=$?; break; }
1560   done
1561 fi
1562
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565   cat <<\_ACEOF
1566 LLVM configure 3.5.0svn
1567 generated by GNU Autoconf 2.60
1568
1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573
1574 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1575 _ACEOF
1576   exit
1577 fi
1578 cat >config.log <<_ACEOF
1579 This file contains any messages produced by compilers while
1580 running configure, to aid debugging if configure makes a mistake.
1581
1582 It was created by LLVM $as_me 3.5.0svn, which was
1583 generated by GNU Autoconf 2.60.  Invocation command line was
1584
1585   $ $0 $@
1586
1587 _ACEOF
1588 exec 5>>config.log
1589 {
1590 cat <<_ASUNAME
1591 ## --------- ##
1592 ## Platform. ##
1593 ## --------- ##
1594
1595 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1596 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1597 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1598 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1599 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600
1601 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1602 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1603
1604 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1605 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1606 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1607 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1608 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1609 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1610 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1611
1612 _ASUNAME
1613
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617   IFS=$as_save_IFS
1618   test -z "$as_dir" && as_dir=.
1619   echo "PATH: $as_dir"
1620 done
1621 IFS=$as_save_IFS
1622
1623 } >&5
1624
1625 cat >&5 <<_ACEOF
1626
1627
1628 ## ----------- ##
1629 ## Core tests. ##
1630 ## ----------- ##
1631
1632 _ACEOF
1633
1634
1635 # Keep a trace of the command line.
1636 # Strip out --no-create and --no-recursion so they do not pile up.
1637 # Strip out --silent because we don't want to record it for future runs.
1638 # Also quote any args containing shell meta-characters.
1639 # Make two passes to allow for proper duplicate-argument suppression.
1640 ac_configure_args=
1641 ac_configure_args0=
1642 ac_configure_args1=
1643 ac_must_keep_next=false
1644 for ac_pass in 1 2
1645 do
1646   for ac_arg
1647   do
1648     case $ac_arg in
1649     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1650     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1651     | -silent | --silent | --silen | --sile | --sil)
1652       continue ;;
1653     *\'*)
1654       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1655     esac
1656     case $ac_pass in
1657     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1658     2)
1659       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1660       if test $ac_must_keep_next = true; then
1661         ac_must_keep_next=false # Got value, back to normal.
1662       else
1663         case $ac_arg in
1664           *=* | --config-cache | -C | -disable-* | --disable-* \
1665           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1666           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1667           | -with-* | --with-* | -without-* | --without-* | --x)
1668             case "$ac_configure_args0 " in
1669               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1670             esac
1671             ;;
1672           -* ) ac_must_keep_next=true ;;
1673         esac
1674       fi
1675       ac_configure_args="$ac_configure_args '$ac_arg'"
1676       ;;
1677     esac
1678   done
1679 done
1680 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1681 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682
1683 # When interrupted or exit'd, cleanup temporary files, and complete
1684 # config.log.  We remove comments because anyway the quotes in there
1685 # would cause problems or look ugly.
1686 # WARNING: Use '\'' to represent an apostrophe within the trap.
1687 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1688 trap 'exit_status=$?
1689   # Save into config.log some information that might help in debugging.
1690   {
1691     echo
1692
1693     cat <<\_ASBOX
1694 ## ---------------- ##
1695 ## Cache variables. ##
1696 ## ---------------- ##
1697 _ASBOX
1698     echo
1699     # The following way of writing the cache mishandles newlines in values,
1700 (
1701   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1702     eval ac_val=\$$ac_var
1703     case $ac_val in #(
1704     *${as_nl}*)
1705       case $ac_var in #(
1706       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1707 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1708       esac
1709       case $ac_var in #(
1710       _ | IFS | as_nl) ;; #(
1711       *) $as_unset $ac_var ;;
1712       esac ;;
1713     esac
1714   done
1715   (set) 2>&1 |
1716     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717     *${as_nl}ac_space=\ *)
1718       sed -n \
1719         "s/'\''/'\''\\\\'\'''\''/g;
1720           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721       ;; #(
1722     *)
1723       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1724       ;;
1725     esac |
1726     sort
1727 )
1728     echo
1729
1730     cat <<\_ASBOX
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1734 _ASBOX
1735     echo
1736     for ac_var in $ac_subst_vars
1737     do
1738       eval ac_val=\$$ac_var
1739       case $ac_val in
1740       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741       esac
1742       echo "$ac_var='\''$ac_val'\''"
1743     done | sort
1744     echo
1745
1746     if test -n "$ac_subst_files"; then
1747       cat <<\_ASBOX
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1751 _ASBOX
1752       echo
1753       for ac_var in $ac_subst_files
1754       do
1755         eval ac_val=\$$ac_var
1756         case $ac_val in
1757         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758         esac
1759         echo "$ac_var='\''$ac_val'\''"
1760       done | sort
1761       echo
1762     fi
1763
1764     if test -s confdefs.h; then
1765       cat <<\_ASBOX
1766 ## ----------- ##
1767 ## confdefs.h. ##
1768 ## ----------- ##
1769 _ASBOX
1770       echo
1771       cat confdefs.h
1772       echo
1773     fi
1774     test "$ac_signal" != 0 &&
1775       echo "$as_me: caught signal $ac_signal"
1776     echo "$as_me: exit $exit_status"
1777   } >&5
1778   rm -f core *.core core.conftest.* &&
1779     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780     exit $exit_status
1781 ' 0
1782 for ac_signal in 1 2 13 15; do
1783   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 done
1785 ac_signal=0
1786
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1789
1790 # Predefined preprocessor variables.
1791
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 _ACEOF
1795
1796
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 _ACEOF
1800
1801
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 _ACEOF
1805
1806
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 _ACEOF
1810
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 _ACEOF
1815
1816
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer explicitly selected file to automatically selected ones.
1819 if test -n "$CONFIG_SITE"; then
1820   set x "$CONFIG_SITE"
1821 elif test "x$prefix" != xNONE; then
1822   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1823 else
1824   set x "$ac_default_prefix/share/config.site" \
1825         "$ac_default_prefix/etc/config.site"
1826 fi
1827 shift
1828 for ac_site_file
1829 do
1830   if test -r "$ac_site_file"; then
1831     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1832 echo "$as_me: loading site script $ac_site_file" >&6;}
1833     sed 's/^/| /' "$ac_site_file" >&5
1834     . "$ac_site_file"
1835   fi
1836 done
1837
1838 if test -r "$cache_file"; then
1839   # Some versions of bash will fail to source /dev/null (special
1840   # files actually), so we avoid doing that.
1841   if test -f "$cache_file"; then
1842     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1843 echo "$as_me: loading cache $cache_file" >&6;}
1844     case $cache_file in
1845       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1846       *)                      . "./$cache_file";;
1847     esac
1848   fi
1849 else
1850   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1851 echo "$as_me: creating cache $cache_file" >&6;}
1852   >$cache_file
1853 fi
1854
1855 # Check that the precious variables saved in the cache have kept the same
1856 # value.
1857 ac_cache_corrupted=false
1858 for ac_var in $ac_precious_vars; do
1859   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1860   eval ac_new_set=\$ac_env_${ac_var}_set
1861   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1862   eval ac_new_val=\$ac_env_${ac_var}_value
1863   case $ac_old_set,$ac_new_set in
1864     set,)
1865       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1866 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1867       ac_cache_corrupted=: ;;
1868     ,set)
1869       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1870 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1871       ac_cache_corrupted=: ;;
1872     ,);;
1873     *)
1874       if test "x$ac_old_val" != "x$ac_new_val"; then
1875         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1876 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1877         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1878 echo "$as_me:   former value:  $ac_old_val" >&2;}
1879         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1880 echo "$as_me:   current value: $ac_new_val" >&2;}
1881         ac_cache_corrupted=:
1882       fi;;
1883   esac
1884   # Pass precious variables to config.status.
1885   if test "$ac_new_set" = set; then
1886     case $ac_new_val in
1887     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1888     *) ac_arg=$ac_var=$ac_new_val ;;
1889     esac
1890     case " $ac_configure_args " in
1891       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1892       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1893     esac
1894   fi
1895 done
1896 if $ac_cache_corrupted; then
1897   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1898 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1899   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1900 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1901    { (exit 1); exit 1; }; }
1902 fi
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928 ac_ext=c
1929 ac_cpp='$CPP $CPPFLAGS'
1930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933
1934
1935
1936 LLVM_VERSION_MAJOR=3
1937 LLVM_VERSION_MINOR=5
1938 LLVM_VERSION_PATCH=0
1939 LLVM_VERSION_SUFFIX=svn
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1949 _ACEOF
1950
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1954 _ACEOF
1955
1956
1957
1958
1959
1960
1961
1962 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1963
1964
1965
1966
1967
1968
1969
1970 ac_aux_dir=
1971 for ac_dir in autoconf "$srcdir"/autoconf; do
1972   if test -f "$ac_dir/install-sh"; then
1973     ac_aux_dir=$ac_dir
1974     ac_install_sh="$ac_aux_dir/install-sh -c"
1975     break
1976   elif test -f "$ac_dir/install.sh"; then
1977     ac_aux_dir=$ac_dir
1978     ac_install_sh="$ac_aux_dir/install.sh -c"
1979     break
1980   elif test -f "$ac_dir/shtool"; then
1981     ac_aux_dir=$ac_dir
1982     ac_install_sh="$ac_aux_dir/shtool install -c"
1983     break
1984   fi
1985 done
1986 if test -z "$ac_aux_dir"; then
1987   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1988 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1989    { (exit 1); exit 1; }; }
1990 fi
1991
1992 # These three variables are undocumented and unsupported,
1993 # and are intended to be withdrawn in a future Autoconf release.
1994 # They can cause serious problems if a builder's source tree is in a directory
1995 # whose full name contains unusual characters.
1996 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1997 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1998 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1999
2000
2001
2002 if test ${srcdir} != "." ; then
2003   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2004     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2005 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2006    { (exit 1); exit 1; }; }
2007   fi
2008 fi
2009
2010 : ${CFLAGS=}
2011 : ${CXXFLAGS=}
2012
2013 ac_ext=c
2014 ac_cpp='$CPP $CPPFLAGS'
2015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018 if test -n "$ac_tool_prefix"; then
2019   for ac_prog in clang gcc
2020   do
2021     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2025 if test "${ac_cv_prog_CC+set}" = set; then
2026   echo $ECHO_N "(cached) $ECHO_C" >&6
2027 else
2028   if test -n "$CC"; then
2029   ac_cv_prog_CC="$CC" # Let the user override the test.
2030 else
2031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 for as_dir in $PATH
2033 do
2034   IFS=$as_save_IFS
2035   test -z "$as_dir" && as_dir=.
2036   for ac_exec_ext in '' $ac_executable_extensions; do
2037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2038     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040     break 2
2041   fi
2042 done
2043 done
2044 IFS=$as_save_IFS
2045
2046 fi
2047 fi
2048 CC=$ac_cv_prog_CC
2049 if test -n "$CC"; then
2050   { echo "$as_me:$LINENO: result: $CC" >&5
2051 echo "${ECHO_T}$CC" >&6; }
2052 else
2053   { echo "$as_me:$LINENO: result: no" >&5
2054 echo "${ECHO_T}no" >&6; }
2055 fi
2056
2057
2058     test -n "$CC" && break
2059   done
2060 fi
2061 if test -z "$CC"; then
2062   ac_ct_CC=$CC
2063   for ac_prog in clang gcc
2064 do
2065   # Extract the first word of "$ac_prog", so it can be a program name with args.
2066 set dummy $ac_prog; ac_word=$2
2067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2069 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2070   echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072   if test -n "$ac_ct_CC"; then
2073   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2077 do
2078   IFS=$as_save_IFS
2079   test -z "$as_dir" && as_dir=.
2080   for ac_exec_ext in '' $ac_executable_extensions; do
2081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2082     ac_cv_prog_ac_ct_CC="$ac_prog"
2083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084     break 2
2085   fi
2086 done
2087 done
2088 IFS=$as_save_IFS
2089
2090 fi
2091 fi
2092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2093 if test -n "$ac_ct_CC"; then
2094   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2095 echo "${ECHO_T}$ac_ct_CC" >&6; }
2096 else
2097   { echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6; }
2099 fi
2100
2101
2102   test -n "$ac_ct_CC" && break
2103 done
2104
2105   if test "x$ac_ct_CC" = x; then
2106     CC=""
2107   else
2108     case $cross_compiling:$ac_tool_warned in
2109 yes:)
2110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2111 whose name does not start with the host triplet.  If you think this
2112 configuration is useful to you, please write to autoconf@gnu.org." >&5
2113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2114 whose name does not start with the host triplet.  If you think this
2115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2116 ac_tool_warned=yes ;;
2117 esac
2118     CC=$ac_ct_CC
2119   fi
2120 fi
2121
2122
2123 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&2;}
2127    { (exit 1); exit 1; }; }
2128
2129 # Provide some information about the compiler.
2130 echo "$as_me:$LINENO: checking for C compiler version" >&5
2131 ac_compiler=`set X $ac_compile; echo $2`
2132 { (ac_try="$ac_compiler --version >&5"
2133 case "(($ac_try" in
2134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2135   *) ac_try_echo=$ac_try;;
2136 esac
2137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2138   (eval "$ac_compiler --version >&5") 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }
2142 { (ac_try="$ac_compiler -v >&5"
2143 case "(($ac_try" in
2144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145   *) ac_try_echo=$ac_try;;
2146 esac
2147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2148   (eval "$ac_compiler -v >&5") 2>&5
2149   ac_status=$?
2150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151   (exit $ac_status); }
2152 { (ac_try="$ac_compiler -V >&5"
2153 case "(($ac_try" in
2154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155   *) ac_try_echo=$ac_try;;
2156 esac
2157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2158   (eval "$ac_compiler -V >&5") 2>&5
2159   ac_status=$?
2160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161   (exit $ac_status); }
2162
2163 cat >conftest.$ac_ext <<_ACEOF
2164 /* confdefs.h.  */
2165 _ACEOF
2166 cat confdefs.h >>conftest.$ac_ext
2167 cat >>conftest.$ac_ext <<_ACEOF
2168 /* end confdefs.h.  */
2169
2170 int
2171 main ()
2172 {
2173
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 ac_clean_files_save=$ac_clean_files
2179 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2180 # Try to create an executable without -o first, disregard a.out.
2181 # It will help us diagnose broken compilers, and finding out an intuition
2182 # of exeext.
2183 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2184 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2185 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2186 #
2187 # List of possible output files, starting from the most likely.
2188 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2189 # only as a last resort.  b.out is created by i960 compilers.
2190 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2191 #
2192 # The IRIX 6 linker writes into existing files which may not be
2193 # executable, retaining their permissions.  Remove them first so a
2194 # subsequent execution test works.
2195 ac_rmfiles=
2196 for ac_file in $ac_files
2197 do
2198   case $ac_file in
2199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2200     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2201   esac
2202 done
2203 rm -f $ac_rmfiles
2204
2205 if { (ac_try="$ac_link_default"
2206 case "(($ac_try" in
2207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2208   *) ac_try_echo=$ac_try;;
2209 esac
2210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2211   (eval "$ac_link_default") 2>&5
2212   ac_status=$?
2213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214   (exit $ac_status); }; then
2215   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2216 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2217 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2218 # so that the user can short-circuit this test for compilers unknown to
2219 # Autoconf.
2220 for ac_file in $ac_files
2221 do
2222   test -f "$ac_file" || continue
2223   case $ac_file in
2224     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2225         ;;
2226     [ab].out )
2227         # We found the default executable, but exeext='' is most
2228         # certainly right.
2229         break;;
2230     *.* )
2231         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2232         then :; else
2233            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2234         fi
2235         # We set ac_cv_exeext here because the later test for it is not
2236         # safe: cross compilers may not add the suffix if given an `-o'
2237         # argument, so we may need to know it at that point already.
2238         # Even if this section looks crufty: it has the advantage of
2239         # actually working.
2240         break;;
2241     * )
2242         break;;
2243   esac
2244 done
2245 test "$ac_cv_exeext" = no && ac_cv_exeext=
2246
2247 else
2248   echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2250
2251 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2252 See \`config.log' for more details." >&5
2253 echo "$as_me: error: C compiler cannot create executables
2254 See \`config.log' for more details." >&2;}
2255    { (exit 77); exit 77; }; }
2256 fi
2257
2258 ac_exeext=$ac_cv_exeext
2259 { echo "$as_me:$LINENO: result: $ac_file" >&5
2260 echo "${ECHO_T}$ac_file" >&6; }
2261
2262 # Check that the compiler produces executables we can run.  If not, either
2263 # the compiler is broken, or we cross compile.
2264 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2265 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2266 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2267 # If not cross compiling, check that we can run a simple program.
2268 if test "$cross_compiling" != yes; then
2269   if { ac_try='./$ac_file'
2270   { (case "(($ac_try" in
2271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272   *) ac_try_echo=$ac_try;;
2273 esac
2274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2275   (eval "$ac_try") 2>&5
2276   ac_status=$?
2277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278   (exit $ac_status); }; }; then
2279     cross_compiling=no
2280   else
2281     if test "$cross_compiling" = maybe; then
2282         cross_compiling=yes
2283     else
2284         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2285 If you meant to cross compile, use \`--host'.
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot run C compiled programs.
2288 If you meant to cross compile, use \`--host'.
2289 See \`config.log' for more details." >&2;}
2290    { (exit 1); exit 1; }; }
2291     fi
2292   fi
2293 fi
2294 { echo "$as_me:$LINENO: result: yes" >&5
2295 echo "${ECHO_T}yes" >&6; }
2296
2297 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2298 ac_clean_files=$ac_clean_files_save
2299 # Check that the compiler produces executables we can run.  If not, either
2300 # the compiler is broken, or we cross compile.
2301 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2302 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2303 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2304 echo "${ECHO_T}$cross_compiling" >&6; }
2305
2306 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2307 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2308 if { (ac_try="$ac_link"
2309 case "(($ac_try" in
2310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311   *) ac_try_echo=$ac_try;;
2312 esac
2313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2314   (eval "$ac_link") 2>&5
2315   ac_status=$?
2316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317   (exit $ac_status); }; then
2318   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2319 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2320 # work properly (i.e., refer to `conftest.exe'), while it won't with
2321 # `rm'.
2322 for ac_file in conftest.exe conftest conftest.*; do
2323   test -f "$ac_file" || continue
2324   case $ac_file in
2325     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2326     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2327           break;;
2328     * ) break;;
2329   esac
2330 done
2331 else
2332   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2333 See \`config.log' for more details." >&5
2334 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2335 See \`config.log' for more details." >&2;}
2336    { (exit 1); exit 1; }; }
2337 fi
2338
2339 rm -f conftest$ac_cv_exeext
2340 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2341 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2342
2343 rm -f conftest.$ac_ext
2344 EXEEXT=$ac_cv_exeext
2345 ac_exeext=$EXEEXT
2346 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2347 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2348 if test "${ac_cv_objext+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h.  */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h.  */
2357
2358 int
2359 main ()
2360 {
2361
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 rm -f conftest.o conftest.obj
2367 if { (ac_try="$ac_compile"
2368 case "(($ac_try" in
2369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370   *) ac_try_echo=$ac_try;;
2371 esac
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373   (eval "$ac_compile") 2>&5
2374   ac_status=$?
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); }; then
2377   for ac_file in conftest.o conftest.obj conftest.*; do
2378   test -f "$ac_file" || continue;
2379   case $ac_file in
2380     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2381     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2382        break;;
2383   esac
2384 done
2385 else
2386   echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2388
2389 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2390 See \`config.log' for more details." >&5
2391 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&2;}
2393    { (exit 1); exit 1; }; }
2394 fi
2395
2396 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2397 fi
2398 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2399 echo "${ECHO_T}$ac_cv_objext" >&6; }
2400 OBJEXT=$ac_cv_objext
2401 ac_objext=$OBJEXT
2402 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2403 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2404 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2405   echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407   cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h.  */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h.  */
2413
2414 int
2415 main ()
2416 {
2417 #ifndef __GNUC__
2418        choke me
2419 #endif
2420
2421   ;
2422   return 0;
2423 }
2424 _ACEOF
2425 rm -f conftest.$ac_objext
2426 if { (ac_try="$ac_compile"
2427 case "(($ac_try" in
2428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429   *) ac_try_echo=$ac_try;;
2430 esac
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432   (eval "$ac_compile") 2>conftest.er1
2433   ac_status=$?
2434   grep -v '^ *+' conftest.er1 >conftest.err
2435   rm -f conftest.er1
2436   cat conftest.err >&5
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); } &&
2439          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2440   { (case "(($ac_try" in
2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442   *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445   (eval "$ac_try") 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }; } &&
2449          { ac_try='test -s conftest.$ac_objext'
2450   { (case "(($ac_try" in
2451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452   *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455   (eval "$ac_try") 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }; }; then
2459   ac_compiler_gnu=yes
2460 else
2461   echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2463
2464         ac_compiler_gnu=no
2465 fi
2466
2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2468 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2469
2470 fi
2471 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2472 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2473 GCC=`test $ac_compiler_gnu = yes && echo yes`
2474 ac_test_CFLAGS=${CFLAGS+set}
2475 ac_save_CFLAGS=$CFLAGS
2476 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2477 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_cc_g+set}" = set; then
2479   echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481   ac_save_c_werror_flag=$ac_c_werror_flag
2482    ac_c_werror_flag=yes
2483    ac_cv_prog_cc_g=no
2484    CFLAGS="-g"
2485    cat >conftest.$ac_ext <<_ACEOF
2486 /* confdefs.h.  */
2487 _ACEOF
2488 cat confdefs.h >>conftest.$ac_ext
2489 cat >>conftest.$ac_ext <<_ACEOF
2490 /* end confdefs.h.  */
2491
2492 int
2493 main ()
2494 {
2495
2496   ;
2497   return 0;
2498 }
2499 _ACEOF
2500 rm -f conftest.$ac_objext
2501 if { (ac_try="$ac_compile"
2502 case "(($ac_try" in
2503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2504   *) ac_try_echo=$ac_try;;
2505 esac
2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2507   (eval "$ac_compile") 2>conftest.er1
2508   ac_status=$?
2509   grep -v '^ *+' conftest.er1 >conftest.err
2510   rm -f conftest.er1
2511   cat conftest.err >&5
2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513   (exit $ac_status); } &&
2514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2515   { (case "(($ac_try" in
2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517   *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520   (eval "$ac_try") 2>&5
2521   ac_status=$?
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); }; } &&
2524          { ac_try='test -s conftest.$ac_objext'
2525   { (case "(($ac_try" in
2526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527   *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530   (eval "$ac_try") 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; }; then
2534   ac_cv_prog_cc_g=yes
2535 else
2536   echo "$as_me: failed program was:" >&5
2537 sed 's/^/| /' conftest.$ac_ext >&5
2538
2539         CFLAGS=""
2540       cat >conftest.$ac_ext <<_ACEOF
2541 /* confdefs.h.  */
2542 _ACEOF
2543 cat confdefs.h >>conftest.$ac_ext
2544 cat >>conftest.$ac_ext <<_ACEOF
2545 /* end confdefs.h.  */
2546
2547 int
2548 main ()
2549 {
2550
2551   ;
2552   return 0;
2553 }
2554 _ACEOF
2555 rm -f conftest.$ac_objext
2556 if { (ac_try="$ac_compile"
2557 case "(($ac_try" in
2558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559   *) ac_try_echo=$ac_try;;
2560 esac
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562   (eval "$ac_compile") 2>conftest.er1
2563   ac_status=$?
2564   grep -v '^ *+' conftest.er1 >conftest.err
2565   rm -f conftest.er1
2566   cat conftest.err >&5
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); } &&
2569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2570   { (case "(($ac_try" in
2571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572   *) ac_try_echo=$ac_try;;
2573 esac
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575   (eval "$ac_try") 2>&5
2576   ac_status=$?
2577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578   (exit $ac_status); }; } &&
2579          { ac_try='test -s conftest.$ac_objext'
2580   { (case "(($ac_try" in
2581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582   *) ac_try_echo=$ac_try;;
2583 esac
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585   (eval "$ac_try") 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; }; then
2589   :
2590 else
2591   echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594         ac_c_werror_flag=$ac_save_c_werror_flag
2595          CFLAGS="-g"
2596          cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h.  */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h.  */
2602
2603 int
2604 main ()
2605 {
2606
2607   ;
2608   return 0;
2609 }
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (ac_try="$ac_compile"
2613 case "(($ac_try" in
2614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615   *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618   (eval "$ac_compile") 2>conftest.er1
2619   ac_status=$?
2620   grep -v '^ *+' conftest.er1 >conftest.err
2621   rm -f conftest.er1
2622   cat conftest.err >&5
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); } &&
2625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2626   { (case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631   (eval "$ac_try") 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; } &&
2635          { ac_try='test -s conftest.$ac_objext'
2636   { (case "(($ac_try" in
2637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638   *) ac_try_echo=$ac_try;;
2639 esac
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641   (eval "$ac_try") 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); }; }; then
2645   ac_cv_prog_cc_g=yes
2646 else
2647   echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650
2651 fi
2652
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 fi
2655
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 fi
2658
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660    ac_c_werror_flag=$ac_save_c_werror_flag
2661 fi
2662 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2663 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2664 if test "$ac_test_CFLAGS" = set; then
2665   CFLAGS=$ac_save_CFLAGS
2666 elif test $ac_cv_prog_cc_g = yes; then
2667   if test "$GCC" = yes; then
2668     CFLAGS="-g -O2"
2669   else
2670     CFLAGS="-g"
2671   fi
2672 else
2673   if test "$GCC" = yes; then
2674     CFLAGS="-O2"
2675   else
2676     CFLAGS=
2677   fi
2678 fi
2679 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2680 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2681 if test "${ac_cv_prog_cc_c89+set}" = set; then
2682   echo $ECHO_N "(cached) $ECHO_C" >&6
2683 else
2684   ac_cv_prog_cc_c89=no
2685 ac_save_CC=$CC
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692 #include <stdarg.h>
2693 #include <stdio.h>
2694 #include <sys/types.h>
2695 #include <sys/stat.h>
2696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2697 struct buf { int x; };
2698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2699 static char *e (p, i)
2700      char **p;
2701      int i;
2702 {
2703   return p[i];
2704 }
2705 static char *f (char * (*g) (char **, int), char **p, ...)
2706 {
2707   char *s;
2708   va_list v;
2709   va_start (v,p);
2710   s = g (p, va_arg (v,int));
2711   va_end (v);
2712   return s;
2713 }
2714
2715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2716    function prototypes and stuff, but not '\xHH' hex character constants.
2717    These don't provoke an error unfortunately, instead are silently treated
2718    as 'x'.  The following induces an error, until -std is added to get
2719    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2720    array size at least.  It's necessary to write '\x00'==0 to get something
2721    that's true only with -std.  */
2722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2723
2724 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2725    inside strings and character constants.  */
2726 #define FOO(x) 'x'
2727 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2728
2729 int test (int i, double x);
2730 struct s1 {int (*f) (int a);};
2731 struct s2 {int (*f) (double a);};
2732 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2733 int argc;
2734 char **argv;
2735 int
2736 main ()
2737 {
2738 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2744         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2745 do
2746   CC="$ac_save_CC $ac_arg"
2747   rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2749 case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2754   (eval "$ac_compile") 2>conftest.er1
2755   ac_status=$?
2756   grep -v '^ *+' conftest.er1 >conftest.err
2757   rm -f conftest.er1
2758   cat conftest.err >&5
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); } &&
2761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2762   { (case "(($ac_try" in
2763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764   *) ac_try_echo=$ac_try;;
2765 esac
2766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767   (eval "$ac_try") 2>&5
2768   ac_status=$?
2769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770   (exit $ac_status); }; } &&
2771          { ac_try='test -s conftest.$ac_objext'
2772   { (case "(($ac_try" in
2773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774   *) ac_try_echo=$ac_try;;
2775 esac
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777   (eval "$ac_try") 2>&5
2778   ac_status=$?
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); }; }; then
2781   ac_cv_prog_cc_c89=$ac_arg
2782 else
2783   echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786
2787 fi
2788
2789 rm -f core conftest.err conftest.$ac_objext
2790   test "x$ac_cv_prog_cc_c89" != "xno" && break
2791 done
2792 rm -f conftest.$ac_ext
2793 CC=$ac_save_CC
2794
2795 fi
2796 # AC_CACHE_VAL
2797 case "x$ac_cv_prog_cc_c89" in
2798   x)
2799     { echo "$as_me:$LINENO: result: none needed" >&5
2800 echo "${ECHO_T}none needed" >&6; } ;;
2801   xno)
2802     { echo "$as_me:$LINENO: result: unsupported" >&5
2803 echo "${ECHO_T}unsupported" >&6; } ;;
2804   *)
2805     CC="$CC $ac_cv_prog_cc_c89"
2806     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2807 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2808 esac
2809
2810
2811 ac_ext=c
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816
2817 ac_ext=cpp
2818 ac_cpp='$CXXCPP $CPPFLAGS'
2819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2822 if test -z "$CXX"; then
2823   if test -n "$CCC"; then
2824     CXX=$CCC
2825   else
2826     if test -n "$ac_tool_prefix"; then
2827   for ac_prog in clang++ g++
2828   do
2829     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_CXX+set}" = set; then
2834   echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836   if test -n "$CXX"; then
2837   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2838 else
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 for as_dir in $PATH
2841 do
2842   IFS=$as_save_IFS
2843   test -z "$as_dir" && as_dir=.
2844   for ac_exec_ext in '' $ac_executable_extensions; do
2845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2846     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2847     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848     break 2
2849   fi
2850 done
2851 done
2852 IFS=$as_save_IFS
2853
2854 fi
2855 fi
2856 CXX=$ac_cv_prog_CXX
2857 if test -n "$CXX"; then
2858   { echo "$as_me:$LINENO: result: $CXX" >&5
2859 echo "${ECHO_T}$CXX" >&6; }
2860 else
2861   { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2863 fi
2864
2865
2866     test -n "$CXX" && break
2867   done
2868 fi
2869 if test -z "$CXX"; then
2870   ac_ct_CXX=$CXX
2871   for ac_prog in clang++ g++
2872 do
2873   # Extract the first word of "$ac_prog", so it can be a program name with args.
2874 set dummy $ac_prog; ac_word=$2
2875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   if test -n "$ac_ct_CXX"; then
2881   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886   IFS=$as_save_IFS
2887   test -z "$as_dir" && as_dir=.
2888   for ac_exec_ext in '' $ac_executable_extensions; do
2889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2890     ac_cv_prog_ac_ct_CXX="$ac_prog"
2891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892     break 2
2893   fi
2894 done
2895 done
2896 IFS=$as_save_IFS
2897
2898 fi
2899 fi
2900 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2901 if test -n "$ac_ct_CXX"; then
2902   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2903 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2904 else
2905   { echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6; }
2907 fi
2908
2909
2910   test -n "$ac_ct_CXX" && break
2911 done
2912
2913   if test "x$ac_ct_CXX" = x; then
2914     CXX="g++"
2915   else
2916     case $cross_compiling:$ac_tool_warned in
2917 yes:)
2918 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2919 whose name does not start with the host triplet.  If you think this
2920 configuration is useful to you, please write to autoconf@gnu.org." >&5
2921 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2922 whose name does not start with the host triplet.  If you think this
2923 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2924 ac_tool_warned=yes ;;
2925 esac
2926     CXX=$ac_ct_CXX
2927   fi
2928 fi
2929
2930   fi
2931 fi
2932 # Provide some information about the compiler.
2933 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2934 ac_compiler=`set X $ac_compile; echo $2`
2935 { (ac_try="$ac_compiler --version >&5"
2936 case "(($ac_try" in
2937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938   *) ac_try_echo=$ac_try;;
2939 esac
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941   (eval "$ac_compiler --version >&5") 2>&5
2942   ac_status=$?
2943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944   (exit $ac_status); }
2945 { (ac_try="$ac_compiler -v >&5"
2946 case "(($ac_try" in
2947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948   *) ac_try_echo=$ac_try;;
2949 esac
2950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951   (eval "$ac_compiler -v >&5") 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); }
2955 { (ac_try="$ac_compiler -V >&5"
2956 case "(($ac_try" in
2957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958   *) ac_try_echo=$ac_try;;
2959 esac
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961   (eval "$ac_compiler -V >&5") 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }
2965
2966 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2967 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2968 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2969   echo $ECHO_N "(cached) $ECHO_C" >&6
2970 else
2971   cat >conftest.$ac_ext <<_ACEOF
2972 /* confdefs.h.  */
2973 _ACEOF
2974 cat confdefs.h >>conftest.$ac_ext
2975 cat >>conftest.$ac_ext <<_ACEOF
2976 /* end confdefs.h.  */
2977
2978 int
2979 main ()
2980 {
2981 #ifndef __GNUC__
2982        choke me
2983 #endif
2984
2985   ;
2986   return 0;
2987 }
2988 _ACEOF
2989 rm -f conftest.$ac_objext
2990 if { (ac_try="$ac_compile"
2991 case "(($ac_try" in
2992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993   *) ac_try_echo=$ac_try;;
2994 esac
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996   (eval "$ac_compile") 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } &&
3003          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3004   { (case "(($ac_try" in
3005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006   *) ac_try_echo=$ac_try;;
3007 esac
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009   (eval "$ac_try") 2>&5
3010   ac_status=$?
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); }; } &&
3013          { ac_try='test -s conftest.$ac_objext'
3014   { (case "(($ac_try" in
3015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016   *) ac_try_echo=$ac_try;;
3017 esac
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019   (eval "$ac_try") 2>&5
3020   ac_status=$?
3021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022   (exit $ac_status); }; }; then
3023   ac_compiler_gnu=yes
3024 else
3025   echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028         ac_compiler_gnu=no
3029 fi
3030
3031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3032 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3033
3034 fi
3035 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3036 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3037 GXX=`test $ac_compiler_gnu = yes && echo yes`
3038 ac_test_CXXFLAGS=${CXXFLAGS+set}
3039 ac_save_CXXFLAGS=$CXXFLAGS
3040 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3041 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3042 if test "${ac_cv_prog_cxx_g+set}" = set; then
3043   echo $ECHO_N "(cached) $ECHO_C" >&6
3044 else
3045   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3046    ac_cxx_werror_flag=yes
3047    ac_cv_prog_cxx_g=no
3048    CXXFLAGS="-g"
3049    cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055
3056 int
3057 main ()
3058 {
3059
3060   ;
3061   return 0;
3062 }
3063 _ACEOF
3064 rm -f conftest.$ac_objext
3065 if { (ac_try="$ac_compile"
3066 case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_compile") 2>conftest.er1
3072   ac_status=$?
3073   grep -v '^ *+' conftest.er1 >conftest.err
3074   rm -f conftest.er1
3075   cat conftest.err >&5
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); } &&
3078          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3079   { (case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084   (eval "$ac_try") 2>&5
3085   ac_status=$?
3086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); }; } &&
3088          { ac_try='test -s conftest.$ac_objext'
3089   { (case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094   (eval "$ac_try") 2>&5
3095   ac_status=$?
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); }; }; then
3098   ac_cv_prog_cxx_g=yes
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103         CXXFLAGS=""
3104       cat >conftest.$ac_ext <<_ACEOF
3105 /* confdefs.h.  */
3106 _ACEOF
3107 cat confdefs.h >>conftest.$ac_ext
3108 cat >>conftest.$ac_ext <<_ACEOF
3109 /* end confdefs.h.  */
3110
3111 int
3112 main ()
3113 {
3114
3115   ;
3116   return 0;
3117 }
3118 _ACEOF
3119 rm -f conftest.$ac_objext
3120 if { (ac_try="$ac_compile"
3121 case "(($ac_try" in
3122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123   *) ac_try_echo=$ac_try;;
3124 esac
3125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3126   (eval "$ac_compile") 2>conftest.er1
3127   ac_status=$?
3128   grep -v '^ *+' conftest.er1 >conftest.err
3129   rm -f conftest.er1
3130   cat conftest.err >&5
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); } &&
3133          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3134   { (case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_try") 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); }; } &&
3143          { ac_try='test -s conftest.$ac_objext'
3144   { (case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149   (eval "$ac_try") 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }; }; then
3153   :
3154 else
3155   echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3159          CXXFLAGS="-g"
3160          cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h.  */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h.  */
3166
3167 int
3168 main ()
3169 {
3170
3171   ;
3172   return 0;
3173 }
3174 _ACEOF
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compile") 2>conftest.er1
3183   ac_status=$?
3184   grep -v '^ *+' conftest.er1 >conftest.err
3185   rm -f conftest.er1
3186   cat conftest.err >&5
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); } &&
3189          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3190   { (case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_try") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; } &&
3199          { ac_try='test -s conftest.$ac_objext'
3200   { (case "(($ac_try" in
3201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202   *) ac_try_echo=$ac_try;;
3203 esac
3204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205   (eval "$ac_try") 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }; }; then
3209   ac_cv_prog_cxx_g=yes
3210 else
3211   echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214
3215 fi
3216
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 fi
3219
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 fi
3222
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3225 fi
3226 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3227 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3228 if test "$ac_test_CXXFLAGS" = set; then
3229   CXXFLAGS=$ac_save_CXXFLAGS
3230 elif test $ac_cv_prog_cxx_g = yes; then
3231   if test "$GXX" = yes; then
3232     CXXFLAGS="-g -O2"
3233   else
3234     CXXFLAGS="-g"
3235   fi
3236 else
3237   if test "$GXX" = yes; then
3238     CXXFLAGS="-O2"
3239   else
3240     CXXFLAGS=
3241   fi
3242 fi
3243 ac_ext=c
3244 ac_cpp='$CPP $CPPFLAGS'
3245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248
3249 ac_ext=c
3250 ac_cpp='$CPP $CPPFLAGS'
3251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3254 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3255 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3256 # On Suns, sometimes $CPP names a directory.
3257 if test -n "$CPP" && test -d "$CPP"; then
3258   CPP=
3259 fi
3260 if test -z "$CPP"; then
3261   if test "${ac_cv_prog_CPP+set}" = set; then
3262   echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264       # Double quotes because CPP needs to be expanded
3265     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3266     do
3267       ac_preproc_ok=false
3268 for ac_c_preproc_warn_flag in '' yes
3269 do
3270   # Use a header file that comes with gcc, so configuring glibc
3271   # with a fresh cross-compiler works.
3272   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3273   # <limits.h> exists even on freestanding compilers.
3274   # On the NeXT, cc -E runs the code through the compiler's parser,
3275   # not just through cpp. "Syntax error" is here to catch this case.
3276   cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h.  */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h.  */
3282 #ifdef __STDC__
3283 # include <limits.h>
3284 #else
3285 # include <assert.h>
3286 #endif
3287                      Syntax error
3288 _ACEOF
3289 if { (ac_try="$ac_cpp conftest.$ac_ext"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3296   ac_status=$?
3297   grep -v '^ *+' conftest.er1 >conftest.err
3298   rm -f conftest.er1
3299   cat conftest.err >&5
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } >/dev/null; then
3302   if test -s conftest.err; then
3303     ac_cpp_err=$ac_c_preproc_warn_flag
3304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3305   else
3306     ac_cpp_err=
3307   fi
3308 else
3309   ac_cpp_err=yes
3310 fi
3311 if test -z "$ac_cpp_err"; then
3312   :
3313 else
3314   echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317   # Broken: fails on valid input.
3318 continue
3319 fi
3320
3321 rm -f conftest.err conftest.$ac_ext
3322
3323   # OK, works on sane cases.  Now check whether nonexistent headers
3324   # can be detected and how.
3325   cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h.  */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h.  */
3331 #include <ac_nonexistent.h>
3332 _ACEOF
3333 if { (ac_try="$ac_cpp conftest.$ac_ext"
3334 case "(($ac_try" in
3335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336   *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3340   ac_status=$?
3341   grep -v '^ *+' conftest.er1 >conftest.err
3342   rm -f conftest.er1
3343   cat conftest.err >&5
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } >/dev/null; then
3346   if test -s conftest.err; then
3347     ac_cpp_err=$ac_c_preproc_warn_flag
3348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3349   else
3350     ac_cpp_err=
3351   fi
3352 else
3353   ac_cpp_err=yes
3354 fi
3355 if test -z "$ac_cpp_err"; then
3356   # Broken: success on invalid input.
3357 continue
3358 else
3359   echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3361
3362   # Passes both tests.
3363 ac_preproc_ok=:
3364 break
3365 fi
3366
3367 rm -f conftest.err conftest.$ac_ext
3368
3369 done
3370 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3371 rm -f conftest.err conftest.$ac_ext
3372 if $ac_preproc_ok; then
3373   break
3374 fi
3375
3376     done
3377     ac_cv_prog_CPP=$CPP
3378
3379 fi
3380   CPP=$ac_cv_prog_CPP
3381 else
3382   ac_cv_prog_CPP=$CPP
3383 fi
3384 { echo "$as_me:$LINENO: result: $CPP" >&5
3385 echo "${ECHO_T}$CPP" >&6; }
3386 ac_preproc_ok=false
3387 for ac_c_preproc_warn_flag in '' yes
3388 do
3389   # Use a header file that comes with gcc, so configuring glibc
3390   # with a fresh cross-compiler works.
3391   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3392   # <limits.h> exists even on freestanding compilers.
3393   # On the NeXT, cc -E runs the code through the compiler's parser,
3394   # not just through cpp. "Syntax error" is here to catch this case.
3395   cat >conftest.$ac_ext <<_ACEOF
3396 /* confdefs.h.  */
3397 _ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h.  */
3401 #ifdef __STDC__
3402 # include <limits.h>
3403 #else
3404 # include <assert.h>
3405 #endif
3406                      Syntax error
3407 _ACEOF
3408 if { (ac_try="$ac_cpp conftest.$ac_ext"
3409 case "(($ac_try" in
3410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411   *) ac_try_echo=$ac_try;;
3412 esac
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3415   ac_status=$?
3416   grep -v '^ *+' conftest.er1 >conftest.err
3417   rm -f conftest.er1
3418   cat conftest.err >&5
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); } >/dev/null; then
3421   if test -s conftest.err; then
3422     ac_cpp_err=$ac_c_preproc_warn_flag
3423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3424   else
3425     ac_cpp_err=
3426   fi
3427 else
3428   ac_cpp_err=yes
3429 fi
3430 if test -z "$ac_cpp_err"; then
3431   :
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436   # Broken: fails on valid input.
3437 continue
3438 fi
3439
3440 rm -f conftest.err conftest.$ac_ext
3441
3442   # OK, works on sane cases.  Now check whether nonexistent headers
3443   # can be detected and how.
3444   cat >conftest.$ac_ext <<_ACEOF
3445 /* confdefs.h.  */
3446 _ACEOF
3447 cat confdefs.h >>conftest.$ac_ext
3448 cat >>conftest.$ac_ext <<_ACEOF
3449 /* end confdefs.h.  */
3450 #include <ac_nonexistent.h>
3451 _ACEOF
3452 if { (ac_try="$ac_cpp conftest.$ac_ext"
3453 case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3459   ac_status=$?
3460   grep -v '^ *+' conftest.er1 >conftest.err
3461   rm -f conftest.er1
3462   cat conftest.err >&5
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); } >/dev/null; then
3465   if test -s conftest.err; then
3466     ac_cpp_err=$ac_c_preproc_warn_flag
3467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3468   else
3469     ac_cpp_err=
3470   fi
3471 else
3472   ac_cpp_err=yes
3473 fi
3474 if test -z "$ac_cpp_err"; then
3475   # Broken: success on invalid input.
3476 continue
3477 else
3478   echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481   # Passes both tests.
3482 ac_preproc_ok=:
3483 break
3484 fi
3485
3486 rm -f conftest.err conftest.$ac_ext
3487
3488 done
3489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3490 rm -f conftest.err conftest.$ac_ext
3491 if $ac_preproc_ok; then
3492   :
3493 else
3494   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3495 See \`config.log' for more details." >&5
3496 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3497 See \`config.log' for more details." >&2;}
3498    { (exit 1); exit 1; }; }
3499 fi
3500
3501 ac_ext=c
3502 ac_cpp='$CPP $CPPFLAGS'
3503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506
3507
3508 if test "$CXX" = "clang++" ; then
3509   { echo "$as_me:$LINENO: checking whether clang works" >&5
3510 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3511   ac_ext=cpp
3512 ac_cpp='$CXXCPP $CPPFLAGS'
3513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3516
3517
3518 cat >conftest.$ac_ext <<_ACEOF
3519 /* confdefs.h.  */
3520 _ACEOF
3521 cat confdefs.h >>conftest.$ac_ext
3522 cat >>conftest.$ac_ext <<_ACEOF
3523 /* end confdefs.h.  */
3524 #include <limits>
3525 #if __has_include (<cxxabi.h>)
3526 #include <cxxabi.h>
3527 #endif
3528 #if __has_include (<unwind.h>)
3529 #include <unwind.h>
3530 #endif
3531
3532 int
3533 main ()
3534 {
3535
3536   ;
3537   return 0;
3538 }
3539 _ACEOF
3540 rm -f conftest.$ac_objext
3541 if { (ac_try="$ac_compile"
3542 case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547   (eval "$ac_compile") 2>conftest.er1
3548   ac_status=$?
3549   grep -v '^ *+' conftest.er1 >conftest.err
3550   rm -f conftest.er1
3551   cat conftest.err >&5
3552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553   (exit $ac_status); } &&
3554          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3555   { (case "(($ac_try" in
3556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557   *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560   (eval "$ac_try") 2>&5
3561   ac_status=$?
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); }; } &&
3564          { ac_try='test -s conftest.$ac_objext'
3565   { (case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570   (eval "$ac_try") 2>&5
3571   ac_status=$?
3572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573   (exit $ac_status); }; }; then
3574
3575   { echo "$as_me:$LINENO: result: yes" >&5
3576 echo "${ECHO_T}yes" >&6; }
3577
3578 else
3579   echo "$as_me: failed program was:" >&5
3580 sed 's/^/| /' conftest.$ac_ext >&5
3581
3582
3583   { echo "$as_me:$LINENO: result: no" >&5
3584 echo "${ECHO_T}no" >&6; }
3585   { { 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
3586 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;}
3587    { (exit 1); exit 1; }; }
3588
3589 fi
3590
3591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3592   ac_ext=c
3593 ac_cpp='$CPP $CPPFLAGS'
3594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3597
3598 fi
3599
3600 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3601 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3602 ac_ext=cpp
3603 ac_cpp='$CXXCPP $CPPFLAGS'
3604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3607
3608 llvm_cv_cxx_compiler=unknown
3609 cat >conftest.$ac_ext <<_ACEOF
3610 /* confdefs.h.  */
3611 _ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h.  */
3615 #if ! __clang__
3616                                     #error
3617                                     #endif
3618
3619 _ACEOF
3620 rm -f conftest.$ac_objext
3621 if { (ac_try="$ac_compile"
3622 case "(($ac_try" in
3623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624   *) ac_try_echo=$ac_try;;
3625 esac
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627   (eval "$ac_compile") 2>conftest.er1
3628   ac_status=$?
3629   grep -v '^ *+' conftest.er1 >conftest.err
3630   rm -f conftest.er1
3631   cat conftest.err >&5
3632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633   (exit $ac_status); } &&
3634          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3635   { (case "(($ac_try" in
3636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637   *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640   (eval "$ac_try") 2>&5
3641   ac_status=$?
3642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643   (exit $ac_status); }; } &&
3644          { ac_try='test -s conftest.$ac_objext'
3645   { (case "(($ac_try" in
3646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647   *) ac_try_echo=$ac_try;;
3648 esac
3649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650   (eval "$ac_try") 2>&5
3651   ac_status=$?
3652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653   (exit $ac_status); }; }; then
3654   llvm_cv_cxx_compiler=clang
3655 else
3656   echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3658
3659         cat >conftest.$ac_ext <<_ACEOF
3660 /* confdefs.h.  */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h.  */
3665 #if ! __GNUC__
3666                                                        #error
3667                                                        #endif
3668
3669 _ACEOF
3670 rm -f conftest.$ac_objext
3671 if { (ac_try="$ac_compile"
3672 case "(($ac_try" in
3673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674   *) ac_try_echo=$ac_try;;
3675 esac
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677   (eval "$ac_compile") 2>conftest.er1
3678   ac_status=$?
3679   grep -v '^ *+' conftest.er1 >conftest.err
3680   rm -f conftest.er1
3681   cat conftest.err >&5
3682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683   (exit $ac_status); } &&
3684          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3685   { (case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3690   (eval "$ac_try") 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; } &&
3694          { ac_try='test -s conftest.$ac_objext'
3695   { (case "(($ac_try" in
3696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3697   *) ac_try_echo=$ac_try;;
3698 esac
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700   (eval "$ac_try") 2>&5
3701   ac_status=$?
3702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703   (exit $ac_status); }; }; then
3704   llvm_cv_cxx_compiler=gcc
3705 else
3706   echo "$as_me: failed program was:" >&5
3707 sed 's/^/| /' conftest.$ac_ext >&5
3708
3709
3710 fi
3711
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 fi
3714
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 ac_ext=c
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721
3722 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3723 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3724
3725
3726
3727 if test -d ${srcdir}/projects/test-suite ; then
3728   subdirs="$subdirs projects/test-suite"
3729
3730 fi
3731
3732 if test -d ${srcdir}/projects/llvm-test ; then
3733   subdirs="$subdirs projects/llvm-test"
3734
3735 fi
3736
3737 if test -d ${srcdir}/projects/poolalloc ; then
3738   subdirs="$subdirs projects/poolalloc"
3739
3740 fi
3741
3742 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3743   subdirs="$subdirs projects/llvm-poolalloc"
3744
3745 fi
3746
3747 for i in `ls ${srcdir}/projects`
3748 do
3749   if test -d ${srcdir}/projects/${i} ; then
3750     case ${i} in
3751       sample)       subdirs="$subdirs projects/sample"
3752     ;;
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   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4155   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4156   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4157   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4158   xcore-*)                llvm_cv_target_arch="XCore" ;;
4159   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4160   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4161   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4162   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4163   *)                      llvm_cv_target_arch="Unknown" ;;
4164 esac
4165 fi
4166 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4167 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4168
4169 if test "$llvm_cv_target_arch" = "Unknown" ; then
4170   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4171 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4172 fi
4173
4174 case "$llvm_cv_target_arch" in
4175     x86)     LLVM_NATIVE_ARCH="X86" ;;
4176     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4177     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4178 esac
4179
4180 ARCH=$llvm_cv_target_arch
4181
4182 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4183
4184
4185 case $host in
4186   i?86-*)                 host_arch="x86" ;;
4187   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4188   sparc*-*)               host_arch="Sparc" ;;
4189   powerpc*-*)             host_arch="PowerPC" ;;
4190   arm*-*)                 host_arch="ARM" ;;
4191   aarch64*-*)             host_arch="AArch64" ;;
4192   mips-* | mips64-*)      host_arch="Mips" ;;
4193   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4194   xcore-*)                host_arch="XCore" ;;
4195   msp430-*)               host_arch="MSP430" ;;
4196   hexagon-*)              host_arch="Hexagon" ;;
4197   s390x-*)                host_arch="SystemZ" ;;
4198   *)                      host_arch="Unknown" ;;
4199 esac
4200
4201 if test "$host_arch" = "Unknown" ; then
4202   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4203 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4204 fi
4205
4206 HOST_ARCH=$host_arch
4207
4208
4209 if test "$cross_compiling" = yes; then
4210   LLVM_CROSS_COMPILING=1
4211
4212
4213 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4214 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4215 if test "${ac_cv_build_exeext+set}" = set; then
4216   echo $ECHO_N "(cached) $ECHO_C" >&6
4217 else
4218   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4219   ac_cv_build_exeext=.exe
4220 else
4221   ac_build_prefix=${build_alias}-
4222
4223   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4224 set dummy ${ac_build_prefix}gcc; ac_word=$2
4225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4227 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4228   echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230   if test -n "$BUILD_CC"; then
4231   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4235 do
4236   IFS=$as_save_IFS
4237   test -z "$as_dir" && as_dir=.
4238   for ac_exec_ext in '' $ac_executable_extensions; do
4239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4240     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4241     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242     break 2
4243   fi
4244 done
4245 done
4246 IFS=$as_save_IFS
4247
4248 fi
4249 fi
4250 BUILD_CC=$ac_cv_prog_BUILD_CC
4251 if test -n "$BUILD_CC"; then
4252   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4253 echo "${ECHO_T}$BUILD_CC" >&6; }
4254 else
4255   { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4257 fi
4258
4259
4260   if test -z "$BUILD_CC"; then
4261      # Extract the first word of "gcc", so it can be a program name with args.
4262 set dummy gcc; ac_word=$2
4263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4265 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4266   echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268   if test -n "$BUILD_CC"; then
4269   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4270 else
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274   IFS=$as_save_IFS
4275   test -z "$as_dir" && as_dir=.
4276   for ac_exec_ext in '' $ac_executable_extensions; do
4277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4278     ac_cv_prog_BUILD_CC="gcc"
4279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4280     break 2
4281   fi
4282 done
4283 done
4284 IFS=$as_save_IFS
4285
4286 fi
4287 fi
4288 BUILD_CC=$ac_cv_prog_BUILD_CC
4289 if test -n "$BUILD_CC"; then
4290   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4291 echo "${ECHO_T}$BUILD_CC" >&6; }
4292 else
4293   { echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6; }
4295 fi
4296
4297
4298      if test -z "$BUILD_CC"; then
4299        # Extract the first word of "cc", so it can be a program name with args.
4300 set dummy cc; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   if test -n "$BUILD_CC"; then
4307   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4308 else
4309   ac_prog_rejected=no
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311 for as_dir in $PATH
4312 do
4313   IFS=$as_save_IFS
4314   test -z "$as_dir" && as_dir=.
4315   for ac_exec_ext in '' $ac_executable_extensions; do
4316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4317     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4318        ac_prog_rejected=yes
4319        continue
4320      fi
4321     ac_cv_prog_BUILD_CC="cc"
4322     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4323     break 2
4324   fi
4325 done
4326 done
4327 IFS=$as_save_IFS
4328
4329 if test $ac_prog_rejected = yes; then
4330   # We found a bogon in the path, so make sure we never use it.
4331   set dummy $ac_cv_prog_BUILD_CC
4332   shift
4333   if test $# != 0; then
4334     # We chose a different compiler from the bogus one.
4335     # However, it has the same basename, so the bogon will be chosen
4336     # first if we set BUILD_CC to just the basename; use the full file name.
4337     shift
4338     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4339   fi
4340 fi
4341 fi
4342 fi
4343 BUILD_CC=$ac_cv_prog_BUILD_CC
4344 if test -n "$BUILD_CC"; then
4345   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4346 echo "${ECHO_T}$BUILD_CC" >&6; }
4347 else
4348   { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4350 fi
4351
4352
4353      fi
4354   fi
4355   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4356 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4357    { (exit 1); exit 1; }; }
4358   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4359   rm -f conftest*
4360   echo 'int main () { return 0; }' > conftest.$ac_ext
4361   ac_cv_build_exeext=
4362   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4363   (eval $ac_build_link) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; then
4367     for file in conftest.*; do
4368       case $file in
4369       *.c | *.o | *.obj | *.dSYM) ;;
4370       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4371       esac
4372     done
4373   else
4374     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4375 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4376    { (exit 1); exit 1; }; }
4377   fi
4378   rm -f conftest*
4379   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4380 fi
4381 fi
4382
4383 BUILD_EXEEXT=""
4384 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4385 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4386 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4387 ac_build_exeext=$BUILD_EXEEXT
4388
4389   ac_build_prefix=${build_alias}-
4390   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4391 set dummy ${ac_build_prefix}g++; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4395   echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397   if test -n "$BUILD_CXX"; then
4398   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4402 do
4403   IFS=$as_save_IFS
4404   test -z "$as_dir" && as_dir=.
4405   for ac_exec_ext in '' $ac_executable_extensions; do
4406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4408     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409     break 2
4410   fi
4411 done
4412 done
4413 IFS=$as_save_IFS
4414
4415 fi
4416 fi
4417 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4418 if test -n "$BUILD_CXX"; then
4419   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4420 echo "${ECHO_T}$BUILD_CXX" >&6; }
4421 else
4422   { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4424 fi
4425
4426
4427   if test -z "$BUILD_CXX"; then
4428      # Extract the first word of "g++", so it can be a program name with args.
4429 set dummy g++; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   if test -n "$BUILD_CXX"; then
4436   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4437 else
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 for as_dir in $PATH
4440 do
4441   IFS=$as_save_IFS
4442   test -z "$as_dir" && as_dir=.
4443   for ac_exec_ext in '' $ac_executable_extensions; do
4444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445     ac_cv_prog_BUILD_CXX="g++"
4446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447     break 2
4448   fi
4449 done
4450 done
4451 IFS=$as_save_IFS
4452
4453 fi
4454 fi
4455 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4456 if test -n "$BUILD_CXX"; then
4457   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4458 echo "${ECHO_T}$BUILD_CXX" >&6; }
4459 else
4460   { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4462 fi
4463
4464
4465      if test -z "$BUILD_CXX"; then
4466        # Extract the first word of "c++", so it can be a program name with args.
4467 set dummy c++; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   if test -n "$BUILD_CXX"; then
4474   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4475 else
4476   ac_prog_rejected=no
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482   for ac_exec_ext in '' $ac_executable_extensions; do
4483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4485        ac_prog_rejected=yes
4486        continue
4487      fi
4488     ac_cv_prog_BUILD_CXX="c++"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494 IFS=$as_save_IFS
4495
4496 if test $ac_prog_rejected = yes; then
4497   # We found a bogon in the path, so make sure we never use it.
4498   set dummy $ac_cv_prog_BUILD_CXX
4499   shift
4500   if test $# != 0; then
4501     # We chose a different compiler from the bogus one.
4502     # However, it has the same basename, so the bogon will be chosen
4503     # first if we set BUILD_CXX to just the basename; use the full file name.
4504     shift
4505     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4506   fi
4507 fi
4508 fi
4509 fi
4510 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4511 if test -n "$BUILD_CXX"; then
4512   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4513 echo "${ECHO_T}$BUILD_CXX" >&6; }
4514 else
4515   { echo "$as_me:$LINENO: result: no" >&5
4516 echo "${ECHO_T}no" >&6; }
4517 fi
4518
4519
4520      fi
4521   fi
4522 else
4523   LLVM_CROSS_COMPILING=0
4524
4525 fi
4526
4527 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4528   cvsbuild="yes"
4529   optimize="no"
4530   CVSBUILD=CVSBUILD=1
4531
4532 else
4533   cvsbuild="no"
4534   optimize="yes"
4535 fi
4536
4537
4538 # Check whether --enable-libcpp was given.
4539 if test "${enable_libcpp+set}" = set; then
4540   enableval=$enable_libcpp;
4541 else
4542   enableval=default
4543 fi
4544
4545 case "$enableval" in
4546   yes) ENABLE_LIBCPP=1
4547  ;;
4548   no)  ENABLE_LIBCPP=0
4549  ;;
4550   default) ENABLE_LIBCPP=0
4551 ;;
4552   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4553 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4554    { (exit 1); exit 1; }; } ;;
4555 esac
4556
4557 # Check whether --enable-compiler-version-checks was given.
4558 if test "${enable_compiler_version_checks+set}" = set; then
4559   enableval=$enable_compiler_version_checks;
4560 else
4561   enableval=default
4562 fi
4563
4564 case "$enableval" in
4565   no)
4566     ;;
4567   yes|default)
4568     ac_ext=cpp
4569 ac_cpp='$CXXCPP $CPPFLAGS'
4570 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4573
4574     case "$llvm_cv_cxx_compiler" in
4575     clang)
4576       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4577 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4578       cat >conftest.$ac_ext <<_ACEOF
4579 /* confdefs.h.  */
4580 _ACEOF
4581 cat confdefs.h >>conftest.$ac_ext
4582 cat >>conftest.$ac_ext <<_ACEOF
4583 /* end confdefs.h.  */
4584
4585 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4586 #error This version of Clang is too old to build LLVM
4587 #endif
4588
4589 _ACEOF
4590 rm -f conftest.$ac_objext
4591 if { (ac_try="$ac_compile"
4592 case "(($ac_try" in
4593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594   *) ac_try_echo=$ac_try;;
4595 esac
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597   (eval "$ac_compile") 2>conftest.er1
4598   ac_status=$?
4599   grep -v '^ *+' conftest.er1 >conftest.err
4600   rm -f conftest.er1
4601   cat conftest.err >&5
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } &&
4604          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4605   { (case "(($ac_try" in
4606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607   *) ac_try_echo=$ac_try;;
4608 esac
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610   (eval "$ac_try") 2>&5
4611   ac_status=$?
4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613   (exit $ac_status); }; } &&
4614          { ac_try='test -s conftest.$ac_objext'
4615   { (case "(($ac_try" in
4616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4617   *) ac_try_echo=$ac_try;;
4618 esac
4619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4620   (eval "$ac_try") 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; }; then
4624   { echo "$as_me:$LINENO: result: yes" >&5
4625 echo "${ECHO_T}yes" >&6; }
4626 else
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630         { echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6; }
4632            { { echo "$as_me:$LINENO: error:
4633 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4634 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4635 bypass these sanity checks." >&5
4636 echo "$as_me: error:
4637 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4638 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4639 bypass these sanity checks." >&2;}
4640    { (exit 1); exit 1; }; }
4641 fi
4642
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4644
4645                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4646         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4647 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4648         llvm_cv_old_cxxflags="$CXXFLAGS"
4649         CXXFLAGS="$CXXFLAGS -std=c++0x"
4650         cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656
4657 #include <atomic>
4658 std::atomic<float> x(0.0f);
4659 int main() { return (float)x; }
4660
4661 _ACEOF
4662 rm -f conftest.$ac_objext conftest$ac_exeext
4663 if { (ac_try="$ac_link"
4664 case "(($ac_try" in
4665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4666   *) ac_try_echo=$ac_try;;
4667 esac
4668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4669   (eval "$ac_link") 2>conftest.er1
4670   ac_status=$?
4671   grep -v '^ *+' conftest.er1 >conftest.err
4672   rm -f conftest.er1
4673   cat conftest.err >&5
4674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675   (exit $ac_status); } &&
4676          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4677   { (case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682   (eval "$ac_try") 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); }; } &&
4686          { ac_try='test -s conftest$ac_exeext'
4687   { (case "(($ac_try" in
4688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689   *) ac_try_echo=$ac_try;;
4690 esac
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692   (eval "$ac_try") 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; }; then
4696   { echo "$as_me:$LINENO: result: yes" >&5
4697 echo "${ECHO_T}yes" >&6; }
4698 else
4699   echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702         { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4704              { { echo "$as_me:$LINENO: error:
4705 We detected a missing feature in the standard C++ library that was known to be
4706 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4707 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4708 than 4.7. You will need to update your system and ensure Clang uses the newer
4709 standard library.
4710
4711 If this error is incorrect or you need to force things to work, you may pass
4712 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4713 echo "$as_me: error:
4714 We detected a missing feature in the standard C++ library that was known to be
4715 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4716 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4717 than 4.7. You will need to update your system and ensure Clang uses the newer
4718 standard library.
4719
4720 If this error is incorrect or you need to force things to work, you may pass
4721 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4722    { (exit 1); exit 1; }; }
4723 fi
4724
4725 rm -f core conftest.err conftest.$ac_objext \
4726       conftest$ac_exeext conftest.$ac_ext
4727         CXXFLAGS="$llvm_cv_old_cxxflags"
4728       fi
4729       ;;
4730     gcc)
4731       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4732 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4733       cat >conftest.$ac_ext <<_ACEOF
4734 /* confdefs.h.  */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h.  */
4739
4740 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4741 #error This version of GCC is too old to build LLVM
4742 #endif
4743
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (ac_try="$ac_compile"
4747 case "(($ac_try" in
4748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749   *) ac_try_echo=$ac_try;;
4750 esac
4751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4752   (eval "$ac_compile") 2>conftest.er1
4753   ac_status=$?
4754   grep -v '^ *+' conftest.er1 >conftest.err
4755   rm -f conftest.er1
4756   cat conftest.err >&5
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); } &&
4759          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4760   { (case "(($ac_try" in
4761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4762   *) ac_try_echo=$ac_try;;
4763 esac
4764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4765   (eval "$ac_try") 2>&5
4766   ac_status=$?
4767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768   (exit $ac_status); }; } &&
4769          { ac_try='test -s conftest.$ac_objext'
4770   { (case "(($ac_try" in
4771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772   *) ac_try_echo=$ac_try;;
4773 esac
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775   (eval "$ac_try") 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; }; then
4779   { echo "$as_me:$LINENO: result: yes" >&5
4780 echo "${ECHO_T}yes" >&6; }
4781 else
4782   echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785         { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4787            { { echo "$as_me:$LINENO: error:
4788 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4789 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4790 bypass these sanity checks." >&5
4791 echo "$as_me: error:
4792 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4793 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4794 bypass these sanity checks." >&2;}
4795    { (exit 1); exit 1; }; }
4796 fi
4797
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799       ;;
4800     unknown)
4801       ;;
4802     esac
4803     ac_ext=c
4804 ac_cpp='$CPP $CPPFLAGS'
4805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4808
4809     ;;
4810   *)
4811     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4812 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4813    { (exit 1); exit 1; }; }
4814     ;;
4815 esac
4816
4817 # Check whether --enable-cxx1y was given.
4818 if test "${enable_cxx1y+set}" = set; then
4819   enableval=$enable_cxx1y;
4820 else
4821   enableval=default
4822 fi
4823
4824 case "$enableval" in
4825   yes) ENABLE_CXX1Y=1
4826  ;;
4827   no)  ENABLE_CXX1Y=0
4828  ;;
4829   default) ENABLE_CXX1Y=0
4830 ;;
4831   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4832 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4833    { (exit 1); exit 1; }; } ;;
4834 esac
4835
4836 # Check whether --enable-split-dwarf was given.
4837 if test "${enable_split_dwarf+set}" = set; then
4838   enableval=$enable_split_dwarf;
4839 else
4840   enableval=default
4841 fi
4842
4843 case "$enableval" in
4844   yes) ENABLE_SPLIT_DWARF=1
4845  ;;
4846   no)  ENABLE_SPLIT_DWARF=0
4847  ;;
4848   default) ENABLE_SPLIT_DWARF=0
4849 ;;
4850   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4852    { (exit 1); exit 1; }; } ;;
4853 esac
4854
4855 clang_arcmt="yes"
4856 # Check whether --enable-clang-arcmt was given.
4857 if test "${enable_clang_arcmt+set}" = set; then
4858   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4859 else
4860   enableval="yes"
4861 fi
4862
4863 case "$enableval" in
4864   yes) ENABLE_CLANG_ARCMT=1
4865  ;;
4866   no)  ENABLE_CLANG_ARCMT=0
4867  ;;
4868   default) ENABLE_CLANG_ARCMT=1
4869 ;;
4870   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4872    { (exit 1); exit 1; }; } ;;
4873 esac
4874
4875 clang_static_analyzer="yes"
4876 # Check whether --enable-clang-static-analyzer was given.
4877 if test "${enable_clang_static_analyzer+set}" = set; then
4878   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4879 else
4880   enableval="yes"
4881 fi
4882
4883 case "$enableval" in
4884   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4885  ;;
4886   no)
4887     if test ${clang_arcmt} != "no" ; then
4888       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4889 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4890    { (exit 1); exit 1; }; }
4891     fi
4892     ENABLE_CLANG_STATIC_ANALYZER=0
4893
4894     ;;
4895   default) ENABLE_CLANG_STATIC_ANALYZER=1
4896 ;;
4897   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4899    { (exit 1); exit 1; }; } ;;
4900 esac
4901
4902 # Check whether --enable-clang-rewriter was given.
4903 if test "${enable_clang_rewriter+set}" = set; then
4904   enableval=$enable_clang_rewriter;
4905 else
4906   enableval="yes"
4907 fi
4908
4909 case "$enableval" in
4910   yes) ENABLE_CLANG_REWRITER=1
4911  ;;
4912   no)
4913     if test ${clang_arcmt} != "no" ; then
4914       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4915 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4916    { (exit 1); exit 1; }; }
4917     fi
4918     if test ${clang_static_analyzer} != "no" ; then
4919       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4920 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4921    { (exit 1); exit 1; }; }
4922     fi
4923     ENABLE_CLANG_REWRITER=0
4924
4925     ;;
4926   default) ENABLE_CLANG_REWRITER=1
4927 ;;
4928   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4929 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4930    { (exit 1); exit 1; }; } ;;
4931 esac
4932
4933 # Check whether --enable-optimized was given.
4934 if test "${enable_optimized+set}" = set; then
4935   enableval=$enable_optimized;
4936 else
4937   enableval=$optimize
4938 fi
4939
4940 if test ${enableval} = "no" ; then
4941   ENABLE_OPTIMIZED=
4942
4943 else
4944   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4945
4946 fi
4947
4948 # Check whether --enable-profiling was given.
4949 if test "${enable_profiling+set}" = set; then
4950   enableval=$enable_profiling;
4951 else
4952   enableval="no"
4953 fi
4954
4955 if test ${enableval} = "no" ; then
4956   ENABLE_PROFILING=
4957
4958 else
4959   ENABLE_PROFILING=ENABLE_PROFILING=1
4960
4961 fi
4962
4963 # Check whether --enable-assertions was given.
4964 if test "${enable_assertions+set}" = set; then
4965   enableval=$enable_assertions;
4966 else
4967   enableval="yes"
4968 fi
4969
4970 if test ${enableval} = "yes" ; then
4971   DISABLE_ASSERTIONS=
4972
4973 else
4974   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4975
4976 fi
4977
4978 # Check whether --enable-werror was given.
4979 if test "${enable_werror+set}" = set; then
4980   enableval=$enable_werror;
4981 else
4982   enableval="no"
4983 fi
4984
4985 case "$enableval" in
4986   yes) ENABLE_WERROR=1
4987  ;;
4988   no)  ENABLE_WERROR=0
4989  ;;
4990   default) ENABLE_WERROR=0
4991 ;;
4992   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
4993 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
4994    { (exit 1); exit 1; }; } ;;
4995 esac
4996
4997 # Check whether --enable-expensive-checks was given.
4998 if test "${enable_expensive_checks+set}" = set; then
4999   enableval=$enable_expensive_checks;
5000 else
5001   enableval="no"
5002 fi
5003
5004 if test ${enableval} = "yes" ; then
5005   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5006
5007   EXPENSIVE_CHECKS=yes
5008
5009 else
5010   ENABLE_EXPENSIVE_CHECKS=
5011
5012   EXPENSIVE_CHECKS=no
5013
5014 fi
5015
5016 # Check whether --enable-debug-runtime was given.
5017 if test "${enable_debug_runtime+set}" = set; then
5018   enableval=$enable_debug_runtime;
5019 else
5020   enableval=no
5021 fi
5022
5023 if test ${enableval} = "no" ; then
5024   DEBUG_RUNTIME=
5025
5026 else
5027   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5028
5029 fi
5030
5031 # Check whether --enable-debug-symbols was given.
5032 if test "${enable_debug_symbols+set}" = set; then
5033   enableval=$enable_debug_symbols;
5034 else
5035   enableval=no
5036 fi
5037
5038 if test ${enableval} = "no" ; then
5039   DEBUG_SYMBOLS=
5040
5041 else
5042   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5043
5044 fi
5045
5046 # Check whether --enable-keep-symbols was given.
5047 if test "${enable_keep_symbols+set}" = set; then
5048   enableval=$enable_keep_symbols;
5049 else
5050   enableval=no
5051 fi
5052
5053 if test ${enableval} = "no" ; then
5054   KEEP_SYMBOLS=
5055
5056 else
5057   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5058
5059 fi
5060
5061 # Check whether --enable-jit was given.
5062 if test "${enable_jit+set}" = set; then
5063   enableval=$enable_jit;
5064 else
5065   enableval=default
5066 fi
5067
5068 if test ${enableval} = "no"
5069 then
5070   JIT=
5071
5072 else
5073   case "$llvm_cv_target_arch" in
5074     x86)         TARGET_HAS_JIT=1
5075  ;;
5076     Sparc)       TARGET_HAS_JIT=0
5077  ;;
5078     PowerPC)     TARGET_HAS_JIT=1
5079  ;;
5080     x86_64)      TARGET_HAS_JIT=1
5081  ;;
5082     ARM)         TARGET_HAS_JIT=1
5083  ;;
5084     AArch64)     TARGET_HAS_JIT=0
5085  ;;
5086     Mips)        TARGET_HAS_JIT=1
5087  ;;
5088     XCore)       TARGET_HAS_JIT=0
5089  ;;
5090     MSP430)      TARGET_HAS_JIT=0
5091  ;;
5092     Hexagon)     TARGET_HAS_JIT=0
5093  ;;
5094     NVPTX)       TARGET_HAS_JIT=0
5095  ;;
5096     SystemZ)     TARGET_HAS_JIT=1
5097  ;;
5098     *)           TARGET_HAS_JIT=0
5099  ;;
5100   esac
5101 fi
5102
5103 TARGETS_WITH_JIT="AArch64 ARM Mips PowerPC SystemZ X86"
5104 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5105
5106
5107 # Check whether --enable-docs was given.
5108 if test "${enable_docs+set}" = set; then
5109   enableval=$enable_docs;
5110 else
5111   enableval=default
5112 fi
5113
5114 case "$enableval" in
5115   yes) ENABLE_DOCS=1
5116  ;;
5117   no)  ENABLE_DOCS=0
5118  ;;
5119   default) ENABLE_DOCS=1
5120  ;;
5121   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5122 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5123    { (exit 1); exit 1; }; } ;;
5124 esac
5125
5126 # Check whether --enable-doxygen was given.
5127 if test "${enable_doxygen+set}" = set; then
5128   enableval=$enable_doxygen;
5129 else
5130   enableval=default
5131 fi
5132
5133 case "$enableval" in
5134   yes) ENABLE_DOXYGEN=1
5135  ;;
5136   no)  ENABLE_DOXYGEN=0
5137  ;;
5138   default) ENABLE_DOXYGEN=0
5139  ;;
5140   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5141 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5142    { (exit 1); exit 1; }; } ;;
5143 esac
5144
5145 # Check whether --enable-threads was given.
5146 if test "${enable_threads+set}" = set; then
5147   enableval=$enable_threads;
5148 else
5149   enableval=default
5150 fi
5151
5152 case "$enableval" in
5153   yes) LLVM_ENABLE_THREADS=1
5154  ;;
5155   no)  LLVM_ENABLE_THREADS=0
5156  ;;
5157   default) LLVM_ENABLE_THREADS=1
5158  ;;
5159   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5160 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5161    { (exit 1); exit 1; }; } ;;
5162 esac
5163
5164 cat >>confdefs.h <<_ACEOF
5165 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5166 _ACEOF
5167
5168
5169 # Check whether --enable-pthreads was given.
5170 if test "${enable_pthreads+set}" = set; then
5171   enableval=$enable_pthreads;
5172 else
5173   enableval=default
5174 fi
5175
5176 case "$enableval" in
5177   yes) ENABLE_PTHREADS=1
5178  ;;
5179   no)  ENABLE_PTHREADS=0
5180  ;;
5181   default) ENABLE_PTHREADS=1
5182  ;;
5183   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5184 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5185    { (exit 1); exit 1; }; } ;;
5186 esac
5187
5188 # Check whether --enable-zlib was given.
5189 if test "${enable_zlib+set}" = set; then
5190   enableval=$enable_zlib;
5191 else
5192   enableval=default
5193 fi
5194
5195 case "$enableval" in
5196   yes) LLVM_ENABLE_ZLIB=1
5197  ;;
5198   no)  LLVM_ENABLE_ZLIB=0
5199  ;;
5200   default) LLVM_ENABLE_ZLIB=1
5201  ;;
5202   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5203 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5204    { (exit 1); exit 1; }; } ;;
5205 esac
5206
5207 cat >>confdefs.h <<_ACEOF
5208 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5209 _ACEOF
5210
5211
5212 # Check whether --enable-pic was given.
5213 if test "${enable_pic+set}" = set; then
5214   enableval=$enable_pic;
5215 else
5216   enableval=default
5217 fi
5218
5219 case "$enableval" in
5220   yes) ENABLE_PIC=1
5221  ;;
5222   no)  ENABLE_PIC=0
5223  ;;
5224   default) ENABLE_PIC=1
5225  ;;
5226   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5227 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5228    { (exit 1); exit 1; }; } ;;
5229 esac
5230
5231 cat >>confdefs.h <<_ACEOF
5232 #define ENABLE_PIC $ENABLE_PIC
5233 _ACEOF
5234
5235
5236 # Check whether --enable-shared was given.
5237 if test "${enable_shared+set}" = set; then
5238   enableval=$enable_shared;
5239 else
5240   enableval=default
5241 fi
5242
5243 case "$enableval" in
5244   yes) ENABLE_SHARED=1
5245  ;;
5246   no)  ENABLE_SHARED=0
5247  ;;
5248   default) ENABLE_SHARED=0
5249  ;;
5250   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5252    { (exit 1); exit 1; }; } ;;
5253 esac
5254
5255 # Check whether --enable-embed-stdcxx was given.
5256 if test "${enable_embed_stdcxx+set}" = set; then
5257   enableval=$enable_embed_stdcxx;
5258 else
5259   enableval=default
5260 fi
5261
5262 case "$enableval" in
5263   yes) ENABLE_EMBED_STDCXX=1
5264  ;;
5265   no)  ENABLE_EMBED_STDCXX=0
5266  ;;
5267   default) ENABLE_EMBED_STDCXX=0
5268  ;;
5269   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5270 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5271    { (exit 1); exit 1; }; } ;;
5272 esac
5273
5274 # Check whether --enable-timestamps was given.
5275 if test "${enable_timestamps+set}" = set; then
5276   enableval=$enable_timestamps;
5277 else
5278   enableval=default
5279 fi
5280
5281 case "$enableval" in
5282   yes) ENABLE_TIMESTAMPS=1
5283  ;;
5284   no)  ENABLE_TIMESTAMPS=0
5285  ;;
5286   default) ENABLE_TIMESTAMPS=1
5287  ;;
5288   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5289 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5290    { (exit 1); exit 1; }; } ;;
5291 esac
5292
5293 cat >>confdefs.h <<_ACEOF
5294 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5295 _ACEOF
5296
5297
5298 # Check whether --enable-backtraces was given.
5299 if test "${enable_backtraces+set}" = set; then
5300   enableval=$enable_backtraces; case "$enableval" in
5301     yes) llvm_cv_enable_backtraces="yes" ;;
5302     no)  llvm_cv_enable_backtraces="no"  ;;
5303     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5304 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5305    { (exit 1); exit 1; }; } ;;
5306   esac
5307 else
5308   llvm_cv_enable_backtraces="yes"
5309 fi
5310
5311 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5312
5313 cat >>confdefs.h <<\_ACEOF
5314 #define ENABLE_BACKTRACES 1
5315 _ACEOF
5316
5317 fi
5318
5319 # Check whether --enable-crash-overrides was given.
5320 if test "${enable_crash_overrides+set}" = set; then
5321   enableval=$enable_crash_overrides; case "$enableval" in
5322     yes) llvm_cv_enable_crash_overrides="yes" ;;
5323     no)  llvm_cv_enable_crash_overrides="no"  ;;
5324     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5325 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5326    { (exit 1); exit 1; }; } ;;
5327   esac
5328 else
5329   llvm_cv_enable_crash_overrides="yes"
5330 fi
5331
5332 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5333
5334 cat >>confdefs.h <<\_ACEOF
5335 #define ENABLE_CRASH_OVERRIDES 1
5336 _ACEOF
5337
5338 fi
5339
5340 ALL_TARGETS="X86 Sparc PowerPC AArch64 ARM Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5341 ALL_TARGETS=$ALL_TARGETS
5342
5343
5344 TARGETS_TO_BUILD=""
5345 # Check whether --enable-targets was given.
5346 if test "${enable_targets+set}" = set; then
5347   enableval=$enable_targets;
5348 else
5349   enableval=all
5350 fi
5351
5352 if test "$enableval" = host-only ; then
5353   enableval=host
5354 fi
5355 case "$enableval" in
5356   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5357   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5358       case "$a_target" in
5359         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5360         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5361         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5362         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5363         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5364         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5365         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5366         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5367         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5368         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5369         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5370         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5371         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5372         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5373         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5374         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5375         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5376         host) case "$llvm_cv_target_arch" in
5377             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5378             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5379             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5380             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5381             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5382             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5383             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5384             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5385             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5386             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5387             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5388             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5389             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5390 echo "$as_me: error: Can not set target to build" >&2;}
5391    { (exit 1); exit 1; }; } ;;
5392           esac ;;
5393         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5394 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5395    { (exit 1); exit 1; }; } ;;
5396       esac
5397   done
5398   ;;
5399 esac
5400
5401 # Check whether --enable-experimental-targets was given.
5402 if test "${enable_experimental_targets+set}" = set; then
5403   enableval=$enable_experimental_targets;
5404 else
5405   enableval=disable
5406 fi
5407
5408
5409 if test ${enableval} != "disable"
5410 then
5411   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5412 fi
5413
5414 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5415
5416
5417 for a_target in $TARGETS_TO_BUILD; do
5418   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5419
5420 cat >>confdefs.h <<_ACEOF
5421 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5422 _ACEOF
5423
5424     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5425     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5426     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5427     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5428     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5429       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5430     fi
5431     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5432       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5433     fi
5434
5435 cat >>confdefs.h <<_ACEOF
5436 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5437 _ACEOF
5438
5439
5440 cat >>confdefs.h <<_ACEOF
5441 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5442 _ACEOF
5443
5444
5445 cat >>confdefs.h <<_ACEOF
5446 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5447 _ACEOF
5448
5449
5450 cat >>confdefs.h <<_ACEOF
5451 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5452 _ACEOF
5453
5454     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5455
5456 cat >>confdefs.h <<_ACEOF
5457 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5458 _ACEOF
5459
5460     fi
5461     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5462
5463 cat >>confdefs.h <<_ACEOF
5464 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5465 _ACEOF
5466
5467     fi
5468   fi
5469 done
5470
5471 LLVM_ENUM_TARGETS=""
5472 LLVM_ENUM_ASM_PRINTERS=""
5473 LLVM_ENUM_ASM_PARSERS=""
5474 LLVM_ENUM_DISASSEMBLERS=""
5475 for target_to_build in $TARGETS_TO_BUILD; do
5476   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5477   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5478     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5479   fi
5480   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5481     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5482   fi
5483   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5484     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5485   fi
5486 done
5487
5488
5489
5490
5491
5492
5493 # Check whether --with-optimize-option was given.
5494 if test "${with_optimize_option+set}" = set; then
5495   withval=$with_optimize_option;
5496 else
5497   withval=default
5498 fi
5499
5500 { echo "$as_me:$LINENO: checking optimization flags" >&5
5501 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5502 case "$withval" in
5503   default)
5504     case "$llvm_cv_os_type" in
5505     FreeBSD) optimize_option=-O2 ;;
5506     MingW) optimize_option=-O2 ;;
5507     *)     optimize_option=-O3 ;;
5508     esac ;;
5509   *) optimize_option="$withval" ;;
5510 esac
5511 OPTIMIZE_OPTION=$optimize_option
5512
5513 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5514 echo "${ECHO_T}$optimize_option" >&6; }
5515
5516
5517 # Check whether --with-extra-options was given.
5518 if test "${with_extra_options+set}" = set; then
5519   withval=$with_extra_options;
5520 else
5521   withval=default
5522 fi
5523
5524 case "$withval" in
5525   default) EXTRA_OPTIONS= ;;
5526   *) EXTRA_OPTIONS=$withval ;;
5527 esac
5528 EXTRA_OPTIONS=$EXTRA_OPTIONS
5529
5530
5531
5532 # Check whether --with-extra-ld-options was given.
5533 if test "${with_extra_ld_options+set}" = set; then
5534   withval=$with_extra_ld_options;
5535 else
5536   withval=default
5537 fi
5538
5539 case "$withval" in
5540   default) EXTRA_LD_OPTIONS= ;;
5541   *) EXTRA_LD_OPTIONS=$withval ;;
5542 esac
5543 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5544
5545
5546 # Check whether --enable-bindings was given.
5547 if test "${enable_bindings+set}" = set; then
5548   enableval=$enable_bindings;
5549 else
5550   enableval=default
5551 fi
5552
5553 BINDINGS_TO_BUILD=""
5554 case "$enableval" in
5555   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5556   all ) BINDINGS_TO_BUILD="ocaml" ;;
5557   none | no) BINDINGS_TO_BUILD="" ;;
5558   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5559       case "$a_binding" in
5560         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5561         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5562 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5563    { (exit 1); exit 1; }; } ;;
5564       esac
5565   done
5566   ;;
5567 esac
5568
5569
5570 # Check whether --with-ocaml-libdir was given.
5571 if test "${with_ocaml_libdir+set}" = set; then
5572   withval=$with_ocaml_libdir;
5573 else
5574   withval=auto
5575 fi
5576
5577 case "$withval" in
5578   auto) with_ocaml_libdir="$withval" ;;
5579   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5580   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5581 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5582    { (exit 1); exit 1; }; } ;;
5583 esac
5584
5585
5586 # Check whether --with-clang-srcdir was given.
5587 if test "${with_clang_srcdir+set}" = set; then
5588   withval=$with_clang_srcdir;
5589 else
5590   withval="-"
5591 fi
5592
5593 case "$withval" in
5594   -) clang_src_root="" ;;
5595   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5596   *) clang_src_root="$ac_pwd/$withval" ;;
5597 esac
5598 CLANG_SRC_ROOT=$clang_src_root
5599
5600
5601
5602 # Check whether --with-clang-resource-dir was given.
5603 if test "${with_clang_resource_dir+set}" = set; then
5604   withval=$with_clang_resource_dir;
5605 else
5606   withval=""
5607 fi
5608
5609
5610 cat >>confdefs.h <<_ACEOF
5611 #define CLANG_RESOURCE_DIR "$withval"
5612 _ACEOF
5613
5614
5615
5616 # Check whether --with-c-include-dirs was given.
5617 if test "${with_c_include_dirs+set}" = set; then
5618   withval=$with_c_include_dirs;
5619 else
5620   withval=""
5621 fi
5622
5623
5624 cat >>confdefs.h <<_ACEOF
5625 #define C_INCLUDE_DIRS "$withval"
5626 _ACEOF
5627
5628
5629 # Clang normally uses the system c++ headers and libraries. With this option,
5630 # clang will use the ones provided by a gcc installation instead. This option should
5631 # be passed the same value that was used with --prefix when configuring gcc.
5632
5633 # Check whether --with-gcc-toolchain was given.
5634 if test "${with_gcc_toolchain+set}" = set; then
5635   withval=$with_gcc_toolchain;
5636 else
5637   withval=""
5638 fi
5639
5640
5641 cat >>confdefs.h <<_ACEOF
5642 #define GCC_INSTALL_PREFIX "$withval"
5643 _ACEOF
5644
5645
5646
5647 # Check whether --with-default-sysroot was given.
5648 if test "${with_default_sysroot+set}" = set; then
5649   withval=$with_default_sysroot;
5650 else
5651   withval=""
5652 fi
5653
5654
5655 cat >>confdefs.h <<_ACEOF
5656 #define DEFAULT_SYSROOT "$withval"
5657 _ACEOF
5658
5659
5660
5661 # Check whether --with-binutils-include was given.
5662 if test "${with_binutils_include+set}" = set; then
5663   withval=$with_binutils_include;
5664 else
5665   withval=default
5666 fi
5667
5668 case "$withval" in
5669   default) WITH_BINUTILS_INCDIR=default ;;
5670   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5671   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5672 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5673    { (exit 1); exit 1; }; } ;;
5674 esac
5675 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5676   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5677
5678   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5679      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5680      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5681 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5682    { (exit 1); exit 1; }; };
5683   fi
5684 fi
5685
5686
5687 # Check whether --with-bug-report-url was given.
5688 if test "${with_bug_report_url+set}" = set; then
5689   withval=$with_bug_report_url;
5690 else
5691   withval="http://llvm.org/bugs/"
5692 fi
5693
5694
5695 cat >>confdefs.h <<_ACEOF
5696 #define BUG_REPORT_URL "$withval"
5697 _ACEOF
5698
5699
5700 # Check whether --enable-terminfo was given.
5701 if test "${enable_terminfo+set}" = set; then
5702   enableval=$enable_terminfo; case "$enableval" in
5703     yes) llvm_cv_enable_terminfo="yes" ;;
5704     no)  llvm_cv_enable_terminfo="no"  ;;
5705     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5706 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5707    { (exit 1); exit 1; }; } ;;
5708   esac
5709 else
5710   llvm_cv_enable_terminfo="yes"
5711 fi
5712
5713 case "$llvm_cv_enable_terminfo" in
5714   yes) ENABLE_TERMINFO=1
5715  ;;
5716   no)  ENABLE_TERMINFO=0
5717  ;;
5718 esac
5719
5720 # Check whether --enable-libedit was given.
5721 if test "${enable_libedit+set}" = set; then
5722   enableval=$enable_libedit; case "$enableval" in
5723     yes) llvm_cv_enable_libedit="yes" ;;
5724     no)  llvm_cv_enable_libedit="no"  ;;
5725     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5726 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5727    { (exit 1); exit 1; }; } ;;
5728   esac
5729 else
5730   llvm_cv_enable_libedit="yes"
5731 fi
5732
5733
5734 # Check whether --enable-libffi was given.
5735 if test "${enable_libffi+set}" = set; then
5736   enableval=$enable_libffi; case "$enableval" in
5737     yes) llvm_cv_enable_libffi="yes" ;;
5738     no)  llvm_cv_enable_libffi="no"  ;;
5739     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5740 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5741    { (exit 1); exit 1; }; } ;;
5742   esac
5743 else
5744   llvm_cv_enable_libffi=no
5745 fi
5746
5747
5748
5749 # Check whether --with-internal-prefix was given.
5750 if test "${with_internal_prefix+set}" = set; then
5751   withval=$with_internal_prefix;
5752 else
5753   withval=""
5754 fi
5755
5756 INTERNAL_PREFIX=$withval
5757
5758
5759
5760 { echo "$as_me:$LINENO: checking for GNU make" >&5
5761 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5762 if test "${llvm_cv_gnu_make_command+set}" = set; then
5763   echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765   llvm_cv_gnu_make_command=''
5766  for a in "$MAKE" make gmake gnumake ; do
5767   if test -z "$a" ; then continue ; fi ;
5768   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5769   then
5770    llvm_cv_gnu_make_command=$a ;
5771    break;
5772   fi
5773  done
5774 fi
5775 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5776 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5777  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5778    ifGNUmake='' ;
5779  else
5780    ifGNUmake='#' ;
5781    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5782 echo "${ECHO_T}\"Not found\"" >&6; };
5783  fi
5784
5785
5786 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5787 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5788 LN_S=$as_ln_s
5789 if test "$LN_S" = "ln -s"; then
5790   { echo "$as_me:$LINENO: result: yes" >&5
5791 echo "${ECHO_T}yes" >&6; }
5792 else
5793   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5794 echo "${ECHO_T}no, using $LN_S" >&6; }
5795 fi
5796
5797 # Extract the first word of "nm", so it can be a program name with args.
5798 set dummy nm; ac_word=$2
5799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5801 if test "${ac_cv_path_NM+set}" = set; then
5802   echo $ECHO_N "(cached) $ECHO_C" >&6
5803 else
5804   case $NM in
5805   [\\/]* | ?:[\\/]*)
5806   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5807   ;;
5808   *)
5809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812   IFS=$as_save_IFS
5813   test -z "$as_dir" && as_dir=.
5814   for ac_exec_ext in '' $ac_executable_extensions; do
5815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5816     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818     break 2
5819   fi
5820 done
5821 done
5822 IFS=$as_save_IFS
5823
5824   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5825   ;;
5826 esac
5827 fi
5828 NM=$ac_cv_path_NM
5829 if test -n "$NM"; then
5830   { echo "$as_me:$LINENO: result: $NM" >&5
5831 echo "${ECHO_T}$NM" >&6; }
5832 else
5833   { echo "$as_me:$LINENO: result: no" >&5
5834 echo "${ECHO_T}no" >&6; }
5835 fi
5836
5837
5838 # Extract the first word of "cmp", so it can be a program name with args.
5839 set dummy cmp; ac_word=$2
5840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5842 if test "${ac_cv_path_CMP+set}" = set; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   case $CMP in
5846   [\\/]* | ?:[\\/]*)
5847   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5848   ;;
5849   *)
5850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853   IFS=$as_save_IFS
5854   test -z "$as_dir" && as_dir=.
5855   for ac_exec_ext in '' $ac_executable_extensions; do
5856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5857     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5859     break 2
5860   fi
5861 done
5862 done
5863 IFS=$as_save_IFS
5864
5865   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5866   ;;
5867 esac
5868 fi
5869 CMP=$ac_cv_path_CMP
5870 if test -n "$CMP"; then
5871   { echo "$as_me:$LINENO: result: $CMP" >&5
5872 echo "${ECHO_T}$CMP" >&6; }
5873 else
5874   { echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6; }
5876 fi
5877
5878
5879 # Extract the first word of "cp", so it can be a program name with args.
5880 set dummy cp; ac_word=$2
5881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5883 if test "${ac_cv_path_CP+set}" = set; then
5884   echo $ECHO_N "(cached) $ECHO_C" >&6
5885 else
5886   case $CP in
5887   [\\/]* | ?:[\\/]*)
5888   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5889   ;;
5890   *)
5891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 for as_dir in $PATH
5893 do
5894   IFS=$as_save_IFS
5895   test -z "$as_dir" && as_dir=.
5896   for ac_exec_ext in '' $ac_executable_extensions; do
5897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5898     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5900     break 2
5901   fi
5902 done
5903 done
5904 IFS=$as_save_IFS
5905
5906   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5907   ;;
5908 esac
5909 fi
5910 CP=$ac_cv_path_CP
5911 if test -n "$CP"; then
5912   { echo "$as_me:$LINENO: result: $CP" >&5
5913 echo "${ECHO_T}$CP" >&6; }
5914 else
5915   { echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6; }
5917 fi
5918
5919
5920 # Extract the first word of "date", so it can be a program name with args.
5921 set dummy date; ac_word=$2
5922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5924 if test "${ac_cv_path_DATE+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   case $DATE in
5928   [\\/]* | ?:[\\/]*)
5929   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5930   ;;
5931   *)
5932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935   IFS=$as_save_IFS
5936   test -z "$as_dir" && as_dir=.
5937   for ac_exec_ext in '' $ac_executable_extensions; do
5938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5939     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941     break 2
5942   fi
5943 done
5944 done
5945 IFS=$as_save_IFS
5946
5947   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5948   ;;
5949 esac
5950 fi
5951 DATE=$ac_cv_path_DATE
5952 if test -n "$DATE"; then
5953   { echo "$as_me:$LINENO: result: $DATE" >&5
5954 echo "${ECHO_T}$DATE" >&6; }
5955 else
5956   { echo "$as_me:$LINENO: result: no" >&5
5957 echo "${ECHO_T}no" >&6; }
5958 fi
5959
5960
5961 # Extract the first word of "find", so it can be a program name with args.
5962 set dummy find; ac_word=$2
5963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5965 if test "${ac_cv_path_FIND+set}" = set; then
5966   echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968   case $FIND in
5969   [\\/]* | ?:[\\/]*)
5970   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5971   ;;
5972   *)
5973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974 for as_dir in $PATH
5975 do
5976   IFS=$as_save_IFS
5977   test -z "$as_dir" && as_dir=.
5978   for ac_exec_ext in '' $ac_executable_extensions; do
5979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5980     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982     break 2
5983   fi
5984 done
5985 done
5986 IFS=$as_save_IFS
5987
5988   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5989   ;;
5990 esac
5991 fi
5992 FIND=$ac_cv_path_FIND
5993 if test -n "$FIND"; then
5994   { echo "$as_me:$LINENO: result: $FIND" >&5
5995 echo "${ECHO_T}$FIND" >&6; }
5996 else
5997   { echo "$as_me:$LINENO: result: no" >&5
5998 echo "${ECHO_T}no" >&6; }
5999 fi
6000
6001
6002 # Extract the first word of "grep", so it can be a program name with args.
6003 set dummy grep; ac_word=$2
6004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6006 if test "${ac_cv_path_GREP+set}" = set; then
6007   echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009   case $GREP in
6010   [\\/]* | ?:[\\/]*)
6011   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6012   ;;
6013   *)
6014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $PATH
6016 do
6017   IFS=$as_save_IFS
6018   test -z "$as_dir" && as_dir=.
6019   for ac_exec_ext in '' $ac_executable_extensions; do
6020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6021     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6023     break 2
6024   fi
6025 done
6026 done
6027 IFS=$as_save_IFS
6028
6029   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6030   ;;
6031 esac
6032 fi
6033 GREP=$ac_cv_path_GREP
6034 if test -n "$GREP"; then
6035   { echo "$as_me:$LINENO: result: $GREP" >&5
6036 echo "${ECHO_T}$GREP" >&6; }
6037 else
6038   { echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6; }
6040 fi
6041
6042
6043 # Extract the first word of "mkdir", so it can be a program name with args.
6044 set dummy mkdir; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_path_MKDIR+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   case $MKDIR in
6051   [\\/]* | ?:[\\/]*)
6052   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6053   ;;
6054   *)
6055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060   for ac_exec_ext in '' $ac_executable_extensions; do
6061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6062     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064     break 2
6065   fi
6066 done
6067 done
6068 IFS=$as_save_IFS
6069
6070   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6071   ;;
6072 esac
6073 fi
6074 MKDIR=$ac_cv_path_MKDIR
6075 if test -n "$MKDIR"; then
6076   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6077 echo "${ECHO_T}$MKDIR" >&6; }
6078 else
6079   { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6081 fi
6082
6083
6084 # Extract the first word of "mv", so it can be a program name with args.
6085 set dummy mv; ac_word=$2
6086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6088 if test "${ac_cv_path_MV+set}" = set; then
6089   echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091   case $MV in
6092   [\\/]* | ?:[\\/]*)
6093   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6094   ;;
6095   *)
6096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097 for as_dir in $PATH
6098 do
6099   IFS=$as_save_IFS
6100   test -z "$as_dir" && as_dir=.
6101   for ac_exec_ext in '' $ac_executable_extensions; do
6102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6103     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6104     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6105     break 2
6106   fi
6107 done
6108 done
6109 IFS=$as_save_IFS
6110
6111   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6112   ;;
6113 esac
6114 fi
6115 MV=$ac_cv_path_MV
6116 if test -n "$MV"; then
6117   { echo "$as_me:$LINENO: result: $MV" >&5
6118 echo "${ECHO_T}$MV" >&6; }
6119 else
6120   { echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6; }
6122 fi
6123
6124
6125 if test -n "$ac_tool_prefix"; then
6126   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6127 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6130 if test "${ac_cv_prog_RANLIB+set}" = set; then
6131   echo $ECHO_N "(cached) $ECHO_C" >&6
6132 else
6133   if test -n "$RANLIB"; then
6134   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6135 else
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137 for as_dir in $PATH
6138 do
6139   IFS=$as_save_IFS
6140   test -z "$as_dir" && as_dir=.
6141   for ac_exec_ext in '' $ac_executable_extensions; do
6142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6143     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6145     break 2
6146   fi
6147 done
6148 done
6149 IFS=$as_save_IFS
6150
6151 fi
6152 fi
6153 RANLIB=$ac_cv_prog_RANLIB
6154 if test -n "$RANLIB"; then
6155   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6156 echo "${ECHO_T}$RANLIB" >&6; }
6157 else
6158   { echo "$as_me:$LINENO: result: no" >&5
6159 echo "${ECHO_T}no" >&6; }
6160 fi
6161
6162
6163 fi
6164 if test -z "$ac_cv_prog_RANLIB"; then
6165   ac_ct_RANLIB=$RANLIB
6166   # Extract the first word of "ranlib", so it can be a program name with args.
6167 set dummy ranlib; ac_word=$2
6168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6170 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6171   echo $ECHO_N "(cached) $ECHO_C" >&6
6172 else
6173   if test -n "$ac_ct_RANLIB"; then
6174   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6175 else
6176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177 for as_dir in $PATH
6178 do
6179   IFS=$as_save_IFS
6180   test -z "$as_dir" && as_dir=.
6181   for ac_exec_ext in '' $ac_executable_extensions; do
6182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6183     ac_cv_prog_ac_ct_RANLIB="ranlib"
6184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6185     break 2
6186   fi
6187 done
6188 done
6189 IFS=$as_save_IFS
6190
6191 fi
6192 fi
6193 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6194 if test -n "$ac_ct_RANLIB"; then
6195   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6196 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6197 else
6198   { echo "$as_me:$LINENO: result: no" >&5
6199 echo "${ECHO_T}no" >&6; }
6200 fi
6201
6202   if test "x$ac_ct_RANLIB" = x; then
6203     RANLIB=":"
6204   else
6205     case $cross_compiling:$ac_tool_warned in
6206 yes:)
6207 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6208 whose name does not start with the host triplet.  If you think this
6209 configuration is useful to you, please write to autoconf@gnu.org." >&5
6210 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6211 whose name does not start with the host triplet.  If you think this
6212 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6213 ac_tool_warned=yes ;;
6214 esac
6215     RANLIB=$ac_ct_RANLIB
6216   fi
6217 else
6218   RANLIB="$ac_cv_prog_RANLIB"
6219 fi
6220
6221 if test -n "$ac_tool_prefix"; then
6222   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6223 set dummy ${ac_tool_prefix}ar; ac_word=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_prog_AR+set}" = set; then
6227   echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229   if test -n "$AR"; then
6230   ac_cv_prog_AR="$AR" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235   IFS=$as_save_IFS
6236   test -z "$as_dir" && as_dir=.
6237   for ac_exec_ext in '' $ac_executable_extensions; do
6238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239     ac_cv_prog_AR="${ac_tool_prefix}ar"
6240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6241     break 2
6242   fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 AR=$ac_cv_prog_AR
6250 if test -n "$AR"; then
6251   { echo "$as_me:$LINENO: result: $AR" >&5
6252 echo "${ECHO_T}$AR" >&6; }
6253 else
6254   { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6256 fi
6257
6258
6259 fi
6260 if test -z "$ac_cv_prog_AR"; then
6261   ac_ct_AR=$AR
6262   # Extract the first word of "ar", so it can be a program name with args.
6263 set dummy ar; ac_word=$2
6264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6266 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6267   echo $ECHO_N "(cached) $ECHO_C" >&6
6268 else
6269   if test -n "$ac_ct_AR"; then
6270   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275   IFS=$as_save_IFS
6276   test -z "$as_dir" && as_dir=.
6277   for ac_exec_ext in '' $ac_executable_extensions; do
6278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6279     ac_cv_prog_ac_ct_AR="ar"
6280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281     break 2
6282   fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287 fi
6288 fi
6289 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6290 if test -n "$ac_ct_AR"; then
6291   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6292 echo "${ECHO_T}$ac_ct_AR" >&6; }
6293 else
6294   { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6296 fi
6297
6298   if test "x$ac_ct_AR" = x; then
6299     AR="false"
6300   else
6301     case $cross_compiling:$ac_tool_warned in
6302 yes:)
6303 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6304 whose name does not start with the host triplet.  If you think this
6305 configuration is useful to you, please write to autoconf@gnu.org." >&5
6306 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6307 whose name does not start with the host triplet.  If you think this
6308 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6309 ac_tool_warned=yes ;;
6310 esac
6311     AR=$ac_ct_AR
6312   fi
6313 else
6314   AR="$ac_cv_prog_AR"
6315 fi
6316
6317 # Extract the first word of "rm", so it can be a program name with args.
6318 set dummy rm; ac_word=$2
6319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6321 if test "${ac_cv_path_RM+set}" = set; then
6322   echo $ECHO_N "(cached) $ECHO_C" >&6
6323 else
6324   case $RM in
6325   [\\/]* | ?:[\\/]*)
6326   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6327   ;;
6328   *)
6329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330 for as_dir in $PATH
6331 do
6332   IFS=$as_save_IFS
6333   test -z "$as_dir" && as_dir=.
6334   for ac_exec_ext in '' $ac_executable_extensions; do
6335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6336     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6338     break 2
6339   fi
6340 done
6341 done
6342 IFS=$as_save_IFS
6343
6344   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6345   ;;
6346 esac
6347 fi
6348 RM=$ac_cv_path_RM
6349 if test -n "$RM"; then
6350   { echo "$as_me:$LINENO: result: $RM" >&5
6351 echo "${ECHO_T}$RM" >&6; }
6352 else
6353   { echo "$as_me:$LINENO: result: no" >&5
6354 echo "${ECHO_T}no" >&6; }
6355 fi
6356
6357
6358 # Extract the first word of "sed", so it can be a program name with args.
6359 set dummy sed; ac_word=$2
6360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6362 if test "${ac_cv_path_SED+set}" = set; then
6363   echo $ECHO_N "(cached) $ECHO_C" >&6
6364 else
6365   case $SED in
6366   [\\/]* | ?:[\\/]*)
6367   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6368   ;;
6369   *)
6370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6372 do
6373   IFS=$as_save_IFS
6374   test -z "$as_dir" && as_dir=.
6375   for ac_exec_ext in '' $ac_executable_extensions; do
6376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6377     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6379     break 2
6380   fi
6381 done
6382 done
6383 IFS=$as_save_IFS
6384
6385   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6386   ;;
6387 esac
6388 fi
6389 SED=$ac_cv_path_SED
6390 if test -n "$SED"; then
6391   { echo "$as_me:$LINENO: result: $SED" >&5
6392 echo "${ECHO_T}$SED" >&6; }
6393 else
6394   { echo "$as_me:$LINENO: result: no" >&5
6395 echo "${ECHO_T}no" >&6; }
6396 fi
6397
6398
6399 # Extract the first word of "tar", so it can be a program name with args.
6400 set dummy tar; ac_word=$2
6401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6403 if test "${ac_cv_path_TAR+set}" = set; then
6404   echo $ECHO_N "(cached) $ECHO_C" >&6
6405 else
6406   case $TAR in
6407   [\\/]* | ?:[\\/]*)
6408   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6409   ;;
6410   *)
6411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6413 do
6414   IFS=$as_save_IFS
6415   test -z "$as_dir" && as_dir=.
6416   for ac_exec_ext in '' $ac_executable_extensions; do
6417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6418     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6420     break 2
6421   fi
6422 done
6423 done
6424 IFS=$as_save_IFS
6425
6426   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6427   ;;
6428 esac
6429 fi
6430 TAR=$ac_cv_path_TAR
6431 if test -n "$TAR"; then
6432   { echo "$as_me:$LINENO: result: $TAR" >&5
6433 echo "${ECHO_T}$TAR" >&6; }
6434 else
6435   { echo "$as_me:$LINENO: result: no" >&5
6436 echo "${ECHO_T}no" >&6; }
6437 fi
6438
6439
6440 # Extract the first word of "pwd", so it can be a program name with args.
6441 set dummy pwd; ac_word=$2
6442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6444 if test "${ac_cv_path_BINPWD+set}" = set; then
6445   echo $ECHO_N "(cached) $ECHO_C" >&6
6446 else
6447   case $BINPWD in
6448   [\\/]* | ?:[\\/]*)
6449   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6450   ;;
6451   *)
6452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455   IFS=$as_save_IFS
6456   test -z "$as_dir" && as_dir=.
6457   for ac_exec_ext in '' $ac_executable_extensions; do
6458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6459     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6461     break 2
6462   fi
6463 done
6464 done
6465 IFS=$as_save_IFS
6466
6467   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6468   ;;
6469 esac
6470 fi
6471 BINPWD=$ac_cv_path_BINPWD
6472 if test -n "$BINPWD"; then
6473   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6474 echo "${ECHO_T}$BINPWD" >&6; }
6475 else
6476   { echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6; }
6478 fi
6479
6480
6481
6482 # Extract the first word of "Graphviz", so it can be a program name with args.
6483 set dummy Graphviz; ac_word=$2
6484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6486 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   case $GRAPHVIZ in
6490   [\\/]* | ?:[\\/]*)
6491   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6492   ;;
6493   *)
6494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497   IFS=$as_save_IFS
6498   test -z "$as_dir" && as_dir=.
6499   for ac_exec_ext in '' $ac_executable_extensions; do
6500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6501     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6502     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503     break 2
6504   fi
6505 done
6506 done
6507 IFS=$as_save_IFS
6508
6509   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6510   ;;
6511 esac
6512 fi
6513 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6514 if test -n "$GRAPHVIZ"; then
6515   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6516 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6517 else
6518   { echo "$as_me:$LINENO: result: no" >&5
6519 echo "${ECHO_T}no" >&6; }
6520 fi
6521
6522
6523 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6524
6525 cat >>confdefs.h <<\_ACEOF
6526 #define HAVE_GRAPHVIZ 1
6527 _ACEOF
6528
6529     if test "$llvm_cv_os_type" = "MingW" ; then
6530     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6531   fi
6532
6533 cat >>confdefs.h <<_ACEOF
6534 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6535 _ACEOF
6536
6537 fi
6538 # Extract the first word of "dot", so it can be a program name with args.
6539 set dummy dot; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_path_DOT+set}" = set; then
6543   echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545   case $DOT in
6546   [\\/]* | ?:[\\/]*)
6547   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6548   ;;
6549   *)
6550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553   IFS=$as_save_IFS
6554   test -z "$as_dir" && as_dir=.
6555   for ac_exec_ext in '' $ac_executable_extensions; do
6556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6557     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559     break 2
6560   fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6566   ;;
6567 esac
6568 fi
6569 DOT=$ac_cv_path_DOT
6570 if test -n "$DOT"; then
6571   { echo "$as_me:$LINENO: result: $DOT" >&5
6572 echo "${ECHO_T}$DOT" >&6; }
6573 else
6574   { echo "$as_me:$LINENO: result: no" >&5
6575 echo "${ECHO_T}no" >&6; }
6576 fi
6577
6578
6579 if test "$DOT" != "echo dot" ; then
6580
6581 cat >>confdefs.h <<\_ACEOF
6582 #define HAVE_DOT 1
6583 _ACEOF
6584
6585     if test "$llvm_cv_os_type" = "MingW" ; then
6586     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6587   fi
6588
6589 cat >>confdefs.h <<_ACEOF
6590 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6591 _ACEOF
6592
6593 fi
6594 # Extract the first word of "fdp", so it can be a program name with args.
6595 set dummy fdp; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_path_FDP+set}" = set; then
6599   echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601   case $FDP in
6602   [\\/]* | ?:[\\/]*)
6603   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6604   ;;
6605   *)
6606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607 for as_dir in $PATH
6608 do
6609   IFS=$as_save_IFS
6610   test -z "$as_dir" && as_dir=.
6611   for ac_exec_ext in '' $ac_executable_extensions; do
6612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6613     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615     break 2
6616   fi
6617 done
6618 done
6619 IFS=$as_save_IFS
6620
6621   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6622   ;;
6623 esac
6624 fi
6625 FDP=$ac_cv_path_FDP
6626 if test -n "$FDP"; then
6627   { echo "$as_me:$LINENO: result: $FDP" >&5
6628 echo "${ECHO_T}$FDP" >&6; }
6629 else
6630   { echo "$as_me:$LINENO: result: no" >&5
6631 echo "${ECHO_T}no" >&6; }
6632 fi
6633
6634
6635 if test "$FDP" != "echo fdp" ; then
6636
6637 cat >>confdefs.h <<\_ACEOF
6638 #define HAVE_FDP 1
6639 _ACEOF
6640
6641     if test "$llvm_cv_os_type" = "MingW" ; then
6642     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6643   fi
6644
6645 cat >>confdefs.h <<_ACEOF
6646 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6647 _ACEOF
6648
6649 fi
6650 # Extract the first word of "neato", so it can be a program name with args.
6651 set dummy neato; ac_word=$2
6652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6654 if test "${ac_cv_path_NEATO+set}" = set; then
6655   echo $ECHO_N "(cached) $ECHO_C" >&6
6656 else
6657   case $NEATO in
6658   [\\/]* | ?:[\\/]*)
6659   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6660   ;;
6661   *)
6662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665   IFS=$as_save_IFS
6666   test -z "$as_dir" && as_dir=.
6667   for ac_exec_ext in '' $ac_executable_extensions; do
6668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6669     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671     break 2
6672   fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6678   ;;
6679 esac
6680 fi
6681 NEATO=$ac_cv_path_NEATO
6682 if test -n "$NEATO"; then
6683   { echo "$as_me:$LINENO: result: $NEATO" >&5
6684 echo "${ECHO_T}$NEATO" >&6; }
6685 else
6686   { echo "$as_me:$LINENO: result: no" >&5
6687 echo "${ECHO_T}no" >&6; }
6688 fi
6689
6690
6691 if test "$NEATO" != "echo neato" ; then
6692
6693 cat >>confdefs.h <<\_ACEOF
6694 #define HAVE_NEATO 1
6695 _ACEOF
6696
6697     if test "$llvm_cv_os_type" = "MingW" ; then
6698     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6699   fi
6700
6701 cat >>confdefs.h <<_ACEOF
6702 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6703 _ACEOF
6704
6705 fi
6706 # Extract the first word of "twopi", so it can be a program name with args.
6707 set dummy twopi; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_path_TWOPI+set}" = set; then
6711   echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713   case $TWOPI in
6714   [\\/]* | ?:[\\/]*)
6715   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6716   ;;
6717   *)
6718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723   for ac_exec_ext in '' $ac_executable_extensions; do
6724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6725     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6734   ;;
6735 esac
6736 fi
6737 TWOPI=$ac_cv_path_TWOPI
6738 if test -n "$TWOPI"; then
6739   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6740 echo "${ECHO_T}$TWOPI" >&6; }
6741 else
6742   { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6744 fi
6745
6746
6747 if test "$TWOPI" != "echo twopi" ; then
6748
6749 cat >>confdefs.h <<\_ACEOF
6750 #define HAVE_TWOPI 1
6751 _ACEOF
6752
6753     if test "$llvm_cv_os_type" = "MingW" ; then
6754     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6755   fi
6756
6757 cat >>confdefs.h <<_ACEOF
6758 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6759 _ACEOF
6760
6761 fi
6762 # Extract the first word of "circo", so it can be a program name with args.
6763 set dummy circo; ac_word=$2
6764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6766 if test "${ac_cv_path_CIRCO+set}" = set; then
6767   echo $ECHO_N "(cached) $ECHO_C" >&6
6768 else
6769   case $CIRCO in
6770   [\\/]* | ?:[\\/]*)
6771   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6772   ;;
6773   *)
6774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777   IFS=$as_save_IFS
6778   test -z "$as_dir" && as_dir=.
6779   for ac_exec_ext in '' $ac_executable_extensions; do
6780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6781     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783     break 2
6784   fi
6785 done
6786 done
6787 IFS=$as_save_IFS
6788
6789   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6790   ;;
6791 esac
6792 fi
6793 CIRCO=$ac_cv_path_CIRCO
6794 if test -n "$CIRCO"; then
6795   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6796 echo "${ECHO_T}$CIRCO" >&6; }
6797 else
6798   { echo "$as_me:$LINENO: result: no" >&5
6799 echo "${ECHO_T}no" >&6; }
6800 fi
6801
6802
6803 if test "$CIRCO" != "echo circo" ; then
6804
6805 cat >>confdefs.h <<\_ACEOF
6806 #define HAVE_CIRCO 1
6807 _ACEOF
6808
6809     if test "$llvm_cv_os_type" = "MingW" ; then
6810     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6811   fi
6812
6813 cat >>confdefs.h <<_ACEOF
6814 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6815 _ACEOF
6816
6817 fi
6818 for ac_prog in gv gsview32
6819 do
6820   # Extract the first word of "$ac_prog", so it can be a program name with args.
6821 set dummy $ac_prog; ac_word=$2
6822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6824 if test "${ac_cv_path_GV+set}" = set; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 else
6827   case $GV in
6828   [\\/]* | ?:[\\/]*)
6829   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6830   ;;
6831   *)
6832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835   IFS=$as_save_IFS
6836   test -z "$as_dir" && as_dir=.
6837   for ac_exec_ext in '' $ac_executable_extensions; do
6838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6839     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841     break 2
6842   fi
6843 done
6844 done
6845 IFS=$as_save_IFS
6846
6847   ;;
6848 esac
6849 fi
6850 GV=$ac_cv_path_GV
6851 if test -n "$GV"; then
6852   { echo "$as_me:$LINENO: result: $GV" >&5
6853 echo "${ECHO_T}$GV" >&6; }
6854 else
6855   { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6857 fi
6858
6859
6860   test -n "$GV" && break
6861 done
6862 test -n "$GV" || GV="echo gv"
6863
6864 if test "$GV" != "echo gv" ; then
6865
6866 cat >>confdefs.h <<\_ACEOF
6867 #define HAVE_GV 1
6868 _ACEOF
6869
6870     if test "$llvm_cv_os_type" = "MingW" ; then
6871     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6872   fi
6873
6874 cat >>confdefs.h <<_ACEOF
6875 #define LLVM_PATH_GV "$GV${EXEEXT}"
6876 _ACEOF
6877
6878 fi
6879 # Extract the first word of "dotty", so it can be a program name with args.
6880 set dummy dotty; ac_word=$2
6881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6883 if test "${ac_cv_path_DOTTY+set}" = set; then
6884   echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886   case $DOTTY in
6887   [\\/]* | ?:[\\/]*)
6888   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6889   ;;
6890   *)
6891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892 for as_dir in $PATH
6893 do
6894   IFS=$as_save_IFS
6895   test -z "$as_dir" && as_dir=.
6896   for ac_exec_ext in '' $ac_executable_extensions; do
6897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6898     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6900     break 2
6901   fi
6902 done
6903 done
6904 IFS=$as_save_IFS
6905
6906   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6907   ;;
6908 esac
6909 fi
6910 DOTTY=$ac_cv_path_DOTTY
6911 if test -n "$DOTTY"; then
6912   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6913 echo "${ECHO_T}$DOTTY" >&6; }
6914 else
6915   { echo "$as_me:$LINENO: result: no" >&5
6916 echo "${ECHO_T}no" >&6; }
6917 fi
6918
6919
6920 if test "$DOTTY" != "echo dotty" ; then
6921
6922 cat >>confdefs.h <<\_ACEOF
6923 #define HAVE_DOTTY 1
6924 _ACEOF
6925
6926     if test "$llvm_cv_os_type" = "MingW" ; then
6927     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6928   fi
6929
6930 cat >>confdefs.h <<_ACEOF
6931 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6932 _ACEOF
6933
6934 fi
6935 for ac_prog in xdot xdot.py
6936 do
6937   # Extract the first word of "$ac_prog", so it can be a program name with args.
6938 set dummy $ac_prog; ac_word=$2
6939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6941 if test "${ac_cv_path_XDOT+set}" = set; then
6942   echo $ECHO_N "(cached) $ECHO_C" >&6
6943 else
6944   case $XDOT in
6945   [\\/]* | ?:[\\/]*)
6946   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6947   ;;
6948   *)
6949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950 for as_dir in $PATH
6951 do
6952   IFS=$as_save_IFS
6953   test -z "$as_dir" && as_dir=.
6954   for ac_exec_ext in '' $ac_executable_extensions; do
6955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6956     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6958     break 2
6959   fi
6960 done
6961 done
6962 IFS=$as_save_IFS
6963
6964   ;;
6965 esac
6966 fi
6967 XDOT=$ac_cv_path_XDOT
6968 if test -n "$XDOT"; then
6969   { echo "$as_me:$LINENO: result: $XDOT" >&5
6970 echo "${ECHO_T}$XDOT" >&6; }
6971 else
6972   { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6974 fi
6975
6976
6977   test -n "$XDOT" && break
6978 done
6979 test -n "$XDOT" || XDOT="echo xdot"
6980
6981 if test "$XDOT" != "echo xdot" ; then
6982
6983 cat >>confdefs.h <<\_ACEOF
6984 #define HAVE_XDOT 1
6985 _ACEOF
6986
6987     if test "$llvm_cv_os_type" = "MingW" ; then
6988     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6989   fi
6990
6991 cat >>confdefs.h <<_ACEOF
6992 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
6993 _ACEOF
6994
6995 fi
6996
6997 # Find a good install program.  We prefer a C program (faster),
6998 # so one script is as good as another.  But avoid the broken or
6999 # incompatible versions:
7000 # SysV /etc/install, /usr/sbin/install
7001 # SunOS /usr/etc/install
7002 # IRIX /sbin/install
7003 # AIX /bin/install
7004 # AmigaOS /C/install, which installs bootblocks on floppy discs
7005 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7006 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7007 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7008 # OS/2's system install, which has a completely different semantic
7009 # ./install, which can be erroneously created by make from ./install.sh.
7010 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7011 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7012 if test -z "$INSTALL"; then
7013 if test "${ac_cv_path_install+set}" = set; then
7014   echo $ECHO_N "(cached) $ECHO_C" >&6
7015 else
7016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7017 for as_dir in $PATH
7018 do
7019   IFS=$as_save_IFS
7020   test -z "$as_dir" && as_dir=.
7021   # Account for people who put trailing slashes in PATH elements.
7022 case $as_dir/ in
7023   ./ | .// | /cC/* | \
7024   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7025   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7026   /usr/ucb/* ) ;;
7027   *)
7028     # OSF1 and SCO ODT 3.0 have their own names for install.
7029     # Don't use installbsd from OSF since it installs stuff as root
7030     # by default.
7031     for ac_prog in ginstall scoinst install; do
7032       for ac_exec_ext in '' $ac_executable_extensions; do
7033         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7034           if test $ac_prog = install &&
7035             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7036             # AIX install.  It has an incompatible calling convention.
7037             :
7038           elif test $ac_prog = install &&
7039             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7040             # program-specific install script used by HP pwplus--don't use.
7041             :
7042           else
7043             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7044             break 3
7045           fi
7046         fi
7047       done
7048     done
7049     ;;
7050 esac
7051 done
7052 IFS=$as_save_IFS
7053
7054
7055 fi
7056   if test "${ac_cv_path_install+set}" = set; then
7057     INSTALL=$ac_cv_path_install
7058   else
7059     # As a last resort, use the slow shell script.  Don't cache a
7060     # value for INSTALL within a source directory, because that will
7061     # break other packages using the cache if that directory is
7062     # removed, or if the value is a relative name.
7063     INSTALL=$ac_install_sh
7064   fi
7065 fi
7066 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7067 echo "${ECHO_T}$INSTALL" >&6; }
7068
7069 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7070 # It thinks the first close brace ends the variable substitution.
7071 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7072
7073 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7074
7075 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7076
7077 case "$INSTALL" in
7078  [\\/$]* | ?:[\\/]* ) ;;
7079  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7080 esac
7081
7082 # Extract the first word of "bzip2", so it can be a program name with args.
7083 set dummy bzip2; ac_word=$2
7084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7086 if test "${ac_cv_path_BZIP2+set}" = set; then
7087   echo $ECHO_N "(cached) $ECHO_C" >&6
7088 else
7089   case $BZIP2 in
7090   [\\/]* | ?:[\\/]*)
7091   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7092   ;;
7093   *)
7094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7096 do
7097   IFS=$as_save_IFS
7098   test -z "$as_dir" && as_dir=.
7099   for ac_exec_ext in '' $ac_executable_extensions; do
7100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7101     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103     break 2
7104   fi
7105 done
7106 done
7107 IFS=$as_save_IFS
7108
7109   ;;
7110 esac
7111 fi
7112 BZIP2=$ac_cv_path_BZIP2
7113 if test -n "$BZIP2"; then
7114   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7115 echo "${ECHO_T}$BZIP2" >&6; }
7116 else
7117   { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7119 fi
7120
7121
7122 # Extract the first word of "cat", so it can be a program name with args.
7123 set dummy cat; ac_word=$2
7124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7126 if test "${ac_cv_path_CAT+set}" = set; then
7127   echo $ECHO_N "(cached) $ECHO_C" >&6
7128 else
7129   case $CAT in
7130   [\\/]* | ?:[\\/]*)
7131   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7132   ;;
7133   *)
7134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139   for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149   ;;
7150 esac
7151 fi
7152 CAT=$ac_cv_path_CAT
7153 if test -n "$CAT"; then
7154   { echo "$as_me:$LINENO: result: $CAT" >&5
7155 echo "${ECHO_T}$CAT" >&6; }
7156 else
7157   { echo "$as_me:$LINENO: result: no" >&5
7158 echo "${ECHO_T}no" >&6; }
7159 fi
7160
7161
7162 # Extract the first word of "doxygen", so it can be a program name with args.
7163 set dummy doxygen; ac_word=$2
7164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7166 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7167   echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169   case $DOXYGEN in
7170   [\\/]* | ?:[\\/]*)
7171   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7172   ;;
7173   *)
7174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179   for ac_exec_ext in '' $ac_executable_extensions; do
7180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186 done
7187 IFS=$as_save_IFS
7188
7189   ;;
7190 esac
7191 fi
7192 DOXYGEN=$ac_cv_path_DOXYGEN
7193 if test -n "$DOXYGEN"; then
7194   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7195 echo "${ECHO_T}$DOXYGEN" >&6; }
7196 else
7197   { echo "$as_me:$LINENO: result: no" >&5
7198 echo "${ECHO_T}no" >&6; }
7199 fi
7200
7201
7202 # Extract the first word of "groff", so it can be a program name with args.
7203 set dummy groff; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_GROFF+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   case $GROFF in
7210   [\\/]* | ?:[\\/]*)
7211   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7212   ;;
7213   *)
7214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219   for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229   ;;
7230 esac
7231 fi
7232 GROFF=$ac_cv_path_GROFF
7233 if test -n "$GROFF"; then
7234   { echo "$as_me:$LINENO: result: $GROFF" >&5
7235 echo "${ECHO_T}$GROFF" >&6; }
7236 else
7237   { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7239 fi
7240
7241
7242 # Extract the first word of "gzip", so it can be a program name with args.
7243 set dummy gzip; ac_word=$2
7244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7246 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7247   echo $ECHO_N "(cached) $ECHO_C" >&6
7248 else
7249   case $GZIPBIN in
7250   [\\/]* | ?:[\\/]*)
7251   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7252   ;;
7253   *)
7254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259   for ac_exec_ext in '' $ac_executable_extensions; do
7260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7261     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266 done
7267 IFS=$as_save_IFS
7268
7269   ;;
7270 esac
7271 fi
7272 GZIPBIN=$ac_cv_path_GZIPBIN
7273 if test -n "$GZIPBIN"; then
7274   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7275 echo "${ECHO_T}$GZIPBIN" >&6; }
7276 else
7277   { echo "$as_me:$LINENO: result: no" >&5
7278 echo "${ECHO_T}no" >&6; }
7279 fi
7280
7281
7282 # Extract the first word of "pdfroff", so it can be a program name with args.
7283 set dummy pdfroff; ac_word=$2
7284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7286 if test "${ac_cv_path_PDFROFF+set}" = set; then
7287   echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289   case $PDFROFF in
7290   [\\/]* | ?:[\\/]*)
7291   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7292   ;;
7293   *)
7294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295 for as_dir in $PATH
7296 do
7297   IFS=$as_save_IFS
7298   test -z "$as_dir" && as_dir=.
7299   for ac_exec_ext in '' $ac_executable_extensions; do
7300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7301     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303     break 2
7304   fi
7305 done
7306 done
7307 IFS=$as_save_IFS
7308
7309   ;;
7310 esac
7311 fi
7312 PDFROFF=$ac_cv_path_PDFROFF
7313 if test -n "$PDFROFF"; then
7314   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7315 echo "${ECHO_T}$PDFROFF" >&6; }
7316 else
7317   { echo "$as_me:$LINENO: result: no" >&5
7318 echo "${ECHO_T}no" >&6; }
7319 fi
7320
7321
7322 # Extract the first word of "zip", so it can be a program name with args.
7323 set dummy zip; ac_word=$2
7324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326 if test "${ac_cv_path_ZIP+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329   case $ZIP in
7330   [\\/]* | ?:[\\/]*)
7331   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7332   ;;
7333   *)
7334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339   for ac_exec_ext in '' $ac_executable_extensions; do
7340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7341     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346 done
7347 IFS=$as_save_IFS
7348
7349   ;;
7350 esac
7351 fi
7352 ZIP=$ac_cv_path_ZIP
7353 if test -n "$ZIP"; then
7354   { echo "$as_me:$LINENO: result: $ZIP" >&5
7355 echo "${ECHO_T}$ZIP" >&6; }
7356 else
7357   { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7359 fi
7360
7361
7362 for ac_prog in ocamlc
7363 do
7364   # Extract the first word of "$ac_prog", so it can be a program name with args.
7365 set dummy $ac_prog; ac_word=$2
7366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7368 if test "${ac_cv_path_OCAMLC+set}" = set; then
7369   echo $ECHO_N "(cached) $ECHO_C" >&6
7370 else
7371   case $OCAMLC in
7372   [\\/]* | ?:[\\/]*)
7373   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7374   ;;
7375   *)
7376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379   IFS=$as_save_IFS
7380   test -z "$as_dir" && as_dir=.
7381   for ac_exec_ext in '' $ac_executable_extensions; do
7382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7383     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7384     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385     break 2
7386   fi
7387 done
7388 done
7389 IFS=$as_save_IFS
7390
7391   ;;
7392 esac
7393 fi
7394 OCAMLC=$ac_cv_path_OCAMLC
7395 if test -n "$OCAMLC"; then
7396   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7397 echo "${ECHO_T}$OCAMLC" >&6; }
7398 else
7399   { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7401 fi
7402
7403
7404   test -n "$OCAMLC" && break
7405 done
7406
7407 for ac_prog in ocamlopt
7408 do
7409   # Extract the first word of "$ac_prog", so it can be a program name with args.
7410 set dummy $ac_prog; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   case $OCAMLOPT in
7417   [\\/]* | ?:[\\/]*)
7418   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7419   ;;
7420   *)
7421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426   for ac_exec_ext in '' $ac_executable_extensions; do
7427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7428     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430     break 2
7431   fi
7432 done
7433 done
7434 IFS=$as_save_IFS
7435
7436   ;;
7437 esac
7438 fi
7439 OCAMLOPT=$ac_cv_path_OCAMLOPT
7440 if test -n "$OCAMLOPT"; then
7441   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7442 echo "${ECHO_T}$OCAMLOPT" >&6; }
7443 else
7444   { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7446 fi
7447
7448
7449   test -n "$OCAMLOPT" && break
7450 done
7451
7452 for ac_prog in ocamldep
7453 do
7454   # Extract the first word of "$ac_prog", so it can be a program name with args.
7455 set dummy $ac_prog; ac_word=$2
7456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7458 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7459   echo $ECHO_N "(cached) $ECHO_C" >&6
7460 else
7461   case $OCAMLDEP in
7462   [\\/]* | ?:[\\/]*)
7463   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7464   ;;
7465   *)
7466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7467 for as_dir in $PATH
7468 do
7469   IFS=$as_save_IFS
7470   test -z "$as_dir" && as_dir=.
7471   for ac_exec_ext in '' $ac_executable_extensions; do
7472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7473     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7475     break 2
7476   fi
7477 done
7478 done
7479 IFS=$as_save_IFS
7480
7481   ;;
7482 esac
7483 fi
7484 OCAMLDEP=$ac_cv_path_OCAMLDEP
7485 if test -n "$OCAMLDEP"; then
7486   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7487 echo "${ECHO_T}$OCAMLDEP" >&6; }
7488 else
7489   { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7491 fi
7492
7493
7494   test -n "$OCAMLDEP" && break
7495 done
7496
7497 for ac_prog in ocamldoc
7498 do
7499   # Extract the first word of "$ac_prog", so it can be a program name with args.
7500 set dummy $ac_prog; ac_word=$2
7501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7503 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506   case $OCAMLDOC in
7507   [\\/]* | ?:[\\/]*)
7508   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7509   ;;
7510   *)
7511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516   for ac_exec_ext in '' $ac_executable_extensions; do
7517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7518     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523 done
7524 IFS=$as_save_IFS
7525
7526   ;;
7527 esac
7528 fi
7529 OCAMLDOC=$ac_cv_path_OCAMLDOC
7530 if test -n "$OCAMLDOC"; then
7531   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7532 echo "${ECHO_T}$OCAMLDOC" >&6; }
7533 else
7534   { echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6; }
7536 fi
7537
7538
7539   test -n "$OCAMLDOC" && break
7540 done
7541
7542 for ac_prog in gas as
7543 do
7544   # Extract the first word of "$ac_prog", so it can be a program name with args.
7545 set dummy $ac_prog; ac_word=$2
7546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7548 if test "${ac_cv_path_GAS+set}" = set; then
7549   echo $ECHO_N "(cached) $ECHO_C" >&6
7550 else
7551   case $GAS in
7552   [\\/]* | ?:[\\/]*)
7553   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7554   ;;
7555   *)
7556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561   for ac_exec_ext in '' $ac_executable_extensions; do
7562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7563     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571   ;;
7572 esac
7573 fi
7574 GAS=$ac_cv_path_GAS
7575 if test -n "$GAS"; then
7576   { echo "$as_me:$LINENO: result: $GAS" >&5
7577 echo "${ECHO_T}$GAS" >&6; }
7578 else
7579   { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7581 fi
7582
7583
7584   test -n "$GAS" && break
7585 done
7586
7587
7588 { echo "$as_me:$LINENO: checking for linker version" >&5
7589 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7590 if test "${llvm_cv_link_version+set}" = set; then
7591   echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593
7594    version_string="$(ld -v 2>&1 | head -1)"
7595
7596    # Check for ld64.
7597    if (echo "$version_string" | grep -q "ld64"); then
7598      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7599    else
7600      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7601    fi
7602
7603 fi
7604 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7605 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7606
7607 cat >>confdefs.h <<_ACEOF
7608 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7609 _ACEOF
7610
7611
7612
7613
7614 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7615 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7616 if test "${llvm_cv_link_use_r+set}" = set; then
7617   echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619    ac_ext=c
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7624
7625   oldcflags="$CFLAGS"
7626   CFLAGS="$CFLAGS -Wl,-R."
7627   cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h.  */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h.  */
7633
7634 int
7635 main ()
7636 {
7637
7638   ;
7639   return 0;
7640 }
7641 _ACEOF
7642 rm -f conftest.$ac_objext conftest$ac_exeext
7643 if { (ac_try="$ac_link"
7644 case "(($ac_try" in
7645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646   *) ac_try_echo=$ac_try;;
7647 esac
7648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649   (eval "$ac_link") 2>conftest.er1
7650   ac_status=$?
7651   grep -v '^ *+' conftest.er1 >conftest.err
7652   rm -f conftest.er1
7653   cat conftest.err >&5
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); } &&
7656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7657   { (case "(($ac_try" in
7658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659   *) ac_try_echo=$ac_try;;
7660 esac
7661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662   (eval "$ac_try") 2>&5
7663   ac_status=$?
7664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); }; } &&
7666          { ac_try='test -s conftest$ac_exeext'
7667   { (case "(($ac_try" in
7668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669   *) ac_try_echo=$ac_try;;
7670 esac
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672   (eval "$ac_try") 2>&5
7673   ac_status=$?
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); }; }; then
7676   llvm_cv_link_use_r=yes
7677 else
7678   echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681         llvm_cv_link_use_r=no
7682 fi
7683
7684 rm -f core conftest.err conftest.$ac_objext \
7685       conftest$ac_exeext conftest.$ac_ext
7686   CFLAGS="$oldcflags"
7687   ac_ext=c
7688 ac_cpp='$CPP $CPPFLAGS'
7689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7692
7693
7694 fi
7695 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7696 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7697 if test "$llvm_cv_link_use_r" = yes ; then
7698
7699 cat >>confdefs.h <<\_ACEOF
7700 #define HAVE_LINK_R 1
7701 _ACEOF
7702
7703   fi
7704
7705
7706 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7707 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7708 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711    ac_ext=c
7712 ac_cpp='$CPP $CPPFLAGS'
7713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7716
7717   oldcflags="$CFLAGS"
7718   CFLAGS="$CFLAGS -rdynamic"
7719   cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h.  */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h.  */
7725
7726 int
7727 main ()
7728 {
7729
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 rm -f conftest.$ac_objext conftest$ac_exeext
7735 if { (ac_try="$ac_link"
7736 case "(($ac_try" in
7737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738   *) ac_try_echo=$ac_try;;
7739 esac
7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741   (eval "$ac_link") 2>conftest.er1
7742   ac_status=$?
7743   grep -v '^ *+' conftest.er1 >conftest.err
7744   rm -f conftest.er1
7745   cat conftest.err >&5
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); } &&
7748          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7749   { (case "(($ac_try" in
7750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751   *) ac_try_echo=$ac_try;;
7752 esac
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754   (eval "$ac_try") 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); }; } &&
7758          { ac_try='test -s conftest$ac_exeext'
7759   { (case "(($ac_try" in
7760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761   *) ac_try_echo=$ac_try;;
7762 esac
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764   (eval "$ac_try") 2>&5
7765   ac_status=$?
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); }; }; then
7768   llvm_cv_link_use_export_dynamic=yes
7769 else
7770   echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7772
7773         llvm_cv_link_use_export_dynamic=no
7774 fi
7775
7776 rm -f core conftest.err conftest.$ac_objext \
7777       conftest$ac_exeext conftest.$ac_ext
7778   CFLAGS="$oldcflags"
7779   ac_ext=c
7780 ac_cpp='$CPP $CPPFLAGS'
7781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7784
7785
7786 fi
7787 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7788 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7789 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7790
7791 cat >>confdefs.h <<\_ACEOF
7792 #define HAVE_LINK_EXPORT_DYNAMIC 1
7793 _ACEOF
7794
7795   fi
7796
7797
7798 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7799 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7800 if test "${llvm_cv_link_use_version_script+set}" = set; then
7801   echo $ECHO_N "(cached) $ECHO_C" >&6
7802 else
7803    ac_ext=c
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808
7809   oldcflags="$CFLAGS"
7810
7811   # The following code is from the autoconf manual,
7812   # "11.13: Limitations of Usual Tools".
7813   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7814   # Use mktemp if possible; otherwise fall back on mkdir,
7815   # with $RANDOM to make collisions less likely.
7816   : ${TMPDIR=/tmp}
7817   {
7818     tmp=`
7819       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7820     ` &&
7821     test -n "$tmp" && test -d "$tmp"
7822   } || {
7823     tmp=$TMPDIR/foo$$-$RANDOM
7824     (umask 077 && mkdir "$tmp")
7825   } || exit $?
7826
7827   echo "{" > "$tmp/export.map"
7828   echo "  global: main;" >> "$tmp/export.map"
7829   echo "  local: *;" >> "$tmp/export.map"
7830   echo "};" >> "$tmp/export.map"
7831
7832   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7833   cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h.  */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h.  */
7839
7840 int
7841 main ()
7842 {
7843
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (ac_try="$ac_link"
7850 case "(($ac_try" in
7851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852   *) ac_try_echo=$ac_try;;
7853 esac
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855   (eval "$ac_link") 2>conftest.er1
7856   ac_status=$?
7857   grep -v '^ *+' conftest.er1 >conftest.err
7858   rm -f conftest.er1
7859   cat conftest.err >&5
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); } &&
7862          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7863   { (case "(($ac_try" in
7864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865   *) ac_try_echo=$ac_try;;
7866 esac
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868   (eval "$ac_try") 2>&5
7869   ac_status=$?
7870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871   (exit $ac_status); }; } &&
7872          { ac_try='test -s conftest$ac_exeext'
7873   { (case "(($ac_try" in
7874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875   *) ac_try_echo=$ac_try;;
7876 esac
7877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878   (eval "$ac_try") 2>&5
7879   ac_status=$?
7880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881   (exit $ac_status); }; }; then
7882   llvm_cv_link_use_version_script=yes
7883 else
7884   echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7886
7887         llvm_cv_link_use_version_script=no
7888 fi
7889
7890 rm -f core conftest.err conftest.$ac_objext \
7891       conftest$ac_exeext conftest.$ac_ext
7892   rm "$tmp/export.map"
7893   rmdir "$tmp"
7894   CFLAGS="$oldcflags"
7895   ac_ext=c
7896 ac_cpp='$CPP $CPPFLAGS'
7897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7900
7901
7902 fi
7903 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7904 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7905 if test "$llvm_cv_link_use_version_script" = yes ; then
7906   HAVE_LINK_VERSION_SCRIPT=1
7907
7908   fi
7909
7910
7911
7912 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7913 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7914 if test "${ac_cv_path_GREP+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   # Extract the first word of "grep ggrep" to use in msg output
7918 if test -z "$GREP"; then
7919 set dummy grep ggrep; ac_prog_name=$2
7920 if test "${ac_cv_path_GREP+set}" = set; then
7921   echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923   ac_path_GREP_found=false
7924 # Loop through the user's path and test for each of PROGNAME-LIST
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7927 do
7928   IFS=$as_save_IFS
7929   test -z "$as_dir" && as_dir=.
7930   for ac_prog in grep ggrep; do
7931   for ac_exec_ext in '' $ac_executable_extensions; do
7932     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7933     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7934     # Check for GNU ac_path_GREP and select it if it is found.
7935   # Check for GNU $ac_path_GREP
7936 case `"$ac_path_GREP" --version 2>&1` in
7937 *GNU*)
7938   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7939 *)
7940   ac_count=0
7941   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7942   while :
7943   do
7944     cat "conftest.in" "conftest.in" >"conftest.tmp"
7945     mv "conftest.tmp" "conftest.in"
7946     cp "conftest.in" "conftest.nl"
7947     echo 'GREP' >> "conftest.nl"
7948     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7949     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7950     ac_count=`expr $ac_count + 1`
7951     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7952       # Best one so far, save it but keep looking for a better one
7953       ac_cv_path_GREP="$ac_path_GREP"
7954       ac_path_GREP_max=$ac_count
7955     fi
7956     # 10*(2^10) chars as input seems more than enough
7957     test $ac_count -gt 10 && break
7958   done
7959   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7960 esac
7961
7962
7963     $ac_path_GREP_found && break 3
7964   done
7965 done
7966
7967 done
7968 IFS=$as_save_IFS
7969
7970
7971 fi
7972
7973 GREP="$ac_cv_path_GREP"
7974 if test -z "$GREP"; then
7975   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7976 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7977    { (exit 1); exit 1; }; }
7978 fi
7979
7980 else
7981   ac_cv_path_GREP=$GREP
7982 fi
7983
7984
7985 fi
7986 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7987 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7988  GREP="$ac_cv_path_GREP"
7989
7990
7991 { echo "$as_me:$LINENO: checking for egrep" >&5
7992 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7993 if test "${ac_cv_path_EGREP+set}" = set; then
7994   echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7997    then ac_cv_path_EGREP="$GREP -E"
7998    else
7999      # Extract the first word of "egrep" to use in msg output
8000 if test -z "$EGREP"; then
8001 set dummy egrep; ac_prog_name=$2
8002 if test "${ac_cv_path_EGREP+set}" = set; then
8003   echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005   ac_path_EGREP_found=false
8006 # Loop through the user's path and test for each of PROGNAME-LIST
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8009 do
8010   IFS=$as_save_IFS
8011   test -z "$as_dir" && as_dir=.
8012   for ac_prog in egrep; do
8013   for ac_exec_ext in '' $ac_executable_extensions; do
8014     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8015     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8016     # Check for GNU ac_path_EGREP and select it if it is found.
8017   # Check for GNU $ac_path_EGREP
8018 case `"$ac_path_EGREP" --version 2>&1` in
8019 *GNU*)
8020   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8021 *)
8022   ac_count=0
8023   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8024   while :
8025   do
8026     cat "conftest.in" "conftest.in" >"conftest.tmp"
8027     mv "conftest.tmp" "conftest.in"
8028     cp "conftest.in" "conftest.nl"
8029     echo 'EGREP' >> "conftest.nl"
8030     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8031     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8032     ac_count=`expr $ac_count + 1`
8033     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8034       # Best one so far, save it but keep looking for a better one
8035       ac_cv_path_EGREP="$ac_path_EGREP"
8036       ac_path_EGREP_max=$ac_count
8037     fi
8038     # 10*(2^10) chars as input seems more than enough
8039     test $ac_count -gt 10 && break
8040   done
8041   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8042 esac
8043
8044
8045     $ac_path_EGREP_found && break 3
8046   done
8047 done
8048
8049 done
8050 IFS=$as_save_IFS
8051
8052
8053 fi
8054
8055 EGREP="$ac_cv_path_EGREP"
8056 if test -z "$EGREP"; then
8057   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8058 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8059    { (exit 1); exit 1; }; }
8060 fi
8061
8062 else
8063   ac_cv_path_EGREP=$EGREP
8064 fi
8065
8066
8067    fi
8068 fi
8069 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8070 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8071  EGREP="$ac_cv_path_EGREP"
8072
8073
8074 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8075 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8076 if test "${ac_cv_header_stdc+set}" = set; then
8077   echo $ECHO_N "(cached) $ECHO_C" >&6
8078 else
8079   cat >conftest.$ac_ext <<_ACEOF
8080 /* confdefs.h.  */
8081 _ACEOF
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h.  */
8085 #include <stdlib.h>
8086 #include <stdarg.h>
8087 #include <string.h>
8088 #include <float.h>
8089
8090 int
8091 main ()
8092 {
8093
8094   ;
8095   return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext
8099 if { (ac_try="$ac_compile"
8100 case "(($ac_try" in
8101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102   *) ac_try_echo=$ac_try;;
8103 esac
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105   (eval "$ac_compile") 2>conftest.er1
8106   ac_status=$?
8107   grep -v '^ *+' conftest.er1 >conftest.err
8108   rm -f conftest.er1
8109   cat conftest.err >&5
8110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111   (exit $ac_status); } &&
8112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8113   { (case "(($ac_try" in
8114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115   *) ac_try_echo=$ac_try;;
8116 esac
8117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118   (eval "$ac_try") 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); }; } &&
8122          { ac_try='test -s conftest.$ac_objext'
8123   { (case "(($ac_try" in
8124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125   *) ac_try_echo=$ac_try;;
8126 esac
8127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128   (eval "$ac_try") 2>&5
8129   ac_status=$?
8130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131   (exit $ac_status); }; }; then
8132   ac_cv_header_stdc=yes
8133 else
8134   echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8136
8137         ac_cv_header_stdc=no
8138 fi
8139
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141
8142 if test $ac_cv_header_stdc = yes; then
8143   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8144   cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h.  */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h.  */
8150 #include <string.h>
8151
8152 _ACEOF
8153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8154   $EGREP "memchr" >/dev/null 2>&1; then
8155   :
8156 else
8157   ac_cv_header_stdc=no
8158 fi
8159 rm -f conftest*
8160
8161 fi
8162
8163 if test $ac_cv_header_stdc = yes; then
8164   # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
8172
8173 _ACEOF
8174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8175   $EGREP "free" >/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   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8186   if test "$cross_compiling" = yes; then
8187   :
8188 else
8189   cat >conftest.$ac_ext <<_ACEOF
8190 /* confdefs.h.  */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h.  */
8195 #include <ctype.h>
8196 #include <stdlib.h>
8197 #if ((' ' & 0x0FF) == 0x020)
8198 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8199 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8200 #else
8201 # define ISLOWER(c) \
8202                    (('a' <= (c) && (c) <= 'i') \
8203                      || ('j' <= (c) && (c) <= 'r') \
8204                      || ('s' <= (c) && (c) <= 'z'))
8205 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8206 #endif
8207
8208 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8209 int
8210 main ()
8211 {
8212   int i;
8213   for (i = 0; i < 256; i++)
8214     if (XOR (islower (i), ISLOWER (i))
8215         || toupper (i) != TOUPPER (i))
8216       return 2;
8217   return 0;
8218 }
8219 _ACEOF
8220 rm -f conftest$ac_exeext
8221 if { (ac_try="$ac_link"
8222 case "(($ac_try" in
8223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224   *) ac_try_echo=$ac_try;;
8225 esac
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227   (eval "$ac_link") 2>&5
8228   ac_status=$?
8229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8231   { (case "(($ac_try" in
8232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233   *) ac_try_echo=$ac_try;;
8234 esac
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236   (eval "$ac_try") 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); }; }; then
8240   :
8241 else
8242   echo "$as_me: program exited with status $ac_status" >&5
8243 echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8245
8246 ( exit $ac_status )
8247 ac_cv_header_stdc=no
8248 fi
8249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8250 fi
8251
8252
8253 fi
8254 fi
8255 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8256 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8257 if test $ac_cv_header_stdc = yes; then
8258
8259 cat >>confdefs.h <<\_ACEOF
8260 #define STDC_HEADERS 1
8261 _ACEOF
8262
8263 fi
8264
8265 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8276                   inttypes.h stdint.h unistd.h
8277 do
8278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8282   echo $ECHO_N "(cached) $ECHO_C" >&6
8283 else
8284   cat >conftest.$ac_ext <<_ACEOF
8285 /* confdefs.h.  */
8286 _ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h.  */
8290 $ac_includes_default
8291
8292 #include <$ac_header>
8293 _ACEOF
8294 rm -f conftest.$ac_objext
8295 if { (ac_try="$ac_compile"
8296 case "(($ac_try" in
8297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298   *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301   (eval "$ac_compile") 2>conftest.er1
8302   ac_status=$?
8303   grep -v '^ *+' conftest.er1 >conftest.err
8304   rm -f conftest.er1
8305   cat conftest.err >&5
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); } &&
8308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8309   { (case "(($ac_try" in
8310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311   *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314   (eval "$ac_try") 2>&5
8315   ac_status=$?
8316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); }; } &&
8318          { ac_try='test -s conftest.$ac_objext'
8319   { (case "(($ac_try" in
8320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8321   *) ac_try_echo=$ac_try;;
8322 esac
8323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8324   (eval "$ac_try") 2>&5
8325   ac_status=$?
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); }; }; then
8328   eval "$as_ac_Header=yes"
8329 else
8330   echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8332
8333         eval "$as_ac_Header=no"
8334 fi
8335
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 fi
8338 ac_res=`eval echo '${'$as_ac_Header'}'`
8339                { echo "$as_me:$LINENO: result: $ac_res" >&5
8340 echo "${ECHO_T}$ac_res" >&6; }
8341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8342   cat >>confdefs.h <<_ACEOF
8343 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8344 _ACEOF
8345
8346 fi
8347
8348 done
8349
8350
8351
8352 for ac_header in errno.h
8353 do
8354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8356   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8359   echo $ECHO_N "(cached) $ECHO_C" >&6
8360 fi
8361 ac_res=`eval echo '${'$as_ac_Header'}'`
8362                { echo "$as_me:$LINENO: result: $ac_res" >&5
8363 echo "${ECHO_T}$ac_res" >&6; }
8364 else
8365   # Is the header compilable?
8366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8368 cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h.  */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h.  */
8374 $ac_includes_default
8375 #include <$ac_header>
8376 _ACEOF
8377 rm -f conftest.$ac_objext
8378 if { (ac_try="$ac_compile"
8379 case "(($ac_try" in
8380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8381   *) ac_try_echo=$ac_try;;
8382 esac
8383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8384   (eval "$ac_compile") 2>conftest.er1
8385   ac_status=$?
8386   grep -v '^ *+' conftest.er1 >conftest.err
8387   rm -f conftest.er1
8388   cat conftest.err >&5
8389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390   (exit $ac_status); } &&
8391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8392   { (case "(($ac_try" in
8393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8394   *) ac_try_echo=$ac_try;;
8395 esac
8396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8397   (eval "$ac_try") 2>&5
8398   ac_status=$?
8399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400   (exit $ac_status); }; } &&
8401          { ac_try='test -s conftest.$ac_objext'
8402   { (case "(($ac_try" in
8403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8404   *) ac_try_echo=$ac_try;;
8405 esac
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407   (eval "$ac_try") 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   ac_header_compiler=yes
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416         ac_header_compiler=no
8417 fi
8418
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8421 echo "${ECHO_T}$ac_header_compiler" >&6; }
8422
8423 # Is the header present?
8424 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8426 cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h.  */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h.  */
8432 #include <$ac_header>
8433 _ACEOF
8434 if { (ac_try="$ac_cpp conftest.$ac_ext"
8435 case "(($ac_try" in
8436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8437   *) ac_try_echo=$ac_try;;
8438 esac
8439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8441   ac_status=$?
8442   grep -v '^ *+' conftest.er1 >conftest.err
8443   rm -f conftest.er1
8444   cat conftest.err >&5
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } >/dev/null; then
8447   if test -s conftest.err; then
8448     ac_cpp_err=$ac_c_preproc_warn_flag
8449     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8450   else
8451     ac_cpp_err=
8452   fi
8453 else
8454   ac_cpp_err=yes
8455 fi
8456 if test -z "$ac_cpp_err"; then
8457   ac_header_preproc=yes
8458 else
8459   echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8461
8462   ac_header_preproc=no
8463 fi
8464
8465 rm -f conftest.err conftest.$ac_ext
8466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8467 echo "${ECHO_T}$ac_header_preproc" >&6; }
8468
8469 # So?  What about this header?
8470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8471   yes:no: )
8472     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8474     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8476     ac_header_preproc=yes
8477     ;;
8478   no:yes:* )
8479     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8481     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8482 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8483     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8485     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8486 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8489     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8491     ( cat <<\_ASBOX
8492 ## ------------------------------------ ##
8493 ## Report this to http://llvm.org/bugs/ ##
8494 ## ------------------------------------ ##
8495 _ASBOX
8496      ) | sed "s/^/$as_me: WARNING:     /" >&2
8497     ;;
8498 esac
8499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8502   echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504   eval "$as_ac_Header=\$ac_header_preproc"
8505 fi
8506 ac_res=`eval echo '${'$as_ac_Header'}'`
8507                { echo "$as_me:$LINENO: result: $ac_res" >&5
8508 echo "${ECHO_T}$ac_res" >&6; }
8509
8510 fi
8511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8512   cat >>confdefs.h <<_ACEOF
8513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8514 _ACEOF
8515
8516 fi
8517
8518 done
8519
8520
8521 case "$llvm_cv_os_type" in
8522   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8523   Darwin) llvm_shlib_ext=.dylib ;;
8524   *) llvm_shlib_ext=.so ;;
8525 esac
8526
8527
8528 cat >>confdefs.h <<_ACEOF
8529 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8530 _ACEOF
8531
8532
8533 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8534 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8535
8536 ICC=no
8537 IXX=no
8538 case $CC in
8539   icc*|icpc*)
8540     ICC=yes
8541     IXX=yes
8542     ;;
8543    *)
8544     ;;
8545 esac
8546
8547 if test "$GCC" != "yes" && test "$ICC" != "yes"
8548 then
8549   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8550 echo "$as_me: error: gcc|icc required but not found" >&2;}
8551    { (exit 1); exit 1; }; }
8552 fi
8553
8554 if test "$GXX" != "yes" && test "$IXX" != "yes"
8555 then
8556   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8557 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8558    { (exit 1); exit 1; }; }
8559 fi
8560
8561 if test "$GCC" = "yes"
8562 then
8563   cat >conftest.$ac_ext <<_ACEOF
8564
8565   /* confdefs.h.  */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h.  */
8570
8571     #if !defined(__GNUC__) || __GNUC__ < 3
8572     #error Unsupported GCC version
8573     #endif
8574
8575
8576 _ACEOF
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8579 case "(($ac_try" in
8580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581   *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584   (eval "$ac_compile") 2>conftest.er1
8585   ac_status=$?
8586   grep -v '^ *+' conftest.er1 >conftest.err
8587   rm -f conftest.er1
8588   cat conftest.err >&5
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); } &&
8591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8592   { (case "(($ac_try" in
8593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594   *) ac_try_echo=$ac_try;;
8595 esac
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597   (eval "$ac_try") 2>&5
8598   ac_status=$?
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); }; } &&
8601          { ac_try='test -s conftest.$ac_objext'
8602   { (case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607   (eval "$ac_try") 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); }; }; then
8611   :
8612 else
8613   echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8615
8616         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8617 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8618    { (exit 1); exit 1; }; }
8619 fi
8620
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 fi
8623
8624 if test -z "$llvm_cv_gnu_make_command"
8625 then
8626   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8627 echo "$as_me: error: GNU Make required but not found" >&2;}
8628    { (exit 1); exit 1; }; }
8629 fi
8630
8631 { echo "$as_me:$LINENO: result: ok" >&5
8632 echo "${ECHO_T}ok" >&6; }
8633
8634 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8635 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8636 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8637
8638 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8639
8640 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8641
8642
8643 NO_UNINITIALIZED=
8644 NO_MAYBE_UNINITIALIZED=
8645 if test "$GXX" = "yes"
8646 then
8647   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8648
8649         if test -z "$NO_MAYBE_UNINITIALIZED"
8650   then
8651     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8652
8653   fi
8654 fi
8655 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8656 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8657
8658
8659 # Check whether --with-python was given.
8660 if test "${with_python+set}" = set; then
8661   withval=$with_python; PYTHON="$withval"
8662 fi
8663
8664
8665 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8666   { echo "$as_me:$LINENO: checking for python" >&5
8667 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8668   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8669 echo "${ECHO_T}user defined: $with_python" >&6; }
8670 else
8671   if test -n "$PYTHON" ; then
8672     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8673 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8674   fi
8675
8676   # Extract the first word of "python python2 python26", so it can be a program name with args.
8677 set dummy python python2 python26; ac_word=$2
8678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8680 if test "${ac_cv_path_PYTHON+set}" = set; then
8681   echo $ECHO_N "(cached) $ECHO_C" >&6
8682 else
8683   case $PYTHON in
8684   [\\/]* | ?:[\\/]*)
8685   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8686   ;;
8687   *)
8688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 for as_dir in $PATH
8690 do
8691   IFS=$as_save_IFS
8692   test -z "$as_dir" && as_dir=.
8693   for ac_exec_ext in '' $ac_executable_extensions; do
8694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8695     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8697     break 2
8698   fi
8699 done
8700 done
8701 IFS=$as_save_IFS
8702
8703   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8704 echo "${ECHO_T}not found" >&6; }
8705                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8706 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8707    { (exit 1); exit 1; }; }"
8708   ;;
8709 esac
8710 fi
8711 PYTHON=$ac_cv_path_PYTHON
8712 if test -n "$PYTHON"; then
8713   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8714 echo "${ECHO_T}$PYTHON" >&6; }
8715 else
8716   { echo "$as_me:$LINENO: result: no" >&5
8717 echo "${ECHO_T}no" >&6; }
8718 fi
8719
8720
8721 fi
8722
8723 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8724 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8725 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8726 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8727 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8728 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8729 if test "$ac_python_version_major" -gt "2" || \
8730    (test "$ac_python_version_major" -eq "2" && \
8731     test "$ac_python_version_minor" -ge "5") ; then
8732   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8733 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8734 else
8735   { echo "$as_me:$LINENO: result: not found" >&5
8736 echo "${ECHO_T}not found" >&6; }
8737   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8738 See \`config.log' for more details." >&5
8739 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8740 See \`config.log' for more details." >&2;}
8741    { (exit 1); exit 1; }; }
8742 fi
8743
8744
8745
8746 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8747 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8748 if test "${ac_cv_lib_m_sin+set}" = set; then
8749   echo $ECHO_N "(cached) $ECHO_C" >&6
8750 else
8751   ac_check_lib_save_LIBS=$LIBS
8752 LIBS="-lm  $LIBS"
8753 cat >conftest.$ac_ext <<_ACEOF
8754 /* confdefs.h.  */
8755 _ACEOF
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h.  */
8759
8760 /* Override any GCC internal prototype to avoid an error.
8761    Use char because int might match the return type of a GCC
8762    builtin and then its argument prototype would still apply.  */
8763 #ifdef __cplusplus
8764 extern "C"
8765 #endif
8766 char sin ();
8767 int
8768 main ()
8769 {
8770 return sin ();
8771   ;
8772   return 0;
8773 }
8774 _ACEOF
8775 rm -f conftest.$ac_objext conftest$ac_exeext
8776 if { (ac_try="$ac_link"
8777 case "(($ac_try" in
8778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779   *) ac_try_echo=$ac_try;;
8780 esac
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782   (eval "$ac_link") 2>conftest.er1
8783   ac_status=$?
8784   grep -v '^ *+' conftest.er1 >conftest.err
8785   rm -f conftest.er1
8786   cat conftest.err >&5
8787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788   (exit $ac_status); } &&
8789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8790   { (case "(($ac_try" in
8791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792   *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795   (eval "$ac_try") 2>&5
8796   ac_status=$?
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); }; } &&
8799          { ac_try='test -s conftest$ac_exeext'
8800   { (case "(($ac_try" in
8801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8802   *) ac_try_echo=$ac_try;;
8803 esac
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805   (eval "$ac_try") 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; }; then
8809   ac_cv_lib_m_sin=yes
8810 else
8811   echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814         ac_cv_lib_m_sin=no
8815 fi
8816
8817 rm -f core conftest.err conftest.$ac_objext \
8818       conftest$ac_exeext conftest.$ac_ext
8819 LIBS=$ac_check_lib_save_LIBS
8820 fi
8821 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8822 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8823 if test $ac_cv_lib_m_sin = yes; then
8824   cat >>confdefs.h <<_ACEOF
8825 #define HAVE_LIBM 1
8826 _ACEOF
8827
8828   LIBS="-lm $LIBS"
8829
8830 fi
8831
8832 if test "$llvm_cv_os_type" = "MingW" ; then
8833
8834 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8835 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8836 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8837   echo $ECHO_N "(cached) $ECHO_C" >&6
8838 else
8839   ac_check_lib_save_LIBS=$LIBS
8840 LIBS="-limagehlp  $LIBS"
8841 cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h.  */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h.  */
8847
8848
8849 int
8850 main ()
8851 {
8852 return main ();
8853   ;
8854   return 0;
8855 }
8856 _ACEOF
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (ac_try="$ac_link"
8859 case "(($ac_try" in
8860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8861   *) ac_try_echo=$ac_try;;
8862 esac
8863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8864   (eval "$ac_link") 2>conftest.er1
8865   ac_status=$?
8866   grep -v '^ *+' conftest.er1 >conftest.err
8867   rm -f conftest.er1
8868   cat conftest.err >&5
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); } &&
8871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8872   { (case "(($ac_try" in
8873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874   *) ac_try_echo=$ac_try;;
8875 esac
8876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877   (eval "$ac_try") 2>&5
8878   ac_status=$?
8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); }; } &&
8881          { ac_try='test -s conftest$ac_exeext'
8882   { (case "(($ac_try" in
8883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884   *) ac_try_echo=$ac_try;;
8885 esac
8886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8887   (eval "$ac_try") 2>&5
8888   ac_status=$?
8889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890   (exit $ac_status); }; }; then
8891   ac_cv_lib_imagehlp_main=yes
8892 else
8893   echo "$as_me: failed program was:" >&5
8894 sed 's/^/| /' conftest.$ac_ext >&5
8895
8896         ac_cv_lib_imagehlp_main=no
8897 fi
8898
8899 rm -f core conftest.err conftest.$ac_objext \
8900       conftest$ac_exeext conftest.$ac_ext
8901 LIBS=$ac_check_lib_save_LIBS
8902 fi
8903 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8904 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8905 if test $ac_cv_lib_imagehlp_main = yes; then
8906   cat >>confdefs.h <<_ACEOF
8907 #define HAVE_LIBIMAGEHLP 1
8908 _ACEOF
8909
8910   LIBS="-limagehlp $LIBS"
8911
8912 fi
8913
8914
8915 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8916 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8917 if test "${ac_cv_lib_psapi_main+set}" = set; then
8918   echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920   ac_check_lib_save_LIBS=$LIBS
8921 LIBS="-lpsapi  $LIBS"
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h.  */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h.  */
8928
8929
8930 int
8931 main ()
8932 {
8933 return main ();
8934   ;
8935   return 0;
8936 }
8937 _ACEOF
8938 rm -f conftest.$ac_objext conftest$ac_exeext
8939 if { (ac_try="$ac_link"
8940 case "(($ac_try" in
8941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942   *) ac_try_echo=$ac_try;;
8943 esac
8944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8945   (eval "$ac_link") 2>conftest.er1
8946   ac_status=$?
8947   grep -v '^ *+' conftest.er1 >conftest.err
8948   rm -f conftest.er1
8949   cat conftest.err >&5
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); } &&
8952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8953   { (case "(($ac_try" in
8954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955   *) ac_try_echo=$ac_try;;
8956 esac
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958   (eval "$ac_try") 2>&5
8959   ac_status=$?
8960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961   (exit $ac_status); }; } &&
8962          { ac_try='test -s conftest$ac_exeext'
8963   { (case "(($ac_try" in
8964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965   *) ac_try_echo=$ac_try;;
8966 esac
8967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8968   (eval "$ac_try") 2>&5
8969   ac_status=$?
8970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971   (exit $ac_status); }; }; then
8972   ac_cv_lib_psapi_main=yes
8973 else
8974   echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977         ac_cv_lib_psapi_main=no
8978 fi
8979
8980 rm -f core conftest.err conftest.$ac_objext \
8981       conftest$ac_exeext conftest.$ac_ext
8982 LIBS=$ac_check_lib_save_LIBS
8983 fi
8984 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8985 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8986 if test $ac_cv_lib_psapi_main = yes; then
8987   cat >>confdefs.h <<_ACEOF
8988 #define HAVE_LIBPSAPI 1
8989 _ACEOF
8990
8991   LIBS="-lpsapi $LIBS"
8992
8993 fi
8994
8995
8996 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8997 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8998 if test "${ac_cv_lib_shell32_main+set}" = set; then
8999   echo $ECHO_N "(cached) $ECHO_C" >&6
9000 else
9001   ac_check_lib_save_LIBS=$LIBS
9002 LIBS="-lshell32  $LIBS"
9003 cat >conftest.$ac_ext <<_ACEOF
9004 /* confdefs.h.  */
9005 _ACEOF
9006 cat confdefs.h >>conftest.$ac_ext
9007 cat >>conftest.$ac_ext <<_ACEOF
9008 /* end confdefs.h.  */
9009
9010
9011 int
9012 main ()
9013 {
9014 return main ();
9015   ;
9016   return 0;
9017 }
9018 _ACEOF
9019 rm -f conftest.$ac_objext conftest$ac_exeext
9020 if { (ac_try="$ac_link"
9021 case "(($ac_try" in
9022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023   *) ac_try_echo=$ac_try;;
9024 esac
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026   (eval "$ac_link") 2>conftest.er1
9027   ac_status=$?
9028   grep -v '^ *+' conftest.er1 >conftest.err
9029   rm -f conftest.er1
9030   cat conftest.err >&5
9031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032   (exit $ac_status); } &&
9033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9034   { (case "(($ac_try" in
9035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036   *) ac_try_echo=$ac_try;;
9037 esac
9038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039   (eval "$ac_try") 2>&5
9040   ac_status=$?
9041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042   (exit $ac_status); }; } &&
9043          { ac_try='test -s conftest$ac_exeext'
9044   { (case "(($ac_try" in
9045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046   *) ac_try_echo=$ac_try;;
9047 esac
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049   (eval "$ac_try") 2>&5
9050   ac_status=$?
9051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052   (exit $ac_status); }; }; then
9053   ac_cv_lib_shell32_main=yes
9054 else
9055   echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058         ac_cv_lib_shell32_main=no
9059 fi
9060
9061 rm -f core conftest.err conftest.$ac_objext \
9062       conftest$ac_exeext conftest.$ac_ext
9063 LIBS=$ac_check_lib_save_LIBS
9064 fi
9065 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
9066 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
9067 if test $ac_cv_lib_shell32_main = yes; then
9068   cat >>confdefs.h <<_ACEOF
9069 #define HAVE_LIBSHELL32 1
9070 _ACEOF
9071
9072   LIBS="-lshell32 $LIBS"
9073
9074 fi
9075
9076 fi
9077
9078 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9079 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9080 if test "${ac_cv_search_dlopen+set}" = set; then
9081   echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083   ac_func_search_save_LIBS=$LIBS
9084 cat >conftest.$ac_ext <<_ACEOF
9085 /* confdefs.h.  */
9086 _ACEOF
9087 cat confdefs.h >>conftest.$ac_ext
9088 cat >>conftest.$ac_ext <<_ACEOF
9089 /* end confdefs.h.  */
9090
9091 /* Override any GCC internal prototype to avoid an error.
9092    Use char because int might match the return type of a GCC
9093    builtin and then its argument prototype would still apply.  */
9094 #ifdef __cplusplus
9095 extern "C"
9096 #endif
9097 char dlopen ();
9098 int
9099 main ()
9100 {
9101 return dlopen ();
9102   ;
9103   return 0;
9104 }
9105 _ACEOF
9106 for ac_lib in '' dl; do
9107   if test -z "$ac_lib"; then
9108     ac_res="none required"
9109   else
9110     ac_res=-l$ac_lib
9111     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9112   fi
9113   rm -f conftest.$ac_objext conftest$ac_exeext
9114 if { (ac_try="$ac_link"
9115 case "(($ac_try" in
9116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117   *) ac_try_echo=$ac_try;;
9118 esac
9119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120   (eval "$ac_link") 2>conftest.er1
9121   ac_status=$?
9122   grep -v '^ *+' conftest.er1 >conftest.err
9123   rm -f conftest.er1
9124   cat conftest.err >&5
9125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126   (exit $ac_status); } &&
9127          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9128   { (case "(($ac_try" in
9129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130   *) ac_try_echo=$ac_try;;
9131 esac
9132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133   (eval "$ac_try") 2>&5
9134   ac_status=$?
9135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136   (exit $ac_status); }; } &&
9137          { ac_try='test -s conftest$ac_exeext'
9138   { (case "(($ac_try" in
9139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140   *) ac_try_echo=$ac_try;;
9141 esac
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143   (eval "$ac_try") 2>&5
9144   ac_status=$?
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); }; }; then
9147   ac_cv_search_dlopen=$ac_res
9148 else
9149   echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9151
9152
9153 fi
9154
9155 rm -f core conftest.err conftest.$ac_objext \
9156       conftest$ac_exeext
9157   if test "${ac_cv_search_dlopen+set}" = set; then
9158   break
9159 fi
9160 done
9161 if test "${ac_cv_search_dlopen+set}" = set; then
9162   :
9163 else
9164   ac_cv_search_dlopen=no
9165 fi
9166 rm conftest.$ac_ext
9167 LIBS=$ac_func_search_save_LIBS
9168 fi
9169 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9170 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9171 ac_res=$ac_cv_search_dlopen
9172 if test "$ac_res" != no; then
9173   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9174
9175
9176 cat >>confdefs.h <<\_ACEOF
9177 #define HAVE_DLOPEN 1
9178 _ACEOF
9179
9180 HAVE_DLOPEN='1'
9181
9182
9183 else
9184   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9185 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9186 fi
9187
9188
9189 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9190 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9191 if test "${ac_cv_search_clock_gettime+set}" = set; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194   ac_func_search_save_LIBS=$LIBS
9195 cat >conftest.$ac_ext <<_ACEOF
9196 /* confdefs.h.  */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h.  */
9201
9202 /* Override any GCC internal prototype to avoid an error.
9203    Use char because int might match the return type of a GCC
9204    builtin and then its argument prototype would still apply.  */
9205 #ifdef __cplusplus
9206 extern "C"
9207 #endif
9208 char clock_gettime ();
9209 int
9210 main ()
9211 {
9212 return clock_gettime ();
9213   ;
9214   return 0;
9215 }
9216 _ACEOF
9217 for ac_lib in '' rt; do
9218   if test -z "$ac_lib"; then
9219     ac_res="none required"
9220   else
9221     ac_res=-l$ac_lib
9222     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9223   fi
9224   rm -f conftest.$ac_objext conftest$ac_exeext
9225 if { (ac_try="$ac_link"
9226 case "(($ac_try" in
9227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9228   *) ac_try_echo=$ac_try;;
9229 esac
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231   (eval "$ac_link") 2>conftest.er1
9232   ac_status=$?
9233   grep -v '^ *+' conftest.er1 >conftest.err
9234   rm -f conftest.er1
9235   cat conftest.err >&5
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); } &&
9238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9239   { (case "(($ac_try" in
9240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241   *) ac_try_echo=$ac_try;;
9242 esac
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244   (eval "$ac_try") 2>&5
9245   ac_status=$?
9246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); }; } &&
9248          { ac_try='test -s conftest$ac_exeext'
9249   { (case "(($ac_try" in
9250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251   *) ac_try_echo=$ac_try;;
9252 esac
9253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254   (eval "$ac_try") 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); }; }; then
9258   ac_cv_search_clock_gettime=$ac_res
9259 else
9260   echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9262
9263
9264 fi
9265
9266 rm -f core conftest.err conftest.$ac_objext \
9267       conftest$ac_exeext
9268   if test "${ac_cv_search_clock_gettime+set}" = set; then
9269   break
9270 fi
9271 done
9272 if test "${ac_cv_search_clock_gettime+set}" = set; then
9273   :
9274 else
9275   ac_cv_search_clock_gettime=no
9276 fi
9277 rm conftest.$ac_ext
9278 LIBS=$ac_func_search_save_LIBS
9279 fi
9280 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9281 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9282 ac_res=$ac_cv_search_clock_gettime
9283 if test "$ac_res" != no; then
9284   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9285
9286 fi
9287
9288
9289 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9290     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9291 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9292 if test "${ac_cv_search_setupterm+set}" = set; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 else
9295   ac_func_search_save_LIBS=$LIBS
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302
9303 /* Override any GCC internal prototype to avoid an error.
9304    Use char because int might match the return type of a GCC
9305    builtin and then its argument prototype would still apply.  */
9306 #ifdef __cplusplus
9307 extern "C"
9308 #endif
9309 char setupterm ();
9310 int
9311 main ()
9312 {
9313 return setupterm ();
9314   ;
9315   return 0;
9316 }
9317 _ACEOF
9318 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9319   if test -z "$ac_lib"; then
9320     ac_res="none required"
9321   else
9322     ac_res=-l$ac_lib
9323     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9324   fi
9325   rm -f conftest.$ac_objext conftest$ac_exeext
9326 if { (ac_try="$ac_link"
9327 case "(($ac_try" in
9328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329   *) ac_try_echo=$ac_try;;
9330 esac
9331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9332   (eval "$ac_link") 2>conftest.er1
9333   ac_status=$?
9334   grep -v '^ *+' conftest.er1 >conftest.err
9335   rm -f conftest.er1
9336   cat conftest.err >&5
9337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338   (exit $ac_status); } &&
9339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9340   { (case "(($ac_try" in
9341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342   *) ac_try_echo=$ac_try;;
9343 esac
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345   (eval "$ac_try") 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); }; } &&
9349          { ac_try='test -s conftest$ac_exeext'
9350   { (case "(($ac_try" in
9351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352   *) ac_try_echo=$ac_try;;
9353 esac
9354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9355   (eval "$ac_try") 2>&5
9356   ac_status=$?
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); }; }; then
9359   ac_cv_search_setupterm=$ac_res
9360 else
9361   echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364
9365 fi
9366
9367 rm -f core conftest.err conftest.$ac_objext \
9368       conftest$ac_exeext
9369   if test "${ac_cv_search_setupterm+set}" = set; then
9370   break
9371 fi
9372 done
9373 if test "${ac_cv_search_setupterm+set}" = set; then
9374   :
9375 else
9376   ac_cv_search_setupterm=no
9377 fi
9378 rm conftest.$ac_ext
9379 LIBS=$ac_func_search_save_LIBS
9380 fi
9381 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9382 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9383 ac_res=$ac_cv_search_setupterm
9384 if test "$ac_res" != no; then
9385   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9386
9387
9388 cat >>confdefs.h <<\_ACEOF
9389 #define HAVE_TERMINFO 1
9390 _ACEOF
9391
9392 HAVE_TERMINFO='1'
9393
9394
9395 fi
9396
9397 fi
9398
9399 if test "$llvm_cv_enable_libedit" = "yes" ; then
9400   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9401 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9402 if test "${ac_cv_search_el_init+set}" = set; then
9403   echo $ECHO_N "(cached) $ECHO_C" >&6
9404 else
9405   ac_func_search_save_LIBS=$LIBS
9406 cat >conftest.$ac_ext <<_ACEOF
9407 /* confdefs.h.  */
9408 _ACEOF
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h.  */
9412
9413 /* Override any GCC internal prototype to avoid an error.
9414    Use char because int might match the return type of a GCC
9415    builtin and then its argument prototype would still apply.  */
9416 #ifdef __cplusplus
9417 extern "C"
9418 #endif
9419 char el_init ();
9420 int
9421 main ()
9422 {
9423 return el_init ();
9424   ;
9425   return 0;
9426 }
9427 _ACEOF
9428 for ac_lib in '' edit; do
9429   if test -z "$ac_lib"; then
9430     ac_res="none required"
9431   else
9432     ac_res=-l$ac_lib
9433     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9434   fi
9435   rm -f conftest.$ac_objext conftest$ac_exeext
9436 if { (ac_try="$ac_link"
9437 case "(($ac_try" in
9438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439   *) ac_try_echo=$ac_try;;
9440 esac
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442   (eval "$ac_link") 2>conftest.er1
9443   ac_status=$?
9444   grep -v '^ *+' conftest.er1 >conftest.err
9445   rm -f conftest.er1
9446   cat conftest.err >&5
9447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448   (exit $ac_status); } &&
9449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9450   { (case "(($ac_try" in
9451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452   *) ac_try_echo=$ac_try;;
9453 esac
9454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455   (eval "$ac_try") 2>&5
9456   ac_status=$?
9457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458   (exit $ac_status); }; } &&
9459          { ac_try='test -s conftest$ac_exeext'
9460   { (case "(($ac_try" in
9461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462   *) ac_try_echo=$ac_try;;
9463 esac
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465   (eval "$ac_try") 2>&5
9466   ac_status=$?
9467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468   (exit $ac_status); }; }; then
9469   ac_cv_search_el_init=$ac_res
9470 else
9471   echo "$as_me: failed program was:" >&5
9472 sed 's/^/| /' conftest.$ac_ext >&5
9473
9474
9475 fi
9476
9477 rm -f core conftest.err conftest.$ac_objext \
9478       conftest$ac_exeext
9479   if test "${ac_cv_search_el_init+set}" = set; then
9480   break
9481 fi
9482 done
9483 if test "${ac_cv_search_el_init+set}" = set; then
9484   :
9485 else
9486   ac_cv_search_el_init=no
9487 fi
9488 rm conftest.$ac_ext
9489 LIBS=$ac_func_search_save_LIBS
9490 fi
9491 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9492 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9493 ac_res=$ac_cv_search_el_init
9494 if test "$ac_res" != no; then
9495   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9496
9497 cat >>confdefs.h <<\_ACEOF
9498 #define HAVE_LIBEDIT 1
9499 _ACEOF
9500
9501 fi
9502
9503 fi
9504
9505 if test "$llvm_cv_enable_libffi" = "yes" ; then
9506   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9507 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9508 if test "${ac_cv_search_ffi_call+set}" = set; then
9509   echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511   ac_func_search_save_LIBS=$LIBS
9512 cat >conftest.$ac_ext <<_ACEOF
9513 /* confdefs.h.  */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h.  */
9518
9519 /* Override any GCC internal prototype to avoid an error.
9520    Use char because int might match the return type of a GCC
9521    builtin and then its argument prototype would still apply.  */
9522 #ifdef __cplusplus
9523 extern "C"
9524 #endif
9525 char ffi_call ();
9526 int
9527 main ()
9528 {
9529 return ffi_call ();
9530   ;
9531   return 0;
9532 }
9533 _ACEOF
9534 for ac_lib in '' ffi; do
9535   if test -z "$ac_lib"; then
9536     ac_res="none required"
9537   else
9538     ac_res=-l$ac_lib
9539     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9540   fi
9541   rm -f conftest.$ac_objext conftest$ac_exeext
9542 if { (ac_try="$ac_link"
9543 case "(($ac_try" in
9544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545   *) ac_try_echo=$ac_try;;
9546 esac
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548   (eval "$ac_link") 2>conftest.er1
9549   ac_status=$?
9550   grep -v '^ *+' conftest.er1 >conftest.err
9551   rm -f conftest.er1
9552   cat conftest.err >&5
9553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554   (exit $ac_status); } &&
9555          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9556   { (case "(($ac_try" in
9557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9558   *) ac_try_echo=$ac_try;;
9559 esac
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561   (eval "$ac_try") 2>&5
9562   ac_status=$?
9563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564   (exit $ac_status); }; } &&
9565          { ac_try='test -s conftest$ac_exeext'
9566   { (case "(($ac_try" in
9567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568   *) ac_try_echo=$ac_try;;
9569 esac
9570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571   (eval "$ac_try") 2>&5
9572   ac_status=$?
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); }; }; then
9575   ac_cv_search_ffi_call=$ac_res
9576 else
9577   echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9579
9580
9581 fi
9582
9583 rm -f core conftest.err conftest.$ac_objext \
9584       conftest$ac_exeext
9585   if test "${ac_cv_search_ffi_call+set}" = set; then
9586   break
9587 fi
9588 done
9589 if test "${ac_cv_search_ffi_call+set}" = set; then
9590   :
9591 else
9592   ac_cv_search_ffi_call=no
9593 fi
9594 rm conftest.$ac_ext
9595 LIBS=$ac_func_search_save_LIBS
9596 fi
9597 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9598 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9599 ac_res=$ac_cv_search_ffi_call
9600 if test "$ac_res" != no; then
9601   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9602
9603 cat >>confdefs.h <<\_ACEOF
9604 #define HAVE_FFI_CALL 1
9605 _ACEOF
9606
9607 else
9608   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9609 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9610    { (exit 1); exit 1; }; }
9611 fi
9612
9613 fi
9614
9615 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9616 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9617 if test "${ac_cv_search_mallinfo+set}" = set; then
9618   echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620   ac_func_search_save_LIBS=$LIBS
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h.  */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h.  */
9627
9628 /* Override any GCC internal prototype to avoid an error.
9629    Use char because int might match the return type of a GCC
9630    builtin and then its argument prototype would still apply.  */
9631 #ifdef __cplusplus
9632 extern "C"
9633 #endif
9634 char mallinfo ();
9635 int
9636 main ()
9637 {
9638 return mallinfo ();
9639   ;
9640   return 0;
9641 }
9642 _ACEOF
9643 for ac_lib in '' malloc; do
9644   if test -z "$ac_lib"; then
9645     ac_res="none required"
9646   else
9647     ac_res=-l$ac_lib
9648     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9649   fi
9650   rm -f conftest.$ac_objext conftest$ac_exeext
9651 if { (ac_try="$ac_link"
9652 case "(($ac_try" in
9653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654   *) ac_try_echo=$ac_try;;
9655 esac
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657   (eval "$ac_link") 2>conftest.er1
9658   ac_status=$?
9659   grep -v '^ *+' conftest.er1 >conftest.err
9660   rm -f conftest.er1
9661   cat conftest.err >&5
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); } &&
9664          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9665   { (case "(($ac_try" in
9666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667   *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670   (eval "$ac_try") 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); }; } &&
9674          { ac_try='test -s conftest$ac_exeext'
9675   { (case "(($ac_try" in
9676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677   *) ac_try_echo=$ac_try;;
9678 esac
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680   (eval "$ac_try") 2>&5
9681   ac_status=$?
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); }; }; then
9684   ac_cv_search_mallinfo=$ac_res
9685 else
9686   echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9688
9689
9690 fi
9691
9692 rm -f core conftest.err conftest.$ac_objext \
9693       conftest$ac_exeext
9694   if test "${ac_cv_search_mallinfo+set}" = set; then
9695   break
9696 fi
9697 done
9698 if test "${ac_cv_search_mallinfo+set}" = set; then
9699   :
9700 else
9701   ac_cv_search_mallinfo=no
9702 fi
9703 rm conftest.$ac_ext
9704 LIBS=$ac_func_search_save_LIBS
9705 fi
9706 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9707 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9708 ac_res=$ac_cv_search_mallinfo
9709 if test "$ac_res" != no; then
9710   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9711
9712 cat >>confdefs.h <<\_ACEOF
9713 #define HAVE_MALLINFO 1
9714 _ACEOF
9715
9716 fi
9717
9718
9719 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9720
9721 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9722 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9723 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9724   echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726   ac_check_lib_save_LIBS=$LIBS
9727 LIBS="-lpthread  $LIBS"
9728 cat >conftest.$ac_ext <<_ACEOF
9729 /* confdefs.h.  */
9730 _ACEOF
9731 cat confdefs.h >>conftest.$ac_ext
9732 cat >>conftest.$ac_ext <<_ACEOF
9733 /* end confdefs.h.  */
9734
9735 /* Override any GCC internal prototype to avoid an error.
9736    Use char because int might match the return type of a GCC
9737    builtin and then its argument prototype would still apply.  */
9738 #ifdef __cplusplus
9739 extern "C"
9740 #endif
9741 char pthread_mutex_init ();
9742 int
9743 main ()
9744 {
9745 return pthread_mutex_init ();
9746   ;
9747   return 0;
9748 }
9749 _ACEOF
9750 rm -f conftest.$ac_objext conftest$ac_exeext
9751 if { (ac_try="$ac_link"
9752 case "(($ac_try" in
9753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754   *) ac_try_echo=$ac_try;;
9755 esac
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757   (eval "$ac_link") 2>conftest.er1
9758   ac_status=$?
9759   grep -v '^ *+' conftest.er1 >conftest.err
9760   rm -f conftest.er1
9761   cat conftest.err >&5
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); } &&
9764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9765   { (case "(($ac_try" in
9766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9767   *) ac_try_echo=$ac_try;;
9768 esac
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770   (eval "$ac_try") 2>&5
9771   ac_status=$?
9772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773   (exit $ac_status); }; } &&
9774          { ac_try='test -s conftest$ac_exeext'
9775   { (case "(($ac_try" in
9776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777   *) ac_try_echo=$ac_try;;
9778 esac
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780   (eval "$ac_try") 2>&5
9781   ac_status=$?
9782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783   (exit $ac_status); }; }; then
9784   ac_cv_lib_pthread_pthread_mutex_init=yes
9785 else
9786   echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9788
9789         ac_cv_lib_pthread_pthread_mutex_init=no
9790 fi
9791
9792 rm -f core conftest.err conftest.$ac_objext \
9793       conftest$ac_exeext conftest.$ac_ext
9794 LIBS=$ac_check_lib_save_LIBS
9795 fi
9796 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9797 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9798 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9799   cat >>confdefs.h <<_ACEOF
9800 #define HAVE_LIBPTHREAD 1
9801 _ACEOF
9802
9803   LIBS="-lpthread $LIBS"
9804
9805 fi
9806
9807   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9808 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9809 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9810   echo $ECHO_N "(cached) $ECHO_C" >&6
9811 else
9812   ac_func_search_save_LIBS=$LIBS
9813 cat >conftest.$ac_ext <<_ACEOF
9814 /* confdefs.h.  */
9815 _ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h.  */
9819
9820 /* Override any GCC internal prototype to avoid an error.
9821    Use char because int might match the return type of a GCC
9822    builtin and then its argument prototype would still apply.  */
9823 #ifdef __cplusplus
9824 extern "C"
9825 #endif
9826 char pthread_mutex_lock ();
9827 int
9828 main ()
9829 {
9830 return pthread_mutex_lock ();
9831   ;
9832   return 0;
9833 }
9834 _ACEOF
9835 for ac_lib in '' pthread; do
9836   if test -z "$ac_lib"; then
9837     ac_res="none required"
9838   else
9839     ac_res=-l$ac_lib
9840     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9841   fi
9842   rm -f conftest.$ac_objext conftest$ac_exeext
9843 if { (ac_try="$ac_link"
9844 case "(($ac_try" in
9845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846   *) ac_try_echo=$ac_try;;
9847 esac
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849   (eval "$ac_link") 2>conftest.er1
9850   ac_status=$?
9851   grep -v '^ *+' conftest.er1 >conftest.err
9852   rm -f conftest.er1
9853   cat conftest.err >&5
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); } &&
9856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9857   { (case "(($ac_try" in
9858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859   *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862   (eval "$ac_try") 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; } &&
9866          { ac_try='test -s conftest$ac_exeext'
9867   { (case "(($ac_try" in
9868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9869   *) ac_try_echo=$ac_try;;
9870 esac
9871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9872   (eval "$ac_try") 2>&5
9873   ac_status=$?
9874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); }; }; then
9876   ac_cv_search_pthread_mutex_lock=$ac_res
9877 else
9878   echo "$as_me: failed program was:" >&5
9879 sed 's/^/| /' conftest.$ac_ext >&5
9880
9881
9882 fi
9883
9884 rm -f core conftest.err conftest.$ac_objext \
9885       conftest$ac_exeext
9886   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9887   break
9888 fi
9889 done
9890 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9891   :
9892 else
9893   ac_cv_search_pthread_mutex_lock=no
9894 fi
9895 rm conftest.$ac_ext
9896 LIBS=$ac_func_search_save_LIBS
9897 fi
9898 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9899 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9900 ac_res=$ac_cv_search_pthread_mutex_lock
9901 if test "$ac_res" != no; then
9902   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9903
9904 cat >>confdefs.h <<\_ACEOF
9905 #define HAVE_PTHREAD_MUTEX_LOCK 1
9906 _ACEOF
9907
9908 fi
9909
9910   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9911 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9912 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9913   echo $ECHO_N "(cached) $ECHO_C" >&6
9914 else
9915   ac_func_search_save_LIBS=$LIBS
9916 cat >conftest.$ac_ext <<_ACEOF
9917 /* confdefs.h.  */
9918 _ACEOF
9919 cat confdefs.h >>conftest.$ac_ext
9920 cat >>conftest.$ac_ext <<_ACEOF
9921 /* end confdefs.h.  */
9922
9923 /* Override any GCC internal prototype to avoid an error.
9924    Use char because int might match the return type of a GCC
9925    builtin and then its argument prototype would still apply.  */
9926 #ifdef __cplusplus
9927 extern "C"
9928 #endif
9929 char pthread_rwlock_init ();
9930 int
9931 main ()
9932 {
9933 return pthread_rwlock_init ();
9934   ;
9935   return 0;
9936 }
9937 _ACEOF
9938 for ac_lib in '' pthread; do
9939   if test -z "$ac_lib"; then
9940     ac_res="none required"
9941   else
9942     ac_res=-l$ac_lib
9943     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9944   fi
9945   rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (ac_try="$ac_link"
9947 case "(($ac_try" in
9948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9949   *) ac_try_echo=$ac_try;;
9950 esac
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952   (eval "$ac_link") 2>conftest.er1
9953   ac_status=$?
9954   grep -v '^ *+' conftest.er1 >conftest.err
9955   rm -f conftest.er1
9956   cat conftest.err >&5
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); } &&
9959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9960   { (case "(($ac_try" in
9961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962   *) ac_try_echo=$ac_try;;
9963 esac
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965   (eval "$ac_try") 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; } &&
9969          { ac_try='test -s conftest$ac_exeext'
9970   { (case "(($ac_try" in
9971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972   *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975   (eval "$ac_try") 2>&5
9976   ac_status=$?
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); }; }; then
9979   ac_cv_search_pthread_rwlock_init=$ac_res
9980 else
9981   echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984
9985 fi
9986
9987 rm -f core conftest.err conftest.$ac_objext \
9988       conftest$ac_exeext
9989   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9990   break
9991 fi
9992 done
9993 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9994   :
9995 else
9996   ac_cv_search_pthread_rwlock_init=no
9997 fi
9998 rm conftest.$ac_ext
9999 LIBS=$ac_func_search_save_LIBS
10000 fi
10001 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
10002 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
10003 ac_res=$ac_cv_search_pthread_rwlock_init
10004 if test "$ac_res" != no; then
10005   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10006
10007 cat >>confdefs.h <<\_ACEOF
10008 #define HAVE_PTHREAD_RWLOCK_INIT 1
10009 _ACEOF
10010
10011 fi
10012
10013   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
10014 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
10015 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   ac_func_search_save_LIBS=$LIBS
10019 cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h.  */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h.  */
10025
10026 /* Override any GCC internal prototype to avoid an error.
10027    Use char because int might match the return type of a GCC
10028    builtin and then its argument prototype would still apply.  */
10029 #ifdef __cplusplus
10030 extern "C"
10031 #endif
10032 char pthread_getspecific ();
10033 int
10034 main ()
10035 {
10036 return pthread_getspecific ();
10037   ;
10038   return 0;
10039 }
10040 _ACEOF
10041 for ac_lib in '' pthread; do
10042   if test -z "$ac_lib"; then
10043     ac_res="none required"
10044   else
10045     ac_res=-l$ac_lib
10046     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10047   fi
10048   rm -f conftest.$ac_objext conftest$ac_exeext
10049 if { (ac_try="$ac_link"
10050 case "(($ac_try" in
10051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052   *) ac_try_echo=$ac_try;;
10053 esac
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055   (eval "$ac_link") 2>conftest.er1
10056   ac_status=$?
10057   grep -v '^ *+' conftest.er1 >conftest.err
10058   rm -f conftest.er1
10059   cat conftest.err >&5
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); } &&
10062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10063   { (case "(($ac_try" in
10064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10065   *) ac_try_echo=$ac_try;;
10066 esac
10067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10068   (eval "$ac_try") 2>&5
10069   ac_status=$?
10070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071   (exit $ac_status); }; } &&
10072          { ac_try='test -s conftest$ac_exeext'
10073   { (case "(($ac_try" in
10074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075   *) ac_try_echo=$ac_try;;
10076 esac
10077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078   (eval "$ac_try") 2>&5
10079   ac_status=$?
10080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081   (exit $ac_status); }; }; then
10082   ac_cv_search_pthread_getspecific=$ac_res
10083 else
10084   echo "$as_me: failed program was:" >&5
10085 sed 's/^/| /' conftest.$ac_ext >&5
10086
10087
10088 fi
10089
10090 rm -f core conftest.err conftest.$ac_objext \
10091       conftest$ac_exeext
10092   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10093   break
10094 fi
10095 done
10096 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10097   :
10098 else
10099   ac_cv_search_pthread_getspecific=no
10100 fi
10101 rm conftest.$ac_ext
10102 LIBS=$ac_func_search_save_LIBS
10103 fi
10104 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10105 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10106 ac_res=$ac_cv_search_pthread_getspecific
10107 if test "$ac_res" != no; then
10108   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10109
10110 cat >>confdefs.h <<\_ACEOF
10111 #define HAVE_PTHREAD_GETSPECIFIC 1
10112 _ACEOF
10113
10114 fi
10115
10116 fi
10117
10118 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10119
10120 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10121 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10122 if test "${ac_cv_lib_z_compress2+set}" = set; then
10123   echo $ECHO_N "(cached) $ECHO_C" >&6
10124 else
10125   ac_check_lib_save_LIBS=$LIBS
10126 LIBS="-lz  $LIBS"
10127 cat >conftest.$ac_ext <<_ACEOF
10128 /* confdefs.h.  */
10129 _ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h.  */
10133
10134 /* Override any GCC internal prototype to avoid an error.
10135    Use char because int might match the return type of a GCC
10136    builtin and then its argument prototype would still apply.  */
10137 #ifdef __cplusplus
10138 extern "C"
10139 #endif
10140 char compress2 ();
10141 int
10142 main ()
10143 {
10144 return compress2 ();
10145   ;
10146   return 0;
10147 }
10148 _ACEOF
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (ac_try="$ac_link"
10151 case "(($ac_try" in
10152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10153   *) ac_try_echo=$ac_try;;
10154 esac
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156   (eval "$ac_link") 2>conftest.er1
10157   ac_status=$?
10158   grep -v '^ *+' conftest.er1 >conftest.err
10159   rm -f conftest.er1
10160   cat conftest.err >&5
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); } &&
10163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10164   { (case "(($ac_try" in
10165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166   *) ac_try_echo=$ac_try;;
10167 esac
10168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169   (eval "$ac_try") 2>&5
10170   ac_status=$?
10171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172   (exit $ac_status); }; } &&
10173          { ac_try='test -s conftest$ac_exeext'
10174   { (case "(($ac_try" in
10175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176   *) ac_try_echo=$ac_try;;
10177 esac
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179   (eval "$ac_try") 2>&5
10180   ac_status=$?
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); }; }; then
10183   ac_cv_lib_z_compress2=yes
10184 else
10185   echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10187
10188         ac_cv_lib_z_compress2=no
10189 fi
10190
10191 rm -f core conftest.err conftest.$ac_objext \
10192       conftest$ac_exeext conftest.$ac_ext
10193 LIBS=$ac_check_lib_save_LIBS
10194 fi
10195 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10196 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10197 if test $ac_cv_lib_z_compress2 = yes; then
10198   cat >>confdefs.h <<_ACEOF
10199 #define HAVE_LIBZ 1
10200 _ACEOF
10201
10202   LIBS="-lz $LIBS"
10203
10204 fi
10205
10206 fi
10207
10208
10209 # Check whether --with-udis86 was given.
10210 if test "${with_udis86+set}" = set; then
10211   withval=$with_udis86;
10212       USE_UDIS86=1
10213
10214       case "$withval" in
10215         /usr/lib|yes) ;;
10216         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10217       esac
10218
10219 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
10220 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
10221 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
10222   echo $ECHO_N "(cached) $ECHO_C" >&6
10223 else
10224   ac_check_lib_save_LIBS=$LIBS
10225 LIBS="-ludis86  $LIBS"
10226 cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232
10233 /* Override any GCC internal prototype to avoid an error.
10234    Use char because int might match the return type of a GCC
10235    builtin and then its argument prototype would still apply.  */
10236 #ifdef __cplusplus
10237 extern "C"
10238 #endif
10239 char ud_init ();
10240 int
10241 main ()
10242 {
10243 return ud_init ();
10244   ;
10245   return 0;
10246 }
10247 _ACEOF
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (ac_try="$ac_link"
10250 case "(($ac_try" in
10251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252   *) ac_try_echo=$ac_try;;
10253 esac
10254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255   (eval "$ac_link") 2>conftest.er1
10256   ac_status=$?
10257   grep -v '^ *+' conftest.er1 >conftest.err
10258   rm -f conftest.er1
10259   cat conftest.err >&5
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); } &&
10262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10263   { (case "(($ac_try" in
10264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265   *) ac_try_echo=$ac_try;;
10266 esac
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268   (eval "$ac_try") 2>&5
10269   ac_status=$?
10270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271   (exit $ac_status); }; } &&
10272          { ac_try='test -s conftest$ac_exeext'
10273   { (case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278   (eval "$ac_try") 2>&5
10279   ac_status=$?
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); }; }; then
10282   ac_cv_lib_udis86_ud_init=yes
10283 else
10284   echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10286
10287         ac_cv_lib_udis86_ud_init=no
10288 fi
10289
10290 rm -f core conftest.err conftest.$ac_objext \
10291       conftest$ac_exeext conftest.$ac_ext
10292 LIBS=$ac_check_lib_save_LIBS
10293 fi
10294 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
10295 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
10296 if test $ac_cv_lib_udis86_ud_init = yes; then
10297   cat >>confdefs.h <<_ACEOF
10298 #define HAVE_LIBUDIS86 1
10299 _ACEOF
10300
10301   LIBS="-ludis86 $LIBS"
10302
10303 else
10304
10305         echo "Error! You need to have libudis86 around."
10306         exit -1
10307
10308 fi
10309
10310
10311 else
10312   USE_UDIS86=0
10313
10314 fi
10315
10316
10317 cat >>confdefs.h <<_ACEOF
10318 #define USE_UDIS86 $USE_UDIS86
10319 _ACEOF
10320
10321
10322
10323 # Check whether --with-oprofile was given.
10324 if test "${with_oprofile+set}" = set; then
10325   withval=$with_oprofile;
10326       USE_OPROFILE=1
10327
10328       case "$withval" in
10329         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10330         no) llvm_cv_oppath=
10331             USE_OPROFILE=0
10332  ;;
10333         *) llvm_cv_oppath="${withval}/lib/oprofile"
10334            CPPFLAGS="-I${withval}/include";;
10335       esac
10336       case $llvm_cv_os_type in
10337         Linux)
10338           if test -n "$llvm_cv_oppath" ; then
10339             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10340                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10341 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10342 if test "${ac_cv_search_bfd_init+set}" = set; then
10343   echo $ECHO_N "(cached) $ECHO_C" >&6
10344 else
10345   ac_func_search_save_LIBS=$LIBS
10346 cat >conftest.$ac_ext <<_ACEOF
10347 /* confdefs.h.  */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h.  */
10352
10353 /* Override any GCC internal prototype to avoid an error.
10354    Use char because int might match the return type of a GCC
10355    builtin and then its argument prototype would still apply.  */
10356 #ifdef __cplusplus
10357 extern "C"
10358 #endif
10359 char bfd_init ();
10360 int
10361 main ()
10362 {
10363 return bfd_init ();
10364   ;
10365   return 0;
10366 }
10367 _ACEOF
10368 for ac_lib in '' bfd; do
10369   if test -z "$ac_lib"; then
10370     ac_res="none required"
10371   else
10372     ac_res=-l$ac_lib
10373     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10374   fi
10375   rm -f conftest.$ac_objext conftest$ac_exeext
10376 if { (ac_try="$ac_link"
10377 case "(($ac_try" in
10378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10379   *) ac_try_echo=$ac_try;;
10380 esac
10381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10382   (eval "$ac_link") 2>conftest.er1
10383   ac_status=$?
10384   grep -v '^ *+' conftest.er1 >conftest.err
10385   rm -f conftest.er1
10386   cat conftest.err >&5
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); } &&
10389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10390   { (case "(($ac_try" in
10391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10392   *) ac_try_echo=$ac_try;;
10393 esac
10394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10395   (eval "$ac_try") 2>&5
10396   ac_status=$?
10397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398   (exit $ac_status); }; } &&
10399          { ac_try='test -s conftest$ac_exeext'
10400   { (case "(($ac_try" in
10401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402   *) ac_try_echo=$ac_try;;
10403 esac
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405   (eval "$ac_try") 2>&5
10406   ac_status=$?
10407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408   (exit $ac_status); }; }; then
10409   ac_cv_search_bfd_init=$ac_res
10410 else
10411   echo "$as_me: failed program was:" >&5
10412 sed 's/^/| /' conftest.$ac_ext >&5
10413
10414
10415 fi
10416
10417 rm -f core conftest.err conftest.$ac_objext \
10418       conftest$ac_exeext
10419   if test "${ac_cv_search_bfd_init+set}" = set; then
10420   break
10421 fi
10422 done
10423 if test "${ac_cv_search_bfd_init+set}" = set; then
10424   :
10425 else
10426   ac_cv_search_bfd_init=no
10427 fi
10428 rm conftest.$ac_ext
10429 LIBS=$ac_func_search_save_LIBS
10430 fi
10431 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10432 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10433 ac_res=$ac_cv_search_bfd_init
10434 if test "$ac_res" != no; then
10435   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10436
10437 fi
10438
10439             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10440 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10441 if test "${ac_cv_search_op_open_agent+set}" = set; then
10442   echo $ECHO_N "(cached) $ECHO_C" >&6
10443 else
10444   ac_func_search_save_LIBS=$LIBS
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h.  */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h.  */
10451
10452 /* Override any GCC internal prototype to avoid an error.
10453    Use char because int might match the return type of a GCC
10454    builtin and then its argument prototype would still apply.  */
10455 #ifdef __cplusplus
10456 extern "C"
10457 #endif
10458 char op_open_agent ();
10459 int
10460 main ()
10461 {
10462 return op_open_agent ();
10463   ;
10464   return 0;
10465 }
10466 _ACEOF
10467 for ac_lib in '' opagent; do
10468   if test -z "$ac_lib"; then
10469     ac_res="none required"
10470   else
10471     ac_res=-l$ac_lib
10472     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10473   fi
10474   rm -f conftest.$ac_objext conftest$ac_exeext
10475 if { (ac_try="$ac_link"
10476 case "(($ac_try" in
10477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478   *) ac_try_echo=$ac_try;;
10479 esac
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481   (eval "$ac_link") 2>conftest.er1
10482   ac_status=$?
10483   grep -v '^ *+' conftest.er1 >conftest.err
10484   rm -f conftest.er1
10485   cat conftest.err >&5
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); } &&
10488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10489   { (case "(($ac_try" in
10490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491   *) ac_try_echo=$ac_try;;
10492 esac
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494   (eval "$ac_try") 2>&5
10495   ac_status=$?
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); }; } &&
10498          { ac_try='test -s conftest$ac_exeext'
10499   { (case "(($ac_try" in
10500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501   *) ac_try_echo=$ac_try;;
10502 esac
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504   (eval "$ac_try") 2>&5
10505   ac_status=$?
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); }; }; then
10508   ac_cv_search_op_open_agent=$ac_res
10509 else
10510   echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10512
10513
10514 fi
10515
10516 rm -f core conftest.err conftest.$ac_objext \
10517       conftest$ac_exeext
10518   if test "${ac_cv_search_op_open_agent+set}" = set; then
10519   break
10520 fi
10521 done
10522 if test "${ac_cv_search_op_open_agent+set}" = set; then
10523   :
10524 else
10525   ac_cv_search_op_open_agent=no
10526 fi
10527 rm conftest.$ac_ext
10528 LIBS=$ac_func_search_save_LIBS
10529 fi
10530 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10531 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10532 ac_res=$ac_cv_search_op_open_agent
10533 if test "$ac_res" != no; then
10534   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10535
10536 else
10537
10538               echo "Error! You need to have libopagent around."
10539               exit -1
10540
10541 fi
10542
10543             if test "${ac_cv_header_opagent_h+set}" = set; then
10544   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10545 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10546 if test "${ac_cv_header_opagent_h+set}" = set; then
10547   echo $ECHO_N "(cached) $ECHO_C" >&6
10548 fi
10549 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10550 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10551 else
10552   # Is the header compilable?
10553 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10554 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10555 cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h.  */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h.  */
10561 $ac_includes_default
10562 #include <opagent.h>
10563 _ACEOF
10564 rm -f conftest.$ac_objext
10565 if { (ac_try="$ac_compile"
10566 case "(($ac_try" in
10567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10568   *) ac_try_echo=$ac_try;;
10569 esac
10570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10571   (eval "$ac_compile") 2>conftest.er1
10572   ac_status=$?
10573   grep -v '^ *+' conftest.er1 >conftest.err
10574   rm -f conftest.er1
10575   cat conftest.err >&5
10576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); } &&
10578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10579   { (case "(($ac_try" in
10580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581   *) ac_try_echo=$ac_try;;
10582 esac
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584   (eval "$ac_try") 2>&5
10585   ac_status=$?
10586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587   (exit $ac_status); }; } &&
10588          { ac_try='test -s conftest.$ac_objext'
10589   { (case "(($ac_try" in
10590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10591   *) ac_try_echo=$ac_try;;
10592 esac
10593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10594   (eval "$ac_try") 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); }; }; then
10598   ac_header_compiler=yes
10599 else
10600   echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10602
10603         ac_header_compiler=no
10604 fi
10605
10606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10608 echo "${ECHO_T}$ac_header_compiler" >&6; }
10609
10610 # Is the header present?
10611 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10612 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10613 cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619 #include <opagent.h>
10620 _ACEOF
10621 if { (ac_try="$ac_cpp conftest.$ac_ext"
10622 case "(($ac_try" in
10623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624   *) ac_try_echo=$ac_try;;
10625 esac
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10628   ac_status=$?
10629   grep -v '^ *+' conftest.er1 >conftest.err
10630   rm -f conftest.er1
10631   cat conftest.err >&5
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); } >/dev/null; then
10634   if test -s conftest.err; then
10635     ac_cpp_err=$ac_c_preproc_warn_flag
10636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10637   else
10638     ac_cpp_err=
10639   fi
10640 else
10641   ac_cpp_err=yes
10642 fi
10643 if test -z "$ac_cpp_err"; then
10644   ac_header_preproc=yes
10645 else
10646   echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10648
10649   ac_header_preproc=no
10650 fi
10651
10652 rm -f conftest.err conftest.$ac_ext
10653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10654 echo "${ECHO_T}$ac_header_preproc" >&6; }
10655
10656 # So?  What about this header?
10657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10658   yes:no: )
10659     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10660 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10661     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10662 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10663     ac_header_preproc=yes
10664     ;;
10665   no:yes:* )
10666     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10667 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10668     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10669 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10670     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10671 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10672     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10673 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10674     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10675 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10676     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10677 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10678     ( cat <<\_ASBOX
10679 ## ------------------------------------ ##
10680 ## Report this to http://llvm.org/bugs/ ##
10681 ## ------------------------------------ ##
10682 _ASBOX
10683      ) | sed "s/^/$as_me: WARNING:     /" >&2
10684     ;;
10685 esac
10686 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10687 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10688 if test "${ac_cv_header_opagent_h+set}" = set; then
10689   echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10691   ac_cv_header_opagent_h=$ac_header_preproc
10692 fi
10693 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10694 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10695
10696 fi
10697 if test $ac_cv_header_opagent_h = yes; then
10698   :
10699 else
10700
10701               echo "Error! You need to have opagent.h around."
10702               exit -1
10703
10704 fi
10705
10706
10707           fi ;;
10708         *)
10709           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10710 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10711    { (exit 1); exit 1; }; } ;;
10712       esac
10713
10714 else
10715
10716       USE_OPROFILE=0
10717
10718
10719 fi
10720
10721
10722 cat >>confdefs.h <<_ACEOF
10723 #define LLVM_USE_OPROFILE $USE_OPROFILE
10724 _ACEOF
10725
10726
10727
10728 # Check whether --with-intel-jitevents was given.
10729 if test "${with_intel_jitevents+set}" = set; then
10730   withval=$with_intel_jitevents;
10731        case "$withval" in
10732           yes) USE_INTEL_JITEVENTS=1
10733 ;;
10734           no)  USE_INTEL_JITEVENTS=0
10735 ;;
10736           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10737 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10738    { (exit 1); exit 1; }; };;
10739        esac
10740
10741       case $llvm_cv_os_type in
10742         Linux|Win32|Cygwin|MingW) ;;
10743         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10744 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10745    { (exit 1); exit 1; }; };;
10746       esac
10747
10748       case "$llvm_cv_target_arch" in
10749         x86|x86_64) ;;
10750         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10751 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10752    { (exit 1); exit 1; }; };;
10753       esac
10754
10755 else
10756
10757       USE_INTEL_JITEVENTS=0
10758
10759
10760 fi
10761
10762
10763 cat >>confdefs.h <<_ACEOF
10764 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10765 _ACEOF
10766
10767
10768 for ac_prog in xml2-config
10769 do
10770   # Extract the first word of "$ac_prog", so it can be a program name with args.
10771 set dummy $ac_prog; ac_word=$2
10772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10774 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10775   echo $ECHO_N "(cached) $ECHO_C" >&6
10776 else
10777   if test -n "$XML2CONFIG"; then
10778   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10779 else
10780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781 for as_dir in $PATH
10782 do
10783   IFS=$as_save_IFS
10784   test -z "$as_dir" && as_dir=.
10785   for ac_exec_ext in '' $ac_executable_extensions; do
10786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10787     ac_cv_prog_XML2CONFIG="$ac_prog"
10788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10789     break 2
10790   fi
10791 done
10792 done
10793 IFS=$as_save_IFS
10794
10795 fi
10796 fi
10797 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10798 if test -n "$XML2CONFIG"; then
10799   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10800 echo "${ECHO_T}$XML2CONFIG" >&6; }
10801 else
10802   { echo "$as_me:$LINENO: result: no" >&5
10803 echo "${ECHO_T}no" >&6; }
10804 fi
10805
10806
10807   test -n "$XML2CONFIG" && break
10808 done
10809
10810
10811 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10812 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10813 if test "x$XML2CONFIG" = "x"; then
10814  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10815 echo "${ECHO_T}xml2-config not found" >&6; }
10816 else
10817  LIBXML2_INC=`$XML2CONFIG --cflags`
10818  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10819 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10820  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10821 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10822 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10823   echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825   ac_check_lib_save_LIBS=$LIBS
10826 LIBS="-lxml2  $LIBS"
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h.  */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h.  */
10833
10834 /* Override any GCC internal prototype to avoid an error.
10835    Use char because int might match the return type of a GCC
10836    builtin and then its argument prototype would still apply.  */
10837 #ifdef __cplusplus
10838 extern "C"
10839 #endif
10840 char xmlReadFile ();
10841 int
10842 main ()
10843 {
10844 return xmlReadFile ();
10845   ;
10846   return 0;
10847 }
10848 _ACEOF
10849 rm -f conftest.$ac_objext conftest$ac_exeext
10850 if { (ac_try="$ac_link"
10851 case "(($ac_try" in
10852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853   *) ac_try_echo=$ac_try;;
10854 esac
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856   (eval "$ac_link") 2>conftest.er1
10857   ac_status=$?
10858   grep -v '^ *+' conftest.er1 >conftest.err
10859   rm -f conftest.er1
10860   cat conftest.err >&5
10861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862   (exit $ac_status); } &&
10863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864   { (case "(($ac_try" in
10865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866   *) ac_try_echo=$ac_try;;
10867 esac
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869   (eval "$ac_try") 2>&5
10870   ac_status=$?
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); }; } &&
10873          { ac_try='test -s conftest$ac_exeext'
10874   { (case "(($ac_try" in
10875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876   *) ac_try_echo=$ac_try;;
10877 esac
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879   (eval "$ac_try") 2>&5
10880   ac_status=$?
10881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882   (exit $ac_status); }; }; then
10883   ac_cv_lib_xml2_xmlReadFile=yes
10884 else
10885   echo "$as_me: failed program was:" >&5
10886 sed 's/^/| /' conftest.$ac_ext >&5
10887
10888         ac_cv_lib_xml2_xmlReadFile=no
10889 fi
10890
10891 rm -f core conftest.err conftest.$ac_objext \
10892       conftest$ac_exeext conftest.$ac_ext
10893 LIBS=$ac_check_lib_save_LIBS
10894 fi
10895 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10896 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10897 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10898
10899 cat >>confdefs.h <<\_ACEOF
10900 #define CLANG_HAVE_LIBXML 1
10901 _ACEOF
10902
10903                                 LIBXML2_LIBS="-lxml2"
10904 fi
10905
10906 fi
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916 ac_header_dirent=no
10917 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10918   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10919 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10920 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10922   echo $ECHO_N "(cached) $ECHO_C" >&6
10923 else
10924   cat >conftest.$ac_ext <<_ACEOF
10925 /* confdefs.h.  */
10926 _ACEOF
10927 cat confdefs.h >>conftest.$ac_ext
10928 cat >>conftest.$ac_ext <<_ACEOF
10929 /* end confdefs.h.  */
10930 #include <sys/types.h>
10931 #include <$ac_hdr>
10932
10933 int
10934 main ()
10935 {
10936 if ((DIR *) 0)
10937 return 0;
10938   ;
10939   return 0;
10940 }
10941 _ACEOF
10942 rm -f conftest.$ac_objext
10943 if { (ac_try="$ac_compile"
10944 case "(($ac_try" in
10945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946   *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949   (eval "$ac_compile") 2>conftest.er1
10950   ac_status=$?
10951   grep -v '^ *+' conftest.er1 >conftest.err
10952   rm -f conftest.er1
10953   cat conftest.err >&5
10954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955   (exit $ac_status); } &&
10956          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10957   { (case "(($ac_try" in
10958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959   *) ac_try_echo=$ac_try;;
10960 esac
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962   (eval "$ac_try") 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; } &&
10966          { ac_try='test -s conftest.$ac_objext'
10967   { (case "(($ac_try" in
10968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969   *) ac_try_echo=$ac_try;;
10970 esac
10971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10972   (eval "$ac_try") 2>&5
10973   ac_status=$?
10974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975   (exit $ac_status); }; }; then
10976   eval "$as_ac_Header=yes"
10977 else
10978   echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981         eval "$as_ac_Header=no"
10982 fi
10983
10984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10985 fi
10986 ac_res=`eval echo '${'$as_ac_Header'}'`
10987                { echo "$as_me:$LINENO: result: $ac_res" >&5
10988 echo "${ECHO_T}$ac_res" >&6; }
10989 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10990   cat >>confdefs.h <<_ACEOF
10991 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10992 _ACEOF
10993
10994 ac_header_dirent=$ac_hdr; break
10995 fi
10996
10997 done
10998 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10999 if test $ac_header_dirent = dirent.h; then
11000   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11001 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11002 if test "${ac_cv_search_opendir+set}" = set; then
11003   echo $ECHO_N "(cached) $ECHO_C" >&6
11004 else
11005   ac_func_search_save_LIBS=$LIBS
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h.  */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h.  */
11012
11013 /* Override any GCC internal prototype to avoid an error.
11014    Use char because int might match the return type of a GCC
11015    builtin and then its argument prototype would still apply.  */
11016 #ifdef __cplusplus
11017 extern "C"
11018 #endif
11019 char opendir ();
11020 int
11021 main ()
11022 {
11023 return opendir ();
11024   ;
11025   return 0;
11026 }
11027 _ACEOF
11028 for ac_lib in '' dir; do
11029   if test -z "$ac_lib"; then
11030     ac_res="none required"
11031   else
11032     ac_res=-l$ac_lib
11033     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11034   fi
11035   rm -f conftest.$ac_objext conftest$ac_exeext
11036 if { (ac_try="$ac_link"
11037 case "(($ac_try" in
11038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039   *) ac_try_echo=$ac_try;;
11040 esac
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042   (eval "$ac_link") 2>conftest.er1
11043   ac_status=$?
11044   grep -v '^ *+' conftest.er1 >conftest.err
11045   rm -f conftest.er1
11046   cat conftest.err >&5
11047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048   (exit $ac_status); } &&
11049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11050   { (case "(($ac_try" in
11051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052   *) ac_try_echo=$ac_try;;
11053 esac
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055   (eval "$ac_try") 2>&5
11056   ac_status=$?
11057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058   (exit $ac_status); }; } &&
11059          { ac_try='test -s conftest$ac_exeext'
11060   { (case "(($ac_try" in
11061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11062   *) ac_try_echo=$ac_try;;
11063 esac
11064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11065   (eval "$ac_try") 2>&5
11066   ac_status=$?
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); }; }; then
11069   ac_cv_search_opendir=$ac_res
11070 else
11071   echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.$ac_ext >&5
11073
11074
11075 fi
11076
11077 rm -f core conftest.err conftest.$ac_objext \
11078       conftest$ac_exeext
11079   if test "${ac_cv_search_opendir+set}" = set; then
11080   break
11081 fi
11082 done
11083 if test "${ac_cv_search_opendir+set}" = set; then
11084   :
11085 else
11086   ac_cv_search_opendir=no
11087 fi
11088 rm conftest.$ac_ext
11089 LIBS=$ac_func_search_save_LIBS
11090 fi
11091 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11092 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11093 ac_res=$ac_cv_search_opendir
11094 if test "$ac_res" != no; then
11095   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11096
11097 fi
11098
11099 else
11100   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11101 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11102 if test "${ac_cv_search_opendir+set}" = set; then
11103   echo $ECHO_N "(cached) $ECHO_C" >&6
11104 else
11105   ac_func_search_save_LIBS=$LIBS
11106 cat >conftest.$ac_ext <<_ACEOF
11107 /* confdefs.h.  */
11108 _ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h.  */
11112
11113 /* Override any GCC internal prototype to avoid an error.
11114    Use char because int might match the return type of a GCC
11115    builtin and then its argument prototype would still apply.  */
11116 #ifdef __cplusplus
11117 extern "C"
11118 #endif
11119 char opendir ();
11120 int
11121 main ()
11122 {
11123 return opendir ();
11124   ;
11125   return 0;
11126 }
11127 _ACEOF
11128 for ac_lib in '' x; do
11129   if test -z "$ac_lib"; then
11130     ac_res="none required"
11131   else
11132     ac_res=-l$ac_lib
11133     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11134   fi
11135   rm -f conftest.$ac_objext conftest$ac_exeext
11136 if { (ac_try="$ac_link"
11137 case "(($ac_try" in
11138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139   *) ac_try_echo=$ac_try;;
11140 esac
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142   (eval "$ac_link") 2>conftest.er1
11143   ac_status=$?
11144   grep -v '^ *+' conftest.er1 >conftest.err
11145   rm -f conftest.er1
11146   cat conftest.err >&5
11147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148   (exit $ac_status); } &&
11149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11150   { (case "(($ac_try" in
11151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152   *) ac_try_echo=$ac_try;;
11153 esac
11154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155   (eval "$ac_try") 2>&5
11156   ac_status=$?
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); }; } &&
11159          { ac_try='test -s conftest$ac_exeext'
11160   { (case "(($ac_try" in
11161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162   *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165   (eval "$ac_try") 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; }; then
11169   ac_cv_search_opendir=$ac_res
11170 else
11171   echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11173
11174
11175 fi
11176
11177 rm -f core conftest.err conftest.$ac_objext \
11178       conftest$ac_exeext
11179   if test "${ac_cv_search_opendir+set}" = set; then
11180   break
11181 fi
11182 done
11183 if test "${ac_cv_search_opendir+set}" = set; then
11184   :
11185 else
11186   ac_cv_search_opendir=no
11187 fi
11188 rm conftest.$ac_ext
11189 LIBS=$ac_func_search_save_LIBS
11190 fi
11191 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11192 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11193 ac_res=$ac_cv_search_opendir
11194 if test "$ac_res" != no; then
11195   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11196
11197 fi
11198
11199 fi
11200
11201 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11202 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
11203 if test "${ac_cv_header_mmap_anon+set}" = set; then
11204   echo $ECHO_N "(cached) $ECHO_C" >&6
11205 else
11206    ac_ext=c
11207 ac_cpp='$CPP $CPPFLAGS'
11208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11211
11212   cat >conftest.$ac_ext <<_ACEOF
11213 /* confdefs.h.  */
11214 _ACEOF
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h.  */
11218 #include <sys/mman.h>
11219 #include <unistd.h>
11220 #include <fcntl.h>
11221 int
11222 main ()
11223 {
11224 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11225   ;
11226   return 0;
11227 }
11228 _ACEOF
11229 rm -f conftest.$ac_objext
11230 if { (ac_try="$ac_compile"
11231 case "(($ac_try" in
11232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233   *) ac_try_echo=$ac_try;;
11234 esac
11235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236   (eval "$ac_compile") 2>conftest.er1
11237   ac_status=$?
11238   grep -v '^ *+' conftest.er1 >conftest.err
11239   rm -f conftest.er1
11240   cat conftest.err >&5
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); } &&
11243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11244   { (case "(($ac_try" in
11245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246   *) ac_try_echo=$ac_try;;
11247 esac
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249   (eval "$ac_try") 2>&5
11250   ac_status=$?
11251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11252   (exit $ac_status); }; } &&
11253          { ac_try='test -s conftest.$ac_objext'
11254   { (case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259   (eval "$ac_try") 2>&5
11260   ac_status=$?
11261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262   (exit $ac_status); }; }; then
11263   ac_cv_header_mmap_anon=yes
11264 else
11265   echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11267
11268         ac_cv_header_mmap_anon=no
11269 fi
11270
11271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11272   ac_ext=c
11273 ac_cpp='$CPP $CPPFLAGS'
11274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11277
11278
11279 fi
11280 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11281 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11282 if test "$ac_cv_header_mmap_anon" = yes; then
11283
11284 cat >>confdefs.h <<\_ACEOF
11285 #define HAVE_MMAP_ANONYMOUS 1
11286 _ACEOF
11287
11288 fi
11289
11290 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11291 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11292 if test "${ac_cv_header_stat_broken+set}" = set; then
11293   echo $ECHO_N "(cached) $ECHO_C" >&6
11294 else
11295   cat >conftest.$ac_ext <<_ACEOF
11296 /* confdefs.h.  */
11297 _ACEOF
11298 cat confdefs.h >>conftest.$ac_ext
11299 cat >>conftest.$ac_ext <<_ACEOF
11300 /* end confdefs.h.  */
11301 #include <sys/types.h>
11302 #include <sys/stat.h>
11303
11304 #if defined S_ISBLK && defined S_IFDIR
11305 # if S_ISBLK (S_IFDIR)
11306 You lose.
11307 # endif
11308 #endif
11309
11310 #if defined S_ISBLK && defined S_IFCHR
11311 # if S_ISBLK (S_IFCHR)
11312 You lose.
11313 # endif
11314 #endif
11315
11316 #if defined S_ISLNK && defined S_IFREG
11317 # if S_ISLNK (S_IFREG)
11318 You lose.
11319 # endif
11320 #endif
11321
11322 #if defined S_ISSOCK && defined S_IFREG
11323 # if S_ISSOCK (S_IFREG)
11324 You lose.
11325 # endif
11326 #endif
11327
11328 _ACEOF
11329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11330   $EGREP "You lose" >/dev/null 2>&1; then
11331   ac_cv_header_stat_broken=yes
11332 else
11333   ac_cv_header_stat_broken=no
11334 fi
11335 rm -f conftest*
11336
11337 fi
11338 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11339 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11340 if test $ac_cv_header_stat_broken = yes; then
11341
11342 cat >>confdefs.h <<\_ACEOF
11343 #define STAT_MACROS_BROKEN 1
11344 _ACEOF
11345
11346 fi
11347
11348 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11349 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11350 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11351   echo $ECHO_N "(cached) $ECHO_C" >&6
11352 else
11353   cat >conftest.$ac_ext <<_ACEOF
11354 /* confdefs.h.  */
11355 _ACEOF
11356 cat confdefs.h >>conftest.$ac_ext
11357 cat >>conftest.$ac_ext <<_ACEOF
11358 /* end confdefs.h.  */
11359 #include <sys/types.h>
11360 #include <sys/wait.h>
11361 #ifndef WEXITSTATUS
11362 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11363 #endif
11364 #ifndef WIFEXITED
11365 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11366 #endif
11367
11368 int
11369 main ()
11370 {
11371   int s;
11372   wait (&s);
11373   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11374   ;
11375   return 0;
11376 }
11377 _ACEOF
11378 rm -f conftest.$ac_objext
11379 if { (ac_try="$ac_compile"
11380 case "(($ac_try" in
11381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382   *) ac_try_echo=$ac_try;;
11383 esac
11384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385   (eval "$ac_compile") 2>conftest.er1
11386   ac_status=$?
11387   grep -v '^ *+' conftest.er1 >conftest.err
11388   rm -f conftest.er1
11389   cat conftest.err >&5
11390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); } &&
11392          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11393   { (case "(($ac_try" in
11394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395   *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398   (eval "$ac_try") 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); }; } &&
11402          { ac_try='test -s conftest.$ac_objext'
11403   { (case "(($ac_try" in
11404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405   *) ac_try_echo=$ac_try;;
11406 esac
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408   (eval "$ac_try") 2>&5
11409   ac_status=$?
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); }; }; then
11412   ac_cv_header_sys_wait_h=yes
11413 else
11414   echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11416
11417         ac_cv_header_sys_wait_h=no
11418 fi
11419
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 fi
11422 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11423 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11424 if test $ac_cv_header_sys_wait_h = yes; then
11425
11426 cat >>confdefs.h <<\_ACEOF
11427 #define HAVE_SYS_WAIT_H 1
11428 _ACEOF
11429
11430 fi
11431
11432 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11433 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11434 if test "${ac_cv_header_time+set}" = set; then
11435   echo $ECHO_N "(cached) $ECHO_C" >&6
11436 else
11437   cat >conftest.$ac_ext <<_ACEOF
11438 /* confdefs.h.  */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h.  */
11443 #include <sys/types.h>
11444 #include <sys/time.h>
11445 #include <time.h>
11446
11447 int
11448 main ()
11449 {
11450 if ((struct tm *) 0)
11451 return 0;
11452   ;
11453   return 0;
11454 }
11455 _ACEOF
11456 rm -f conftest.$ac_objext
11457 if { (ac_try="$ac_compile"
11458 case "(($ac_try" in
11459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460   *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463   (eval "$ac_compile") 2>conftest.er1
11464   ac_status=$?
11465   grep -v '^ *+' conftest.er1 >conftest.err
11466   rm -f conftest.er1
11467   cat conftest.err >&5
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); } &&
11470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11471   { (case "(($ac_try" in
11472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11473   *) ac_try_echo=$ac_try;;
11474 esac
11475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11476   (eval "$ac_try") 2>&5
11477   ac_status=$?
11478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479   (exit $ac_status); }; } &&
11480          { ac_try='test -s conftest.$ac_objext'
11481   { (case "(($ac_try" in
11482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483   *) ac_try_echo=$ac_try;;
11484 esac
11485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486   (eval "$ac_try") 2>&5
11487   ac_status=$?
11488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489   (exit $ac_status); }; }; then
11490   ac_cv_header_time=yes
11491 else
11492   echo "$as_me: failed program was:" >&5
11493 sed 's/^/| /' conftest.$ac_ext >&5
11494
11495         ac_cv_header_time=no
11496 fi
11497
11498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11499 fi
11500 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11501 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11502 if test $ac_cv_header_time = yes; then
11503
11504 cat >>confdefs.h <<\_ACEOF
11505 #define TIME_WITH_SYS_TIME 1
11506 _ACEOF
11507
11508 fi
11509
11510
11511 ac_ext=cpp
11512 ac_cpp='$CXXCPP $CPPFLAGS'
11513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11516
11517 ac_ext=cpp
11518 ac_cpp='$CXXCPP $CPPFLAGS'
11519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11522 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11523 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11524 if test -z "$CXXCPP"; then
11525   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11526   echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528       # Double quotes because CXXCPP needs to be expanded
11529     for CXXCPP in "$CXX -E" "/lib/cpp"
11530     do
11531       ac_preproc_ok=false
11532 for ac_cxx_preproc_warn_flag in '' yes
11533 do
11534   # Use a header file that comes with gcc, so configuring glibc
11535   # with a fresh cross-compiler works.
11536   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11537   # <limits.h> exists even on freestanding compilers.
11538   # On the NeXT, cc -E runs the code through the compiler's parser,
11539   # not just through cpp. "Syntax error" is here to catch this case.
11540   cat >conftest.$ac_ext <<_ACEOF
11541 /* confdefs.h.  */
11542 _ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h.  */
11546 #ifdef __STDC__
11547 # include <limits.h>
11548 #else
11549 # include <assert.h>
11550 #endif
11551                      Syntax error
11552 _ACEOF
11553 if { (ac_try="$ac_cpp conftest.$ac_ext"
11554 case "(($ac_try" in
11555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556   *) ac_try_echo=$ac_try;;
11557 esac
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11560   ac_status=$?
11561   grep -v '^ *+' conftest.er1 >conftest.err
11562   rm -f conftest.er1
11563   cat conftest.err >&5
11564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565   (exit $ac_status); } >/dev/null; then
11566   if test -s conftest.err; then
11567     ac_cpp_err=$ac_cxx_preproc_warn_flag
11568     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11569   else
11570     ac_cpp_err=
11571   fi
11572 else
11573   ac_cpp_err=yes
11574 fi
11575 if test -z "$ac_cpp_err"; then
11576   :
11577 else
11578   echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11580
11581   # Broken: fails on valid input.
11582 continue
11583 fi
11584
11585 rm -f conftest.err conftest.$ac_ext
11586
11587   # OK, works on sane cases.  Now check whether nonexistent headers
11588   # can be detected and how.
11589   cat >conftest.$ac_ext <<_ACEOF
11590 /* confdefs.h.  */
11591 _ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h.  */
11595 #include <ac_nonexistent.h>
11596 _ACEOF
11597 if { (ac_try="$ac_cpp conftest.$ac_ext"
11598 case "(($ac_try" in
11599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600   *) ac_try_echo=$ac_try;;
11601 esac
11602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11604   ac_status=$?
11605   grep -v '^ *+' conftest.er1 >conftest.err
11606   rm -f conftest.er1
11607   cat conftest.err >&5
11608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609   (exit $ac_status); } >/dev/null; then
11610   if test -s conftest.err; then
11611     ac_cpp_err=$ac_cxx_preproc_warn_flag
11612     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11613   else
11614     ac_cpp_err=
11615   fi
11616 else
11617   ac_cpp_err=yes
11618 fi
11619 if test -z "$ac_cpp_err"; then
11620   # Broken: success on invalid input.
11621 continue
11622 else
11623   echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11625
11626   # Passes both tests.
11627 ac_preproc_ok=:
11628 break
11629 fi
11630
11631 rm -f conftest.err conftest.$ac_ext
11632
11633 done
11634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11635 rm -f conftest.err conftest.$ac_ext
11636 if $ac_preproc_ok; then
11637   break
11638 fi
11639
11640     done
11641     ac_cv_prog_CXXCPP=$CXXCPP
11642
11643 fi
11644   CXXCPP=$ac_cv_prog_CXXCPP
11645 else
11646   ac_cv_prog_CXXCPP=$CXXCPP
11647 fi
11648 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11649 echo "${ECHO_T}$CXXCPP" >&6; }
11650 ac_preproc_ok=false
11651 for ac_cxx_preproc_warn_flag in '' yes
11652 do
11653   # Use a header file that comes with gcc, so configuring glibc
11654   # with a fresh cross-compiler works.
11655   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11656   # <limits.h> exists even on freestanding compilers.
11657   # On the NeXT, cc -E runs the code through the compiler's parser,
11658   # not just through cpp. "Syntax error" is here to catch this case.
11659   cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h.  */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h.  */
11665 #ifdef __STDC__
11666 # include <limits.h>
11667 #else
11668 # include <assert.h>
11669 #endif
11670                      Syntax error
11671 _ACEOF
11672 if { (ac_try="$ac_cpp conftest.$ac_ext"
11673 case "(($ac_try" in
11674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675   *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11679   ac_status=$?
11680   grep -v '^ *+' conftest.er1 >conftest.err
11681   rm -f conftest.er1
11682   cat conftest.err >&5
11683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684   (exit $ac_status); } >/dev/null; then
11685   if test -s conftest.err; then
11686     ac_cpp_err=$ac_cxx_preproc_warn_flag
11687     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11688   else
11689     ac_cpp_err=
11690   fi
11691 else
11692   ac_cpp_err=yes
11693 fi
11694 if test -z "$ac_cpp_err"; then
11695   :
11696 else
11697   echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11699
11700   # Broken: fails on valid input.
11701 continue
11702 fi
11703
11704 rm -f conftest.err conftest.$ac_ext
11705
11706   # OK, works on sane cases.  Now check whether nonexistent headers
11707   # can be detected and how.
11708   cat >conftest.$ac_ext <<_ACEOF
11709 /* confdefs.h.  */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h.  */
11714 #include <ac_nonexistent.h>
11715 _ACEOF
11716 if { (ac_try="$ac_cpp conftest.$ac_ext"
11717 case "(($ac_try" in
11718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719   *) ac_try_echo=$ac_try;;
11720 esac
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11723   ac_status=$?
11724   grep -v '^ *+' conftest.er1 >conftest.err
11725   rm -f conftest.er1
11726   cat conftest.err >&5
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); } >/dev/null; then
11729   if test -s conftest.err; then
11730     ac_cpp_err=$ac_cxx_preproc_warn_flag
11731     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11732   else
11733     ac_cpp_err=
11734   fi
11735 else
11736   ac_cpp_err=yes
11737 fi
11738 if test -z "$ac_cpp_err"; then
11739   # Broken: success on invalid input.
11740 continue
11741 else
11742   echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11744
11745   # Passes both tests.
11746 ac_preproc_ok=:
11747 break
11748 fi
11749
11750 rm -f conftest.err conftest.$ac_ext
11751
11752 done
11753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11754 rm -f conftest.err conftest.$ac_ext
11755 if $ac_preproc_ok; then
11756   :
11757 else
11758   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11759 See \`config.log' for more details." >&5
11760 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11761 See \`config.log' for more details." >&2;}
11762    { (exit 1); exit 1; }; }
11763 fi
11764
11765 ac_ext=cpp
11766 ac_cpp='$CXXCPP $CPPFLAGS'
11767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11770
11771
11772
11773 for ac_header in cxxabi.h
11774 do
11775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11777   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11780   echo $ECHO_N "(cached) $ECHO_C" >&6
11781 fi
11782 ac_res=`eval echo '${'$as_ac_Header'}'`
11783                { echo "$as_me:$LINENO: result: $ac_res" >&5
11784 echo "${ECHO_T}$ac_res" >&6; }
11785 else
11786   # Is the header compilable?
11787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11789 cat >conftest.$ac_ext <<_ACEOF
11790 /* confdefs.h.  */
11791 _ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h.  */
11795 $ac_includes_default
11796 #include <$ac_header>
11797 _ACEOF
11798 rm -f conftest.$ac_objext
11799 if { (ac_try="$ac_compile"
11800 case "(($ac_try" in
11801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802   *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805   (eval "$ac_compile") 2>conftest.er1
11806   ac_status=$?
11807   grep -v '^ *+' conftest.er1 >conftest.err
11808   rm -f conftest.er1
11809   cat conftest.err >&5
11810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811   (exit $ac_status); } &&
11812          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11813   { (case "(($ac_try" in
11814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11815   *) ac_try_echo=$ac_try;;
11816 esac
11817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11818   (eval "$ac_try") 2>&5
11819   ac_status=$?
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); }; } &&
11822          { ac_try='test -s conftest.$ac_objext'
11823   { (case "(($ac_try" in
11824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11825   *) ac_try_echo=$ac_try;;
11826 esac
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828   (eval "$ac_try") 2>&5
11829   ac_status=$?
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); }; }; then
11832   ac_header_compiler=yes
11833 else
11834   echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837         ac_header_compiler=no
11838 fi
11839
11840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11842 echo "${ECHO_T}$ac_header_compiler" >&6; }
11843
11844 # Is the header present?
11845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11847 cat >conftest.$ac_ext <<_ACEOF
11848 /* confdefs.h.  */
11849 _ACEOF
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h.  */
11853 #include <$ac_header>
11854 _ACEOF
11855 if { (ac_try="$ac_cpp conftest.$ac_ext"
11856 case "(($ac_try" in
11857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858   *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11862   ac_status=$?
11863   grep -v '^ *+' conftest.er1 >conftest.err
11864   rm -f conftest.er1
11865   cat conftest.err >&5
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); } >/dev/null; then
11868   if test -s conftest.err; then
11869     ac_cpp_err=$ac_cxx_preproc_warn_flag
11870     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11871   else
11872     ac_cpp_err=
11873   fi
11874 else
11875   ac_cpp_err=yes
11876 fi
11877 if test -z "$ac_cpp_err"; then
11878   ac_header_preproc=yes
11879 else
11880   echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11882
11883   ac_header_preproc=no
11884 fi
11885
11886 rm -f conftest.err conftest.$ac_ext
11887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11888 echo "${ECHO_T}$ac_header_preproc" >&6; }
11889
11890 # So?  What about this header?
11891 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11892   yes:no: )
11893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11897     ac_header_preproc=yes
11898     ;;
11899   no:yes:* )
11900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11912     ( cat <<\_ASBOX
11913 ## ------------------------------------ ##
11914 ## Report this to http://llvm.org/bugs/ ##
11915 ## ------------------------------------ ##
11916 _ASBOX
11917      ) | sed "s/^/$as_me: WARNING:     /" >&2
11918     ;;
11919 esac
11920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11923   echo $ECHO_N "(cached) $ECHO_C" >&6
11924 else
11925   eval "$as_ac_Header=\$ac_header_preproc"
11926 fi
11927 ac_res=`eval echo '${'$as_ac_Header'}'`
11928                { echo "$as_me:$LINENO: result: $ac_res" >&5
11929 echo "${ECHO_T}$ac_res" >&6; }
11930
11931 fi
11932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11933   cat >>confdefs.h <<_ACEOF
11934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11935 _ACEOF
11936
11937 fi
11938
11939 done
11940
11941 ac_ext=c
11942 ac_cpp='$CPP $CPPFLAGS'
11943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11946
11947
11948
11949
11950
11951
11952 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11953 do
11954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11956   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11959   echo $ECHO_N "(cached) $ECHO_C" >&6
11960 fi
11961 ac_res=`eval echo '${'$as_ac_Header'}'`
11962                { echo "$as_me:$LINENO: result: $ac_res" >&5
11963 echo "${ECHO_T}$ac_res" >&6; }
11964 else
11965   # Is the header compilable?
11966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11968 cat >conftest.$ac_ext <<_ACEOF
11969 /* confdefs.h.  */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h.  */
11974 $ac_includes_default
11975 #include <$ac_header>
11976 _ACEOF
11977 rm -f conftest.$ac_objext
11978 if { (ac_try="$ac_compile"
11979 case "(($ac_try" in
11980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981   *) ac_try_echo=$ac_try;;
11982 esac
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984   (eval "$ac_compile") 2>conftest.er1
11985   ac_status=$?
11986   grep -v '^ *+' conftest.er1 >conftest.err
11987   rm -f conftest.er1
11988   cat conftest.err >&5
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); } &&
11991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11992   { (case "(($ac_try" in
11993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994   *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997   (eval "$ac_try") 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); }; } &&
12001          { ac_try='test -s conftest.$ac_objext'
12002   { (case "(($ac_try" in
12003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004   *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007   (eval "$ac_try") 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); }; }; then
12011   ac_header_compiler=yes
12012 else
12013   echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016         ac_header_compiler=no
12017 fi
12018
12019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12021 echo "${ECHO_T}$ac_header_compiler" >&6; }
12022
12023 # Is the header present?
12024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12026 cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h.  */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h.  */
12032 #include <$ac_header>
12033 _ACEOF
12034 if { (ac_try="$ac_cpp conftest.$ac_ext"
12035 case "(($ac_try" in
12036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037   *) ac_try_echo=$ac_try;;
12038 esac
12039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12040   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12041   ac_status=$?
12042   grep -v '^ *+' conftest.er1 >conftest.err
12043   rm -f conftest.er1
12044   cat conftest.err >&5
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); } >/dev/null; then
12047   if test -s conftest.err; then
12048     ac_cpp_err=$ac_c_preproc_warn_flag
12049     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12050   else
12051     ac_cpp_err=
12052   fi
12053 else
12054   ac_cpp_err=yes
12055 fi
12056 if test -z "$ac_cpp_err"; then
12057   ac_header_preproc=yes
12058 else
12059   echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12061
12062   ac_header_preproc=no
12063 fi
12064
12065 rm -f conftest.err conftest.$ac_ext
12066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12067 echo "${ECHO_T}$ac_header_preproc" >&6; }
12068
12069 # So?  What about this header?
12070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12071   yes:no: )
12072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12076     ac_header_preproc=yes
12077     ;;
12078   no:yes:* )
12079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12091     ( cat <<\_ASBOX
12092 ## ------------------------------------ ##
12093 ## Report this to http://llvm.org/bugs/ ##
12094 ## ------------------------------------ ##
12095 _ASBOX
12096      ) | sed "s/^/$as_me: WARNING:     /" >&2
12097     ;;
12098 esac
12099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12102   echo $ECHO_N "(cached) $ECHO_C" >&6
12103 else
12104   eval "$as_ac_Header=\$ac_header_preproc"
12105 fi
12106 ac_res=`eval echo '${'$as_ac_Header'}'`
12107                { echo "$as_me:$LINENO: result: $ac_res" >&5
12108 echo "${ECHO_T}$ac_res" >&6; }
12109
12110 fi
12111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12112   cat >>confdefs.h <<_ACEOF
12113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12114 _ACEOF
12115
12116 fi
12117
12118 done
12119
12120
12121
12122
12123
12124
12125
12126 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
12127 do
12128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12130   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12133   echo $ECHO_N "(cached) $ECHO_C" >&6
12134 fi
12135 ac_res=`eval echo '${'$as_ac_Header'}'`
12136                { echo "$as_me:$LINENO: result: $ac_res" >&5
12137 echo "${ECHO_T}$ac_res" >&6; }
12138 else
12139   # Is the header compilable?
12140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12142 cat >conftest.$ac_ext <<_ACEOF
12143 /* confdefs.h.  */
12144 _ACEOF
12145 cat confdefs.h >>conftest.$ac_ext
12146 cat >>conftest.$ac_ext <<_ACEOF
12147 /* end confdefs.h.  */
12148 $ac_includes_default
12149 #include <$ac_header>
12150 _ACEOF
12151 rm -f conftest.$ac_objext
12152 if { (ac_try="$ac_compile"
12153 case "(($ac_try" in
12154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155   *) ac_try_echo=$ac_try;;
12156 esac
12157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158   (eval "$ac_compile") 2>conftest.er1
12159   ac_status=$?
12160   grep -v '^ *+' conftest.er1 >conftest.err
12161   rm -f conftest.er1
12162   cat conftest.err >&5
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); } &&
12165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12166   { (case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_try") 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); }; } &&
12175          { ac_try='test -s conftest.$ac_objext'
12176   { (case "(($ac_try" in
12177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178   *) ac_try_echo=$ac_try;;
12179 esac
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181   (eval "$ac_try") 2>&5
12182   ac_status=$?
12183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184   (exit $ac_status); }; }; then
12185   ac_header_compiler=yes
12186 else
12187   echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12189
12190         ac_header_compiler=no
12191 fi
12192
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12195 echo "${ECHO_T}$ac_header_compiler" >&6; }
12196
12197 # Is the header present?
12198 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12199 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12200 cat >conftest.$ac_ext <<_ACEOF
12201 /* confdefs.h.  */
12202 _ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h.  */
12206 #include <$ac_header>
12207 _ACEOF
12208 if { (ac_try="$ac_cpp conftest.$ac_ext"
12209 case "(($ac_try" in
12210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12211   *) ac_try_echo=$ac_try;;
12212 esac
12213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12214   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12215   ac_status=$?
12216   grep -v '^ *+' conftest.er1 >conftest.err
12217   rm -f conftest.er1
12218   cat conftest.err >&5
12219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220   (exit $ac_status); } >/dev/null; then
12221   if test -s conftest.err; then
12222     ac_cpp_err=$ac_c_preproc_warn_flag
12223     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12224   else
12225     ac_cpp_err=
12226   fi
12227 else
12228   ac_cpp_err=yes
12229 fi
12230 if test -z "$ac_cpp_err"; then
12231   ac_header_preproc=yes
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236   ac_header_preproc=no
12237 fi
12238
12239 rm -f conftest.err conftest.$ac_ext
12240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12241 echo "${ECHO_T}$ac_header_preproc" >&6; }
12242
12243 # So?  What about this header?
12244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12245   yes:no: )
12246     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12248     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12250     ac_header_preproc=yes
12251     ;;
12252   no:yes:* )
12253     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12255     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12256 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12257     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12259     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12260 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12261     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12263     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12265     ( cat <<\_ASBOX
12266 ## ------------------------------------ ##
12267 ## Report this to http://llvm.org/bugs/ ##
12268 ## ------------------------------------ ##
12269 _ASBOX
12270      ) | sed "s/^/$as_me: WARNING:     /" >&2
12271     ;;
12272 esac
12273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12276   echo $ECHO_N "(cached) $ECHO_C" >&6
12277 else
12278   eval "$as_ac_Header=\$ac_header_preproc"
12279 fi
12280 ac_res=`eval echo '${'$as_ac_Header'}'`
12281                { echo "$as_me:$LINENO: result: $ac_res" >&5
12282 echo "${ECHO_T}$ac_res" >&6; }
12283
12284 fi
12285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12286   cat >>confdefs.h <<_ACEOF
12287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12288 _ACEOF
12289
12290 fi
12291
12292 done
12293
12294
12295 for ac_header in utime.h
12296 do
12297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12299   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12302   echo $ECHO_N "(cached) $ECHO_C" >&6
12303 fi
12304 ac_res=`eval echo '${'$as_ac_Header'}'`
12305                { echo "$as_me:$LINENO: result: $ac_res" >&5
12306 echo "${ECHO_T}$ac_res" >&6; }
12307 else
12308   # Is the header compilable?
12309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12311 cat >conftest.$ac_ext <<_ACEOF
12312 /* confdefs.h.  */
12313 _ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h.  */
12317 $ac_includes_default
12318 #include <$ac_header>
12319 _ACEOF
12320 rm -f conftest.$ac_objext
12321 if { (ac_try="$ac_compile"
12322 case "(($ac_try" in
12323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12324   *) ac_try_echo=$ac_try;;
12325 esac
12326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12327   (eval "$ac_compile") 2>conftest.er1
12328   ac_status=$?
12329   grep -v '^ *+' conftest.er1 >conftest.err
12330   rm -f conftest.er1
12331   cat conftest.err >&5
12332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333   (exit $ac_status); } &&
12334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12335   { (case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_try") 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); }; } &&
12344          { ac_try='test -s conftest.$ac_objext'
12345   { (case "(($ac_try" in
12346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347   *) ac_try_echo=$ac_try;;
12348 esac
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350   (eval "$ac_try") 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); }; }; then
12354   ac_header_compiler=yes
12355 else
12356   echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359         ac_header_compiler=no
12360 fi
12361
12362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12364 echo "${ECHO_T}$ac_header_compiler" >&6; }
12365
12366 # Is the header present?
12367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12369 cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375 #include <$ac_header>
12376 _ACEOF
12377 if { (ac_try="$ac_cpp conftest.$ac_ext"
12378 case "(($ac_try" in
12379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380   *) ac_try_echo=$ac_try;;
12381 esac
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12384   ac_status=$?
12385   grep -v '^ *+' conftest.er1 >conftest.err
12386   rm -f conftest.er1
12387   cat conftest.err >&5
12388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389   (exit $ac_status); } >/dev/null; then
12390   if test -s conftest.err; then
12391     ac_cpp_err=$ac_c_preproc_warn_flag
12392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12393   else
12394     ac_cpp_err=
12395   fi
12396 else
12397   ac_cpp_err=yes
12398 fi
12399 if test -z "$ac_cpp_err"; then
12400   ac_header_preproc=yes
12401 else
12402   echo "$as_me: failed program was:" >&5
12403 sed 's/^/| /' conftest.$ac_ext >&5
12404
12405   ac_header_preproc=no
12406 fi
12407
12408 rm -f conftest.err conftest.$ac_ext
12409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12410 echo "${ECHO_T}$ac_header_preproc" >&6; }
12411
12412 # So?  What about this header?
12413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12414   yes:no: )
12415     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12419     ac_header_preproc=yes
12420     ;;
12421   no:yes:* )
12422     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12424     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12425 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12426     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12428     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12429 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12432     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12434     ( cat <<\_ASBOX
12435 ## ------------------------------------ ##
12436 ## Report this to http://llvm.org/bugs/ ##
12437 ## ------------------------------------ ##
12438 _ASBOX
12439      ) | sed "s/^/$as_me: WARNING:     /" >&2
12440     ;;
12441 esac
12442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12445   echo $ECHO_N "(cached) $ECHO_C" >&6
12446 else
12447   eval "$as_ac_Header=\$ac_header_preproc"
12448 fi
12449 ac_res=`eval echo '${'$as_ac_Header'}'`
12450                { echo "$as_me:$LINENO: result: $ac_res" >&5
12451 echo "${ECHO_T}$ac_res" >&6; }
12452
12453 fi
12454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12455   cat >>confdefs.h <<_ACEOF
12456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12457 _ACEOF
12458
12459 fi
12460
12461 done
12462
12463
12464
12465
12466
12467
12468 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
12469 do
12470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12472   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12475   echo $ECHO_N "(cached) $ECHO_C" >&6
12476 fi
12477 ac_res=`eval echo '${'$as_ac_Header'}'`
12478                { echo "$as_me:$LINENO: result: $ac_res" >&5
12479 echo "${ECHO_T}$ac_res" >&6; }
12480 else
12481   # Is the header compilable?
12482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12484 cat >conftest.$ac_ext <<_ACEOF
12485 /* confdefs.h.  */
12486 _ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h.  */
12490 $ac_includes_default
12491 #include <$ac_header>
12492 _ACEOF
12493 rm -f conftest.$ac_objext
12494 if { (ac_try="$ac_compile"
12495 case "(($ac_try" in
12496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497   *) ac_try_echo=$ac_try;;
12498 esac
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500   (eval "$ac_compile") 2>conftest.er1
12501   ac_status=$?
12502   grep -v '^ *+' conftest.er1 >conftest.err
12503   rm -f conftest.er1
12504   cat conftest.err >&5
12505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506   (exit $ac_status); } &&
12507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12508   { (case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_try") 2>&5
12514   ac_status=$?
12515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516   (exit $ac_status); }; } &&
12517          { ac_try='test -s conftest.$ac_objext'
12518   { (case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12523   (eval "$ac_try") 2>&5
12524   ac_status=$?
12525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526   (exit $ac_status); }; }; then
12527   ac_header_compiler=yes
12528 else
12529   echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12531
12532         ac_header_compiler=no
12533 fi
12534
12535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12537 echo "${ECHO_T}$ac_header_compiler" >&6; }
12538
12539 # Is the header present?
12540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12542 cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h.  */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h.  */
12548 #include <$ac_header>
12549 _ACEOF
12550 if { (ac_try="$ac_cpp conftest.$ac_ext"
12551 case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12557   ac_status=$?
12558   grep -v '^ *+' conftest.er1 >conftest.err
12559   rm -f conftest.er1
12560   cat conftest.err >&5
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); } >/dev/null; then
12563   if test -s conftest.err; then
12564     ac_cpp_err=$ac_c_preproc_warn_flag
12565     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12566   else
12567     ac_cpp_err=
12568   fi
12569 else
12570   ac_cpp_err=yes
12571 fi
12572 if test -z "$ac_cpp_err"; then
12573   ac_header_preproc=yes
12574 else
12575   echo "$as_me: failed program was:" >&5
12576 sed 's/^/| /' conftest.$ac_ext >&5
12577
12578   ac_header_preproc=no
12579 fi
12580
12581 rm -f conftest.err conftest.$ac_ext
12582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12583 echo "${ECHO_T}$ac_header_preproc" >&6; }
12584
12585 # So?  What about this header?
12586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12587   yes:no: )
12588     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12592     ac_header_preproc=yes
12593     ;;
12594   no:yes:* )
12595     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12597     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12598 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12599     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12601     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12602 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12603     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12605     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12607     ( cat <<\_ASBOX
12608 ## ------------------------------------ ##
12609 ## Report this to http://llvm.org/bugs/ ##
12610 ## ------------------------------------ ##
12611 _ASBOX
12612      ) | sed "s/^/$as_me: WARNING:     /" >&2
12613     ;;
12614 esac
12615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12618   echo $ECHO_N "(cached) $ECHO_C" >&6
12619 else
12620   eval "$as_ac_Header=\$ac_header_preproc"
12621 fi
12622 ac_res=`eval echo '${'$as_ac_Header'}'`
12623                { echo "$as_me:$LINENO: result: $ac_res" >&5
12624 echo "${ECHO_T}$ac_res" >&6; }
12625
12626 fi
12627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12628   cat >>confdefs.h <<_ACEOF
12629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12630 _ACEOF
12631
12632 fi
12633
12634 done
12635
12636
12637
12638
12639 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12640 do
12641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12643   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12646   echo $ECHO_N "(cached) $ECHO_C" >&6
12647 fi
12648 ac_res=`eval echo '${'$as_ac_Header'}'`
12649                { echo "$as_me:$LINENO: result: $ac_res" >&5
12650 echo "${ECHO_T}$ac_res" >&6; }
12651 else
12652   # Is the header compilable?
12653 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12655 cat >conftest.$ac_ext <<_ACEOF
12656 /* confdefs.h.  */
12657 _ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h.  */
12661 $ac_includes_default
12662 #include <$ac_header>
12663 _ACEOF
12664 rm -f conftest.$ac_objext
12665 if { (ac_try="$ac_compile"
12666 case "(($ac_try" in
12667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12668   *) ac_try_echo=$ac_try;;
12669 esac
12670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12671   (eval "$ac_compile") 2>conftest.er1
12672   ac_status=$?
12673   grep -v '^ *+' conftest.er1 >conftest.err
12674   rm -f conftest.er1
12675   cat conftest.err >&5
12676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677   (exit $ac_status); } &&
12678          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12679   { (case "(($ac_try" in
12680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681   *) ac_try_echo=$ac_try;;
12682 esac
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684   (eval "$ac_try") 2>&5
12685   ac_status=$?
12686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687   (exit $ac_status); }; } &&
12688          { ac_try='test -s conftest.$ac_objext'
12689   { (case "(($ac_try" in
12690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691   *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694   (eval "$ac_try") 2>&5
12695   ac_status=$?
12696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697   (exit $ac_status); }; }; then
12698   ac_header_compiler=yes
12699 else
12700   echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12702
12703         ac_header_compiler=no
12704 fi
12705
12706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12708 echo "${ECHO_T}$ac_header_compiler" >&6; }
12709
12710 # Is the header present?
12711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12713 cat >conftest.$ac_ext <<_ACEOF
12714 /* confdefs.h.  */
12715 _ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h.  */
12719 #include <$ac_header>
12720 _ACEOF
12721 if { (ac_try="$ac_cpp conftest.$ac_ext"
12722 case "(($ac_try" in
12723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724   *) ac_try_echo=$ac_try;;
12725 esac
12726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12728   ac_status=$?
12729   grep -v '^ *+' conftest.er1 >conftest.err
12730   rm -f conftest.er1
12731   cat conftest.err >&5
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); } >/dev/null; then
12734   if test -s conftest.err; then
12735     ac_cpp_err=$ac_c_preproc_warn_flag
12736     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12737   else
12738     ac_cpp_err=
12739   fi
12740 else
12741   ac_cpp_err=yes
12742 fi
12743 if test -z "$ac_cpp_err"; then
12744   ac_header_preproc=yes
12745 else
12746   echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12748
12749   ac_header_preproc=no
12750 fi
12751
12752 rm -f conftest.err conftest.$ac_ext
12753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12754 echo "${ECHO_T}$ac_header_preproc" >&6; }
12755
12756 # So?  What about this header?
12757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12758   yes:no: )
12759     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12761     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12763     ac_header_preproc=yes
12764     ;;
12765   no:yes:* )
12766     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12768     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12769 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12770     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12772     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12773 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12776     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12778     ( cat <<\_ASBOX
12779 ## ------------------------------------ ##
12780 ## Report this to http://llvm.org/bugs/ ##
12781 ## ------------------------------------ ##
12782 _ASBOX
12783      ) | sed "s/^/$as_me: WARNING:     /" >&2
12784     ;;
12785 esac
12786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12789   echo $ECHO_N "(cached) $ECHO_C" >&6
12790 else
12791   eval "$as_ac_Header=\$ac_header_preproc"
12792 fi
12793 ac_res=`eval echo '${'$as_ac_Header'}'`
12794                { echo "$as_me:$LINENO: result: $ac_res" >&5
12795 echo "${ECHO_T}$ac_res" >&6; }
12796
12797 fi
12798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12799   cat >>confdefs.h <<_ACEOF
12800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12801 _ACEOF
12802
12803 fi
12804
12805 done
12806
12807
12808 for ac_header in valgrind/valgrind.h
12809 do
12810 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12812   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12815   echo $ECHO_N "(cached) $ECHO_C" >&6
12816 fi
12817 ac_res=`eval echo '${'$as_ac_Header'}'`
12818                { echo "$as_me:$LINENO: result: $ac_res" >&5
12819 echo "${ECHO_T}$ac_res" >&6; }
12820 else
12821   # Is the header compilable?
12822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12824 cat >conftest.$ac_ext <<_ACEOF
12825 /* confdefs.h.  */
12826 _ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h.  */
12830 $ac_includes_default
12831 #include <$ac_header>
12832 _ACEOF
12833 rm -f conftest.$ac_objext
12834 if { (ac_try="$ac_compile"
12835 case "(($ac_try" in
12836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837   *) ac_try_echo=$ac_try;;
12838 esac
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840   (eval "$ac_compile") 2>conftest.er1
12841   ac_status=$?
12842   grep -v '^ *+' conftest.er1 >conftest.err
12843   rm -f conftest.er1
12844   cat conftest.err >&5
12845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846   (exit $ac_status); } &&
12847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12848   { (case "(($ac_try" in
12849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12850   *) ac_try_echo=$ac_try;;
12851 esac
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853   (eval "$ac_try") 2>&5
12854   ac_status=$?
12855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856   (exit $ac_status); }; } &&
12857          { ac_try='test -s conftest.$ac_objext'
12858   { (case "(($ac_try" in
12859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860   *) ac_try_echo=$ac_try;;
12861 esac
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863   (eval "$ac_try") 2>&5
12864   ac_status=$?
12865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866   (exit $ac_status); }; }; then
12867   ac_header_compiler=yes
12868 else
12869   echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12871
12872         ac_header_compiler=no
12873 fi
12874
12875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12877 echo "${ECHO_T}$ac_header_compiler" >&6; }
12878
12879 # Is the header present?
12880 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12881 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12882 cat >conftest.$ac_ext <<_ACEOF
12883 /* confdefs.h.  */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h.  */
12888 #include <$ac_header>
12889 _ACEOF
12890 if { (ac_try="$ac_cpp conftest.$ac_ext"
12891 case "(($ac_try" in
12892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893   *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12897   ac_status=$?
12898   grep -v '^ *+' conftest.er1 >conftest.err
12899   rm -f conftest.er1
12900   cat conftest.err >&5
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); } >/dev/null; then
12903   if test -s conftest.err; then
12904     ac_cpp_err=$ac_c_preproc_warn_flag
12905     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12906   else
12907     ac_cpp_err=
12908   fi
12909 else
12910   ac_cpp_err=yes
12911 fi
12912 if test -z "$ac_cpp_err"; then
12913   ac_header_preproc=yes
12914 else
12915   echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12917
12918   ac_header_preproc=no
12919 fi
12920
12921 rm -f conftest.err conftest.$ac_ext
12922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12923 echo "${ECHO_T}$ac_header_preproc" >&6; }
12924
12925 # So?  What about this header?
12926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12927   yes:no: )
12928     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12930     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12932     ac_header_preproc=yes
12933     ;;
12934   no:yes:* )
12935     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12937     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12938 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12939     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12941     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12942 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12943     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12945     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12947     ( cat <<\_ASBOX
12948 ## ------------------------------------ ##
12949 ## Report this to http://llvm.org/bugs/ ##
12950 ## ------------------------------------ ##
12951 _ASBOX
12952      ) | sed "s/^/$as_me: WARNING:     /" >&2
12953     ;;
12954 esac
12955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12958   echo $ECHO_N "(cached) $ECHO_C" >&6
12959 else
12960   eval "$as_ac_Header=\$ac_header_preproc"
12961 fi
12962 ac_res=`eval echo '${'$as_ac_Header'}'`
12963                { echo "$as_me:$LINENO: result: $ac_res" >&5
12964 echo "${ECHO_T}$ac_res" >&6; }
12965
12966 fi
12967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12968   cat >>confdefs.h <<_ACEOF
12969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12970 _ACEOF
12971
12972 fi
12973
12974 done
12975
12976
12977 for ac_header in fenv.h
12978 do
12979 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12981   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12984   echo $ECHO_N "(cached) $ECHO_C" >&6
12985 fi
12986 ac_res=`eval echo '${'$as_ac_Header'}'`
12987                { echo "$as_me:$LINENO: result: $ac_res" >&5
12988 echo "${ECHO_T}$ac_res" >&6; }
12989 else
12990   # Is the header compilable?
12991 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12992 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12993 cat >conftest.$ac_ext <<_ACEOF
12994 /* confdefs.h.  */
12995 _ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h.  */
12999 $ac_includes_default
13000 #include <$ac_header>
13001 _ACEOF
13002 rm -f conftest.$ac_objext
13003 if { (ac_try="$ac_compile"
13004 case "(($ac_try" in
13005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006   *) ac_try_echo=$ac_try;;
13007 esac
13008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009   (eval "$ac_compile") 2>conftest.er1
13010   ac_status=$?
13011   grep -v '^ *+' conftest.er1 >conftest.err
13012   rm -f conftest.er1
13013   cat conftest.err >&5
13014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015   (exit $ac_status); } &&
13016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13017   { (case "(($ac_try" in
13018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019   *) ac_try_echo=$ac_try;;
13020 esac
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022   (eval "$ac_try") 2>&5
13023   ac_status=$?
13024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025   (exit $ac_status); }; } &&
13026          { ac_try='test -s conftest.$ac_objext'
13027   { (case "(($ac_try" in
13028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029   *) ac_try_echo=$ac_try;;
13030 esac
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032   (eval "$ac_try") 2>&5
13033   ac_status=$?
13034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035   (exit $ac_status); }; }; then
13036   ac_header_compiler=yes
13037 else
13038   echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13040
13041         ac_header_compiler=no
13042 fi
13043
13044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13046 echo "${ECHO_T}$ac_header_compiler" >&6; }
13047
13048 # Is the header present?
13049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13051 cat >conftest.$ac_ext <<_ACEOF
13052 /* confdefs.h.  */
13053 _ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h.  */
13057 #include <$ac_header>
13058 _ACEOF
13059 if { (ac_try="$ac_cpp conftest.$ac_ext"
13060 case "(($ac_try" in
13061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062   *) ac_try_echo=$ac_try;;
13063 esac
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13066   ac_status=$?
13067   grep -v '^ *+' conftest.er1 >conftest.err
13068   rm -f conftest.er1
13069   cat conftest.err >&5
13070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071   (exit $ac_status); } >/dev/null; then
13072   if test -s conftest.err; then
13073     ac_cpp_err=$ac_c_preproc_warn_flag
13074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13075   else
13076     ac_cpp_err=
13077   fi
13078 else
13079   ac_cpp_err=yes
13080 fi
13081 if test -z "$ac_cpp_err"; then
13082   ac_header_preproc=yes
13083 else
13084   echo "$as_me: failed program was:" >&5
13085 sed 's/^/| /' conftest.$ac_ext >&5
13086
13087   ac_header_preproc=no
13088 fi
13089
13090 rm -f conftest.err conftest.$ac_ext
13091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13092 echo "${ECHO_T}$ac_header_preproc" >&6; }
13093
13094 # So?  What about this header?
13095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13096   yes:no: )
13097     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13099     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13101     ac_header_preproc=yes
13102     ;;
13103   no:yes:* )
13104     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13106     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13107 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13108     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13110     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13111 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13112     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13114     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13116     ( cat <<\_ASBOX
13117 ## ------------------------------------ ##
13118 ## Report this to http://llvm.org/bugs/ ##
13119 ## ------------------------------------ ##
13120 _ASBOX
13121      ) | sed "s/^/$as_me: WARNING:     /" >&2
13122     ;;
13123 esac
13124 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13127   echo $ECHO_N "(cached) $ECHO_C" >&6
13128 else
13129   eval "$as_ac_Header=\$ac_header_preproc"
13130 fi
13131 ac_res=`eval echo '${'$as_ac_Header'}'`
13132                { echo "$as_me:$LINENO: result: $ac_res" >&5
13133 echo "${ECHO_T}$ac_res" >&6; }
13134
13135 fi
13136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13137   cat >>confdefs.h <<_ACEOF
13138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13139 _ACEOF
13140
13141 fi
13142
13143 done
13144
13145 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
13146 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
13147 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
13148   echo $ECHO_N "(cached) $ECHO_C" >&6
13149 else
13150   cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156 #include <fenv.h>
13157
13158 int
13159 main ()
13160 {
13161 #ifndef FE_ALL_EXCEPT
13162   char *p = (char *) FE_ALL_EXCEPT;
13163   return !p;
13164 #endif
13165
13166   ;
13167   return 0;
13168 }
13169 _ACEOF
13170 rm -f conftest.$ac_objext
13171 if { (ac_try="$ac_compile"
13172 case "(($ac_try" in
13173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174   *) ac_try_echo=$ac_try;;
13175 esac
13176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177   (eval "$ac_compile") 2>conftest.er1
13178   ac_status=$?
13179   grep -v '^ *+' conftest.er1 >conftest.err
13180   rm -f conftest.er1
13181   cat conftest.err >&5
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); } &&
13184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13185   { (case "(($ac_try" in
13186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187   *) ac_try_echo=$ac_try;;
13188 esac
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190   (eval "$ac_try") 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); }; } &&
13194          { ac_try='test -s conftest.$ac_objext'
13195   { (case "(($ac_try" in
13196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197   *) ac_try_echo=$ac_try;;
13198 esac
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200   (eval "$ac_try") 2>&5
13201   ac_status=$?
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); }; }; then
13204   ac_cv_have_decl_FE_ALL_EXCEPT=yes
13205 else
13206   echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13208
13209         ac_cv_have_decl_FE_ALL_EXCEPT=no
13210 fi
13211
13212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13213 fi
13214 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
13215 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
13216 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
13217
13218 cat >>confdefs.h <<_ACEOF
13219 #define HAVE_DECL_FE_ALL_EXCEPT 1
13220 _ACEOF
13221
13222
13223 else
13224   cat >>confdefs.h <<_ACEOF
13225 #define HAVE_DECL_FE_ALL_EXCEPT 0
13226 _ACEOF
13227
13228
13229 fi
13230 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
13231 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
13232 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
13233   echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235   cat >conftest.$ac_ext <<_ACEOF
13236 /* confdefs.h.  */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h.  */
13241 #include <fenv.h>
13242
13243 int
13244 main ()
13245 {
13246 #ifndef FE_INEXACT
13247   char *p = (char *) FE_INEXACT;
13248   return !p;
13249 #endif
13250
13251   ;
13252   return 0;
13253 }
13254 _ACEOF
13255 rm -f conftest.$ac_objext
13256 if { (ac_try="$ac_compile"
13257 case "(($ac_try" in
13258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259   *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262   (eval "$ac_compile") 2>conftest.er1
13263   ac_status=$?
13264   grep -v '^ *+' conftest.er1 >conftest.err
13265   rm -f conftest.er1
13266   cat conftest.err >&5
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } &&
13269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13270   { (case "(($ac_try" in
13271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13272   *) ac_try_echo=$ac_try;;
13273 esac
13274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13275   (eval "$ac_try") 2>&5
13276   ac_status=$?
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); }; } &&
13279          { ac_try='test -s conftest.$ac_objext'
13280   { (case "(($ac_try" in
13281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282   *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285   (eval "$ac_try") 2>&5
13286   ac_status=$?
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); }; }; then
13289   ac_cv_have_decl_FE_INEXACT=yes
13290 else
13291   echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13293
13294         ac_cv_have_decl_FE_INEXACT=no
13295 fi
13296
13297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13298 fi
13299 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
13300 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
13301 if test $ac_cv_have_decl_FE_INEXACT = yes; then
13302
13303 cat >>confdefs.h <<_ACEOF
13304 #define HAVE_DECL_FE_INEXACT 1
13305 _ACEOF
13306
13307
13308 else
13309   cat >>confdefs.h <<_ACEOF
13310 #define HAVE_DECL_FE_INEXACT 0
13311 _ACEOF
13312
13313
13314 fi
13315
13316
13317 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13318
13319 for ac_header in pthread.h
13320 do
13321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13323   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13326   echo $ECHO_N "(cached) $ECHO_C" >&6
13327 fi
13328 ac_res=`eval echo '${'$as_ac_Header'}'`
13329                { echo "$as_me:$LINENO: result: $ac_res" >&5
13330 echo "${ECHO_T}$ac_res" >&6; }
13331 else
13332   # Is the header compilable?
13333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13335 cat >conftest.$ac_ext <<_ACEOF
13336 /* confdefs.h.  */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h.  */
13341 $ac_includes_default
13342 #include <$ac_header>
13343 _ACEOF
13344 rm -f conftest.$ac_objext
13345 if { (ac_try="$ac_compile"
13346 case "(($ac_try" in
13347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348   *) ac_try_echo=$ac_try;;
13349 esac
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351   (eval "$ac_compile") 2>conftest.er1
13352   ac_status=$?
13353   grep -v '^ *+' conftest.er1 >conftest.err
13354   rm -f conftest.er1
13355   cat conftest.err >&5
13356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357   (exit $ac_status); } &&
13358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13359   { (case "(($ac_try" in
13360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361   *) ac_try_echo=$ac_try;;
13362 esac
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364   (eval "$ac_try") 2>&5
13365   ac_status=$?
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); }; } &&
13368          { ac_try='test -s conftest.$ac_objext'
13369   { (case "(($ac_try" in
13370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371   *) ac_try_echo=$ac_try;;
13372 esac
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374   (eval "$ac_try") 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; }; then
13378   ac_header_compiler=yes
13379 else
13380   echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383         ac_header_compiler=no
13384 fi
13385
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13388 echo "${ECHO_T}$ac_header_compiler" >&6; }
13389
13390 # Is the header present?
13391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13393 cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h.  */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h.  */
13399 #include <$ac_header>
13400 _ACEOF
13401 if { (ac_try="$ac_cpp conftest.$ac_ext"
13402 case "(($ac_try" in
13403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404   *) ac_try_echo=$ac_try;;
13405 esac
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13408   ac_status=$?
13409   grep -v '^ *+' conftest.er1 >conftest.err
13410   rm -f conftest.er1
13411   cat conftest.err >&5
13412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413   (exit $ac_status); } >/dev/null; then
13414   if test -s conftest.err; then
13415     ac_cpp_err=$ac_c_preproc_warn_flag
13416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13417   else
13418     ac_cpp_err=
13419   fi
13420 else
13421   ac_cpp_err=yes
13422 fi
13423 if test -z "$ac_cpp_err"; then
13424   ac_header_preproc=yes
13425 else
13426   echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13428
13429   ac_header_preproc=no
13430 fi
13431
13432 rm -f conftest.err conftest.$ac_ext
13433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13434 echo "${ECHO_T}$ac_header_preproc" >&6; }
13435
13436 # So?  What about this header?
13437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13438   yes:no: )
13439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13443     ac_header_preproc=yes
13444     ;;
13445   no:yes:* )
13446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13458     ( cat <<\_ASBOX
13459 ## ------------------------------------ ##
13460 ## Report this to http://llvm.org/bugs/ ##
13461 ## ------------------------------------ ##
13462 _ASBOX
13463      ) | sed "s/^/$as_me: WARNING:     /" >&2
13464     ;;
13465 esac
13466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13469   echo $ECHO_N "(cached) $ECHO_C" >&6
13470 else
13471   eval "$as_ac_Header=\$ac_header_preproc"
13472 fi
13473 ac_res=`eval echo '${'$as_ac_Header'}'`
13474                { echo "$as_me:$LINENO: result: $ac_res" >&5
13475 echo "${ECHO_T}$ac_res" >&6; }
13476
13477 fi
13478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13479   cat >>confdefs.h <<_ACEOF
13480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13481 _ACEOF
13482  HAVE_PTHREAD=1
13483
13484 else
13485   HAVE_PTHREAD=0
13486
13487 fi
13488
13489 done
13490
13491 else
13492   HAVE_PTHREAD=0
13493
13494 fi
13495 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13496
13497 for ac_header in zlib.h
13498 do
13499 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13501   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13504   echo $ECHO_N "(cached) $ECHO_C" >&6
13505 fi
13506 ac_res=`eval echo '${'$as_ac_Header'}'`
13507                { echo "$as_me:$LINENO: result: $ac_res" >&5
13508 echo "${ECHO_T}$ac_res" >&6; }
13509 else
13510   # Is the header compilable?
13511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13513 cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h.  */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h.  */
13519 $ac_includes_default
13520 #include <$ac_header>
13521 _ACEOF
13522 rm -f conftest.$ac_objext
13523 if { (ac_try="$ac_compile"
13524 case "(($ac_try" in
13525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526   *) ac_try_echo=$ac_try;;
13527 esac
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529   (eval "$ac_compile") 2>conftest.er1
13530   ac_status=$?
13531   grep -v '^ *+' conftest.er1 >conftest.err
13532   rm -f conftest.er1
13533   cat conftest.err >&5
13534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535   (exit $ac_status); } &&
13536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13537   { (case "(($ac_try" in
13538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13539   *) ac_try_echo=$ac_try;;
13540 esac
13541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13542   (eval "$ac_try") 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); }; } &&
13546          { ac_try='test -s conftest.$ac_objext'
13547   { (case "(($ac_try" in
13548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549   *) ac_try_echo=$ac_try;;
13550 esac
13551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13552   (eval "$ac_try") 2>&5
13553   ac_status=$?
13554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555   (exit $ac_status); }; }; then
13556   ac_header_compiler=yes
13557 else
13558   echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13560
13561         ac_header_compiler=no
13562 fi
13563
13564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13566 echo "${ECHO_T}$ac_header_compiler" >&6; }
13567
13568 # Is the header present?
13569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13571 cat >conftest.$ac_ext <<_ACEOF
13572 /* confdefs.h.  */
13573 _ACEOF
13574 cat confdefs.h >>conftest.$ac_ext
13575 cat >>conftest.$ac_ext <<_ACEOF
13576 /* end confdefs.h.  */
13577 #include <$ac_header>
13578 _ACEOF
13579 if { (ac_try="$ac_cpp conftest.$ac_ext"
13580 case "(($ac_try" in
13581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13582   *) ac_try_echo=$ac_try;;
13583 esac
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13586   ac_status=$?
13587   grep -v '^ *+' conftest.er1 >conftest.err
13588   rm -f conftest.er1
13589   cat conftest.err >&5
13590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591   (exit $ac_status); } >/dev/null; then
13592   if test -s conftest.err; then
13593     ac_cpp_err=$ac_c_preproc_warn_flag
13594     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13595   else
13596     ac_cpp_err=
13597   fi
13598 else
13599   ac_cpp_err=yes
13600 fi
13601 if test -z "$ac_cpp_err"; then
13602   ac_header_preproc=yes
13603 else
13604   echo "$as_me: failed program was:" >&5
13605 sed 's/^/| /' conftest.$ac_ext >&5
13606
13607   ac_header_preproc=no
13608 fi
13609
13610 rm -f conftest.err conftest.$ac_ext
13611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13612 echo "${ECHO_T}$ac_header_preproc" >&6; }
13613
13614 # So?  What about this header?
13615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13616   yes:no: )
13617     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13619     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13621     ac_header_preproc=yes
13622     ;;
13623   no:yes:* )
13624     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13626     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13627 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13628     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13630     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13631 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13634     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13636     ( cat <<\_ASBOX
13637 ## ------------------------------------ ##
13638 ## Report this to http://llvm.org/bugs/ ##
13639 ## ------------------------------------ ##
13640 _ASBOX
13641      ) | sed "s/^/$as_me: WARNING:     /" >&2
13642     ;;
13643 esac
13644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13647   echo $ECHO_N "(cached) $ECHO_C" >&6
13648 else
13649   eval "$as_ac_Header=\$ac_header_preproc"
13650 fi
13651 ac_res=`eval echo '${'$as_ac_Header'}'`
13652                { echo "$as_me:$LINENO: result: $ac_res" >&5
13653 echo "${ECHO_T}$ac_res" >&6; }
13654
13655 fi
13656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13657   cat >>confdefs.h <<_ACEOF
13658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13659 _ACEOF
13660  HAVE_LIBZ=1
13661
13662 else
13663   HAVE_LIBZ=0
13664
13665 fi
13666
13667 done
13668
13669 else
13670   HAVE_LIBZ=0
13671
13672 fi
13673
13674 if test "$llvm_cv_enable_libffi" = "yes" ; then
13675
13676
13677 for ac_header in ffi.h ffi/ffi.h
13678 do
13679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13681   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13684   echo $ECHO_N "(cached) $ECHO_C" >&6
13685 fi
13686 ac_res=`eval echo '${'$as_ac_Header'}'`
13687                { echo "$as_me:$LINENO: result: $ac_res" >&5
13688 echo "${ECHO_T}$ac_res" >&6; }
13689 else
13690   # Is the header compilable?
13691 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13693 cat >conftest.$ac_ext <<_ACEOF
13694 /* confdefs.h.  */
13695 _ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h.  */
13699 $ac_includes_default
13700 #include <$ac_header>
13701 _ACEOF
13702 rm -f conftest.$ac_objext
13703 if { (ac_try="$ac_compile"
13704 case "(($ac_try" in
13705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706   *) ac_try_echo=$ac_try;;
13707 esac
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709   (eval "$ac_compile") 2>conftest.er1
13710   ac_status=$?
13711   grep -v '^ *+' conftest.er1 >conftest.err
13712   rm -f conftest.er1
13713   cat conftest.err >&5
13714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715   (exit $ac_status); } &&
13716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13717   { (case "(($ac_try" in
13718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719   *) ac_try_echo=$ac_try;;
13720 esac
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722   (eval "$ac_try") 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; } &&
13726          { ac_try='test -s conftest.$ac_objext'
13727   { (case "(($ac_try" in
13728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729   *) ac_try_echo=$ac_try;;
13730 esac
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732   (eval "$ac_try") 2>&5
13733   ac_status=$?
13734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735   (exit $ac_status); }; }; then
13736   ac_header_compiler=yes
13737 else
13738   echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13740
13741         ac_header_compiler=no
13742 fi
13743
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13746 echo "${ECHO_T}$ac_header_compiler" >&6; }
13747
13748 # Is the header present?
13749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13751 cat >conftest.$ac_ext <<_ACEOF
13752 /* confdefs.h.  */
13753 _ACEOF
13754 cat confdefs.h >>conftest.$ac_ext
13755 cat >>conftest.$ac_ext <<_ACEOF
13756 /* end confdefs.h.  */
13757 #include <$ac_header>
13758 _ACEOF
13759 if { (ac_try="$ac_cpp conftest.$ac_ext"
13760 case "(($ac_try" in
13761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762   *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13766   ac_status=$?
13767   grep -v '^ *+' conftest.er1 >conftest.err
13768   rm -f conftest.er1
13769   cat conftest.err >&5
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); } >/dev/null; then
13772   if test -s conftest.err; then
13773     ac_cpp_err=$ac_c_preproc_warn_flag
13774     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13775   else
13776     ac_cpp_err=
13777   fi
13778 else
13779   ac_cpp_err=yes
13780 fi
13781 if test -z "$ac_cpp_err"; then
13782   ac_header_preproc=yes
13783 else
13784   echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13786
13787   ac_header_preproc=no
13788 fi
13789
13790 rm -f conftest.err conftest.$ac_ext
13791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13792 echo "${ECHO_T}$ac_header_preproc" >&6; }
13793
13794 # So?  What about this header?
13795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13796   yes:no: )
13797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13801     ac_header_preproc=yes
13802     ;;
13803   no:yes:* )
13804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13806     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13807 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13808     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13810     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13811 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13814     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13816     ( cat <<\_ASBOX
13817 ## ------------------------------------ ##
13818 ## Report this to http://llvm.org/bugs/ ##
13819 ## ------------------------------------ ##
13820 _ASBOX
13821      ) | sed "s/^/$as_me: WARNING:     /" >&2
13822     ;;
13823 esac
13824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13827   echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829   eval "$as_ac_Header=\$ac_header_preproc"
13830 fi
13831 ac_res=`eval echo '${'$as_ac_Header'}'`
13832                { echo "$as_me:$LINENO: result: $ac_res" >&5
13833 echo "${ECHO_T}$ac_res" >&6; }
13834
13835 fi
13836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13837   cat >>confdefs.h <<_ACEOF
13838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13839 _ACEOF
13840
13841 fi
13842
13843 done
13844
13845 fi
13846
13847
13848 for ac_header in CrashReporterClient.h
13849 do
13850 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13852   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13855   echo $ECHO_N "(cached) $ECHO_C" >&6
13856 fi
13857 ac_res=`eval echo '${'$as_ac_Header'}'`
13858                { echo "$as_me:$LINENO: result: $ac_res" >&5
13859 echo "${ECHO_T}$ac_res" >&6; }
13860 else
13861   # Is the header compilable?
13862 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13863 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13864 cat >conftest.$ac_ext <<_ACEOF
13865 /* confdefs.h.  */
13866 _ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h.  */
13870 $ac_includes_default
13871 #include <$ac_header>
13872 _ACEOF
13873 rm -f conftest.$ac_objext
13874 if { (ac_try="$ac_compile"
13875 case "(($ac_try" in
13876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877   *) ac_try_echo=$ac_try;;
13878 esac
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880   (eval "$ac_compile") 2>conftest.er1
13881   ac_status=$?
13882   grep -v '^ *+' conftest.er1 >conftest.err
13883   rm -f conftest.er1
13884   cat conftest.err >&5
13885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886   (exit $ac_status); } &&
13887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13888   { (case "(($ac_try" in
13889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890   *) ac_try_echo=$ac_try;;
13891 esac
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893   (eval "$ac_try") 2>&5
13894   ac_status=$?
13895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896   (exit $ac_status); }; } &&
13897          { ac_try='test -s conftest.$ac_objext'
13898   { (case "(($ac_try" in
13899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900   *) ac_try_echo=$ac_try;;
13901 esac
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903   (eval "$ac_try") 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; }; then
13907   ac_header_compiler=yes
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912         ac_header_compiler=no
13913 fi
13914
13915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13917 echo "${ECHO_T}$ac_header_compiler" >&6; }
13918
13919 # Is the header present?
13920 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13922 cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h.  */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h.  */
13928 #include <$ac_header>
13929 _ACEOF
13930 if { (ac_try="$ac_cpp conftest.$ac_ext"
13931 case "(($ac_try" in
13932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13933   *) ac_try_echo=$ac_try;;
13934 esac
13935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13936   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13937   ac_status=$?
13938   grep -v '^ *+' conftest.er1 >conftest.err
13939   rm -f conftest.er1
13940   cat conftest.err >&5
13941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942   (exit $ac_status); } >/dev/null; then
13943   if test -s conftest.err; then
13944     ac_cpp_err=$ac_c_preproc_warn_flag
13945     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13946   else
13947     ac_cpp_err=
13948   fi
13949 else
13950   ac_cpp_err=yes
13951 fi
13952 if test -z "$ac_cpp_err"; then
13953   ac_header_preproc=yes
13954 else
13955   echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13957
13958   ac_header_preproc=no
13959 fi
13960
13961 rm -f conftest.err conftest.$ac_ext
13962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13963 echo "${ECHO_T}$ac_header_preproc" >&6; }
13964
13965 # So?  What about this header?
13966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13967   yes:no: )
13968     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13970     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13972     ac_header_preproc=yes
13973     ;;
13974   no:yes:* )
13975     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13977     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13978 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13979     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13981     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13982 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13983     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13985     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13987     ( cat <<\_ASBOX
13988 ## ------------------------------------ ##
13989 ## Report this to http://llvm.org/bugs/ ##
13990 ## ------------------------------------ ##
13991 _ASBOX
13992      ) | sed "s/^/$as_me: WARNING:     /" >&2
13993     ;;
13994 esac
13995 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13998   echo $ECHO_N "(cached) $ECHO_C" >&6
13999 else
14000   eval "$as_ac_Header=\$ac_header_preproc"
14001 fi
14002 ac_res=`eval echo '${'$as_ac_Header'}'`
14003                { echo "$as_me:$LINENO: result: $ac_res" >&5
14004 echo "${ECHO_T}$ac_res" >&6; }
14005
14006 fi
14007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14008   cat >>confdefs.h <<_ACEOF
14009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14010 _ACEOF
14011
14012 fi
14013
14014 done
14015
14016
14017 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14018 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
14019 cat >conftest.$ac_ext <<_ACEOF
14020
14021   /* confdefs.h.  */
14022 _ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h.  */
14026
14027     extern const char *__crashreporter_info__;
14028     int main() {
14029       __crashreporter_info__ = "test";
14030       return 0;
14031     }
14032
14033
14034 _ACEOF
14035 rm -f conftest.$ac_objext conftest$ac_exeext
14036 if { (ac_try="$ac_link"
14037 case "(($ac_try" in
14038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039   *) ac_try_echo=$ac_try;;
14040 esac
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042   (eval "$ac_link") 2>conftest.er1
14043   ac_status=$?
14044   grep -v '^ *+' conftest.er1 >conftest.err
14045   rm -f conftest.er1
14046   cat conftest.err >&5
14047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048   (exit $ac_status); } &&
14049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14050   { (case "(($ac_try" in
14051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052   *) ac_try_echo=$ac_try;;
14053 esac
14054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055   (eval "$ac_try") 2>&5
14056   ac_status=$?
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); }; } &&
14059          { ac_try='test -s conftest$ac_exeext'
14060   { (case "(($ac_try" in
14061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062   *) ac_try_echo=$ac_try;;
14063 esac
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065   (eval "$ac_try") 2>&5
14066   ac_status=$?
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); }; }; then
14069
14070   { echo "$as_me:$LINENO: result: yes" >&5
14071 echo "${ECHO_T}yes" >&6; }
14072
14073 cat >>confdefs.h <<\_ACEOF
14074 #define HAVE_CRASHREPORTER_INFO 1
14075 _ACEOF
14076
14077
14078 else
14079   echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14081
14082
14083   { echo "$as_me:$LINENO: result: no" >&5
14084 echo "${ECHO_T}no" >&6; }
14085
14086 cat >>confdefs.h <<\_ACEOF
14087 #define HAVE_CRASHREPORTER_INFO 0
14088 _ACEOF
14089
14090
14091 fi
14092
14093 rm -f core conftest.err conftest.$ac_objext \
14094       conftest$ac_exeext conftest.$ac_ext
14095
14096
14097
14098   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14099 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14100 if test "${ac_cv_huge_val_sanity+set}" = set; then
14101   echo $ECHO_N "(cached) $ECHO_C" >&6
14102 else
14103
14104     ac_ext=cpp
14105 ac_cpp='$CXXCPP $CPPFLAGS'
14106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14109
14110     ac_save_CXXFLAGS=$CXXFLAGS
14111     CXXFLAGS="$CXXFLAGS -pedantic"
14112     if test "$cross_compiling" = yes; then
14113   ac_cv_huge_val_sanity=yes
14114 else
14115   cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h.  */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h.  */
14121 #include <math.h>
14122 int
14123 main ()
14124 {
14125 double x = HUGE_VAL; return x != x;
14126   ;
14127   return 0;
14128 }
14129 _ACEOF
14130 rm -f conftest$ac_exeext
14131 if { (ac_try="$ac_link"
14132 case "(($ac_try" in
14133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134   *) ac_try_echo=$ac_try;;
14135 esac
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137   (eval "$ac_link") 2>&5
14138   ac_status=$?
14139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14141   { (case "(($ac_try" in
14142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14143   *) ac_try_echo=$ac_try;;
14144 esac
14145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14146   (eval "$ac_try") 2>&5
14147   ac_status=$?
14148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149   (exit $ac_status); }; }; then
14150   ac_cv_huge_val_sanity=yes
14151 else
14152   echo "$as_me: program exited with status $ac_status" >&5
14153 echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14155
14156 ( exit $ac_status )
14157 ac_cv_huge_val_sanity=no
14158 fi
14159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14160 fi
14161
14162
14163     CXXFLAGS=$ac_save_CXXFLAGS
14164     ac_ext=c
14165 ac_cpp='$CPP $CPPFLAGS'
14166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14169
14170
14171 fi
14172 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14173 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
14174   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14175
14176
14177 { echo "$as_me:$LINENO: checking for pid_t" >&5
14178 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14179 if test "${ac_cv_type_pid_t+set}" = set; then
14180   echo $ECHO_N "(cached) $ECHO_C" >&6
14181 else
14182   cat >conftest.$ac_ext <<_ACEOF
14183 /* confdefs.h.  */
14184 _ACEOF
14185 cat confdefs.h >>conftest.$ac_ext
14186 cat >>conftest.$ac_ext <<_ACEOF
14187 /* end confdefs.h.  */
14188 $ac_includes_default
14189 typedef pid_t ac__type_new_;
14190 int
14191 main ()
14192 {
14193 if ((ac__type_new_ *) 0)
14194   return 0;
14195 if (sizeof (ac__type_new_))
14196   return 0;
14197   ;
14198   return 0;
14199 }
14200 _ACEOF
14201 rm -f conftest.$ac_objext
14202 if { (ac_try="$ac_compile"
14203 case "(($ac_try" in
14204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14205   *) ac_try_echo=$ac_try;;
14206 esac
14207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14208   (eval "$ac_compile") 2>conftest.er1
14209   ac_status=$?
14210   grep -v '^ *+' conftest.er1 >conftest.err
14211   rm -f conftest.er1
14212   cat conftest.err >&5
14213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214   (exit $ac_status); } &&
14215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14216   { (case "(($ac_try" in
14217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14218   *) ac_try_echo=$ac_try;;
14219 esac
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221   (eval "$ac_try") 2>&5
14222   ac_status=$?
14223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14224   (exit $ac_status); }; } &&
14225          { ac_try='test -s conftest.$ac_objext'
14226   { (case "(($ac_try" in
14227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228   *) ac_try_echo=$ac_try;;
14229 esac
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231   (eval "$ac_try") 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); }; }; then
14235   ac_cv_type_pid_t=yes
14236 else
14237   echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14239
14240         ac_cv_type_pid_t=no
14241 fi
14242
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 fi
14245 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14246 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14247 if test $ac_cv_type_pid_t = yes; then
14248   :
14249 else
14250
14251 cat >>confdefs.h <<_ACEOF
14252 #define pid_t int
14253 _ACEOF
14254
14255 fi
14256
14257 { echo "$as_me:$LINENO: checking for size_t" >&5
14258 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14259 if test "${ac_cv_type_size_t+set}" = set; then
14260   echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262   cat >conftest.$ac_ext <<_ACEOF
14263 /* confdefs.h.  */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h.  */
14268 $ac_includes_default
14269 typedef size_t ac__type_new_;
14270 int
14271 main ()
14272 {
14273 if ((ac__type_new_ *) 0)
14274   return 0;
14275 if (sizeof (ac__type_new_))
14276   return 0;
14277   ;
14278   return 0;
14279 }
14280 _ACEOF
14281 rm -f conftest.$ac_objext
14282 if { (ac_try="$ac_compile"
14283 case "(($ac_try" in
14284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285   *) ac_try_echo=$ac_try;;
14286 esac
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288   (eval "$ac_compile") 2>conftest.er1
14289   ac_status=$?
14290   grep -v '^ *+' conftest.er1 >conftest.err
14291   rm -f conftest.er1
14292   cat conftest.err >&5
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); } &&
14295          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14296   { (case "(($ac_try" in
14297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298   *) ac_try_echo=$ac_try;;
14299 esac
14300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301   (eval "$ac_try") 2>&5
14302   ac_status=$?
14303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304   (exit $ac_status); }; } &&
14305          { ac_try='test -s conftest.$ac_objext'
14306   { (case "(($ac_try" in
14307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308   *) ac_try_echo=$ac_try;;
14309 esac
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311   (eval "$ac_try") 2>&5
14312   ac_status=$?
14313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314   (exit $ac_status); }; }; then
14315   ac_cv_type_size_t=yes
14316 else
14317   echo "$as_me: failed program was:" >&5
14318 sed 's/^/| /' conftest.$ac_ext >&5
14319
14320         ac_cv_type_size_t=no
14321 fi
14322
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 fi
14325 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14326 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14327 if test $ac_cv_type_size_t = yes; then
14328   :
14329 else
14330
14331 cat >>confdefs.h <<_ACEOF
14332 #define size_t unsigned int
14333 _ACEOF
14334
14335 fi
14336
14337
14338 cat >>confdefs.h <<_ACEOF
14339 #define RETSIGTYPE void
14340 _ACEOF
14341
14342 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14343 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14344 if test "${ac_cv_struct_tm+set}" = set; then
14345   echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347   cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h.  */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h.  */
14353 #include <sys/types.h>
14354 #include <time.h>
14355
14356 int
14357 main ()
14358 {
14359 struct tm *tp; tp->tm_sec;
14360   ;
14361   return 0;
14362 }
14363 _ACEOF
14364 rm -f conftest.$ac_objext
14365 if { (ac_try="$ac_compile"
14366 case "(($ac_try" in
14367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368   *) ac_try_echo=$ac_try;;
14369 esac
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371   (eval "$ac_compile") 2>conftest.er1
14372   ac_status=$?
14373   grep -v '^ *+' conftest.er1 >conftest.err
14374   rm -f conftest.er1
14375   cat conftest.err >&5
14376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377   (exit $ac_status); } &&
14378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14379   { (case "(($ac_try" in
14380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14381   *) ac_try_echo=$ac_try;;
14382 esac
14383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14384   (eval "$ac_try") 2>&5
14385   ac_status=$?
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); }; } &&
14388          { ac_try='test -s conftest.$ac_objext'
14389   { (case "(($ac_try" in
14390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391   *) ac_try_echo=$ac_try;;
14392 esac
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394   (eval "$ac_try") 2>&5
14395   ac_status=$?
14396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397   (exit $ac_status); }; }; then
14398   ac_cv_struct_tm=time.h
14399 else
14400   echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14402
14403         ac_cv_struct_tm=sys/time.h
14404 fi
14405
14406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407 fi
14408 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14409 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14410 if test $ac_cv_struct_tm = sys/time.h; then
14411
14412 cat >>confdefs.h <<\_ACEOF
14413 #define TM_IN_SYS_TIME 1
14414 _ACEOF
14415
14416 fi
14417
14418 { echo "$as_me:$LINENO: checking for int64_t" >&5
14419 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14420 if test "${ac_cv_type_int64_t+set}" = set; then
14421   echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423   cat >conftest.$ac_ext <<_ACEOF
14424 /* confdefs.h.  */
14425 _ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h.  */
14429 $ac_includes_default
14430 typedef int64_t ac__type_new_;
14431 int
14432 main ()
14433 {
14434 if ((ac__type_new_ *) 0)
14435   return 0;
14436 if (sizeof (ac__type_new_))
14437   return 0;
14438   ;
14439   return 0;
14440 }
14441 _ACEOF
14442 rm -f conftest.$ac_objext
14443 if { (ac_try="$ac_compile"
14444 case "(($ac_try" in
14445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446   *) ac_try_echo=$ac_try;;
14447 esac
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449   (eval "$ac_compile") 2>conftest.er1
14450   ac_status=$?
14451   grep -v '^ *+' conftest.er1 >conftest.err
14452   rm -f conftest.er1
14453   cat conftest.err >&5
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); } &&
14456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14457   { (case "(($ac_try" in
14458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459   *) ac_try_echo=$ac_try;;
14460 esac
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462   (eval "$ac_try") 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); }; } &&
14466          { ac_try='test -s conftest.$ac_objext'
14467   { (case "(($ac_try" in
14468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469   *) ac_try_echo=$ac_try;;
14470 esac
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472   (eval "$ac_try") 2>&5
14473   ac_status=$?
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); }; }; then
14476   ac_cv_type_int64_t=yes
14477 else
14478   echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14480
14481         ac_cv_type_int64_t=no
14482 fi
14483
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 fi
14486 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14487 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14488 if test $ac_cv_type_int64_t = yes; then
14489
14490 cat >>confdefs.h <<_ACEOF
14491 #define HAVE_INT64_T 1
14492 _ACEOF
14493
14494
14495 else
14496   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
14497 echo "$as_me: error: Type int64_t required but not found" >&2;}
14498    { (exit 1); exit 1; }; }
14499 fi
14500
14501 { echo "$as_me:$LINENO: checking for uint64_t" >&5
14502 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14503 if test "${ac_cv_type_uint64_t+set}" = set; then
14504   echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506   cat >conftest.$ac_ext <<_ACEOF
14507 /* confdefs.h.  */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h.  */
14512 $ac_includes_default
14513 typedef uint64_t ac__type_new_;
14514 int
14515 main ()
14516 {
14517 if ((ac__type_new_ *) 0)
14518   return 0;
14519 if (sizeof (ac__type_new_))
14520   return 0;
14521   ;
14522   return 0;
14523 }
14524 _ACEOF
14525 rm -f conftest.$ac_objext
14526 if { (ac_try="$ac_compile"
14527 case "(($ac_try" in
14528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14529   *) ac_try_echo=$ac_try;;
14530 esac
14531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14532   (eval "$ac_compile") 2>conftest.er1
14533   ac_status=$?
14534   grep -v '^ *+' conftest.er1 >conftest.err
14535   rm -f conftest.er1
14536   cat conftest.err >&5
14537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); } &&
14539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14540   { (case "(($ac_try" in
14541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542   *) ac_try_echo=$ac_try;;
14543 esac
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545   (eval "$ac_try") 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); }; } &&
14549          { ac_try='test -s conftest.$ac_objext'
14550   { (case "(($ac_try" in
14551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552   *) ac_try_echo=$ac_try;;
14553 esac
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555   (eval "$ac_try") 2>&5
14556   ac_status=$?
14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); }; }; then
14559   ac_cv_type_uint64_t=yes
14560 else
14561   echo "$as_me: failed program was:" >&5
14562 sed 's/^/| /' conftest.$ac_ext >&5
14563
14564         ac_cv_type_uint64_t=no
14565 fi
14566
14567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14568 fi
14569 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14570 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14571 if test $ac_cv_type_uint64_t = yes; then
14572
14573 cat >>confdefs.h <<_ACEOF
14574 #define HAVE_UINT64_T 1
14575 _ACEOF
14576
14577
14578 else
14579   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14580 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14581 if test "${ac_cv_type_u_int64_t+set}" = set; then
14582   echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584   cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h.  */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h.  */
14590 $ac_includes_default
14591 typedef u_int64_t ac__type_new_;
14592 int
14593 main ()
14594 {
14595 if ((ac__type_new_ *) 0)
14596   return 0;
14597 if (sizeof (ac__type_new_))
14598   return 0;
14599   ;
14600   return 0;
14601 }
14602 _ACEOF
14603 rm -f conftest.$ac_objext
14604 if { (ac_try="$ac_compile"
14605 case "(($ac_try" in
14606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607   *) ac_try_echo=$ac_try;;
14608 esac
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610   (eval "$ac_compile") 2>conftest.er1
14611   ac_status=$?
14612   grep -v '^ *+' conftest.er1 >conftest.err
14613   rm -f conftest.er1
14614   cat conftest.err >&5
14615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616   (exit $ac_status); } &&
14617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14618   { (case "(($ac_try" in
14619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620   *) ac_try_echo=$ac_try;;
14621 esac
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623   (eval "$ac_try") 2>&5
14624   ac_status=$?
14625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626   (exit $ac_status); }; } &&
14627          { ac_try='test -s conftest.$ac_objext'
14628   { (case "(($ac_try" in
14629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630   *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633   (eval "$ac_try") 2>&5
14634   ac_status=$?
14635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636   (exit $ac_status); }; }; then
14637   ac_cv_type_u_int64_t=yes
14638 else
14639   echo "$as_me: failed program was:" >&5
14640 sed 's/^/| /' conftest.$ac_ext >&5
14641
14642         ac_cv_type_u_int64_t=no
14643 fi
14644
14645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14646 fi
14647 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14648 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14649 if test $ac_cv_type_u_int64_t = yes; then
14650
14651 cat >>confdefs.h <<_ACEOF
14652 #define HAVE_U_INT64_T 1
14653 _ACEOF
14654
14655
14656 else
14657   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14658 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14659    { (exit 1); exit 1; }; }
14660 fi
14661
14662 fi
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14674 do
14675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14676 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14679   echo $ECHO_N "(cached) $ECHO_C" >&6
14680 else
14681   cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h.  */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h.  */
14687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14689 #define $ac_func innocuous_$ac_func
14690
14691 /* System header to define __stub macros and hopefully few prototypes,
14692     which can conflict with char $ac_func (); below.
14693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14694     <limits.h> exists even on freestanding compilers.  */
14695
14696 #ifdef __STDC__
14697 # include <limits.h>
14698 #else
14699 # include <assert.h>
14700 #endif
14701
14702 #undef $ac_func
14703
14704 /* Override any GCC internal prototype to avoid an error.
14705    Use char because int might match the return type of a GCC
14706    builtin and then its argument prototype would still apply.  */
14707 #ifdef __cplusplus
14708 extern "C"
14709 #endif
14710 char $ac_func ();
14711 /* The GNU C library defines this for functions which it implements
14712     to always fail with ENOSYS.  Some functions are actually named
14713     something starting with __ and the normal name is an alias.  */
14714 #if defined __stub_$ac_func || defined __stub___$ac_func
14715 choke me
14716 #endif
14717
14718 int
14719 main ()
14720 {
14721 return $ac_func ();
14722   ;
14723   return 0;
14724 }
14725 _ACEOF
14726 rm -f conftest.$ac_objext conftest$ac_exeext
14727 if { (ac_try="$ac_link"
14728 case "(($ac_try" in
14729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730   *) ac_try_echo=$ac_try;;
14731 esac
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733   (eval "$ac_link") 2>conftest.er1
14734   ac_status=$?
14735   grep -v '^ *+' conftest.er1 >conftest.err
14736   rm -f conftest.er1
14737   cat conftest.err >&5
14738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739   (exit $ac_status); } &&
14740          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14741   { (case "(($ac_try" in
14742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14743   *) ac_try_echo=$ac_try;;
14744 esac
14745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14746   (eval "$ac_try") 2>&5
14747   ac_status=$?
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); }; } &&
14750          { ac_try='test -s conftest$ac_exeext'
14751   { (case "(($ac_try" in
14752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753   *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756   (eval "$ac_try") 2>&5
14757   ac_status=$?
14758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759   (exit $ac_status); }; }; then
14760   eval "$as_ac_var=yes"
14761 else
14762   echo "$as_me: failed program was:" >&5
14763 sed 's/^/| /' conftest.$ac_ext >&5
14764
14765         eval "$as_ac_var=no"
14766 fi
14767
14768 rm -f core conftest.err conftest.$ac_objext \
14769       conftest$ac_exeext conftest.$ac_ext
14770 fi
14771 ac_res=`eval echo '${'$as_ac_var'}'`
14772                { echo "$as_me:$LINENO: result: $ac_res" >&5
14773 echo "${ECHO_T}$ac_res" >&6; }
14774 if test `eval echo '${'$as_ac_var'}'` = yes; then
14775   cat >>confdefs.h <<_ACEOF
14776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14777 _ACEOF
14778
14779 fi
14780 done
14781
14782
14783
14784
14785
14786 for ac_func in powf fmodf strtof round
14787 do
14788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14792   echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794   cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h.  */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h.  */
14800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14801    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14802 #define $ac_func innocuous_$ac_func
14803
14804 /* System header to define __stub macros and hopefully few prototypes,
14805     which can conflict with char $ac_func (); below.
14806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14807     <limits.h> exists even on freestanding compilers.  */
14808
14809 #ifdef __STDC__
14810 # include <limits.h>
14811 #else
14812 # include <assert.h>
14813 #endif
14814
14815 #undef $ac_func
14816
14817 /* Override any GCC internal prototype to avoid an error.
14818    Use char because int might match the return type of a GCC
14819    builtin and then its argument prototype would still apply.  */
14820 #ifdef __cplusplus
14821 extern "C"
14822 #endif
14823 char $ac_func ();
14824 /* The GNU C library defines this for functions which it implements
14825     to always fail with ENOSYS.  Some functions are actually named
14826     something starting with __ and the normal name is an alias.  */
14827 #if defined __stub_$ac_func || defined __stub___$ac_func
14828 choke me
14829 #endif
14830
14831 int
14832 main ()
14833 {
14834 return $ac_func ();
14835   ;
14836   return 0;
14837 }
14838 _ACEOF
14839 rm -f conftest.$ac_objext conftest$ac_exeext
14840 if { (ac_try="$ac_link"
14841 case "(($ac_try" in
14842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843   *) ac_try_echo=$ac_try;;
14844 esac
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846   (eval "$ac_link") 2>conftest.er1
14847   ac_status=$?
14848   grep -v '^ *+' conftest.er1 >conftest.err
14849   rm -f conftest.er1
14850   cat conftest.err >&5
14851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852   (exit $ac_status); } &&
14853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14854   { (case "(($ac_try" in
14855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856   *) ac_try_echo=$ac_try;;
14857 esac
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859   (eval "$ac_try") 2>&5
14860   ac_status=$?
14861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862   (exit $ac_status); }; } &&
14863          { ac_try='test -s conftest$ac_exeext'
14864   { (case "(($ac_try" in
14865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866   *) ac_try_echo=$ac_try;;
14867 esac
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869   (eval "$ac_try") 2>&5
14870   ac_status=$?
14871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14872   (exit $ac_status); }; }; then
14873   eval "$as_ac_var=yes"
14874 else
14875   echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14877
14878         eval "$as_ac_var=no"
14879 fi
14880
14881 rm -f core conftest.err conftest.$ac_objext \
14882       conftest$ac_exeext conftest.$ac_ext
14883 fi
14884 ac_res=`eval echo '${'$as_ac_var'}'`
14885                { echo "$as_me:$LINENO: result: $ac_res" >&5
14886 echo "${ECHO_T}$ac_res" >&6; }
14887 if test `eval echo '${'$as_ac_var'}'` = yes; then
14888   cat >>confdefs.h <<_ACEOF
14889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14890 _ACEOF
14891
14892 fi
14893 done
14894
14895
14896
14897
14898
14899
14900 for ac_func in log log2 log10 exp exp2
14901 do
14902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908   cat >conftest.$ac_ext <<_ACEOF
14909 /* confdefs.h.  */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h.  */
14914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14916 #define $ac_func innocuous_$ac_func
14917
14918 /* System header to define __stub macros and hopefully few prototypes,
14919     which can conflict with char $ac_func (); below.
14920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14921     <limits.h> exists even on freestanding compilers.  */
14922
14923 #ifdef __STDC__
14924 # include <limits.h>
14925 #else
14926 # include <assert.h>
14927 #endif
14928
14929 #undef $ac_func
14930
14931 /* Override any GCC internal prototype to avoid an error.
14932    Use char because int might match the return type of a GCC
14933    builtin and then its argument prototype would still apply.  */
14934 #ifdef __cplusplus
14935 extern "C"
14936 #endif
14937 char $ac_func ();
14938 /* The GNU C library defines this for functions which it implements
14939     to always fail with ENOSYS.  Some functions are actually named
14940     something starting with __ and the normal name is an alias.  */
14941 #if defined __stub_$ac_func || defined __stub___$ac_func
14942 choke me
14943 #endif
14944
14945 int
14946 main ()
14947 {
14948 return $ac_func ();
14949   ;
14950   return 0;
14951 }
14952 _ACEOF
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 if { (ac_try="$ac_link"
14955 case "(($ac_try" in
14956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957   *) ac_try_echo=$ac_try;;
14958 esac
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960   (eval "$ac_link") 2>conftest.er1
14961   ac_status=$?
14962   grep -v '^ *+' conftest.er1 >conftest.err
14963   rm -f conftest.er1
14964   cat conftest.err >&5
14965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966   (exit $ac_status); } &&
14967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14968   { (case "(($ac_try" in
14969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970   *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973   (eval "$ac_try") 2>&5
14974   ac_status=$?
14975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976   (exit $ac_status); }; } &&
14977          { ac_try='test -s conftest$ac_exeext'
14978   { (case "(($ac_try" in
14979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14980   *) ac_try_echo=$ac_try;;
14981 esac
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983   (eval "$ac_try") 2>&5
14984   ac_status=$?
14985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14986   (exit $ac_status); }; }; then
14987   eval "$as_ac_var=yes"
14988 else
14989   echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14991
14992         eval "$as_ac_var=no"
14993 fi
14994
14995 rm -f core conftest.err conftest.$ac_objext \
14996       conftest$ac_exeext conftest.$ac_ext
14997 fi
14998 ac_res=`eval echo '${'$as_ac_var'}'`
14999                { echo "$as_me:$LINENO: result: $ac_res" >&5
15000 echo "${ECHO_T}$ac_res" >&6; }
15001 if test `eval echo '${'$as_ac_var'}'` = yes; then
15002   cat >>confdefs.h <<_ACEOF
15003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15004 _ACEOF
15005
15006 fi
15007 done
15008
15009
15010
15011
15012
15013
15014 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
15015 do
15016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15020   echo $ECHO_N "(cached) $ECHO_C" >&6
15021 else
15022   cat >conftest.$ac_ext <<_ACEOF
15023 /* confdefs.h.  */
15024 _ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h.  */
15028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15030 #define $ac_func innocuous_$ac_func
15031
15032 /* System header to define __stub macros and hopefully few prototypes,
15033     which can conflict with char $ac_func (); below.
15034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15035     <limits.h> exists even on freestanding compilers.  */
15036
15037 #ifdef __STDC__
15038 # include <limits.h>
15039 #else
15040 # include <assert.h>
15041 #endif
15042
15043 #undef $ac_func
15044
15045 /* Override any GCC internal prototype to avoid an error.
15046    Use char because int might match the return type of a GCC
15047    builtin and then its argument prototype would still apply.  */
15048 #ifdef __cplusplus
15049 extern "C"
15050 #endif
15051 char $ac_func ();
15052 /* The GNU C library defines this for functions which it implements
15053     to always fail with ENOSYS.  Some functions are actually named
15054     something starting with __ and the normal name is an alias.  */
15055 #if defined __stub_$ac_func || defined __stub___$ac_func
15056 choke me
15057 #endif
15058
15059 int
15060 main ()
15061 {
15062 return $ac_func ();
15063   ;
15064   return 0;
15065 }
15066 _ACEOF
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (ac_try="$ac_link"
15069 case "(($ac_try" in
15070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071   *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074   (eval "$ac_link") 2>conftest.er1
15075   ac_status=$?
15076   grep -v '^ *+' conftest.er1 >conftest.err
15077   rm -f conftest.er1
15078   cat conftest.err >&5
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); } &&
15081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15082   { (case "(($ac_try" in
15083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084   *) ac_try_echo=$ac_try;;
15085 esac
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087   (eval "$ac_try") 2>&5
15088   ac_status=$?
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); }; } &&
15091          { ac_try='test -s conftest$ac_exeext'
15092   { (case "(($ac_try" in
15093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094   *) ac_try_echo=$ac_try;;
15095 esac
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097   (eval "$ac_try") 2>&5
15098   ac_status=$?
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); }; }; then
15101   eval "$as_ac_var=yes"
15102 else
15103   echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15105
15106         eval "$as_ac_var=no"
15107 fi
15108
15109 rm -f core conftest.err conftest.$ac_objext \
15110       conftest$ac_exeext conftest.$ac_ext
15111 fi
15112 ac_res=`eval echo '${'$as_ac_var'}'`
15113                { echo "$as_me:$LINENO: result: $ac_res" >&5
15114 echo "${ECHO_T}$ac_res" >&6; }
15115 if test `eval echo '${'$as_ac_var'}'` = yes; then
15116   cat >>confdefs.h <<_ACEOF
15117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15118 _ACEOF
15119
15120 fi
15121 done
15122
15123
15124
15125
15126 for ac_func in isatty mkdtemp mkstemp
15127 do
15128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15129 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15131 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15132   echo $ECHO_N "(cached) $ECHO_C" >&6
15133 else
15134   cat >conftest.$ac_ext <<_ACEOF
15135 /* confdefs.h.  */
15136 _ACEOF
15137 cat confdefs.h >>conftest.$ac_ext
15138 cat >>conftest.$ac_ext <<_ACEOF
15139 /* end confdefs.h.  */
15140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15141    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15142 #define $ac_func innocuous_$ac_func
15143
15144 /* System header to define __stub macros and hopefully few prototypes,
15145     which can conflict with char $ac_func (); below.
15146     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15147     <limits.h> exists even on freestanding compilers.  */
15148
15149 #ifdef __STDC__
15150 # include <limits.h>
15151 #else
15152 # include <assert.h>
15153 #endif
15154
15155 #undef $ac_func
15156
15157 /* Override any GCC internal prototype to avoid an error.
15158    Use char because int might match the return type of a GCC
15159    builtin and then its argument prototype would still apply.  */
15160 #ifdef __cplusplus
15161 extern "C"
15162 #endif
15163 char $ac_func ();
15164 /* The GNU C library defines this for functions which it implements
15165     to always fail with ENOSYS.  Some functions are actually named
15166     something starting with __ and the normal name is an alias.  */
15167 #if defined __stub_$ac_func || defined __stub___$ac_func
15168 choke me
15169 #endif
15170
15171 int
15172 main ()
15173 {
15174 return $ac_func ();
15175   ;
15176   return 0;
15177 }
15178 _ACEOF
15179 rm -f conftest.$ac_objext conftest$ac_exeext
15180 if { (ac_try="$ac_link"
15181 case "(($ac_try" in
15182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15183   *) ac_try_echo=$ac_try;;
15184 esac
15185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15186   (eval "$ac_link") 2>conftest.er1
15187   ac_status=$?
15188   grep -v '^ *+' conftest.er1 >conftest.err
15189   rm -f conftest.er1
15190   cat conftest.err >&5
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); } &&
15193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15194   { (case "(($ac_try" in
15195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196   *) ac_try_echo=$ac_try;;
15197 esac
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199   (eval "$ac_try") 2>&5
15200   ac_status=$?
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); }; } &&
15203          { ac_try='test -s conftest$ac_exeext'
15204   { (case "(($ac_try" in
15205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15206   *) ac_try_echo=$ac_try;;
15207 esac
15208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15209   (eval "$ac_try") 2>&5
15210   ac_status=$?
15211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212   (exit $ac_status); }; }; then
15213   eval "$as_ac_var=yes"
15214 else
15215   echo "$as_me: failed program was:" >&5
15216 sed 's/^/| /' conftest.$ac_ext >&5
15217
15218         eval "$as_ac_var=no"
15219 fi
15220
15221 rm -f core conftest.err conftest.$ac_objext \
15222       conftest$ac_exeext conftest.$ac_ext
15223 fi
15224 ac_res=`eval echo '${'$as_ac_var'}'`
15225                { echo "$as_me:$LINENO: result: $ac_res" >&5
15226 echo "${ECHO_T}$ac_res" >&6; }
15227 if test `eval echo '${'$as_ac_var'}'` = yes; then
15228   cat >>confdefs.h <<_ACEOF
15229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15230 _ACEOF
15231
15232 fi
15233 done
15234
15235
15236
15237
15238
15239
15240
15241 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
15242 do
15243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15244 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15246 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15247   echo $ECHO_N "(cached) $ECHO_C" >&6
15248 else
15249   cat >conftest.$ac_ext <<_ACEOF
15250 /* confdefs.h.  */
15251 _ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h.  */
15255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15257 #define $ac_func innocuous_$ac_func
15258
15259 /* System header to define __stub macros and hopefully few prototypes,
15260     which can conflict with char $ac_func (); below.
15261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15262     <limits.h> exists even on freestanding compilers.  */
15263
15264 #ifdef __STDC__
15265 # include <limits.h>
15266 #else
15267 # include <assert.h>
15268 #endif
15269
15270 #undef $ac_func
15271
15272 /* Override any GCC internal prototype to avoid an error.
15273    Use char because int might match the return type of a GCC
15274    builtin and then its argument prototype would still apply.  */
15275 #ifdef __cplusplus
15276 extern "C"
15277 #endif
15278 char $ac_func ();
15279 /* The GNU C library defines this for functions which it implements
15280     to always fail with ENOSYS.  Some functions are actually named
15281     something starting with __ and the normal name is an alias.  */
15282 #if defined __stub_$ac_func || defined __stub___$ac_func
15283 choke me
15284 #endif
15285
15286 int
15287 main ()
15288 {
15289 return $ac_func ();
15290   ;
15291   return 0;
15292 }
15293 _ACEOF
15294 rm -f conftest.$ac_objext conftest$ac_exeext
15295 if { (ac_try="$ac_link"
15296 case "(($ac_try" in
15297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298   *) ac_try_echo=$ac_try;;
15299 esac
15300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15301   (eval "$ac_link") 2>conftest.er1
15302   ac_status=$?
15303   grep -v '^ *+' conftest.er1 >conftest.err
15304   rm -f conftest.er1
15305   cat conftest.err >&5
15306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307   (exit $ac_status); } &&
15308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15309   { (case "(($ac_try" in
15310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15311   *) ac_try_echo=$ac_try;;
15312 esac
15313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15314   (eval "$ac_try") 2>&5
15315   ac_status=$?
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); }; } &&
15318          { ac_try='test -s conftest$ac_exeext'
15319   { (case "(($ac_try" in
15320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15321   *) ac_try_echo=$ac_try;;
15322 esac
15323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15324   (eval "$ac_try") 2>&5
15325   ac_status=$?
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); }; }; then
15328   eval "$as_ac_var=yes"
15329 else
15330   echo "$as_me: failed program was:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15332
15333         eval "$as_ac_var=no"
15334 fi
15335
15336 rm -f core conftest.err conftest.$ac_objext \
15337       conftest$ac_exeext conftest.$ac_ext
15338 fi
15339 ac_res=`eval echo '${'$as_ac_var'}'`
15340                { echo "$as_me:$LINENO: result: $ac_res" >&5
15341 echo "${ECHO_T}$ac_res" >&6; }
15342 if test `eval echo '${'$as_ac_var'}'` = yes; then
15343   cat >>confdefs.h <<_ACEOF
15344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15345 _ACEOF
15346
15347 fi
15348 done
15349
15350
15351
15352
15353 for ac_func in strerror strerror_r setenv
15354 do
15355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15359   echo $ECHO_N "(cached) $ECHO_C" >&6
15360 else
15361   cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h.  */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h.  */
15367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15369 #define $ac_func innocuous_$ac_func
15370
15371 /* System header to define __stub macros and hopefully few prototypes,
15372     which can conflict with char $ac_func (); below.
15373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15374     <limits.h> exists even on freestanding compilers.  */
15375
15376 #ifdef __STDC__
15377 # include <limits.h>
15378 #else
15379 # include <assert.h>
15380 #endif
15381
15382 #undef $ac_func
15383
15384 /* Override any GCC internal prototype to avoid an error.
15385    Use char because int might match the return type of a GCC
15386    builtin and then its argument prototype would still apply.  */
15387 #ifdef __cplusplus
15388 extern "C"
15389 #endif
15390 char $ac_func ();
15391 /* The GNU C library defines this for functions which it implements
15392     to always fail with ENOSYS.  Some functions are actually named
15393     something starting with __ and the normal name is an alias.  */
15394 #if defined __stub_$ac_func || defined __stub___$ac_func
15395 choke me
15396 #endif
15397
15398 int
15399 main ()
15400 {
15401 return $ac_func ();
15402   ;
15403   return 0;
15404 }
15405 _ACEOF
15406 rm -f conftest.$ac_objext conftest$ac_exeext
15407 if { (ac_try="$ac_link"
15408 case "(($ac_try" in
15409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410   *) ac_try_echo=$ac_try;;
15411 esac
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413   (eval "$ac_link") 2>conftest.er1
15414   ac_status=$?
15415   grep -v '^ *+' conftest.er1 >conftest.err
15416   rm -f conftest.er1
15417   cat conftest.err >&5
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); } &&
15420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15421   { (case "(($ac_try" in
15422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15423   *) ac_try_echo=$ac_try;;
15424 esac
15425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15426   (eval "$ac_try") 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; } &&
15430          { ac_try='test -s conftest$ac_exeext'
15431   { (case "(($ac_try" in
15432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433   *) ac_try_echo=$ac_try;;
15434 esac
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436   (eval "$ac_try") 2>&5
15437   ac_status=$?
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); }; }; then
15440   eval "$as_ac_var=yes"
15441 else
15442   echo "$as_me: failed program was:" >&5
15443 sed 's/^/| /' conftest.$ac_ext >&5
15444
15445         eval "$as_ac_var=no"
15446 fi
15447
15448 rm -f core conftest.err conftest.$ac_objext \
15449       conftest$ac_exeext conftest.$ac_ext
15450 fi
15451 ac_res=`eval echo '${'$as_ac_var'}'`
15452                { echo "$as_me:$LINENO: result: $ac_res" >&5
15453 echo "${ECHO_T}$ac_res" >&6; }
15454 if test `eval echo '${'$as_ac_var'}'` = yes; then
15455   cat >>confdefs.h <<_ACEOF
15456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15457 _ACEOF
15458
15459 fi
15460 done
15461
15462
15463
15464
15465
15466 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
15467 do
15468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15472   echo $ECHO_N "(cached) $ECHO_C" >&6
15473 else
15474   cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h.  */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h.  */
15480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15482 #define $ac_func innocuous_$ac_func
15483
15484 /* System header to define __stub macros and hopefully few prototypes,
15485     which can conflict with char $ac_func (); below.
15486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15487     <limits.h> exists even on freestanding compilers.  */
15488
15489 #ifdef __STDC__
15490 # include <limits.h>
15491 #else
15492 # include <assert.h>
15493 #endif
15494
15495 #undef $ac_func
15496
15497 /* Override any GCC internal prototype to avoid an error.
15498    Use char because int might match the return type of a GCC
15499    builtin and then its argument prototype would still apply.  */
15500 #ifdef __cplusplus
15501 extern "C"
15502 #endif
15503 char $ac_func ();
15504 /* The GNU C library defines this for functions which it implements
15505     to always fail with ENOSYS.  Some functions are actually named
15506     something starting with __ and the normal name is an alias.  */
15507 #if defined __stub_$ac_func || defined __stub___$ac_func
15508 choke me
15509 #endif
15510
15511 int
15512 main ()
15513 {
15514 return $ac_func ();
15515   ;
15516   return 0;
15517 }
15518 _ACEOF
15519 rm -f conftest.$ac_objext conftest$ac_exeext
15520 if { (ac_try="$ac_link"
15521 case "(($ac_try" in
15522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523   *) ac_try_echo=$ac_try;;
15524 esac
15525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526   (eval "$ac_link") 2>conftest.er1
15527   ac_status=$?
15528   grep -v '^ *+' conftest.er1 >conftest.err
15529   rm -f conftest.er1
15530   cat conftest.err >&5
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); } &&
15533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15534   { (case "(($ac_try" in
15535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536   *) ac_try_echo=$ac_try;;
15537 esac
15538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15539   (eval "$ac_try") 2>&5
15540   ac_status=$?
15541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542   (exit $ac_status); }; } &&
15543          { ac_try='test -s conftest$ac_exeext'
15544   { (case "(($ac_try" in
15545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546   *) ac_try_echo=$ac_try;;
15547 esac
15548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15549   (eval "$ac_try") 2>&5
15550   ac_status=$?
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); }; }; then
15553   eval "$as_ac_var=yes"
15554 else
15555   echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558         eval "$as_ac_var=no"
15559 fi
15560
15561 rm -f core conftest.err conftest.$ac_objext \
15562       conftest$ac_exeext conftest.$ac_ext
15563 fi
15564 ac_res=`eval echo '${'$as_ac_var'}'`
15565                { echo "$as_me:$LINENO: result: $ac_res" >&5
15566 echo "${ECHO_T}$ac_res" >&6; }
15567 if test `eval echo '${'$as_ac_var'}'` = yes; then
15568   cat >>confdefs.h <<_ACEOF
15569 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15570 _ACEOF
15571
15572 fi
15573 done
15574
15575
15576
15577
15578
15579
15580 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15581 do
15582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15583 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15585 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15586   echo $ECHO_N "(cached) $ECHO_C" >&6
15587 else
15588   cat >conftest.$ac_ext <<_ACEOF
15589 /* confdefs.h.  */
15590 _ACEOF
15591 cat confdefs.h >>conftest.$ac_ext
15592 cat >>conftest.$ac_ext <<_ACEOF
15593 /* end confdefs.h.  */
15594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15595    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15596 #define $ac_func innocuous_$ac_func
15597
15598 /* System header to define __stub macros and hopefully few prototypes,
15599     which can conflict with char $ac_func (); below.
15600     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15601     <limits.h> exists even on freestanding compilers.  */
15602
15603 #ifdef __STDC__
15604 # include <limits.h>
15605 #else
15606 # include <assert.h>
15607 #endif
15608
15609 #undef $ac_func
15610
15611 /* Override any GCC internal prototype to avoid an error.
15612    Use char because int might match the return type of a GCC
15613    builtin and then its argument prototype would still apply.  */
15614 #ifdef __cplusplus
15615 extern "C"
15616 #endif
15617 char $ac_func ();
15618 /* The GNU C library defines this for functions which it implements
15619     to always fail with ENOSYS.  Some functions are actually named
15620     something starting with __ and the normal name is an alias.  */
15621 #if defined __stub_$ac_func || defined __stub___$ac_func
15622 choke me
15623 #endif
15624
15625 int
15626 main ()
15627 {
15628 return $ac_func ();
15629   ;
15630   return 0;
15631 }
15632 _ACEOF
15633 rm -f conftest.$ac_objext conftest$ac_exeext
15634 if { (ac_try="$ac_link"
15635 case "(($ac_try" in
15636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15637   *) ac_try_echo=$ac_try;;
15638 esac
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640   (eval "$ac_link") 2>conftest.er1
15641   ac_status=$?
15642   grep -v '^ *+' conftest.er1 >conftest.err
15643   rm -f conftest.er1
15644   cat conftest.err >&5
15645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646   (exit $ac_status); } &&
15647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15648   { (case "(($ac_try" in
15649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650   *) ac_try_echo=$ac_try;;
15651 esac
15652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15653   (eval "$ac_try") 2>&5
15654   ac_status=$?
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); }; } &&
15657          { ac_try='test -s conftest$ac_exeext'
15658   { (case "(($ac_try" in
15659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660   *) ac_try_echo=$ac_try;;
15661 esac
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663   (eval "$ac_try") 2>&5
15664   ac_status=$?
15665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666   (exit $ac_status); }; }; then
15667   eval "$as_ac_var=yes"
15668 else
15669   echo "$as_me: failed program was:" >&5
15670 sed 's/^/| /' conftest.$ac_ext >&5
15671
15672         eval "$as_ac_var=no"
15673 fi
15674
15675 rm -f core conftest.err conftest.$ac_objext \
15676       conftest$ac_exeext conftest.$ac_ext
15677 fi
15678 ac_res=`eval echo '${'$as_ac_var'}'`
15679                { echo "$as_me:$LINENO: result: $ac_res" >&5
15680 echo "${ECHO_T}$ac_res" >&6; }
15681 if test `eval echo '${'$as_ac_var'}'` = yes; then
15682   cat >>confdefs.h <<_ACEOF
15683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15684 _ACEOF
15685
15686 fi
15687 done
15688
15689
15690
15691 for ac_func in futimes futimens
15692 do
15693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15697   echo $ECHO_N "(cached) $ECHO_C" >&6
15698 else
15699   cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h.  */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h.  */
15705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15707 #define $ac_func innocuous_$ac_func
15708
15709 /* System header to define __stub macros and hopefully few prototypes,
15710     which can conflict with char $ac_func (); below.
15711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15712     <limits.h> exists even on freestanding compilers.  */
15713
15714 #ifdef __STDC__
15715 # include <limits.h>
15716 #else
15717 # include <assert.h>
15718 #endif
15719
15720 #undef $ac_func
15721
15722 /* Override any GCC internal prototype to avoid an error.
15723    Use char because int might match the return type of a GCC
15724    builtin and then its argument prototype would still apply.  */
15725 #ifdef __cplusplus
15726 extern "C"
15727 #endif
15728 char $ac_func ();
15729 /* The GNU C library defines this for functions which it implements
15730     to always fail with ENOSYS.  Some functions are actually named
15731     something starting with __ and the normal name is an alias.  */
15732 #if defined __stub_$ac_func || defined __stub___$ac_func
15733 choke me
15734 #endif
15735
15736 int
15737 main ()
15738 {
15739 return $ac_func ();
15740   ;
15741   return 0;
15742 }
15743 _ACEOF
15744 rm -f conftest.$ac_objext conftest$ac_exeext
15745 if { (ac_try="$ac_link"
15746 case "(($ac_try" in
15747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748   *) ac_try_echo=$ac_try;;
15749 esac
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751   (eval "$ac_link") 2>conftest.er1
15752   ac_status=$?
15753   grep -v '^ *+' conftest.er1 >conftest.err
15754   rm -f conftest.er1
15755   cat conftest.err >&5
15756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757   (exit $ac_status); } &&
15758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15759   { (case "(($ac_try" in
15760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761   *) ac_try_echo=$ac_try;;
15762 esac
15763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15764   (eval "$ac_try") 2>&5
15765   ac_status=$?
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); }; } &&
15768          { ac_try='test -s conftest$ac_exeext'
15769   { (case "(($ac_try" in
15770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15771   *) ac_try_echo=$ac_try;;
15772 esac
15773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15774   (eval "$ac_try") 2>&5
15775   ac_status=$?
15776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777   (exit $ac_status); }; }; then
15778   eval "$as_ac_var=yes"
15779 else
15780   echo "$as_me: failed program was:" >&5
15781 sed 's/^/| /' conftest.$ac_ext >&5
15782
15783         eval "$as_ac_var=no"
15784 fi
15785
15786 rm -f core conftest.err conftest.$ac_objext \
15787       conftest$ac_exeext conftest.$ac_ext
15788 fi
15789 ac_res=`eval echo '${'$as_ac_var'}'`
15790                { echo "$as_me:$LINENO: result: $ac_res" >&5
15791 echo "${ECHO_T}$ac_res" >&6; }
15792 if test `eval echo '${'$as_ac_var'}'` = yes; then
15793   cat >>confdefs.h <<_ACEOF
15794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15795 _ACEOF
15796
15797 fi
15798 done
15799
15800 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15801 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15802 if test "${llvm_cv_c_printf_a+set}" = set; then
15803   echo $ECHO_N "(cached) $ECHO_C" >&6
15804 else
15805   ac_ext=c
15806 ac_cpp='$CPP $CPPFLAGS'
15807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15810
15811  if test "$cross_compiling" = yes; then
15812   llvmac_cv_c_printf_a=no
15813 else
15814   cat >conftest.$ac_ext <<_ACEOF
15815
15816   /* confdefs.h.  */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h.  */
15821
15822 #include <stdio.h>
15823 #include <stdlib.h>
15824
15825 int
15826 main ()
15827 {
15828
15829 volatile double A, B;
15830 char Buffer[100];
15831 A = 1;
15832 A /= 10.0;
15833 sprintf(Buffer, "%a", A);
15834 B = atof(Buffer);
15835 if (A != B)
15836   return (1);
15837 if (A != 0x1.999999999999ap-4)
15838   return (1);
15839 return (0);
15840   ;
15841   return 0;
15842 }
15843 _ACEOF
15844 rm -f conftest$ac_exeext
15845 if { (ac_try="$ac_link"
15846 case "(($ac_try" in
15847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848   *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851   (eval "$ac_link") 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15855   { (case "(($ac_try" in
15856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857   *) ac_try_echo=$ac_try;;
15858 esac
15859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15860   (eval "$ac_try") 2>&5
15861   ac_status=$?
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); }; }; then
15864   llvm_cv_c_printf_a=yes
15865 else
15866   echo "$as_me: program exited with status $ac_status" >&5
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15869
15870 ( exit $ac_status )
15871 llvmac_cv_c_printf_a=no
15872 fi
15873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15874 fi
15875
15876
15877  ac_ext=c
15878 ac_cpp='$CPP $CPPFLAGS'
15879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15882
15883 fi
15884 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15885 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15886  if test "$llvm_cv_c_printf_a" = "yes"; then
15887
15888 cat >>confdefs.h <<\_ACEOF
15889 #define HAVE_PRINTF_A 1
15890 _ACEOF
15891
15892  fi
15893
15894
15895
15896   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15897 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15898 if test "${ac_cv_func_rand48+set}" = set; then
15899   echo $ECHO_N "(cached) $ECHO_C" >&6
15900 else
15901
15902     ac_ext=cpp
15903 ac_cpp='$CXXCPP $CPPFLAGS'
15904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15907
15908     cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h.  */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h.  */
15914 #include <stdlib.h>
15915 int
15916 main ()
15917 {
15918 srand48(0);lrand48();drand48();
15919   ;
15920   return 0;
15921 }
15922 _ACEOF
15923 rm -f conftest.$ac_objext
15924 if { (ac_try="$ac_compile"
15925 case "(($ac_try" in
15926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927   *) ac_try_echo=$ac_try;;
15928 esac
15929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15930   (eval "$ac_compile") 2>conftest.er1
15931   ac_status=$?
15932   grep -v '^ *+' conftest.er1 >conftest.err
15933   rm -f conftest.er1
15934   cat conftest.err >&5
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); } &&
15937          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15938   { (case "(($ac_try" in
15939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940   *) ac_try_echo=$ac_try;;
15941 esac
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943   (eval "$ac_try") 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); }; } &&
15947          { ac_try='test -s conftest.$ac_objext'
15948   { (case "(($ac_try" in
15949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950   *) ac_try_echo=$ac_try;;
15951 esac
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953   (eval "$ac_try") 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; }; then
15957   ac_cv_func_rand48=yes
15958 else
15959   echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15961
15962         ac_cv_func_rand48=no
15963 fi
15964
15965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15966     ac_ext=c
15967 ac_cpp='$CPP $CPPFLAGS'
15968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15971
15972
15973 fi
15974 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15975 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15976
15977 if test "$ac_cv_func_rand48" = "yes" ; then
15978
15979 cat >>confdefs.h <<\_ACEOF
15980 #define HAVE_RAND48 1
15981 _ACEOF
15982
15983 fi
15984
15985
15986 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15987 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15988 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15989   echo $ECHO_N "(cached) $ECHO_C" >&6
15990 else
15991   cat >conftest.$ac_ext <<_ACEOF
15992 /* confdefs.h.  */
15993 _ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h.  */
15997 $ac_includes_default
15998 int
15999 main ()
16000 {
16001 #ifndef arc4random
16002   char *p = (char *) arc4random;
16003   return !p;
16004 #endif
16005
16006   ;
16007   return 0;
16008 }
16009 _ACEOF
16010 rm -f conftest.$ac_objext
16011 if { (ac_try="$ac_compile"
16012 case "(($ac_try" in
16013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014   *) ac_try_echo=$ac_try;;
16015 esac
16016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017   (eval "$ac_compile") 2>conftest.er1
16018   ac_status=$?
16019   grep -v '^ *+' conftest.er1 >conftest.err
16020   rm -f conftest.er1
16021   cat conftest.err >&5
16022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023   (exit $ac_status); } &&
16024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16025   { (case "(($ac_try" in
16026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027   *) ac_try_echo=$ac_try;;
16028 esac
16029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16030   (eval "$ac_try") 2>&5
16031   ac_status=$?
16032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033   (exit $ac_status); }; } &&
16034          { ac_try='test -s conftest.$ac_objext'
16035   { (case "(($ac_try" in
16036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037   *) ac_try_echo=$ac_try;;
16038 esac
16039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16040   (eval "$ac_try") 2>&5
16041   ac_status=$?
16042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043   (exit $ac_status); }; }; then
16044   ac_cv_have_decl_arc4random=yes
16045 else
16046   echo "$as_me: failed program was:" >&5
16047 sed 's/^/| /' conftest.$ac_ext >&5
16048
16049         ac_cv_have_decl_arc4random=no
16050 fi
16051
16052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16053 fi
16054 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
16055 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
16056 if test $ac_cv_have_decl_arc4random = yes; then
16057
16058 cat >>confdefs.h <<_ACEOF
16059 #define HAVE_DECL_ARC4RANDOM 1
16060 _ACEOF
16061
16062
16063 else
16064   cat >>confdefs.h <<_ACEOF
16065 #define HAVE_DECL_ARC4RANDOM 0
16066 _ACEOF
16067
16068
16069 fi
16070
16071
16072
16073 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16074 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16075 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16076   echo $ECHO_N "(cached) $ECHO_C" >&6
16077 else
16078   cat >conftest.$ac_ext <<_ACEOF
16079 /* confdefs.h.  */
16080 _ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h.  */
16084 $ac_includes_default
16085 int
16086 main ()
16087 {
16088 #ifndef strerror_s
16089   char *p = (char *) strerror_s;
16090   return !p;
16091 #endif
16092
16093   ;
16094   return 0;
16095 }
16096 _ACEOF
16097 rm -f conftest.$ac_objext
16098 if { (ac_try="$ac_compile"
16099 case "(($ac_try" in
16100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101   *) ac_try_echo=$ac_try;;
16102 esac
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104   (eval "$ac_compile") 2>conftest.er1
16105   ac_status=$?
16106   grep -v '^ *+' conftest.er1 >conftest.err
16107   rm -f conftest.er1
16108   cat conftest.err >&5
16109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110   (exit $ac_status); } &&
16111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16112   { (case "(($ac_try" in
16113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114   *) ac_try_echo=$ac_try;;
16115 esac
16116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16117   (eval "$ac_try") 2>&5
16118   ac_status=$?
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); }; } &&
16121          { ac_try='test -s conftest.$ac_objext'
16122   { (case "(($ac_try" in
16123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124   *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127   (eval "$ac_try") 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; }; then
16131   ac_cv_have_decl_strerror_s=yes
16132 else
16133   echo "$as_me: failed program was:" >&5
16134 sed 's/^/| /' conftest.$ac_ext >&5
16135
16136         ac_cv_have_decl_strerror_s=no
16137 fi
16138
16139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16140 fi
16141 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16142 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16143 if test $ac_cv_have_decl_strerror_s = yes; then
16144
16145 cat >>confdefs.h <<_ACEOF
16146 #define HAVE_DECL_STRERROR_S 1
16147 _ACEOF
16148
16149
16150 else
16151   cat >>confdefs.h <<_ACEOF
16152 #define HAVE_DECL_STRERROR_S 0
16153 _ACEOF
16154
16155
16156 fi
16157
16158
16159
16160 if test "$llvm_cv_os_type" = "MingW" ; then
16161   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16162 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16163 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16164   echo $ECHO_N "(cached) $ECHO_C" >&6
16165 else
16166   ac_check_lib_save_LIBS=$LIBS
16167 LIBS="-lgcc  $LIBS"
16168 cat >conftest.$ac_ext <<_ACEOF
16169 /* confdefs.h.  */
16170 _ACEOF
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h.  */
16174
16175 /* Override any GCC internal prototype to avoid an error.
16176    Use char because int might match the return type of a GCC
16177    builtin and then its argument prototype would still apply.  */
16178 #ifdef __cplusplus
16179 extern "C"
16180 #endif
16181 char _alloca ();
16182 int
16183 main ()
16184 {
16185 return _alloca ();
16186   ;
16187   return 0;
16188 }
16189 _ACEOF
16190 rm -f conftest.$ac_objext conftest$ac_exeext
16191 if { (ac_try="$ac_link"
16192 case "(($ac_try" in
16193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194   *) ac_try_echo=$ac_try;;
16195 esac
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197   (eval "$ac_link") 2>conftest.er1
16198   ac_status=$?
16199   grep -v '^ *+' conftest.er1 >conftest.err
16200   rm -f conftest.er1
16201   cat conftest.err >&5
16202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203   (exit $ac_status); } &&
16204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16205   { (case "(($ac_try" in
16206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16207   *) ac_try_echo=$ac_try;;
16208 esac
16209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16210   (eval "$ac_try") 2>&5
16211   ac_status=$?
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); }; } &&
16214          { ac_try='test -s conftest$ac_exeext'
16215   { (case "(($ac_try" in
16216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217   *) ac_try_echo=$ac_try;;
16218 esac
16219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220   (eval "$ac_try") 2>&5
16221   ac_status=$?
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); }; }; then
16224   ac_cv_lib_gcc__alloca=yes
16225 else
16226   echo "$as_me: failed program was:" >&5
16227 sed 's/^/| /' conftest.$ac_ext >&5
16228
16229         ac_cv_lib_gcc__alloca=no
16230 fi
16231
16232 rm -f core conftest.err conftest.$ac_objext \
16233       conftest$ac_exeext conftest.$ac_ext
16234 LIBS=$ac_check_lib_save_LIBS
16235 fi
16236 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16237 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16238 if test $ac_cv_lib_gcc__alloca = yes; then
16239
16240 cat >>confdefs.h <<\_ACEOF
16241 #define HAVE__ALLOCA 1
16242 _ACEOF
16243
16244 fi
16245
16246   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16247 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16248 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16249   echo $ECHO_N "(cached) $ECHO_C" >&6
16250 else
16251   ac_check_lib_save_LIBS=$LIBS
16252 LIBS="-lgcc  $LIBS"
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h.  */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h.  */
16259
16260 /* Override any GCC internal prototype to avoid an error.
16261    Use char because int might match the return type of a GCC
16262    builtin and then its argument prototype would still apply.  */
16263 #ifdef __cplusplus
16264 extern "C"
16265 #endif
16266 char __alloca ();
16267 int
16268 main ()
16269 {
16270 return __alloca ();
16271   ;
16272   return 0;
16273 }
16274 _ACEOF
16275 rm -f conftest.$ac_objext conftest$ac_exeext
16276 if { (ac_try="$ac_link"
16277 case "(($ac_try" in
16278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16279   *) ac_try_echo=$ac_try;;
16280 esac
16281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16282   (eval "$ac_link") 2>conftest.er1
16283   ac_status=$?
16284   grep -v '^ *+' conftest.er1 >conftest.err
16285   rm -f conftest.er1
16286   cat conftest.err >&5
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); } &&
16289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16290   { (case "(($ac_try" in
16291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292   *) ac_try_echo=$ac_try;;
16293 esac
16294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16295   (eval "$ac_try") 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); }; } &&
16299          { ac_try='test -s conftest$ac_exeext'
16300   { (case "(($ac_try" in
16301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302   *) ac_try_echo=$ac_try;;
16303 esac
16304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305   (eval "$ac_try") 2>&5
16306   ac_status=$?
16307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308   (exit $ac_status); }; }; then
16309   ac_cv_lib_gcc___alloca=yes
16310 else
16311   echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16313
16314         ac_cv_lib_gcc___alloca=no
16315 fi
16316
16317 rm -f core conftest.err conftest.$ac_objext \
16318       conftest$ac_exeext conftest.$ac_ext
16319 LIBS=$ac_check_lib_save_LIBS
16320 fi
16321 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16322 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16323 if test $ac_cv_lib_gcc___alloca = yes; then
16324
16325 cat >>confdefs.h <<\_ACEOF
16326 #define HAVE___ALLOCA 1
16327 _ACEOF
16328
16329 fi
16330
16331   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16332 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16333 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16334   echo $ECHO_N "(cached) $ECHO_C" >&6
16335 else
16336   ac_check_lib_save_LIBS=$LIBS
16337 LIBS="-lgcc  $LIBS"
16338 cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h.  */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h.  */
16344
16345 /* Override any GCC internal prototype to avoid an error.
16346    Use char because int might match the return type of a GCC
16347    builtin and then its argument prototype would still apply.  */
16348 #ifdef __cplusplus
16349 extern "C"
16350 #endif
16351 char __chkstk ();
16352 int
16353 main ()
16354 {
16355 return __chkstk ();
16356   ;
16357   return 0;
16358 }
16359 _ACEOF
16360 rm -f conftest.$ac_objext conftest$ac_exeext
16361 if { (ac_try="$ac_link"
16362 case "(($ac_try" in
16363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364   *) ac_try_echo=$ac_try;;
16365 esac
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367   (eval "$ac_link") 2>conftest.er1
16368   ac_status=$?
16369   grep -v '^ *+' conftest.er1 >conftest.err
16370   rm -f conftest.er1
16371   cat conftest.err >&5
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); } &&
16374          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16375   { (case "(($ac_try" in
16376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377   *) ac_try_echo=$ac_try;;
16378 esac
16379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380   (eval "$ac_try") 2>&5
16381   ac_status=$?
16382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383   (exit $ac_status); }; } &&
16384          { ac_try='test -s conftest$ac_exeext'
16385   { (case "(($ac_try" in
16386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387   *) ac_try_echo=$ac_try;;
16388 esac
16389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390   (eval "$ac_try") 2>&5
16391   ac_status=$?
16392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393   (exit $ac_status); }; }; then
16394   ac_cv_lib_gcc___chkstk=yes
16395 else
16396   echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16398
16399         ac_cv_lib_gcc___chkstk=no
16400 fi
16401
16402 rm -f core conftest.err conftest.$ac_objext \
16403       conftest$ac_exeext conftest.$ac_ext
16404 LIBS=$ac_check_lib_save_LIBS
16405 fi
16406 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16407 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16408 if test $ac_cv_lib_gcc___chkstk = yes; then
16409
16410 cat >>confdefs.h <<\_ACEOF
16411 #define HAVE___CHKSTK 1
16412 _ACEOF
16413
16414 fi
16415
16416   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16417 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16418 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16419   echo $ECHO_N "(cached) $ECHO_C" >&6
16420 else
16421   ac_check_lib_save_LIBS=$LIBS
16422 LIBS="-lgcc  $LIBS"
16423 cat >conftest.$ac_ext <<_ACEOF
16424 /* confdefs.h.  */
16425 _ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h.  */
16429
16430 /* Override any GCC internal prototype to avoid an error.
16431    Use char because int might match the return type of a GCC
16432    builtin and then its argument prototype would still apply.  */
16433 #ifdef __cplusplus
16434 extern "C"
16435 #endif
16436 char ___chkstk ();
16437 int
16438 main ()
16439 {
16440 return ___chkstk ();
16441   ;
16442   return 0;
16443 }
16444 _ACEOF
16445 rm -f conftest.$ac_objext conftest$ac_exeext
16446 if { (ac_try="$ac_link"
16447 case "(($ac_try" in
16448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449   *) ac_try_echo=$ac_try;;
16450 esac
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452   (eval "$ac_link") 2>conftest.er1
16453   ac_status=$?
16454   grep -v '^ *+' conftest.er1 >conftest.err
16455   rm -f conftest.er1
16456   cat conftest.err >&5
16457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); } &&
16459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16460   { (case "(($ac_try" in
16461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462   *) ac_try_echo=$ac_try;;
16463 esac
16464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465   (eval "$ac_try") 2>&5
16466   ac_status=$?
16467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468   (exit $ac_status); }; } &&
16469          { ac_try='test -s conftest$ac_exeext'
16470   { (case "(($ac_try" in
16471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472   *) ac_try_echo=$ac_try;;
16473 esac
16474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16475   (eval "$ac_try") 2>&5
16476   ac_status=$?
16477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478   (exit $ac_status); }; }; then
16479   ac_cv_lib_gcc____chkstk=yes
16480 else
16481   echo "$as_me: failed program was:" >&5
16482 sed 's/^/| /' conftest.$ac_ext >&5
16483
16484         ac_cv_lib_gcc____chkstk=no
16485 fi
16486
16487 rm -f core conftest.err conftest.$ac_objext \
16488       conftest$ac_exeext conftest.$ac_ext
16489 LIBS=$ac_check_lib_save_LIBS
16490 fi
16491 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16492 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16493 if test $ac_cv_lib_gcc____chkstk = yes; then
16494
16495 cat >>confdefs.h <<\_ACEOF
16496 #define HAVE____CHKSTK 1
16497 _ACEOF
16498
16499 fi
16500
16501
16502   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16503 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16504 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16505   echo $ECHO_N "(cached) $ECHO_C" >&6
16506 else
16507   ac_check_lib_save_LIBS=$LIBS
16508 LIBS="-lgcc  $LIBS"
16509 cat >conftest.$ac_ext <<_ACEOF
16510 /* confdefs.h.  */
16511 _ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h.  */
16515
16516 /* Override any GCC internal prototype to avoid an error.
16517    Use char because int might match the return type of a GCC
16518    builtin and then its argument prototype would still apply.  */
16519 #ifdef __cplusplus
16520 extern "C"
16521 #endif
16522 char __ashldi3 ();
16523 int
16524 main ()
16525 {
16526 return __ashldi3 ();
16527   ;
16528   return 0;
16529 }
16530 _ACEOF
16531 rm -f conftest.$ac_objext conftest$ac_exeext
16532 if { (ac_try="$ac_link"
16533 case "(($ac_try" in
16534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535   *) ac_try_echo=$ac_try;;
16536 esac
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538   (eval "$ac_link") 2>conftest.er1
16539   ac_status=$?
16540   grep -v '^ *+' conftest.er1 >conftest.err
16541   rm -f conftest.er1
16542   cat conftest.err >&5
16543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544   (exit $ac_status); } &&
16545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16546   { (case "(($ac_try" in
16547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548   *) ac_try_echo=$ac_try;;
16549 esac
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551   (eval "$ac_try") 2>&5
16552   ac_status=$?
16553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554   (exit $ac_status); }; } &&
16555          { ac_try='test -s conftest$ac_exeext'
16556   { (case "(($ac_try" in
16557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558   *) ac_try_echo=$ac_try;;
16559 esac
16560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16561   (eval "$ac_try") 2>&5
16562   ac_status=$?
16563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564   (exit $ac_status); }; }; then
16565   ac_cv_lib_gcc___ashldi3=yes
16566 else
16567   echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16569
16570         ac_cv_lib_gcc___ashldi3=no
16571 fi
16572
16573 rm -f core conftest.err conftest.$ac_objext \
16574       conftest$ac_exeext conftest.$ac_ext
16575 LIBS=$ac_check_lib_save_LIBS
16576 fi
16577 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16578 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16579 if test $ac_cv_lib_gcc___ashldi3 = yes; then
16580
16581 cat >>confdefs.h <<\_ACEOF
16582 #define HAVE___ASHLDI3 1
16583 _ACEOF
16584
16585 fi
16586
16587   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16588 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16589 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16590   echo $ECHO_N "(cached) $ECHO_C" >&6
16591 else
16592   ac_check_lib_save_LIBS=$LIBS
16593 LIBS="-lgcc  $LIBS"
16594 cat >conftest.$ac_ext <<_ACEOF
16595 /* confdefs.h.  */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h.  */
16600
16601 /* Override any GCC internal prototype to avoid an error.
16602    Use char because int might match the return type of a GCC
16603    builtin and then its argument prototype would still apply.  */
16604 #ifdef __cplusplus
16605 extern "C"
16606 #endif
16607 char __ashrdi3 ();
16608 int
16609 main ()
16610 {
16611 return __ashrdi3 ();
16612   ;
16613   return 0;
16614 }
16615 _ACEOF
16616 rm -f conftest.$ac_objext conftest$ac_exeext
16617 if { (ac_try="$ac_link"
16618 case "(($ac_try" in
16619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620   *) ac_try_echo=$ac_try;;
16621 esac
16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623   (eval "$ac_link") 2>conftest.er1
16624   ac_status=$?
16625   grep -v '^ *+' conftest.er1 >conftest.err
16626   rm -f conftest.er1
16627   cat conftest.err >&5
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); } &&
16630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16631   { (case "(($ac_try" in
16632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633   *) ac_try_echo=$ac_try;;
16634 esac
16635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636   (eval "$ac_try") 2>&5
16637   ac_status=$?
16638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639   (exit $ac_status); }; } &&
16640          { ac_try='test -s conftest$ac_exeext'
16641   { (case "(($ac_try" in
16642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643   *) ac_try_echo=$ac_try;;
16644 esac
16645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646   (eval "$ac_try") 2>&5
16647   ac_status=$?
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); }; }; then
16650   ac_cv_lib_gcc___ashrdi3=yes
16651 else
16652   echo "$as_me: failed program was:" >&5
16653 sed 's/^/| /' conftest.$ac_ext >&5
16654
16655         ac_cv_lib_gcc___ashrdi3=no
16656 fi
16657
16658 rm -f core conftest.err conftest.$ac_objext \
16659       conftest$ac_exeext conftest.$ac_ext
16660 LIBS=$ac_check_lib_save_LIBS
16661 fi
16662 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16663 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16664 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16665
16666 cat >>confdefs.h <<\_ACEOF
16667 #define HAVE___ASHRDI3 1
16668 _ACEOF
16669
16670 fi
16671
16672   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16673 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16674 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16675   echo $ECHO_N "(cached) $ECHO_C" >&6
16676 else
16677   ac_check_lib_save_LIBS=$LIBS
16678 LIBS="-lgcc  $LIBS"
16679 cat >conftest.$ac_ext <<_ACEOF
16680 /* confdefs.h.  */
16681 _ACEOF
16682 cat confdefs.h >>conftest.$ac_ext
16683 cat >>conftest.$ac_ext <<_ACEOF
16684 /* end confdefs.h.  */
16685
16686 /* Override any GCC internal prototype to avoid an error.
16687    Use char because int might match the return type of a GCC
16688    builtin and then its argument prototype would still apply.  */
16689 #ifdef __cplusplus
16690 extern "C"
16691 #endif
16692 char __divdi3 ();
16693 int
16694 main ()
16695 {
16696 return __divdi3 ();
16697   ;
16698   return 0;
16699 }
16700 _ACEOF
16701 rm -f conftest.$ac_objext conftest$ac_exeext
16702 if { (ac_try="$ac_link"
16703 case "(($ac_try" in
16704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16705   *) ac_try_echo=$ac_try;;
16706 esac
16707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16708   (eval "$ac_link") 2>conftest.er1
16709   ac_status=$?
16710   grep -v '^ *+' conftest.er1 >conftest.err
16711   rm -f conftest.er1
16712   cat conftest.err >&5
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); } &&
16715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16716   { (case "(($ac_try" in
16717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16718   *) ac_try_echo=$ac_try;;
16719 esac
16720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16721   (eval "$ac_try") 2>&5
16722   ac_status=$?
16723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724   (exit $ac_status); }; } &&
16725          { ac_try='test -s conftest$ac_exeext'
16726   { (case "(($ac_try" in
16727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728   *) ac_try_echo=$ac_try;;
16729 esac
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731   (eval "$ac_try") 2>&5
16732   ac_status=$?
16733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734   (exit $ac_status); }; }; then
16735   ac_cv_lib_gcc___divdi3=yes
16736 else
16737   echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16739
16740         ac_cv_lib_gcc___divdi3=no
16741 fi
16742
16743 rm -f core conftest.err conftest.$ac_objext \
16744       conftest$ac_exeext conftest.$ac_ext
16745 LIBS=$ac_check_lib_save_LIBS
16746 fi
16747 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16748 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16749 if test $ac_cv_lib_gcc___divdi3 = yes; then
16750
16751 cat >>confdefs.h <<\_ACEOF
16752 #define HAVE___DIVDI3 1
16753 _ACEOF
16754
16755 fi
16756
16757   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16758 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16759 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16760   echo $ECHO_N "(cached) $ECHO_C" >&6
16761 else
16762   ac_check_lib_save_LIBS=$LIBS
16763 LIBS="-lgcc  $LIBS"
16764 cat >conftest.$ac_ext <<_ACEOF
16765 /* confdefs.h.  */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h.  */
16770
16771 /* Override any GCC internal prototype to avoid an error.
16772    Use char because int might match the return type of a GCC
16773    builtin and then its argument prototype would still apply.  */
16774 #ifdef __cplusplus
16775 extern "C"
16776 #endif
16777 char __fixdfdi ();
16778 int
16779 main ()
16780 {
16781 return __fixdfdi ();
16782   ;
16783   return 0;
16784 }
16785 _ACEOF
16786 rm -f conftest.$ac_objext conftest$ac_exeext
16787 if { (ac_try="$ac_link"
16788 case "(($ac_try" in
16789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790   *) ac_try_echo=$ac_try;;
16791 esac
16792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16793   (eval "$ac_link") 2>conftest.er1
16794   ac_status=$?
16795   grep -v '^ *+' conftest.er1 >conftest.err
16796   rm -f conftest.er1
16797   cat conftest.err >&5
16798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799   (exit $ac_status); } &&
16800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16801   { (case "(($ac_try" in
16802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16803   *) ac_try_echo=$ac_try;;
16804 esac
16805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16806   (eval "$ac_try") 2>&5
16807   ac_status=$?
16808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809   (exit $ac_status); }; } &&
16810          { ac_try='test -s conftest$ac_exeext'
16811   { (case "(($ac_try" in
16812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813   *) ac_try_echo=$ac_try;;
16814 esac
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816   (eval "$ac_try") 2>&5
16817   ac_status=$?
16818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819   (exit $ac_status); }; }; then
16820   ac_cv_lib_gcc___fixdfdi=yes
16821 else
16822   echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825         ac_cv_lib_gcc___fixdfdi=no
16826 fi
16827
16828 rm -f core conftest.err conftest.$ac_objext \
16829       conftest$ac_exeext conftest.$ac_ext
16830 LIBS=$ac_check_lib_save_LIBS
16831 fi
16832 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16833 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16834 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16835
16836 cat >>confdefs.h <<\_ACEOF
16837 #define HAVE___FIXDFDI 1
16838 _ACEOF
16839
16840 fi
16841
16842   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16843 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16844 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16845   echo $ECHO_N "(cached) $ECHO_C" >&6
16846 else
16847   ac_check_lib_save_LIBS=$LIBS
16848 LIBS="-lgcc  $LIBS"
16849 cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h.  */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h.  */
16855
16856 /* Override any GCC internal prototype to avoid an error.
16857    Use char because int might match the return type of a GCC
16858    builtin and then its argument prototype would still apply.  */
16859 #ifdef __cplusplus
16860 extern "C"
16861 #endif
16862 char __fixsfdi ();
16863 int
16864 main ()
16865 {
16866 return __fixsfdi ();
16867   ;
16868   return 0;
16869 }
16870 _ACEOF
16871 rm -f conftest.$ac_objext conftest$ac_exeext
16872 if { (ac_try="$ac_link"
16873 case "(($ac_try" in
16874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875   *) ac_try_echo=$ac_try;;
16876 esac
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878   (eval "$ac_link") 2>conftest.er1
16879   ac_status=$?
16880   grep -v '^ *+' conftest.er1 >conftest.err
16881   rm -f conftest.er1
16882   cat conftest.err >&5
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); } &&
16885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16886   { (case "(($ac_try" in
16887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888   *) ac_try_echo=$ac_try;;
16889 esac
16890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891   (eval "$ac_try") 2>&5
16892   ac_status=$?
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); }; } &&
16895          { ac_try='test -s conftest$ac_exeext'
16896   { (case "(($ac_try" in
16897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898   *) ac_try_echo=$ac_try;;
16899 esac
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901   (eval "$ac_try") 2>&5
16902   ac_status=$?
16903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904   (exit $ac_status); }; }; then
16905   ac_cv_lib_gcc___fixsfdi=yes
16906 else
16907   echo "$as_me: failed program was:" >&5
16908 sed 's/^/| /' conftest.$ac_ext >&5
16909
16910         ac_cv_lib_gcc___fixsfdi=no
16911 fi
16912
16913 rm -f core conftest.err conftest.$ac_objext \
16914       conftest$ac_exeext conftest.$ac_ext
16915 LIBS=$ac_check_lib_save_LIBS
16916 fi
16917 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16918 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16919 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16920
16921 cat >>confdefs.h <<\_ACEOF
16922 #define HAVE___FIXSFDI 1
16923 _ACEOF
16924
16925 fi
16926
16927   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16928 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16929 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16930   echo $ECHO_N "(cached) $ECHO_C" >&6
16931 else
16932   ac_check_lib_save_LIBS=$LIBS
16933 LIBS="-lgcc  $LIBS"
16934 cat >conftest.$ac_ext <<_ACEOF
16935 /* confdefs.h.  */
16936 _ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h.  */
16940
16941 /* Override any GCC internal prototype to avoid an error.
16942    Use char because int might match the return type of a GCC
16943    builtin and then its argument prototype would still apply.  */
16944 #ifdef __cplusplus
16945 extern "C"
16946 #endif
16947 char __floatdidf ();
16948 int
16949 main ()
16950 {
16951 return __floatdidf ();
16952   ;
16953   return 0;
16954 }
16955 _ACEOF
16956 rm -f conftest.$ac_objext conftest$ac_exeext
16957 if { (ac_try="$ac_link"
16958 case "(($ac_try" in
16959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16960   *) ac_try_echo=$ac_try;;
16961 esac
16962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16963   (eval "$ac_link") 2>conftest.er1
16964   ac_status=$?
16965   grep -v '^ *+' conftest.er1 >conftest.err
16966   rm -f conftest.er1
16967   cat conftest.err >&5
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); } &&
16970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16971   { (case "(($ac_try" in
16972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973   *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976   (eval "$ac_try") 2>&5
16977   ac_status=$?
16978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979   (exit $ac_status); }; } &&
16980          { ac_try='test -s conftest$ac_exeext'
16981   { (case "(($ac_try" in
16982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983   *) ac_try_echo=$ac_try;;
16984 esac
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986   (eval "$ac_try") 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); }; }; then
16990   ac_cv_lib_gcc___floatdidf=yes
16991 else
16992   echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995         ac_cv_lib_gcc___floatdidf=no
16996 fi
16997
16998 rm -f core conftest.err conftest.$ac_objext \
16999       conftest$ac_exeext conftest.$ac_ext
17000 LIBS=$ac_check_lib_save_LIBS
17001 fi
17002 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
17003 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
17004 if test $ac_cv_lib_gcc___floatdidf = yes; then
17005
17006 cat >>confdefs.h <<\_ACEOF
17007 #define HAVE___FLOATDIDF 1
17008 _ACEOF
17009
17010 fi
17011
17012   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
17013 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
17014 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
17015   echo $ECHO_N "(cached) $ECHO_C" >&6
17016 else
17017   ac_check_lib_save_LIBS=$LIBS
17018 LIBS="-lgcc  $LIBS"
17019 cat >conftest.$ac_ext <<_ACEOF
17020 /* confdefs.h.  */
17021 _ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h.  */
17025
17026 /* Override any GCC internal prototype to avoid an error.
17027    Use char because int might match the return type of a GCC
17028    builtin and then its argument prototype would still apply.  */
17029 #ifdef __cplusplus
17030 extern "C"
17031 #endif
17032 char __lshrdi3 ();
17033 int
17034 main ()
17035 {
17036 return __lshrdi3 ();
17037   ;
17038   return 0;
17039 }
17040 _ACEOF
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (ac_try="$ac_link"
17043 case "(($ac_try" in
17044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17045   *) ac_try_echo=$ac_try;;
17046 esac
17047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17048   (eval "$ac_link") 2>conftest.er1
17049   ac_status=$?
17050   grep -v '^ *+' conftest.er1 >conftest.err
17051   rm -f conftest.er1
17052   cat conftest.err >&5
17053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054   (exit $ac_status); } &&
17055          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17056   { (case "(($ac_try" in
17057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058   *) ac_try_echo=$ac_try;;
17059 esac
17060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061   (eval "$ac_try") 2>&5
17062   ac_status=$?
17063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064   (exit $ac_status); }; } &&
17065          { ac_try='test -s conftest$ac_exeext'
17066   { (case "(($ac_try" in
17067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17068   *) ac_try_echo=$ac_try;;
17069 esac
17070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17071   (eval "$ac_try") 2>&5
17072   ac_status=$?
17073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074   (exit $ac_status); }; }; then
17075   ac_cv_lib_gcc___lshrdi3=yes
17076 else
17077   echo "$as_me: failed program was:" >&5
17078 sed 's/^/| /' conftest.$ac_ext >&5
17079
17080         ac_cv_lib_gcc___lshrdi3=no
17081 fi
17082
17083 rm -f core conftest.err conftest.$ac_objext \
17084       conftest$ac_exeext conftest.$ac_ext
17085 LIBS=$ac_check_lib_save_LIBS
17086 fi
17087 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17088 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17089 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17090
17091 cat >>confdefs.h <<\_ACEOF
17092 #define HAVE___LSHRDI3 1
17093 _ACEOF
17094
17095 fi
17096
17097   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17098 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17099 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17100   echo $ECHO_N "(cached) $ECHO_C" >&6
17101 else
17102   ac_check_lib_save_LIBS=$LIBS
17103 LIBS="-lgcc  $LIBS"
17104 cat >conftest.$ac_ext <<_ACEOF
17105 /* confdefs.h.  */
17106 _ACEOF
17107 cat confdefs.h >>conftest.$ac_ext
17108 cat >>conftest.$ac_ext <<_ACEOF
17109 /* end confdefs.h.  */
17110
17111 /* Override any GCC internal prototype to avoid an error.
17112    Use char because int might match the return type of a GCC
17113    builtin and then its argument prototype would still apply.  */
17114 #ifdef __cplusplus
17115 extern "C"
17116 #endif
17117 char __moddi3 ();
17118 int
17119 main ()
17120 {
17121 return __moddi3 ();
17122   ;
17123   return 0;
17124 }
17125 _ACEOF
17126 rm -f conftest.$ac_objext conftest$ac_exeext
17127 if { (ac_try="$ac_link"
17128 case "(($ac_try" in
17129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130   *) ac_try_echo=$ac_try;;
17131 esac
17132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17133   (eval "$ac_link") 2>conftest.er1
17134   ac_status=$?
17135   grep -v '^ *+' conftest.er1 >conftest.err
17136   rm -f conftest.er1
17137   cat conftest.err >&5
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); } &&
17140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17141   { (case "(($ac_try" in
17142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17143   *) ac_try_echo=$ac_try;;
17144 esac
17145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17146   (eval "$ac_try") 2>&5
17147   ac_status=$?
17148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149   (exit $ac_status); }; } &&
17150          { ac_try='test -s conftest$ac_exeext'
17151   { (case "(($ac_try" in
17152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153   *) ac_try_echo=$ac_try;;
17154 esac
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156   (eval "$ac_try") 2>&5
17157   ac_status=$?
17158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159   (exit $ac_status); }; }; then
17160   ac_cv_lib_gcc___moddi3=yes
17161 else
17162   echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165         ac_cv_lib_gcc___moddi3=no
17166 fi
17167
17168 rm -f core conftest.err conftest.$ac_objext \
17169       conftest$ac_exeext conftest.$ac_ext
17170 LIBS=$ac_check_lib_save_LIBS
17171 fi
17172 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17173 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17174 if test $ac_cv_lib_gcc___moddi3 = yes; then
17175
17176 cat >>confdefs.h <<\_ACEOF
17177 #define HAVE___MODDI3 1
17178 _ACEOF
17179
17180 fi
17181
17182   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17183 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17184 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17185   echo $ECHO_N "(cached) $ECHO_C" >&6
17186 else
17187   ac_check_lib_save_LIBS=$LIBS
17188 LIBS="-lgcc  $LIBS"
17189 cat >conftest.$ac_ext <<_ACEOF
17190 /* confdefs.h.  */
17191 _ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h.  */
17195
17196 /* Override any GCC internal prototype to avoid an error.
17197    Use char because int might match the return type of a GCC
17198    builtin and then its argument prototype would still apply.  */
17199 #ifdef __cplusplus
17200 extern "C"
17201 #endif
17202 char __udivdi3 ();
17203 int
17204 main ()
17205 {
17206 return __udivdi3 ();
17207   ;
17208   return 0;
17209 }
17210 _ACEOF
17211 rm -f conftest.$ac_objext conftest$ac_exeext
17212 if { (ac_try="$ac_link"
17213 case "(($ac_try" in
17214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17215   *) ac_try_echo=$ac_try;;
17216 esac
17217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17218   (eval "$ac_link") 2>conftest.er1
17219   ac_status=$?
17220   grep -v '^ *+' conftest.er1 >conftest.err
17221   rm -f conftest.er1
17222   cat conftest.err >&5
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); } &&
17225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17226   { (case "(($ac_try" in
17227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228   *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231   (eval "$ac_try") 2>&5
17232   ac_status=$?
17233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234   (exit $ac_status); }; } &&
17235          { ac_try='test -s conftest$ac_exeext'
17236   { (case "(($ac_try" in
17237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238   *) ac_try_echo=$ac_try;;
17239 esac
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241   (eval "$ac_try") 2>&5
17242   ac_status=$?
17243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); }; }; then
17245   ac_cv_lib_gcc___udivdi3=yes
17246 else
17247   echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17249
17250         ac_cv_lib_gcc___udivdi3=no
17251 fi
17252
17253 rm -f core conftest.err conftest.$ac_objext \
17254       conftest$ac_exeext conftest.$ac_ext
17255 LIBS=$ac_check_lib_save_LIBS
17256 fi
17257 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17258 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17259 if test $ac_cv_lib_gcc___udivdi3 = yes; then
17260
17261 cat >>confdefs.h <<\_ACEOF
17262 #define HAVE___UDIVDI3 1
17263 _ACEOF
17264
17265 fi
17266
17267   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17268 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17269 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17270   echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272   ac_check_lib_save_LIBS=$LIBS
17273 LIBS="-lgcc  $LIBS"
17274 cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h.  */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h.  */
17280
17281 /* Override any GCC internal prototype to avoid an error.
17282    Use char because int might match the return type of a GCC
17283    builtin and then its argument prototype would still apply.  */
17284 #ifdef __cplusplus
17285 extern "C"
17286 #endif
17287 char __umoddi3 ();
17288 int
17289 main ()
17290 {
17291 return __umoddi3 ();
17292   ;
17293   return 0;
17294 }
17295 _ACEOF
17296 rm -f conftest.$ac_objext conftest$ac_exeext
17297 if { (ac_try="$ac_link"
17298 case "(($ac_try" in
17299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17300   *) ac_try_echo=$ac_try;;
17301 esac
17302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17303   (eval "$ac_link") 2>conftest.er1
17304   ac_status=$?
17305   grep -v '^ *+' conftest.er1 >conftest.err
17306   rm -f conftest.er1
17307   cat conftest.err >&5
17308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17309   (exit $ac_status); } &&
17310          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17311   { (case "(($ac_try" in
17312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313   *) ac_try_echo=$ac_try;;
17314 esac
17315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17316   (eval "$ac_try") 2>&5
17317   ac_status=$?
17318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17319   (exit $ac_status); }; } &&
17320          { ac_try='test -s conftest$ac_exeext'
17321   { (case "(($ac_try" in
17322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323   *) ac_try_echo=$ac_try;;
17324 esac
17325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17326   (eval "$ac_try") 2>&5
17327   ac_status=$?
17328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17329   (exit $ac_status); }; }; then
17330   ac_cv_lib_gcc___umoddi3=yes
17331 else
17332   echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17334
17335         ac_cv_lib_gcc___umoddi3=no
17336 fi
17337
17338 rm -f core conftest.err conftest.$ac_objext \
17339       conftest$ac_exeext conftest.$ac_ext
17340 LIBS=$ac_check_lib_save_LIBS
17341 fi
17342 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17343 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17344 if test $ac_cv_lib_gcc___umoddi3 = yes; then
17345
17346 cat >>confdefs.h <<\_ACEOF
17347 #define HAVE___UMODDI3 1
17348 _ACEOF
17349
17350 fi
17351
17352
17353   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17354 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17355 if test "${ac_cv_lib_gcc___main+set}" = set; then
17356   echo $ECHO_N "(cached) $ECHO_C" >&6
17357 else
17358   ac_check_lib_save_LIBS=$LIBS
17359 LIBS="-lgcc  $LIBS"
17360 cat >conftest.$ac_ext <<_ACEOF
17361 /* confdefs.h.  */
17362 _ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h.  */
17366
17367 /* Override any GCC internal prototype to avoid an error.
17368    Use char because int might match the return type of a GCC
17369    builtin and then its argument prototype would still apply.  */
17370 #ifdef __cplusplus
17371 extern "C"
17372 #endif
17373 char __main ();
17374 int
17375 main ()
17376 {
17377 return __main ();
17378   ;
17379   return 0;
17380 }
17381 _ACEOF
17382 rm -f conftest.$ac_objext conftest$ac_exeext
17383 if { (ac_try="$ac_link"
17384 case "(($ac_try" in
17385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386   *) ac_try_echo=$ac_try;;
17387 esac
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389   (eval "$ac_link") 2>conftest.er1
17390   ac_status=$?
17391   grep -v '^ *+' conftest.er1 >conftest.err
17392   rm -f conftest.er1
17393   cat conftest.err >&5
17394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395   (exit $ac_status); } &&
17396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17397   { (case "(($ac_try" in
17398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399   *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402   (eval "$ac_try") 2>&5
17403   ac_status=$?
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); }; } &&
17406          { ac_try='test -s conftest$ac_exeext'
17407   { (case "(($ac_try" in
17408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409   *) ac_try_echo=$ac_try;;
17410 esac
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412   (eval "$ac_try") 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; }; then
17416   ac_cv_lib_gcc___main=yes
17417 else
17418   echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17420
17421         ac_cv_lib_gcc___main=no
17422 fi
17423
17424 rm -f core conftest.err conftest.$ac_objext \
17425       conftest$ac_exeext conftest.$ac_ext
17426 LIBS=$ac_check_lib_save_LIBS
17427 fi
17428 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17429 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17430 if test $ac_cv_lib_gcc___main = yes; then
17431
17432 cat >>confdefs.h <<\_ACEOF
17433 #define HAVE___MAIN 1
17434 _ACEOF
17435
17436 fi
17437
17438   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17439 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17440 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443   ac_check_lib_save_LIBS=$LIBS
17444 LIBS="-lgcc  $LIBS"
17445 cat >conftest.$ac_ext <<_ACEOF
17446 /* confdefs.h.  */
17447 _ACEOF
17448 cat confdefs.h >>conftest.$ac_ext
17449 cat >>conftest.$ac_ext <<_ACEOF
17450 /* end confdefs.h.  */
17451
17452 /* Override any GCC internal prototype to avoid an error.
17453    Use char because int might match the return type of a GCC
17454    builtin and then its argument prototype would still apply.  */
17455 #ifdef __cplusplus
17456 extern "C"
17457 #endif
17458 char __cmpdi2 ();
17459 int
17460 main ()
17461 {
17462 return __cmpdi2 ();
17463   ;
17464   return 0;
17465 }
17466 _ACEOF
17467 rm -f conftest.$ac_objext conftest$ac_exeext
17468 if { (ac_try="$ac_link"
17469 case "(($ac_try" in
17470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471   *) ac_try_echo=$ac_try;;
17472 esac
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474   (eval "$ac_link") 2>conftest.er1
17475   ac_status=$?
17476   grep -v '^ *+' conftest.er1 >conftest.err
17477   rm -f conftest.er1
17478   cat conftest.err >&5
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); } &&
17481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17482   { (case "(($ac_try" in
17483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484   *) ac_try_echo=$ac_try;;
17485 esac
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487   (eval "$ac_try") 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }; } &&
17491          { ac_try='test -s conftest$ac_exeext'
17492   { (case "(($ac_try" in
17493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494   *) ac_try_echo=$ac_try;;
17495 esac
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497   (eval "$ac_try") 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }; }; then
17501   ac_cv_lib_gcc___cmpdi2=yes
17502 else
17503   echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17505
17506         ac_cv_lib_gcc___cmpdi2=no
17507 fi
17508
17509 rm -f core conftest.err conftest.$ac_objext \
17510       conftest$ac_exeext conftest.$ac_ext
17511 LIBS=$ac_check_lib_save_LIBS
17512 fi
17513 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17514 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17515 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17516
17517 cat >>confdefs.h <<\_ACEOF
17518 #define HAVE___CMPDI2 1
17519 _ACEOF
17520
17521 fi
17522
17523 fi
17524
17525 if test "$llvm_cv_os_type" = "MingW" ; then
17526   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17527 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17528   cat >conftest.$ac_ext <<_ACEOF
17529
17530   /* confdefs.h.  */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h.  */
17535
17536     #include <windows.h>
17537     #include <imagehlp.h>
17538     extern void foo(PENUMLOADED_MODULES_CALLBACK);
17539     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17540
17541
17542 _ACEOF
17543 rm -f conftest.$ac_objext
17544 if { (ac_try="$ac_compile"
17545 case "(($ac_try" in
17546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547   *) ac_try_echo=$ac_try;;
17548 esac
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550   (eval "$ac_compile") 2>conftest.er1
17551   ac_status=$?
17552   grep -v '^ *+' conftest.er1 >conftest.err
17553   rm -f conftest.er1
17554   cat conftest.err >&5
17555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556   (exit $ac_status); } &&
17557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17558   { (case "(($ac_try" in
17559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560   *) ac_try_echo=$ac_try;;
17561 esac
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563   (eval "$ac_try") 2>&5
17564   ac_status=$?
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); }; } &&
17567          { ac_try='test -s conftest.$ac_objext'
17568   { (case "(($ac_try" in
17569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570   *) ac_try_echo=$ac_try;;
17571 esac
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573   (eval "$ac_try") 2>&5
17574   ac_status=$?
17575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576   (exit $ac_status); }; }; then
17577
17578   { echo "$as_me:$LINENO: result: yes" >&5
17579 echo "${ECHO_T}yes" >&6; }
17580   llvm_cv_win32_elmcb_pcstr="PCSTR"
17581
17582 else
17583   echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17585
17586
17587   { echo "$as_me:$LINENO: result: no" >&5
17588 echo "${ECHO_T}no" >&6; }
17589   llvm_cv_win32_elmcb_pcstr="PSTR"
17590
17591 fi
17592
17593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17594
17595 cat >>confdefs.h <<_ACEOF
17596 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17597 _ACEOF
17598
17599 fi
17600
17601
17602
17603   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17604 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17605 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17606   echo $ECHO_N "(cached) $ECHO_C" >&6
17607 else
17608
17609     ac_ext=cpp
17610 ac_cpp='$CXXCPP $CPPFLAGS'
17611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17614
17615     cat >conftest.$ac_ext <<_ACEOF
17616 /* confdefs.h.  */
17617 _ACEOF
17618 cat confdefs.h >>conftest.$ac_ext
17619 cat >>conftest.$ac_ext <<_ACEOF
17620 /* end confdefs.h.  */
17621 #include <math.h>
17622 int
17623 main ()
17624 {
17625 float f; isnan(f);
17626   ;
17627   return 0;
17628 }
17629 _ACEOF
17630 rm -f conftest.$ac_objext
17631 if { (ac_try="$ac_compile"
17632 case "(($ac_try" in
17633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17634   *) ac_try_echo=$ac_try;;
17635 esac
17636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17637   (eval "$ac_compile") 2>conftest.er1
17638   ac_status=$?
17639   grep -v '^ *+' conftest.er1 >conftest.err
17640   rm -f conftest.er1
17641   cat conftest.err >&5
17642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643   (exit $ac_status); } &&
17644          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17645   { (case "(($ac_try" in
17646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647   *) ac_try_echo=$ac_try;;
17648 esac
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650   (eval "$ac_try") 2>&5
17651   ac_status=$?
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); }; } &&
17654          { ac_try='test -s conftest.$ac_objext'
17655   { (case "(($ac_try" in
17656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657   *) ac_try_echo=$ac_try;;
17658 esac
17659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660   (eval "$ac_try") 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); }; }; then
17664   ac_cv_func_isnan_in_math_h=yes
17665 else
17666   echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17668
17669         ac_cv_func_isnan_in_math_h=no
17670 fi
17671
17672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17673     ac_ext=c
17674 ac_cpp='$CPP $CPPFLAGS'
17675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17678
17679
17680 fi
17681 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17682 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17683
17684
17685 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17686
17687 cat >>confdefs.h <<\_ACEOF
17688 #define HAVE_ISNAN_IN_MATH_H 1
17689 _ACEOF
17690
17691 fi
17692
17693
17694   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17695 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17696 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17697   echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699
17700     ac_ext=cpp
17701 ac_cpp='$CXXCPP $CPPFLAGS'
17702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17705
17706     cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h.  */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h.  */
17712 #include <cmath>
17713 int
17714 main ()
17715 {
17716 float f; isnan(f);
17717   ;
17718   return 0;
17719 }
17720 _ACEOF
17721 rm -f conftest.$ac_objext
17722 if { (ac_try="$ac_compile"
17723 case "(($ac_try" in
17724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725   *) ac_try_echo=$ac_try;;
17726 esac
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728   (eval "$ac_compile") 2>conftest.er1
17729   ac_status=$?
17730   grep -v '^ *+' conftest.er1 >conftest.err
17731   rm -f conftest.er1
17732   cat conftest.err >&5
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); } &&
17735          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17736   { (case "(($ac_try" in
17737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738   *) ac_try_echo=$ac_try;;
17739 esac
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741   (eval "$ac_try") 2>&5
17742   ac_status=$?
17743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744   (exit $ac_status); }; } &&
17745          { ac_try='test -s conftest.$ac_objext'
17746   { (case "(($ac_try" in
17747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748   *) ac_try_echo=$ac_try;;
17749 esac
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751   (eval "$ac_try") 2>&5
17752   ac_status=$?
17753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754   (exit $ac_status); }; }; then
17755   ac_cv_func_isnan_in_cmath=yes
17756 else
17757   echo "$as_me: failed program was:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17759
17760         ac_cv_func_isnan_in_cmath=no
17761 fi
17762
17763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17764     ac_ext=c
17765 ac_cpp='$CPP $CPPFLAGS'
17766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17769
17770
17771 fi
17772 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17773 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17774
17775 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17776
17777 cat >>confdefs.h <<\_ACEOF
17778 #define HAVE_ISNAN_IN_CMATH 1
17779 _ACEOF
17780
17781 fi
17782
17783
17784   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17785 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17786 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17787   echo $ECHO_N "(cached) $ECHO_C" >&6
17788 else
17789
17790     ac_ext=cpp
17791 ac_cpp='$CXXCPP $CPPFLAGS'
17792 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17793 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17794 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17795
17796     cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h.  */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h.  */
17802 #include <cmath>
17803 int
17804 main ()
17805 {
17806 float f; std::isnan(f);
17807   ;
17808   return 0;
17809 }
17810 _ACEOF
17811 rm -f conftest.$ac_objext
17812 if { (ac_try="$ac_compile"
17813 case "(($ac_try" in
17814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17815   *) ac_try_echo=$ac_try;;
17816 esac
17817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17818   (eval "$ac_compile") 2>conftest.er1
17819   ac_status=$?
17820   grep -v '^ *+' conftest.er1 >conftest.err
17821   rm -f conftest.er1
17822   cat conftest.err >&5
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); } &&
17825          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17826   { (case "(($ac_try" in
17827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828   *) ac_try_echo=$ac_try;;
17829 esac
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831   (eval "$ac_try") 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); }; } &&
17835          { ac_try='test -s conftest.$ac_objext'
17836   { (case "(($ac_try" in
17837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838   *) ac_try_echo=$ac_try;;
17839 esac
17840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17841   (eval "$ac_try") 2>&5
17842   ac_status=$?
17843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844   (exit $ac_status); }; }; then
17845   ac_cv_func_std_isnan_in_cmath=yes
17846 else
17847   echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17849
17850         ac_cv_func_std_isnan_in_cmath=no
17851 fi
17852
17853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17854     ac_ext=c
17855 ac_cpp='$CPP $CPPFLAGS'
17856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17859
17860
17861 fi
17862 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17863 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17864
17865 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17866
17867 cat >>confdefs.h <<\_ACEOF
17868 #define HAVE_STD_ISNAN_IN_CMATH 1
17869 _ACEOF
17870
17871 fi
17872
17873
17874
17875
17876   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17877 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17878 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17879   echo $ECHO_N "(cached) $ECHO_C" >&6
17880 else
17881
17882     ac_ext=cpp
17883 ac_cpp='$CXXCPP $CPPFLAGS'
17884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17887
17888     cat >conftest.$ac_ext <<_ACEOF
17889 /* confdefs.h.  */
17890 _ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h.  */
17894 #include <math.h>
17895 int
17896 main ()
17897 {
17898 float f; isinf(f);
17899   ;
17900   return 0;
17901 }
17902 _ACEOF
17903 rm -f conftest.$ac_objext
17904 if { (ac_try="$ac_compile"
17905 case "(($ac_try" in
17906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907   *) ac_try_echo=$ac_try;;
17908 esac
17909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17910   (eval "$ac_compile") 2>conftest.er1
17911   ac_status=$?
17912   grep -v '^ *+' conftest.er1 >conftest.err
17913   rm -f conftest.er1
17914   cat conftest.err >&5
17915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916   (exit $ac_status); } &&
17917          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17918   { (case "(($ac_try" in
17919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920   *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923   (eval "$ac_try") 2>&5
17924   ac_status=$?
17925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926   (exit $ac_status); }; } &&
17927          { ac_try='test -s conftest.$ac_objext'
17928   { (case "(($ac_try" in
17929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930   *) ac_try_echo=$ac_try;;
17931 esac
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933   (eval "$ac_try") 2>&5
17934   ac_status=$?
17935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936   (exit $ac_status); }; }; then
17937   ac_cv_func_isinf_in_math_h=yes
17938 else
17939   echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17941
17942         ac_cv_func_isinf_in_math_h=no
17943 fi
17944
17945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17946     ac_ext=c
17947 ac_cpp='$CPP $CPPFLAGS'
17948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17951
17952
17953 fi
17954 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17955 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17956
17957 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17958
17959 cat >>confdefs.h <<\_ACEOF
17960 #define HAVE_ISINF_IN_MATH_H 1
17961 _ACEOF
17962
17963 fi
17964
17965
17966   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17967 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17968 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17969   echo $ECHO_N "(cached) $ECHO_C" >&6
17970 else
17971
17972     ac_ext=cpp
17973 ac_cpp='$CXXCPP $CPPFLAGS'
17974 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17975 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17976 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17977
17978     cat >conftest.$ac_ext <<_ACEOF
17979 /* confdefs.h.  */
17980 _ACEOF
17981 cat confdefs.h >>conftest.$ac_ext
17982 cat >>conftest.$ac_ext <<_ACEOF
17983 /* end confdefs.h.  */
17984 #include <cmath>
17985 int
17986 main ()
17987 {
17988 float f; isinf(f);
17989   ;
17990   return 0;
17991 }
17992 _ACEOF
17993 rm -f conftest.$ac_objext
17994 if { (ac_try="$ac_compile"
17995 case "(($ac_try" in
17996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17997   *) ac_try_echo=$ac_try;;
17998 esac
17999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18000   (eval "$ac_compile") 2>conftest.er1
18001   ac_status=$?
18002   grep -v '^ *+' conftest.er1 >conftest.err
18003   rm -f conftest.er1
18004   cat conftest.err >&5
18005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006   (exit $ac_status); } &&
18007          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18008   { (case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_try") 2>&5
18014   ac_status=$?
18015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016   (exit $ac_status); }; } &&
18017          { ac_try='test -s conftest.$ac_objext'
18018   { (case "(($ac_try" in
18019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020   *) ac_try_echo=$ac_try;;
18021 esac
18022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18023   (eval "$ac_try") 2>&5
18024   ac_status=$?
18025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026   (exit $ac_status); }; }; then
18027   ac_cv_func_isinf_in_cmath=yes
18028 else
18029   echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18031
18032         ac_cv_func_isinf_in_cmath=no
18033 fi
18034
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036     ac_ext=c
18037 ac_cpp='$CPP $CPPFLAGS'
18038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18041
18042
18043 fi
18044 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18045 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18046
18047 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18048
18049 cat >>confdefs.h <<\_ACEOF
18050 #define HAVE_ISINF_IN_CMATH 1
18051 _ACEOF
18052
18053 fi
18054
18055
18056   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18057 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18058 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18059   echo $ECHO_N "(cached) $ECHO_C" >&6
18060 else
18061
18062     ac_ext=cpp
18063 ac_cpp='$CXXCPP $CPPFLAGS'
18064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18067
18068     cat >conftest.$ac_ext <<_ACEOF
18069 /* confdefs.h.  */
18070 _ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h.  */
18074 #include <cmath>
18075 int
18076 main ()
18077 {
18078 float f; std::isinf(f);
18079   ;
18080   return 0;
18081 }
18082 _ACEOF
18083 rm -f conftest.$ac_objext
18084 if { (ac_try="$ac_compile"
18085 case "(($ac_try" in
18086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087   *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090   (eval "$ac_compile") 2>conftest.er1
18091   ac_status=$?
18092   grep -v '^ *+' conftest.er1 >conftest.err
18093   rm -f conftest.er1
18094   cat conftest.err >&5
18095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096   (exit $ac_status); } &&
18097          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18098   { (case "(($ac_try" in
18099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100   *) ac_try_echo=$ac_try;;
18101 esac
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103   (eval "$ac_try") 2>&5
18104   ac_status=$?
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); }; } &&
18107          { ac_try='test -s conftest.$ac_objext'
18108   { (case "(($ac_try" in
18109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110   *) ac_try_echo=$ac_try;;
18111 esac
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113   (eval "$ac_try") 2>&5
18114   ac_status=$?
18115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116   (exit $ac_status); }; }; then
18117   ac_cv_func_std_isinf_in_cmath=yes
18118 else
18119   echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18121
18122         ac_cv_func_std_isinf_in_cmath=no
18123 fi
18124
18125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18126     ac_ext=c
18127 ac_cpp='$CPP $CPPFLAGS'
18128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18131
18132
18133 fi
18134 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18135 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18136
18137 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18138
18139 cat >>confdefs.h <<\_ACEOF
18140 #define HAVE_STD_ISINF_IN_CMATH 1
18141 _ACEOF
18142
18143 fi
18144
18145
18146   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18147 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18148 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18149   echo $ECHO_N "(cached) $ECHO_C" >&6
18150 else
18151
18152     ac_ext=cpp
18153 ac_cpp='$CXXCPP $CPPFLAGS'
18154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18157
18158     cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h.  */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h.  */
18164 #include <ieeefp.h>
18165 int
18166 main ()
18167 {
18168 float f; finite(f);
18169   ;
18170   return 0;
18171 }
18172 _ACEOF
18173 rm -f conftest.$ac_objext
18174 if { (ac_try="$ac_compile"
18175 case "(($ac_try" in
18176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177   *) ac_try_echo=$ac_try;;
18178 esac
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180   (eval "$ac_compile") 2>conftest.er1
18181   ac_status=$?
18182   grep -v '^ *+' conftest.er1 >conftest.err
18183   rm -f conftest.er1
18184   cat conftest.err >&5
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); } &&
18187          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18188   { (case "(($ac_try" in
18189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190   *) ac_try_echo=$ac_try;;
18191 esac
18192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193   (eval "$ac_try") 2>&5
18194   ac_status=$?
18195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); }; } &&
18197          { ac_try='test -s conftest.$ac_objext'
18198   { (case "(($ac_try" in
18199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18200   *) ac_try_echo=$ac_try;;
18201 esac
18202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18203   (eval "$ac_try") 2>&5
18204   ac_status=$?
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); }; }; then
18207   ac_cv_func_finite_in_ieeefp_h=yes
18208 else
18209   echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18211
18212         ac_cv_func_finite_in_ieeefp_h=no
18213 fi
18214
18215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18216     ac_ext=c
18217 ac_cpp='$CPP $CPPFLAGS'
18218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18221
18222
18223 fi
18224 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18225 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18226
18227 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18228
18229 cat >>confdefs.h <<\_ACEOF
18230 #define HAVE_FINITE_IN_IEEEFP_H 1
18231 _ACEOF
18232
18233 fi
18234
18235
18236
18237 if test "$llvm_cv_platform_type" = "Unix" ; then
18238
18239
18240 for ac_header in stdlib.h unistd.h
18241 do
18242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18244   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18247   echo $ECHO_N "(cached) $ECHO_C" >&6
18248 fi
18249 ac_res=`eval echo '${'$as_ac_Header'}'`
18250                { echo "$as_me:$LINENO: result: $ac_res" >&5
18251 echo "${ECHO_T}$ac_res" >&6; }
18252 else
18253   # Is the header compilable?
18254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18256 cat >conftest.$ac_ext <<_ACEOF
18257 /* confdefs.h.  */
18258 _ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h.  */
18262 $ac_includes_default
18263 #include <$ac_header>
18264 _ACEOF
18265 rm -f conftest.$ac_objext
18266 if { (ac_try="$ac_compile"
18267 case "(($ac_try" in
18268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18269   *) ac_try_echo=$ac_try;;
18270 esac
18271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18272   (eval "$ac_compile") 2>conftest.er1
18273   ac_status=$?
18274   grep -v '^ *+' conftest.er1 >conftest.err
18275   rm -f conftest.er1
18276   cat conftest.err >&5
18277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278   (exit $ac_status); } &&
18279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18280   { (case "(($ac_try" in
18281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282   *) ac_try_echo=$ac_try;;
18283 esac
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285   (eval "$ac_try") 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); }; } &&
18289          { ac_try='test -s conftest.$ac_objext'
18290   { (case "(($ac_try" in
18291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292   *) ac_try_echo=$ac_try;;
18293 esac
18294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295   (eval "$ac_try") 2>&5
18296   ac_status=$?
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); }; }; then
18299   ac_header_compiler=yes
18300 else
18301   echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18303
18304         ac_header_compiler=no
18305 fi
18306
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18309 echo "${ECHO_T}$ac_header_compiler" >&6; }
18310
18311 # Is the header present?
18312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18314 cat >conftest.$ac_ext <<_ACEOF
18315 /* confdefs.h.  */
18316 _ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h.  */
18320 #include <$ac_header>
18321 _ACEOF
18322 if { (ac_try="$ac_cpp conftest.$ac_ext"
18323 case "(($ac_try" in
18324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325   *) ac_try_echo=$ac_try;;
18326 esac
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18329   ac_status=$?
18330   grep -v '^ *+' conftest.er1 >conftest.err
18331   rm -f conftest.er1
18332   cat conftest.err >&5
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); } >/dev/null; then
18335   if test -s conftest.err; then
18336     ac_cpp_err=$ac_c_preproc_warn_flag
18337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18338   else
18339     ac_cpp_err=
18340   fi
18341 else
18342   ac_cpp_err=yes
18343 fi
18344 if test -z "$ac_cpp_err"; then
18345   ac_header_preproc=yes
18346 else
18347   echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350   ac_header_preproc=no
18351 fi
18352
18353 rm -f conftest.err conftest.$ac_ext
18354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18355 echo "${ECHO_T}$ac_header_preproc" >&6; }
18356
18357 # So?  What about this header?
18358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18359   yes:no: )
18360     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18364     ac_header_preproc=yes
18365     ;;
18366   no:yes:* )
18367     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18369     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18370 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18371     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18373     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18374 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18377     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18379     ( cat <<\_ASBOX
18380 ## ------------------------------------ ##
18381 ## Report this to http://llvm.org/bugs/ ##
18382 ## ------------------------------------ ##
18383 _ASBOX
18384      ) | sed "s/^/$as_me: WARNING:     /" >&2
18385     ;;
18386 esac
18387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18390   echo $ECHO_N "(cached) $ECHO_C" >&6
18391 else
18392   eval "$as_ac_Header=\$ac_header_preproc"
18393 fi
18394 ac_res=`eval echo '${'$as_ac_Header'}'`
18395                { echo "$as_me:$LINENO: result: $ac_res" >&5
18396 echo "${ECHO_T}$ac_res" >&6; }
18397
18398 fi
18399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18400   cat >>confdefs.h <<_ACEOF
18401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18402 _ACEOF
18403
18404 fi
18405
18406 done
18407
18408
18409 for ac_func in getpagesize
18410 do
18411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18415   echo $ECHO_N "(cached) $ECHO_C" >&6
18416 else
18417   cat >conftest.$ac_ext <<_ACEOF
18418 /* confdefs.h.  */
18419 _ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h.  */
18423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18425 #define $ac_func innocuous_$ac_func
18426
18427 /* System header to define __stub macros and hopefully few prototypes,
18428     which can conflict with char $ac_func (); below.
18429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18430     <limits.h> exists even on freestanding compilers.  */
18431
18432 #ifdef __STDC__
18433 # include <limits.h>
18434 #else
18435 # include <assert.h>
18436 #endif
18437
18438 #undef $ac_func
18439
18440 /* Override any GCC internal prototype to avoid an error.
18441    Use char because int might match the return type of a GCC
18442    builtin and then its argument prototype would still apply.  */
18443 #ifdef __cplusplus
18444 extern "C"
18445 #endif
18446 char $ac_func ();
18447 /* The GNU C library defines this for functions which it implements
18448     to always fail with ENOSYS.  Some functions are actually named
18449     something starting with __ and the normal name is an alias.  */
18450 #if defined __stub_$ac_func || defined __stub___$ac_func
18451 choke me
18452 #endif
18453
18454 int
18455 main ()
18456 {
18457 return $ac_func ();
18458   ;
18459   return 0;
18460 }
18461 _ACEOF
18462 rm -f conftest.$ac_objext conftest$ac_exeext
18463 if { (ac_try="$ac_link"
18464 case "(($ac_try" in
18465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466   *) ac_try_echo=$ac_try;;
18467 esac
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469   (eval "$ac_link") 2>conftest.er1
18470   ac_status=$?
18471   grep -v '^ *+' conftest.er1 >conftest.err
18472   rm -f conftest.er1
18473   cat conftest.err >&5
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); } &&
18476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18477   { (case "(($ac_try" in
18478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479   *) ac_try_echo=$ac_try;;
18480 esac
18481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18482   (eval "$ac_try") 2>&5
18483   ac_status=$?
18484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485   (exit $ac_status); }; } &&
18486          { ac_try='test -s conftest$ac_exeext'
18487   { (case "(($ac_try" in
18488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489   *) ac_try_echo=$ac_try;;
18490 esac
18491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492   (eval "$ac_try") 2>&5
18493   ac_status=$?
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); }; }; then
18496   eval "$as_ac_var=yes"
18497 else
18498   echo "$as_me: failed program was:" >&5
18499 sed 's/^/| /' conftest.$ac_ext >&5
18500
18501         eval "$as_ac_var=no"
18502 fi
18503
18504 rm -f core conftest.err conftest.$ac_objext \
18505       conftest$ac_exeext conftest.$ac_ext
18506 fi
18507 ac_res=`eval echo '${'$as_ac_var'}'`
18508                { echo "$as_me:$LINENO: result: $ac_res" >&5
18509 echo "${ECHO_T}$ac_res" >&6; }
18510 if test `eval echo '${'$as_ac_var'}'` = yes; then
18511   cat >>confdefs.h <<_ACEOF
18512 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18513 _ACEOF
18514
18515 fi
18516 done
18517
18518 { echo "$as_me:$LINENO: checking for working mmap" >&5
18519 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18520 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18521   echo $ECHO_N "(cached) $ECHO_C" >&6
18522 else
18523   if test "$cross_compiling" = yes; then
18524   ac_cv_func_mmap_fixed_mapped=no
18525 else
18526   cat >conftest.$ac_ext <<_ACEOF
18527 /* confdefs.h.  */
18528 _ACEOF
18529 cat confdefs.h >>conftest.$ac_ext
18530 cat >>conftest.$ac_ext <<_ACEOF
18531 /* end confdefs.h.  */
18532 $ac_includes_default
18533 /* malloc might have been renamed as rpl_malloc. */
18534 #undef malloc
18535
18536 /* Thanks to Mike Haertel and Jim Avera for this test.
18537    Here is a matrix of mmap possibilities:
18538         mmap private not fixed
18539         mmap private fixed at somewhere currently unmapped
18540         mmap private fixed at somewhere already mapped
18541         mmap shared not fixed
18542         mmap shared fixed at somewhere currently unmapped
18543         mmap shared fixed at somewhere already mapped
18544    For private mappings, we should verify that changes cannot be read()
18545    back from the file, nor mmap's back from the file at a different
18546    address.  (There have been systems where private was not correctly
18547    implemented like the infamous i386 svr4.0, and systems where the
18548    VM page cache was not coherent with the file system buffer cache
18549    like early versions of FreeBSD and possibly contemporary NetBSD.)
18550    For shared mappings, we should conversely verify that changes get
18551    propagated back to all the places they're supposed to be.
18552
18553    Grep wants private fixed already mapped.
18554    The main things grep needs to know about mmap are:
18555    * does it exist and is it safe to write into the mmap'd area
18556    * how to use it (BSD variants)  */
18557
18558 #include <fcntl.h>
18559 #include <sys/mman.h>
18560
18561 #if !STDC_HEADERS && !HAVE_STDLIB_H
18562 char *malloc ();
18563 #endif
18564
18565 /* This mess was copied from the GNU getpagesize.h.  */
18566 #if !HAVE_GETPAGESIZE
18567 /* Assume that all systems that can run configure have sys/param.h.  */
18568 # if !HAVE_SYS_PARAM_H
18569 #  define HAVE_SYS_PARAM_H 1
18570 # endif
18571
18572 # ifdef _SC_PAGESIZE
18573 #  define getpagesize() sysconf(_SC_PAGESIZE)
18574 # else /* no _SC_PAGESIZE */
18575 #  if HAVE_SYS_PARAM_H
18576 #   include <sys/param.h>
18577 #   ifdef EXEC_PAGESIZE
18578 #    define getpagesize() EXEC_PAGESIZE
18579 #   else /* no EXEC_PAGESIZE */
18580 #    ifdef NBPG
18581 #     define getpagesize() NBPG * CLSIZE
18582 #     ifndef CLSIZE
18583 #      define CLSIZE 1
18584 #     endif /* no CLSIZE */
18585 #    else /* no NBPG */
18586 #     ifdef NBPC
18587 #      define getpagesize() NBPC
18588 #     else /* no NBPC */
18589 #      ifdef PAGESIZE
18590 #       define getpagesize() PAGESIZE
18591 #      endif /* PAGESIZE */
18592 #     endif /* no NBPC */
18593 #    endif /* no NBPG */
18594 #   endif /* no EXEC_PAGESIZE */
18595 #  else /* no HAVE_SYS_PARAM_H */
18596 #   define getpagesize() 8192   /* punt totally */
18597 #  endif /* no HAVE_SYS_PARAM_H */
18598 # endif /* no _SC_PAGESIZE */
18599
18600 #endif /* no HAVE_GETPAGESIZE */
18601
18602 int
18603 main ()
18604 {
18605   char *data, *data2, *data3;
18606   int i, pagesize;
18607   int fd;
18608
18609   pagesize = getpagesize ();
18610
18611   /* First, make a file with some known garbage in it. */
18612   data = (char *) malloc (pagesize);
18613   if (!data)
18614     return 1;
18615   for (i = 0; i < pagesize; ++i)
18616     *(data + i) = rand ();
18617   umask (0);
18618   fd = creat ("conftest.mmap", 0600);
18619   if (fd < 0)
18620     return 1;
18621   if (write (fd, data, pagesize) != pagesize)
18622     return 1;
18623   close (fd);
18624
18625   /* Next, try to mmap the file at a fixed address which already has
18626      something else allocated at it.  If we can, also make sure that
18627      we see the same garbage.  */
18628   fd = open ("conftest.mmap", O_RDWR);
18629   if (fd < 0)
18630     return 1;
18631   data2 = (char *) malloc (2 * pagesize);
18632   if (!data2)
18633     return 1;
18634   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18635   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18636                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18637     return 1;
18638   for (i = 0; i < pagesize; ++i)
18639     if (*(data + i) != *(data2 + i))
18640       return 1;
18641
18642   /* Finally, make sure that changes to the mapped area do not
18643      percolate back to the file as seen by read().  (This is a bug on
18644      some variants of i386 svr4.0.)  */
18645   for (i = 0; i < pagesize; ++i)
18646     *(data2 + i) = *(data2 + i) + 1;
18647   data3 = (char *) malloc (pagesize);
18648   if (!data3)
18649     return 1;
18650   if (read (fd, data3, pagesize) != pagesize)
18651     return 1;
18652   for (i = 0; i < pagesize; ++i)
18653     if (*(data + i) != *(data3 + i))
18654       return 1;
18655   close (fd);
18656   return 0;
18657 }
18658 _ACEOF
18659 rm -f conftest$ac_exeext
18660 if { (ac_try="$ac_link"
18661 case "(($ac_try" in
18662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663   *) ac_try_echo=$ac_try;;
18664 esac
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666   (eval "$ac_link") 2>&5
18667   ac_status=$?
18668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18670   { (case "(($ac_try" in
18671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672   *) ac_try_echo=$ac_try;;
18673 esac
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675   (eval "$ac_try") 2>&5
18676   ac_status=$?
18677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678   (exit $ac_status); }; }; then
18679   ac_cv_func_mmap_fixed_mapped=yes
18680 else
18681   echo "$as_me: program exited with status $ac_status" >&5
18682 echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18684
18685 ( exit $ac_status )
18686 ac_cv_func_mmap_fixed_mapped=no
18687 fi
18688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18689 fi
18690
18691
18692 fi
18693 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18694 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18695 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18696
18697 cat >>confdefs.h <<\_ACEOF
18698 #define HAVE_MMAP 1
18699 _ACEOF
18700
18701 fi
18702 rm -f conftest.mmap
18703
18704   { echo "$as_me:$LINENO: checking for mmap of files" >&5
18705 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18706 if test "${ac_cv_func_mmap_file+set}" = set; then
18707   echo $ECHO_N "(cached) $ECHO_C" >&6
18708 else
18709    ac_ext=c
18710 ac_cpp='$CPP $CPPFLAGS'
18711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18714
18715   if test "$cross_compiling" = yes; then
18716   ac_cv_func_mmap_file=no
18717 else
18718   cat >conftest.$ac_ext <<_ACEOF
18719
18720     /* confdefs.h.  */
18721 _ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h.  */
18725
18726 #include <sys/types.h>
18727 #include <sys/mman.h>
18728 #include <fcntl.h>
18729
18730 int
18731 main ()
18732 {
18733
18734   int fd;
18735   fd = creat ("foo",0777);
18736   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18737   unlink ("foo");
18738   return (fd != (int) MAP_FAILED);
18739   ;
18740   return 0;
18741 }
18742 _ACEOF
18743 rm -f conftest$ac_exeext
18744 if { (ac_try="$ac_link"
18745 case "(($ac_try" in
18746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747   *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750   (eval "$ac_link") 2>&5
18751   ac_status=$?
18752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18754   { (case "(($ac_try" in
18755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756   *) ac_try_echo=$ac_try;;
18757 esac
18758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18759   (eval "$ac_try") 2>&5
18760   ac_status=$?
18761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762   (exit $ac_status); }; }; then
18763   ac_cv_func_mmap_file=yes
18764 else
18765   echo "$as_me: program exited with status $ac_status" >&5
18766 echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.$ac_ext >&5
18768
18769 ( exit $ac_status )
18770 ac_cv_func_mmap_file=no
18771 fi
18772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18773 fi
18774
18775
18776   ac_ext=c
18777 ac_cpp='$CPP $CPPFLAGS'
18778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18781
18782
18783 fi
18784 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18785 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18786 if test "$ac_cv_func_mmap_file" = yes; then
18787
18788 cat >>confdefs.h <<\_ACEOF
18789 #define HAVE_MMAP_FILE
18790 _ACEOF
18791
18792    MMAP_FILE=yes
18793
18794 fi
18795
18796   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18797 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18798 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18799   echo $ECHO_N "(cached) $ECHO_C" >&6
18800 else
18801   if test "$llvm_cv_os_type" = "Interix" ; then
18802    ac_cv_need_dev_zero_for_mmap=yes
18803  else
18804    ac_cv_need_dev_zero_for_mmap=no
18805  fi
18806
18807 fi
18808 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18809 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18810 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18811
18812 cat >>confdefs.h <<\_ACEOF
18813 #define NEED_DEV_ZERO_FOR_MMAP 1
18814 _ACEOF
18815
18816 fi
18817
18818   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18819   then
18820     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18821 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18822   fi
18823   if test "$ac_cv_func_mmap_file" = "no"
18824   then
18825     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18826 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18827   fi
18828 fi
18829
18830 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18831 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18832 ac_ext=cpp
18833 ac_cpp='$CXXCPP $CPPFLAGS'
18834 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18835 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18836 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18837
18838 cat >conftest.$ac_ext <<_ACEOF
18839
18840   /* confdefs.h.  */
18841 _ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h.  */
18845
18846     int main() {
18847       volatile unsigned long val = 1;
18848       __sync_synchronize();
18849       __sync_val_compare_and_swap(&val, 1, 0);
18850       __sync_add_and_fetch(&val, 1);
18851       __sync_sub_and_fetch(&val, 1);
18852       return 0;
18853     }
18854
18855
18856 _ACEOF
18857 rm -f conftest.$ac_objext conftest$ac_exeext
18858 if { (ac_try="$ac_link"
18859 case "(($ac_try" in
18860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861   *) ac_try_echo=$ac_try;;
18862 esac
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864   (eval "$ac_link") 2>conftest.er1
18865   ac_status=$?
18866   grep -v '^ *+' conftest.er1 >conftest.err
18867   rm -f conftest.er1
18868   cat conftest.err >&5
18869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870   (exit $ac_status); } &&
18871          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18872   { (case "(($ac_try" in
18873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874   *) ac_try_echo=$ac_try;;
18875 esac
18876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18877   (eval "$ac_try") 2>&5
18878   ac_status=$?
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); }; } &&
18881          { ac_try='test -s conftest$ac_exeext'
18882   { (case "(($ac_try" in
18883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884   *) ac_try_echo=$ac_try;;
18885 esac
18886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18887   (eval "$ac_try") 2>&5
18888   ac_status=$?
18889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890   (exit $ac_status); }; }; then
18891
18892   { echo "$as_me:$LINENO: result: yes" >&5
18893 echo "${ECHO_T}yes" >&6; }
18894
18895 cat >>confdefs.h <<\_ACEOF
18896 #define LLVM_HAS_ATOMICS 1
18897 _ACEOF
18898
18899
18900 else
18901   echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18903
18904
18905   { echo "$as_me:$LINENO: result: no" >&5
18906 echo "${ECHO_T}no" >&6; }
18907
18908 cat >>confdefs.h <<\_ACEOF
18909 #define LLVM_HAS_ATOMICS 0
18910 _ACEOF
18911
18912   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18913 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18914
18915 fi
18916
18917 rm -f core conftest.err conftest.$ac_objext \
18918       conftest$ac_exeext conftest.$ac_ext
18919 ac_ext=c
18920 ac_cpp='$CPP $CPPFLAGS'
18921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18924
18925
18926
18927 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18928   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18929 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18930 if test "${llvm_cv_linux_mixed+set}" = set; then
18931   echo $ECHO_N "(cached) $ECHO_C" >&6
18932 else
18933    ac_ext=c
18934 ac_cpp='$CPP $CPPFLAGS'
18935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18938
18939   cat >conftest.$ac_ext <<_ACEOF
18940 /* confdefs.h.  */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h.  */
18945 #ifndef __x86_64__
18946        error: Not x86-64 even if uname says so!
18947       #endif
18948
18949 int
18950 main ()
18951 {
18952
18953   ;
18954   return 0;
18955 }
18956 _ACEOF
18957 rm -f conftest.$ac_objext
18958 if { (ac_try="$ac_compile"
18959 case "(($ac_try" in
18960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961   *) ac_try_echo=$ac_try;;
18962 esac
18963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18964   (eval "$ac_compile") 2>conftest.er1
18965   ac_status=$?
18966   grep -v '^ *+' conftest.er1 >conftest.err
18967   rm -f conftest.er1
18968   cat conftest.err >&5
18969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970   (exit $ac_status); } &&
18971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18972   { (case "(($ac_try" in
18973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974   *) ac_try_echo=$ac_try;;
18975 esac
18976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18977   (eval "$ac_try") 2>&5
18978   ac_status=$?
18979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980   (exit $ac_status); }; } &&
18981          { ac_try='test -s conftest.$ac_objext'
18982   { (case "(($ac_try" in
18983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984   *) ac_try_echo=$ac_try;;
18985 esac
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987   (eval "$ac_try") 2>&5
18988   ac_status=$?
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); }; }; then
18991   llvm_cv_linux_mixed=no
18992 else
18993   echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18995
18996         llvm_cv_linux_mixed=yes
18997 fi
18998
18999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000   ac_ext=c
19001 ac_cpp='$CPP $CPPFLAGS'
19002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19005
19006
19007 fi
19008 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19009 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19010
19011   if test "$llvm_cv_linux_mixed" = "yes"; then
19012     llvm_cv_target_arch="x86"
19013     ARCH="x86"
19014   fi
19015 fi
19016
19017
19018 for ac_func in __dso_handle
19019 do
19020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19024   echo $ECHO_N "(cached) $ECHO_C" >&6
19025 else
19026   cat >conftest.$ac_ext <<_ACEOF
19027 /* confdefs.h.  */
19028 _ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h.  */
19032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19034 #define $ac_func innocuous_$ac_func
19035
19036 /* System header to define __stub macros and hopefully few prototypes,
19037     which can conflict with char $ac_func (); below.
19038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19039     <limits.h> exists even on freestanding compilers.  */
19040
19041 #ifdef __STDC__
19042 # include <limits.h>
19043 #else
19044 # include <assert.h>
19045 #endif
19046
19047 #undef $ac_func
19048
19049 /* Override any GCC internal prototype to avoid an error.
19050    Use char because int might match the return type of a GCC
19051    builtin and then its argument prototype would still apply.  */
19052 #ifdef __cplusplus
19053 extern "C"
19054 #endif
19055 char $ac_func ();
19056 /* The GNU C library defines this for functions which it implements
19057     to always fail with ENOSYS.  Some functions are actually named
19058     something starting with __ and the normal name is an alias.  */
19059 #if defined __stub_$ac_func || defined __stub___$ac_func
19060 choke me
19061 #endif
19062
19063 int
19064 main ()
19065 {
19066 return $ac_func ();
19067   ;
19068   return 0;
19069 }
19070 _ACEOF
19071 rm -f conftest.$ac_objext conftest$ac_exeext
19072 if { (ac_try="$ac_link"
19073 case "(($ac_try" in
19074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075   *) ac_try_echo=$ac_try;;
19076 esac
19077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078   (eval "$ac_link") 2>conftest.er1
19079   ac_status=$?
19080   grep -v '^ *+' conftest.er1 >conftest.err
19081   rm -f conftest.er1
19082   cat conftest.err >&5
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); } &&
19085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19086   { (case "(($ac_try" in
19087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088   *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091   (eval "$ac_try") 2>&5
19092   ac_status=$?
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); }; } &&
19095          { ac_try='test -s conftest$ac_exeext'
19096   { (case "(($ac_try" in
19097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098   *) ac_try_echo=$ac_try;;
19099 esac
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101   (eval "$ac_try") 2>&5
19102   ac_status=$?
19103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104   (exit $ac_status); }; }; then
19105   eval "$as_ac_var=yes"
19106 else
19107   echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19109
19110         eval "$as_ac_var=no"
19111 fi
19112
19113 rm -f core conftest.err conftest.$ac_objext \
19114       conftest$ac_exeext conftest.$ac_ext
19115 fi
19116 ac_res=`eval echo '${'$as_ac_var'}'`
19117                { echo "$as_me:$LINENO: result: $ac_res" >&5
19118 echo "${ECHO_T}$ac_res" >&6; }
19119 if test `eval echo '${'$as_ac_var'}'` = yes; then
19120   cat >>confdefs.h <<_ACEOF
19121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19122 _ACEOF
19123
19124 fi
19125 done
19126
19127
19128 SHLIBEXT=$llvm_shlib_ext
19129
19130
19131 if test "${prefix}" = "NONE" ; then
19132   prefix="/usr/local"
19133 fi
19134 eval LLVM_PREFIX="${prefix}";
19135 eval LLVM_BINDIR="${prefix}/bin";
19136 eval LLVM_DATADIR="${prefix}/share/llvm";
19137 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19138 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19139 eval LLVM_INCLUDEDIR="${prefix}/include";
19140 eval LLVM_INFODIR="${prefix}/info";
19141 eval LLVM_MANDIR="${prefix}/man";
19142 LLVM_CONFIGTIME=`date`
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153 if test "${ENABLE_TIMESTAMPS}" = "0"; then
19154   LLVM_CONFIGTIME="(timestamp not enabled)"
19155 fi
19156
19157
19158 cat >>confdefs.h <<_ACEOF
19159 #define LLVM_PREFIX "$LLVM_PREFIX"
19160 _ACEOF
19161
19162
19163 cat >>confdefs.h <<_ACEOF
19164 #define LLVM_BINDIR "$LLVM_BINDIR"
19165 _ACEOF
19166
19167
19168 cat >>confdefs.h <<_ACEOF
19169 #define LLVM_DATADIR "$LLVM_DATADIR"
19170 _ACEOF
19171
19172
19173 cat >>confdefs.h <<_ACEOF
19174 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19175 _ACEOF
19176
19177
19178 cat >>confdefs.h <<_ACEOF
19179 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19180 _ACEOF
19181
19182
19183 cat >>confdefs.h <<_ACEOF
19184 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19185 _ACEOF
19186
19187
19188 cat >>confdefs.h <<_ACEOF
19189 #define LLVM_INFODIR "$LLVM_INFODIR"
19190 _ACEOF
19191
19192
19193 cat >>confdefs.h <<_ACEOF
19194 #define LLVM_MANDIR "$LLVM_MANDIR"
19195 _ACEOF
19196
19197
19198 cat >>confdefs.h <<_ACEOF
19199 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19200 _ACEOF
19201
19202
19203 cat >>confdefs.h <<_ACEOF
19204 #define LLVM_HOST_TRIPLE "$host"
19205 _ACEOF
19206
19207
19208 cat >>confdefs.h <<_ACEOF
19209 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
19210 _ACEOF
19211
19212
19213 if test "$BINDINGS_TO_BUILD" = auto ; then
19214   BINDINGS_TO_BUILD=""
19215   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19216     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19217   fi
19218 fi
19219 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19220
19221
19222 ALL_BINDINGS=ocaml
19223
19224
19225 binding_prereqs_failed=0
19226 for a_binding in $BINDINGS_TO_BUILD ; do
19227   case "$a_binding" in
19228   ocaml)
19229     if test "x$OCAMLC" = x ; then
19230       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19231 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19232       binding_prereqs_failed=1
19233     fi
19234     if test "x$OCAMLDEP" = x ; then
19235       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19236 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19237       binding_prereqs_failed=1
19238     fi
19239     if test "x$OCAMLOPT" = x ; then
19240       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19241 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19242           fi
19243     if test "x$with_ocaml_libdir" != xauto ; then
19244       OCAML_LIBDIR=$with_ocaml_libdir
19245
19246     else
19247       ocaml_stdlib="`"$OCAMLC" -where`"
19248       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19249       then
19250         # ocaml stdlib is beneath our prefix; use stdlib
19251         OCAML_LIBDIR=$ocaml_stdlib
19252
19253       else
19254         # ocaml stdlib is outside our prefix; use libdir/ocaml
19255         OCAML_LIBDIR=${prefix}/lib/ocaml
19256
19257       fi
19258     fi
19259     ;;
19260   esac
19261 done
19262 if test "$binding_prereqs_failed" = 1 ; then
19263   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19264 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19265    { (exit 1); exit 1; }; }
19266 fi
19267
19268 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19269 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19270 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19271   echo $ECHO_N "(cached) $ECHO_C" >&6
19272 else
19273    ac_ext=cpp
19274 ac_cpp='$CXXCPP $CPPFLAGS'
19275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19278
19279   oldcxxflags="$CXXFLAGS"
19280   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
19281   cat >conftest.$ac_ext <<_ACEOF
19282 /* confdefs.h.  */
19283 _ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h.  */
19287 template <typename T> struct X { void __attribute__((noinline)) f() {} };
19288 int
19289 main ()
19290 {
19291 X<int>().f();
19292   ;
19293   return 0;
19294 }
19295 _ACEOF
19296 rm -f conftest.$ac_objext
19297 if { (ac_try="$ac_compile"
19298 case "(($ac_try" in
19299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300   *) ac_try_echo=$ac_try;;
19301 esac
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303   (eval "$ac_compile") 2>conftest.er1
19304   ac_status=$?
19305   grep -v '^ *+' conftest.er1 >conftest.err
19306   rm -f conftest.er1
19307   cat conftest.err >&5
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); } &&
19310          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19311   { (case "(($ac_try" in
19312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19313   *) ac_try_echo=$ac_try;;
19314 esac
19315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19316   (eval "$ac_try") 2>&5
19317   ac_status=$?
19318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319   (exit $ac_status); }; } &&
19320          { ac_try='test -s conftest.$ac_objext'
19321   { (case "(($ac_try" in
19322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323   *) ac_try_echo=$ac_try;;
19324 esac
19325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19326   (eval "$ac_try") 2>&5
19327   ac_status=$?
19328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329   (exit $ac_status); }; }; then
19330   llvm_cv_cxx_visibility_inlines_hidden=yes
19331 else
19332   echo "$as_me: failed program was:" >&5
19333 sed 's/^/| /' conftest.$ac_ext >&5
19334
19335         llvm_cv_cxx_visibility_inlines_hidden=no
19336 fi
19337
19338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19339   CXXFLAGS="$oldcxxflags"
19340   ac_ext=c
19341 ac_cpp='$CPP $CPPFLAGS'
19342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19345
19346
19347 fi
19348 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19349 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19350 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19351   ENABLE_VISIBILITY_INLINES_HIDDEN=1
19352
19353 else
19354   ENABLE_VISIBILITY_INLINES_HIDDEN=0
19355
19356 fi
19357
19358
19359 if test "$llvm_cv_link_use_r" = "yes" ; then
19360   RPATH="-Wl,-R"
19361 else
19362   RPATH="-Wl,-rpath"
19363 fi
19364
19365
19366 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19367   RDYNAMIC="-rdynamic"
19368 else
19369   RDYNAMIC=""
19370 fi
19371
19372
19373
19374 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
19375
19376
19377
19378
19379
19380
19381 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19382
19383 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19384
19385 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19386
19387 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19388
19389 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
19390
19391
19392 ac_config_files="$ac_config_files Makefile.config"
19393
19394
19395 ac_config_files="$ac_config_files llvm.spec"
19396
19397
19398 ac_config_files="$ac_config_files docs/doxygen.cfg"
19399
19400
19401 if test "${clang_src_root}" = ""; then
19402   clang_src_root="$srcdir/tools/clang"
19403 fi
19404 if test -f ${clang_src_root}/README.txt; then
19405     configh="include/clang/Config/config.h"
19406   doxy="docs/doxygen.cfg"
19407   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
19408
19409   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
19410
19411 fi
19412
19413 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
19414
19415
19416 test "x$program_prefix" = "xNONE" && program_prefix=""
19417
19418
19419
19420 ac_config_commands="$ac_config_commands setup"
19421
19422 ac_config_commands="$ac_config_commands Makefile"
19423
19424
19425 ac_config_commands="$ac_config_commands Makefile.common"
19426
19427
19428 ac_config_commands="$ac_config_commands examples/Makefile"
19429
19430
19431 ac_config_commands="$ac_config_commands lib/Makefile"
19432
19433
19434 ac_config_commands="$ac_config_commands test/Makefile"
19435
19436
19437 ac_config_commands="$ac_config_commands test/Makefile.tests"
19438
19439
19440 ac_config_commands="$ac_config_commands unittests/Makefile"
19441
19442
19443 ac_config_commands="$ac_config_commands tools/Makefile"
19444
19445
19446 ac_config_commands="$ac_config_commands utils/Makefile"
19447
19448
19449 ac_config_commands="$ac_config_commands projects/Makefile"
19450
19451
19452 ac_config_commands="$ac_config_commands bindings/Makefile"
19453
19454
19455 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19456
19457
19458
19459 cat >confcache <<\_ACEOF
19460 # This file is a shell script that caches the results of configure
19461 # tests run on this system so they can be shared between configure
19462 # scripts and configure runs, see configure's option --config-cache.
19463 # It is not useful on other systems.  If it contains results you don't
19464 # want to keep, you may remove or edit it.
19465 #
19466 # config.status only pays attention to the cache file if you give it
19467 # the --recheck option to rerun configure.
19468 #
19469 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19470 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19471 # following values.
19472
19473 _ACEOF
19474
19475 # The following way of writing the cache mishandles newlines in values,
19476 # but we know of no workaround that is simple, portable, and efficient.
19477 # So, we kill variables containing newlines.
19478 # Ultrix sh set writes to stderr and can't be redirected directly,
19479 # and sets the high bit in the cache file unless we assign to the vars.
19480 (
19481   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19482     eval ac_val=\$$ac_var
19483     case $ac_val in #(
19484     *${as_nl}*)
19485       case $ac_var in #(
19486       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19487 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19488       esac
19489       case $ac_var in #(
19490       _ | IFS | as_nl) ;; #(
19491       *) $as_unset $ac_var ;;
19492       esac ;;
19493     esac
19494   done
19495
19496   (set) 2>&1 |
19497     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19498     *${as_nl}ac_space=\ *)
19499       # `set' does not quote correctly, so add quotes (double-quote
19500       # substitution turns \\\\ into \\, and sed turns \\ into \).
19501       sed -n \
19502         "s/'/'\\\\''/g;
19503           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19504       ;; #(
19505     *)
19506       # `set' quotes correctly as required by POSIX, so do not add quotes.
19507       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19508       ;;
19509     esac |
19510     sort
19511 ) |
19512   sed '
19513      /^ac_cv_env_/b end
19514      t clear
19515      :clear
19516      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19517      t end
19518      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19519      :end' >>confcache
19520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19521   if test -w "$cache_file"; then
19522     test "x$cache_file" != "x/dev/null" &&
19523       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19524 echo "$as_me: updating cache $cache_file" >&6;}
19525     cat confcache >$cache_file
19526   else
19527     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19528 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19529   fi
19530 fi
19531 rm -f confcache
19532
19533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19534 # Let make expand exec_prefix.
19535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19536
19537 DEFS=-DHAVE_CONFIG_H
19538
19539 ac_libobjs=
19540 ac_ltlibobjs=
19541 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19542   # 1. Remove the extension, and $U if already installed.
19543   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19544   ac_i=`echo "$ac_i" | sed "$ac_script"`
19545   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19546   #    will be set to the directory where LIBOBJS objects are built.
19547   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19548   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19549 done
19550 LIBOBJS=$ac_libobjs
19551
19552 LTLIBOBJS=$ac_ltlibobjs
19553
19554
19555
19556 : ${CONFIG_STATUS=./config.status}
19557 ac_clean_files_save=$ac_clean_files
19558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19559 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19560 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19561 cat >$CONFIG_STATUS <<_ACEOF
19562 #! $SHELL
19563 # Generated by $as_me.
19564 # Run this file to recreate the current configuration.
19565 # Compiler output produced by configure, useful for debugging
19566 # configure, is in config.log if it exists.
19567
19568 debug=false
19569 ac_cs_recheck=false
19570 ac_cs_silent=false
19571 SHELL=\${CONFIG_SHELL-$SHELL}
19572 _ACEOF
19573
19574 cat >>$CONFIG_STATUS <<\_ACEOF
19575 ## --------------------- ##
19576 ## M4sh Initialization.  ##
19577 ## --------------------- ##
19578
19579 # Be Bourne compatible
19580 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19581   emulate sh
19582   NULLCMD=:
19583   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19584   # is contrary to our usage.  Disable this feature.
19585   alias -g '${1+"$@"}'='"$@"'
19586   setopt NO_GLOB_SUBST
19587 else
19588   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19589 fi
19590 BIN_SH=xpg4; export BIN_SH # for Tru64
19591 DUALCASE=1; export DUALCASE # for MKS sh
19592
19593
19594 # PATH needs CR
19595 # Avoid depending upon Character Ranges.
19596 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19597 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19598 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19599 as_cr_digits='0123456789'
19600 as_cr_alnum=$as_cr_Letters$as_cr_digits
19601
19602 # The user is always right.
19603 if test "${PATH_SEPARATOR+set}" != set; then
19604   echo "#! /bin/sh" >conf$$.sh
19605   echo  "exit 0"   >>conf$$.sh
19606   chmod +x conf$$.sh
19607   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19608     PATH_SEPARATOR=';'
19609   else
19610     PATH_SEPARATOR=:
19611   fi
19612   rm -f conf$$.sh
19613 fi
19614
19615 # Support unset when possible.
19616 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19617   as_unset=unset
19618 else
19619   as_unset=false
19620 fi
19621
19622
19623 # IFS
19624 # We need space, tab and new line, in precisely that order.  Quoting is
19625 # there to prevent editors from complaining about space-tab.
19626 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19627 # splitting by setting IFS to empty value.)
19628 as_nl='
19629 '
19630 IFS=" ""        $as_nl"
19631
19632 # Find who we are.  Look in the path if we contain no directory separator.
19633 case $0 in
19634   *[\\/]* ) as_myself=$0 ;;
19635   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19636 for as_dir in $PATH
19637 do
19638   IFS=$as_save_IFS
19639   test -z "$as_dir" && as_dir=.
19640   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19641 done
19642 IFS=$as_save_IFS
19643
19644      ;;
19645 esac
19646 # We did not find ourselves, most probably we were run as `sh COMMAND'
19647 # in which case we are not to be found in the path.
19648 if test "x$as_myself" = x; then
19649   as_myself=$0
19650 fi
19651 if test ! -f "$as_myself"; then
19652   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19653   { (exit 1); exit 1; }
19654 fi
19655
19656 # Work around bugs in pre-3.0 UWIN ksh.
19657 for as_var in ENV MAIL MAILPATH
19658 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19659 done
19660 PS1='$ '
19661 PS2='> '
19662 PS4='+ '
19663
19664 # NLS nuisances.
19665 for as_var in \
19666   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19667   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19668   LC_TELEPHONE LC_TIME
19669 do
19670   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19671     eval $as_var=C; export $as_var
19672   else
19673     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19674   fi
19675 done
19676
19677 # Required to use basename.
19678 if expr a : '\(a\)' >/dev/null 2>&1 &&
19679    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19680   as_expr=expr
19681 else
19682   as_expr=false
19683 fi
19684
19685 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19686   as_basename=basename
19687 else
19688   as_basename=false
19689 fi
19690
19691
19692 # Name of the executable.
19693 as_me=`$as_basename -- "$0" ||
19694 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19695          X"$0" : 'X\(//\)$' \| \
19696          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19697 echo X/"$0" |
19698     sed '/^.*\/\([^/][^/]*\)\/*$/{
19699             s//\1/
19700             q
19701           }
19702           /^X\/\(\/\/\)$/{
19703             s//\1/
19704             q
19705           }
19706           /^X\/\(\/\).*/{
19707             s//\1/
19708             q
19709           }
19710           s/.*/./; q'`
19711
19712 # CDPATH.
19713 $as_unset CDPATH
19714
19715
19716
19717   as_lineno_1=$LINENO
19718   as_lineno_2=$LINENO
19719   test "x$as_lineno_1" != "x$as_lineno_2" &&
19720   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19721
19722   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19723   # uniformly replaced by the line number.  The first 'sed' inserts a
19724   # line-number line after each line using $LINENO; the second 'sed'
19725   # does the real work.  The second script uses 'N' to pair each
19726   # line-number line with the line containing $LINENO, and appends
19727   # trailing '-' during substitution so that $LINENO is not a special
19728   # case at line end.
19729   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19730   # scripts with optimization help from Paolo Bonzini.  Blame Lee
19731   # E. McMahon (1931-1989) for sed's syntax.  :-)
19732   sed -n '
19733     p
19734     /[$]LINENO/=
19735   ' <$as_myself |
19736     sed '
19737       s/[$]LINENO.*/&-/
19738       t lineno
19739       b
19740       :lineno
19741       N
19742       :loop
19743       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19744       t loop
19745       s/-\n.*//
19746     ' >$as_me.lineno &&
19747   chmod +x "$as_me.lineno" ||
19748     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19749    { (exit 1); exit 1; }; }
19750
19751   # Don't try to exec as it changes $[0], causing all sort of problems
19752   # (the dirname of $[0] is not the place where we might find the
19753   # original and so on.  Autoconf is especially sensitive to this).
19754   . "./$as_me.lineno"
19755   # Exit status is that of the last command.
19756   exit
19757 }
19758
19759
19760 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19761   as_dirname=dirname
19762 else
19763   as_dirname=false
19764 fi
19765
19766 ECHO_C= ECHO_N= ECHO_T=
19767 case `echo -n x` in
19768 -n*)
19769   case `echo 'x\c'` in
19770   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19771   *)   ECHO_C='\c';;
19772   esac;;
19773 *)
19774   ECHO_N='-n';;
19775 esac
19776
19777 if expr a : '\(a\)' >/dev/null 2>&1 &&
19778    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19779   as_expr=expr
19780 else
19781   as_expr=false
19782 fi
19783
19784 rm -f conf$$ conf$$.exe conf$$.file
19785 if test -d conf$$.dir; then
19786   rm -f conf$$.dir/conf$$.file
19787 else
19788   rm -f conf$$.dir
19789   mkdir conf$$.dir
19790 fi
19791 echo >conf$$.file
19792 if ln -s conf$$.file conf$$ 2>/dev/null; then
19793   as_ln_s='ln -s'
19794   # ... but there are two gotchas:
19795   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19796   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19797   # In both cases, we have to default to `cp -p'.
19798   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19799     as_ln_s='cp -p'
19800 elif ln conf$$.file conf$$ 2>/dev/null; then
19801   as_ln_s=ln
19802 else
19803   as_ln_s='cp -p'
19804 fi
19805 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19806 rmdir conf$$.dir 2>/dev/null
19807
19808 if mkdir -p . 2>/dev/null; then
19809   as_mkdir_p=:
19810 else
19811   test -d ./-p && rmdir ./-p
19812   as_mkdir_p=false
19813 fi
19814
19815 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19816 # systems may use methods other than mode bits to determine executability.
19817 cat >conf$$.file <<_ASEOF
19818 #! /bin/sh
19819 exit 0
19820 _ASEOF
19821 chmod +x conf$$.file
19822 if test -x conf$$.file >/dev/null 2>&1; then
19823   as_executable_p="test -x"
19824 else
19825   as_executable_p=:
19826 fi
19827 rm -f conf$$.file
19828
19829 # Sed expression to map a string onto a valid CPP name.
19830 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19831
19832 # Sed expression to map a string onto a valid variable name.
19833 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19834
19835
19836 exec 6>&1
19837
19838 # Save the log message, to keep $[0] and so on meaningful, and to
19839 # report actual input values of CONFIG_FILES etc. instead of their
19840 # values after options handling.
19841 ac_log="
19842 This file was extended by LLVM $as_me 3.5.0svn, which was
19843 generated by GNU Autoconf 2.60.  Invocation command line was
19844
19845   CONFIG_FILES    = $CONFIG_FILES
19846   CONFIG_HEADERS  = $CONFIG_HEADERS
19847   CONFIG_LINKS    = $CONFIG_LINKS
19848   CONFIG_COMMANDS = $CONFIG_COMMANDS
19849   $ $0 $@
19850
19851 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19852 "
19853
19854 _ACEOF
19855
19856 cat >>$CONFIG_STATUS <<_ACEOF
19857 # Files that config.status was made for.
19858 config_files="$ac_config_files"
19859 config_headers="$ac_config_headers"
19860 config_commands="$ac_config_commands"
19861
19862 _ACEOF
19863
19864 cat >>$CONFIG_STATUS <<\_ACEOF
19865 ac_cs_usage="\
19866 \`$as_me' instantiates files from templates according to the
19867 current configuration.
19868
19869 Usage: $0 [OPTIONS] [FILE]...
19870
19871   -h, --help       print this help, then exit
19872   -V, --version    print version number, then exit
19873   -q, --quiet      do not print progress messages
19874   -d, --debug      don't remove temporary files
19875       --recheck    update $as_me by reconfiguring in the same conditions
19876   --file=FILE[:TEMPLATE]
19877                    instantiate the configuration file FILE
19878   --header=FILE[:TEMPLATE]
19879                    instantiate the configuration header FILE
19880
19881 Configuration files:
19882 $config_files
19883
19884 Configuration headers:
19885 $config_headers
19886
19887 Configuration commands:
19888 $config_commands
19889
19890 Report bugs to <bug-autoconf@gnu.org>."
19891
19892 _ACEOF
19893 cat >>$CONFIG_STATUS <<_ACEOF
19894 ac_cs_version="\\
19895 LLVM config.status 3.5.0svn
19896 configured by $0, generated by GNU Autoconf 2.60,
19897   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19898
19899 Copyright (C) 2006 Free Software Foundation, Inc.
19900 This config.status script is free software; the Free Software Foundation
19901 gives unlimited permission to copy, distribute and modify it."
19902
19903 ac_pwd='$ac_pwd'
19904 srcdir='$srcdir'
19905 INSTALL='$INSTALL'
19906 _ACEOF
19907
19908 cat >>$CONFIG_STATUS <<\_ACEOF
19909 # If no file are specified by the user, then we need to provide default
19910 # value.  By we need to know if files were specified by the user.
19911 ac_need_defaults=:
19912 while test $# != 0
19913 do
19914   case $1 in
19915   --*=*)
19916     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19917     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19918     ac_shift=:
19919     ;;
19920   *)
19921     ac_option=$1
19922     ac_optarg=$2
19923     ac_shift=shift
19924     ;;
19925   esac
19926
19927   case $ac_option in
19928   # Handling of the options.
19929   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19930     ac_cs_recheck=: ;;
19931   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19932     echo "$ac_cs_version"; exit ;;
19933   --debug | --debu | --deb | --de | --d | -d )
19934     debug=: ;;
19935   --file | --fil | --fi | --f )
19936     $ac_shift
19937     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19938     ac_need_defaults=false;;
19939   --header | --heade | --head | --hea )
19940     $ac_shift
19941     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19942     ac_need_defaults=false;;
19943   --he | --h)
19944     # Conflict between --help and --header
19945     { echo "$as_me: error: ambiguous option: $1
19946 Try \`$0 --help' for more information." >&2
19947    { (exit 1); exit 1; }; };;
19948   --help | --hel | -h )
19949     echo "$ac_cs_usage"; exit ;;
19950   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19951   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19952     ac_cs_silent=: ;;
19953
19954   # This is an error.
19955   -*) { echo "$as_me: error: unrecognized option: $1
19956 Try \`$0 --help' for more information." >&2
19957    { (exit 1); exit 1; }; } ;;
19958
19959   *) ac_config_targets="$ac_config_targets $1"
19960      ac_need_defaults=false ;;
19961
19962   esac
19963   shift
19964 done
19965
19966 ac_configure_extra_args=
19967
19968 if $ac_cs_silent; then
19969   exec 6>/dev/null
19970   ac_configure_extra_args="$ac_configure_extra_args --silent"
19971 fi
19972
19973 _ACEOF
19974 cat >>$CONFIG_STATUS <<_ACEOF
19975 if \$ac_cs_recheck; then
19976   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19977   CONFIG_SHELL=$SHELL
19978   export CONFIG_SHELL
19979   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19980 fi
19981
19982 _ACEOF
19983 cat >>$CONFIG_STATUS <<\_ACEOF
19984 exec 5>>config.log
19985 {
19986   echo
19987   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19988 ## Running $as_me. ##
19989 _ASBOX
19990   echo "$ac_log"
19991 } >&5
19992
19993 _ACEOF
19994 cat >>$CONFIG_STATUS <<_ACEOF
19995 #
19996 # INIT-COMMANDS
19997 #
19998 llvm_src="${srcdir}"
19999
20000 _ACEOF
20001
20002 cat >>$CONFIG_STATUS <<\_ACEOF
20003
20004 # Handling of arguments.
20005 for ac_config_target in $ac_config_targets
20006 do
20007   case $ac_config_target in
20008     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20009     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
20010     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20011     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20012     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20013     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20014     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
20015     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20016     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20017     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20018     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
20019     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
20020     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
20021     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20022     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20023     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20024     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20025     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20026     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20027     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20028     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20029     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20030     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20031     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20032     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20033     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20034
20035   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20036 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20037    { (exit 1); exit 1; }; };;
20038   esac
20039 done
20040
20041
20042 # If the user did not use the arguments to specify the items to instantiate,
20043 # then the envvar interface is used.  Set only those that are not.
20044 # We use the long form for the default assignment because of an extremely
20045 # bizarre bug on SunOS 4.1.3.
20046 if $ac_need_defaults; then
20047   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20048   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20049   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20050 fi
20051
20052 # Have a temporary directory for convenience.  Make it in the build tree
20053 # simply because there is no reason against having it here, and in addition,
20054 # creating and moving files from /tmp can sometimes cause problems.
20055 # Hook for its removal unless debugging.
20056 # Note that there is a small window in which the directory will not be cleaned:
20057 # after its creation but before its name has been assigned to `$tmp'.
20058 $debug ||
20059 {
20060   tmp=
20061   trap 'exit_status=$?
20062   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20063 ' 0
20064   trap '{ (exit 1); exit 1; }' 1 2 13 15
20065 }
20066 # Create a (secure) tmp directory for tmp files.
20067
20068 {
20069   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20070   test -n "$tmp" && test -d "$tmp"
20071 }  ||
20072 {
20073   tmp=./conf$$-$RANDOM
20074   (umask 077 && mkdir "$tmp")
20075 } ||
20076 {
20077    echo "$me: cannot create a temporary directory in ." >&2
20078    { (exit 1); exit 1; }
20079 }
20080
20081 #
20082 # Set up the sed scripts for CONFIG_FILES section.
20083 #
20084
20085 # No need to generate the scripts if there are no CONFIG_FILES.
20086 # This happens for instance when ./config.status config.h
20087 if test -n "$CONFIG_FILES"; then
20088
20089 _ACEOF
20090
20091
20092
20093 ac_delim='%!_!# '
20094 for ac_last_try in false false false false false :; do
20095   cat >conf$$subs.sed <<_ACEOF
20096 SHELL!$SHELL$ac_delim
20097 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20098 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20099 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20100 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20101 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20102 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20103 exec_prefix!$exec_prefix$ac_delim
20104 prefix!$prefix$ac_delim
20105 program_transform_name!$program_transform_name$ac_delim
20106 bindir!$bindir$ac_delim
20107 sbindir!$sbindir$ac_delim
20108 libexecdir!$libexecdir$ac_delim
20109 datarootdir!$datarootdir$ac_delim
20110 datadir!$datadir$ac_delim
20111 sysconfdir!$sysconfdir$ac_delim
20112 sharedstatedir!$sharedstatedir$ac_delim
20113 localstatedir!$localstatedir$ac_delim
20114 includedir!$includedir$ac_delim
20115 oldincludedir!$oldincludedir$ac_delim
20116 docdir!$docdir$ac_delim
20117 infodir!$infodir$ac_delim
20118 htmldir!$htmldir$ac_delim
20119 dvidir!$dvidir$ac_delim
20120 pdfdir!$pdfdir$ac_delim
20121 psdir!$psdir$ac_delim
20122 libdir!$libdir$ac_delim
20123 localedir!$localedir$ac_delim
20124 mandir!$mandir$ac_delim
20125 DEFS!$DEFS$ac_delim
20126 ECHO_C!$ECHO_C$ac_delim
20127 ECHO_N!$ECHO_N$ac_delim
20128 ECHO_T!$ECHO_T$ac_delim
20129 LIBS!$LIBS$ac_delim
20130 build_alias!$build_alias$ac_delim
20131 host_alias!$host_alias$ac_delim
20132 target_alias!$target_alias$ac_delim
20133 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
20134 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
20135 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
20136 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
20137 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20138 CC!$CC$ac_delim
20139 CFLAGS!$CFLAGS$ac_delim
20140 LDFLAGS!$LDFLAGS$ac_delim
20141 CPPFLAGS!$CPPFLAGS$ac_delim
20142 ac_ct_CC!$ac_ct_CC$ac_delim
20143 EXEEXT!$EXEEXT$ac_delim
20144 OBJEXT!$OBJEXT$ac_delim
20145 CXX!$CXX$ac_delim
20146 CXXFLAGS!$CXXFLAGS$ac_delim
20147 ac_ct_CXX!$ac_ct_CXX$ac_delim
20148 CPP!$CPP$ac_delim
20149 subdirs!$subdirs$ac_delim
20150 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
20151 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
20152 build!$build$ac_delim
20153 build_cpu!$build_cpu$ac_delim
20154 build_vendor!$build_vendor$ac_delim
20155 build_os!$build_os$ac_delim
20156 host!$host$ac_delim
20157 host_cpu!$host_cpu$ac_delim
20158 host_vendor!$host_vendor$ac_delim
20159 host_os!$host_os$ac_delim
20160 target!$target$ac_delim
20161 target_cpu!$target_cpu$ac_delim
20162 target_vendor!$target_vendor$ac_delim
20163 target_os!$target_os$ac_delim
20164 OS!$OS$ac_delim
20165 HOST_OS!$HOST_OS$ac_delim
20166 TARGET_OS!$TARGET_OS$ac_delim
20167 LINKALL!$LINKALL$ac_delim
20168 NOLINKALL!$NOLINKALL$ac_delim
20169 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20170 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20171 ARCH!$ARCH$ac_delim
20172 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
20173 HOST_ARCH!$HOST_ARCH$ac_delim
20174 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20175 BUILD_CC!$BUILD_CC$ac_delim
20176 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20177 BUILD_CXX!$BUILD_CXX$ac_delim
20178 CVSBUILD!$CVSBUILD$ac_delim
20179 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
20180 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
20181 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
20182 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
20183 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
20184 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
20185 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20186 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20187 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20188 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
20189 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20190 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20191 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20192 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20193 _ACEOF
20194
20195   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20196     break
20197   elif $ac_last_try; then
20198     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20199 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20200    { (exit 1); exit 1; }; }
20201   else
20202     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20203   fi
20204 done
20205
20206 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20207 if test -n "$ac_eof"; then
20208   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20209   ac_eof=`expr $ac_eof + 1`
20210 fi
20211
20212 cat >>$CONFIG_STATUS <<_ACEOF
20213 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20215 _ACEOF
20216 sed '
20217 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20218 s/^/s,@/; s/!/@,|#_!!_#|/
20219 :n
20220 t n
20221 s/'"$ac_delim"'$/,g/; t
20222 s/$/\\/; p
20223 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20224 ' >>$CONFIG_STATUS <conf$$subs.sed
20225 rm -f conf$$subs.sed
20226 cat >>$CONFIG_STATUS <<_ACEOF
20227 CEOF$ac_eof
20228 _ACEOF
20229
20230
20231 ac_delim='%!_!# '
20232 for ac_last_try in false false false false false :; do
20233   cat >conf$$subs.sed <<_ACEOF
20234 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
20235 JIT!$JIT$ac_delim
20236 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20237 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
20238 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
20239 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20240 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
20241 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
20242 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
20243 ENABLE_PIC!$ENABLE_PIC$ac_delim
20244 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20245 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
20246 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
20247 ALL_TARGETS!$ALL_TARGETS$ac_delim
20248 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20249 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20250 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20251 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20252 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20253 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20254 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20255 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
20256 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
20257 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20258 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
20259 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
20260 ifGNUmake!$ifGNUmake$ac_delim
20261 LN_S!$LN_S$ac_delim
20262 NM!$NM$ac_delim
20263 CMP!$CMP$ac_delim
20264 CP!$CP$ac_delim
20265 DATE!$DATE$ac_delim
20266 FIND!$FIND$ac_delim
20267 GREP!$GREP$ac_delim
20268 MKDIR!$MKDIR$ac_delim
20269 MV!$MV$ac_delim
20270 RANLIB!$RANLIB$ac_delim
20271 AR!$AR$ac_delim
20272 RM!$RM$ac_delim
20273 SED!$SED$ac_delim
20274 TAR!$TAR$ac_delim
20275 BINPWD!$BINPWD$ac_delim
20276 GRAPHVIZ!$GRAPHVIZ$ac_delim
20277 DOT!$DOT$ac_delim
20278 FDP!$FDP$ac_delim
20279 NEATO!$NEATO$ac_delim
20280 TWOPI!$TWOPI$ac_delim
20281 CIRCO!$CIRCO$ac_delim
20282 GV!$GV$ac_delim
20283 DOTTY!$DOTTY$ac_delim
20284 XDOT!$XDOT$ac_delim
20285 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20286 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20287 INSTALL_DATA!$INSTALL_DATA$ac_delim
20288 BZIP2!$BZIP2$ac_delim
20289 CAT!$CAT$ac_delim
20290 DOXYGEN!$DOXYGEN$ac_delim
20291 GROFF!$GROFF$ac_delim
20292 GZIPBIN!$GZIPBIN$ac_delim
20293 PDFROFF!$PDFROFF$ac_delim
20294 ZIP!$ZIP$ac_delim
20295 OCAMLC!$OCAMLC$ac_delim
20296 OCAMLOPT!$OCAMLOPT$ac_delim
20297 OCAMLDEP!$OCAMLDEP$ac_delim
20298 OCAMLDOC!$OCAMLDOC$ac_delim
20299 GAS!$GAS$ac_delim
20300 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
20301 EGREP!$EGREP$ac_delim
20302 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20303 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20304 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
20305 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
20306 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
20307 PYTHON!$PYTHON$ac_delim
20308 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
20309 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
20310 USE_UDIS86!$USE_UDIS86$ac_delim
20311 USE_OPROFILE!$USE_OPROFILE$ac_delim
20312 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
20313 XML2CONFIG!$XML2CONFIG$ac_delim
20314 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
20315 LIBXML2_INC!$LIBXML2_INC$ac_delim
20316 CXXCPP!$CXXCPP$ac_delim
20317 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20318 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
20319 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20320 MMAP_FILE!$MMAP_FILE$ac_delim
20321 SHLIBEXT!$SHLIBEXT$ac_delim
20322 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20323 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20324 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20325 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20326 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20327 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20328 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20329 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20330 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20331 _ACEOF
20332
20333   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20334     break
20335   elif $ac_last_try; then
20336     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20337 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20338    { (exit 1); exit 1; }; }
20339   else
20340     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20341   fi
20342 done
20343
20344 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20345 if test -n "$ac_eof"; then
20346   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20347   ac_eof=`expr $ac_eof + 1`
20348 fi
20349
20350 cat >>$CONFIG_STATUS <<_ACEOF
20351 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20352 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20353 _ACEOF
20354 sed '
20355 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20356 s/^/s,@/; s/!/@,|#_!!_#|/
20357 :n
20358 t n
20359 s/'"$ac_delim"'$/,g/; t
20360 s/$/\\/; p
20361 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20362 ' >>$CONFIG_STATUS <conf$$subs.sed
20363 rm -f conf$$subs.sed
20364 cat >>$CONFIG_STATUS <<_ACEOF
20365 CEOF$ac_eof
20366 _ACEOF
20367
20368
20369 ac_delim='%!_!# '
20370 for ac_last_try in false false false false false :; do
20371   cat >conf$$subs.sed <<_ACEOF
20372 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20373 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20374 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20375 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20376 RPATH!$RPATH$ac_delim
20377 RDYNAMIC!$RDYNAMIC$ac_delim
20378 program_prefix!$program_prefix$ac_delim
20379 LIBOBJS!$LIBOBJS$ac_delim
20380 LTLIBOBJS!$LTLIBOBJS$ac_delim
20381 _ACEOF
20382
20383   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
20384     break
20385   elif $ac_last_try; then
20386     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20387 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20388    { (exit 1); exit 1; }; }
20389   else
20390     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20391   fi
20392 done
20393
20394 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20395 if test -n "$ac_eof"; then
20396   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20397   ac_eof=`expr $ac_eof + 1`
20398 fi
20399
20400 cat >>$CONFIG_STATUS <<_ACEOF
20401 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
20402 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20403 _ACEOF
20404 sed '
20405 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20406 s/^/s,@/; s/!/@,|#_!!_#|/
20407 :n
20408 t n
20409 s/'"$ac_delim"'$/,g/; t
20410 s/$/\\/; p
20411 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20412 ' >>$CONFIG_STATUS <conf$$subs.sed
20413 rm -f conf$$subs.sed
20414 cat >>$CONFIG_STATUS <<_ACEOF
20415 :end
20416 s/|#_!!_#|//g
20417 CEOF$ac_eof
20418 _ACEOF
20419
20420
20421 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20422 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20423 # trailing colons and then remove the whole line if VPATH becomes empty
20424 # (actually we leave an empty line to preserve line numbers).
20425 if test "x$srcdir" = x.; then
20426   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20427 s/:*\$(srcdir):*/:/
20428 s/:*\${srcdir}:*/:/
20429 s/:*@srcdir@:*/:/
20430 s/^\([^=]*=[     ]*\):*/\1/
20431 s/:*$//
20432 s/^[^=]*=[       ]*$//
20433 }'
20434 fi
20435
20436 cat >>$CONFIG_STATUS <<\_ACEOF
20437 fi # test -n "$CONFIG_FILES"
20438
20439
20440 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20441 do
20442   case $ac_tag in
20443   :[FHLC]) ac_mode=$ac_tag; continue;;
20444   esac
20445   case $ac_mode$ac_tag in
20446   :[FHL]*:*);;
20447   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20448 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20449    { (exit 1); exit 1; }; };;
20450   :[FH]-) ac_tag=-:-;;
20451   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20452   esac
20453   ac_save_IFS=$IFS
20454   IFS=:
20455   set x $ac_tag
20456   IFS=$ac_save_IFS
20457   shift
20458   ac_file=$1
20459   shift
20460
20461   case $ac_mode in
20462   :L) ac_source=$1;;
20463   :[FH])
20464     ac_file_inputs=
20465     for ac_f
20466     do
20467       case $ac_f in
20468       -) ac_f="$tmp/stdin";;
20469       *) # Look for the file first in the build tree, then in the source tree
20470          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20471          # because $ac_f cannot contain `:'.
20472          test -f "$ac_f" ||
20473            case $ac_f in
20474            [\\/$]*) false;;
20475            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20476            esac ||
20477            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20478 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20479    { (exit 1); exit 1; }; };;
20480       esac
20481       ac_file_inputs="$ac_file_inputs $ac_f"
20482     done
20483
20484     # Let's still pretend it is `configure' which instantiates (i.e., don't
20485     # use $as_me), people would be surprised to read:
20486     #    /* config.h.  Generated by config.status.  */
20487     configure_input="Generated from "`IFS=:
20488           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20489     if test x"$ac_file" != x-; then
20490       configure_input="$ac_file.  $configure_input"
20491       { echo "$as_me:$LINENO: creating $ac_file" >&5
20492 echo "$as_me: creating $ac_file" >&6;}
20493     fi
20494
20495     case $ac_tag in
20496     *:-:* | *:-) cat >"$tmp/stdin";;
20497     esac
20498     ;;
20499   esac
20500
20501   ac_dir=`$as_dirname -- "$ac_file" ||
20502 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20503          X"$ac_file" : 'X\(//\)[^/]' \| \
20504          X"$ac_file" : 'X\(//\)$' \| \
20505          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20506 echo X"$ac_file" |
20507     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20508             s//\1/
20509             q
20510           }
20511           /^X\(\/\/\)[^/].*/{
20512             s//\1/
20513             q
20514           }
20515           /^X\(\/\/\)$/{
20516             s//\1/
20517             q
20518           }
20519           /^X\(\/\).*/{
20520             s//\1/
20521             q
20522           }
20523           s/.*/./; q'`
20524   { as_dir="$ac_dir"
20525   case $as_dir in #(
20526   -*) as_dir=./$as_dir;;
20527   esac
20528   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20529     as_dirs=
20530     while :; do
20531       case $as_dir in #(
20532       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20533       *) as_qdir=$as_dir;;
20534       esac
20535       as_dirs="'$as_qdir' $as_dirs"
20536       as_dir=`$as_dirname -- "$as_dir" ||
20537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20538          X"$as_dir" : 'X\(//\)[^/]' \| \
20539          X"$as_dir" : 'X\(//\)$' \| \
20540          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20541 echo X"$as_dir" |
20542     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20543             s//\1/
20544             q
20545           }
20546           /^X\(\/\/\)[^/].*/{
20547             s//\1/
20548             q
20549           }
20550           /^X\(\/\/\)$/{
20551             s//\1/
20552             q
20553           }
20554           /^X\(\/\).*/{
20555             s//\1/
20556             q
20557           }
20558           s/.*/./; q'`
20559       test -d "$as_dir" && break
20560     done
20561     test -z "$as_dirs" || eval "mkdir $as_dirs"
20562   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20563 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20564    { (exit 1); exit 1; }; }; }
20565   ac_builddir=.
20566
20567 case "$ac_dir" in
20568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20569 *)
20570   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20571   # A ".." for each directory in $ac_dir_suffix.
20572   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20573   case $ac_top_builddir_sub in
20574   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20575   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20576   esac ;;
20577 esac
20578 ac_abs_top_builddir=$ac_pwd
20579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20580 # for backward compatibility:
20581 ac_top_builddir=$ac_top_build_prefix
20582
20583 case $srcdir in
20584   .)  # We are building in place.
20585     ac_srcdir=.
20586     ac_top_srcdir=$ac_top_builddir_sub
20587     ac_abs_top_srcdir=$ac_pwd ;;
20588   [\\/]* | ?:[\\/]* )  # Absolute name.
20589     ac_srcdir=$srcdir$ac_dir_suffix;
20590     ac_top_srcdir=$srcdir
20591     ac_abs_top_srcdir=$srcdir ;;
20592   *) # Relative name.
20593     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20594     ac_top_srcdir=$ac_top_build_prefix$srcdir
20595     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20596 esac
20597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20598
20599
20600   case $ac_mode in
20601   :F)
20602   #
20603   # CONFIG_FILE
20604   #
20605
20606   case $INSTALL in
20607   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20608   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20609   esac
20610 _ACEOF
20611
20612 cat >>$CONFIG_STATUS <<\_ACEOF
20613 # If the template does not know about datarootdir, expand it.
20614 # FIXME: This hack should be removed a few years after 2.60.
20615 ac_datarootdir_hack=; ac_datarootdir_seen=
20616
20617 case `sed -n '/datarootdir/ {
20618   p
20619   q
20620 }
20621 /@datadir@/p
20622 /@docdir@/p
20623 /@infodir@/p
20624 /@localedir@/p
20625 /@mandir@/p
20626 ' $ac_file_inputs` in
20627 *datarootdir*) ac_datarootdir_seen=yes;;
20628 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20629   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20630 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20631 _ACEOF
20632 cat >>$CONFIG_STATUS <<_ACEOF
20633   ac_datarootdir_hack='
20634   s&@datadir@&$datadir&g
20635   s&@docdir@&$docdir&g
20636   s&@infodir@&$infodir&g
20637   s&@localedir@&$localedir&g
20638   s&@mandir@&$mandir&g
20639     s&\\\${datarootdir}&$datarootdir&g' ;;
20640 esac
20641 _ACEOF
20642
20643 # Neutralize VPATH when `$srcdir' = `.'.
20644 # Shell code in configure.ac might set extrasub.
20645 # FIXME: do we really want to maintain this feature?
20646 cat >>$CONFIG_STATUS <<_ACEOF
20647   sed "$ac_vpsub
20648 $extrasub
20649 _ACEOF
20650 cat >>$CONFIG_STATUS <<\_ACEOF
20651 :t
20652 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20653 s&@configure_input@&$configure_input&;t t
20654 s&@top_builddir@&$ac_top_builddir_sub&;t t
20655 s&@srcdir@&$ac_srcdir&;t t
20656 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20657 s&@top_srcdir@&$ac_top_srcdir&;t t
20658 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20659 s&@builddir@&$ac_builddir&;t t
20660 s&@abs_builddir@&$ac_abs_builddir&;t t
20661 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20662 s&@INSTALL@&$ac_INSTALL&;t t
20663 $ac_datarootdir_hack
20664 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
20665
20666 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20667   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20668   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20669   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20670 which seems to be undefined.  Please make sure it is defined." >&5
20671 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20672 which seems to be undefined.  Please make sure it is defined." >&2;}
20673
20674   rm -f "$tmp/stdin"
20675   case $ac_file in
20676   -) cat "$tmp/out"; rm -f "$tmp/out";;
20677   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20678   esac
20679  ;;
20680   :H)
20681   #
20682   # CONFIG_HEADER
20683   #
20684 _ACEOF
20685
20686 # Transform confdefs.h into a sed script `conftest.defines', that
20687 # substitutes the proper values into config.h.in to produce config.h.
20688 rm -f conftest.defines conftest.tail
20689 # First, append a space to every undef/define line, to ease matching.
20690 echo 's/$/ /' >conftest.defines
20691 # Then, protect against being on the right side of a sed subst, or in
20692 # an unquoted here document, in config.status.  If some macros were
20693 # called several times there might be several #defines for the same
20694 # symbol, which is useless.  But do not sort them, since the last
20695 # AC_DEFINE must be honored.
20696 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20697 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20698 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20699 # PARAMS is the parameter list in the macro definition--in most cases, it's
20700 # just an empty string.
20701 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
20702 ac_dB='\\)[      (].*,\\1define\\2'
20703 ac_dC=' '
20704 ac_dD=' ,'
20705
20706 uniq confdefs.h |
20707   sed -n '
20708         t rset
20709         :rset
20710         s/^[     ]*#[    ]*define[       ][      ]*//
20711         t ok
20712         d
20713         :ok
20714         s/[\\&,]/\\&/g
20715         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20716         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20717   ' >>conftest.defines
20718
20719 # Remove the space that was appended to ease matching.
20720 # Then replace #undef with comments.  This is necessary, for
20721 # example, in the case of _POSIX_SOURCE, which is predefined and required
20722 # on some systems where configure will not decide to define it.
20723 # (The regexp can be short, since the line contains either #define or #undef.)
20724 echo 's/ $//
20725 s,^[     #]*u.*,/* & */,' >>conftest.defines
20726
20727 # Break up conftest.defines:
20728 ac_max_sed_lines=50
20729
20730 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20731 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20732 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20733 # et cetera.
20734 ac_in='$ac_file_inputs'
20735 ac_out='"$tmp/out1"'
20736 ac_nxt='"$tmp/out2"'
20737
20738 while :
20739 do
20740   # Write a here document:
20741     cat >>$CONFIG_STATUS <<_ACEOF
20742     # First, check the format of the line:
20743     cat >"\$tmp/defines.sed" <<\\CEOF
20744 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
20745 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
20746 b
20747 :def
20748 _ACEOF
20749   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20750   echo 'CEOF
20751     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20752   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20753   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20754   grep . conftest.tail >/dev/null || break
20755   rm -f conftest.defines
20756   mv conftest.tail conftest.defines
20757 done
20758 rm -f conftest.defines conftest.tail
20759
20760 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20761 cat >>$CONFIG_STATUS <<\_ACEOF
20762   if test x"$ac_file" != x-; then
20763     echo "/* $configure_input  */" >"$tmp/config.h"
20764     cat "$ac_result" >>"$tmp/config.h"
20765     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20766       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20767 echo "$as_me: $ac_file is unchanged" >&6;}
20768     else
20769       rm -f $ac_file
20770       mv "$tmp/config.h" $ac_file
20771     fi
20772   else
20773     echo "/* $configure_input  */"
20774     cat "$ac_result"
20775   fi
20776   rm -f "$tmp/out12"
20777  ;;
20778
20779   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20780 echo "$as_me: executing $ac_file commands" >&6;}
20781  ;;
20782   esac
20783
20784
20785   case $ac_file$ac_mode in
20786     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20787    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20788     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20789    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20790     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20791    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20792     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20793    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20794     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20795    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20796     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20797    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20798     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20799    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20800     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20801    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20802     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20803    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20804     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20805    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20806     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20807    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20808     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20809    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20810
20811   esac
20812 done # for ac_tag
20813
20814
20815 { (exit 0); exit 0; }
20816 _ACEOF
20817 chmod +x $CONFIG_STATUS
20818 ac_clean_files=$ac_clean_files_save
20819
20820
20821 # configure is writing to config.log, and then calls config.status.
20822 # config.status does its own redirection, appending to config.log.
20823 # Unfortunately, on DOS this fails, as config.log is still kept open
20824 # by configure, so config.status won't be able to write to it; its
20825 # output is simply discarded.  So we exec the FD to /dev/null,
20826 # effectively closing config.log, so it can be properly (re)opened and
20827 # appended to by config.status.  When coming back to configure, we
20828 # need to make the FD available again.
20829 if test "$no_create" != yes; then
20830   ac_cs_success=:
20831   ac_config_status_args=
20832   test "$silent" = yes &&
20833     ac_config_status_args="$ac_config_status_args --quiet"
20834   exec 5>/dev/null
20835   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20836   exec 5>>config.log
20837   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20838   # would make configure fail if this is the last instruction.
20839   $ac_cs_success || { (exit 1); exit 1; }
20840 fi
20841
20842 #
20843 # CONFIG_SUBDIRS section.
20844 #
20845 if test "$no_recursion" != yes; then
20846
20847   # Remove --cache-file and --srcdir arguments so they do not pile up.
20848   ac_sub_configure_args=
20849   ac_prev=
20850   eval "set x $ac_configure_args"
20851   shift
20852   for ac_arg
20853   do
20854     if test -n "$ac_prev"; then
20855       ac_prev=
20856       continue
20857     fi
20858     case $ac_arg in
20859     -cache-file | --cache-file | --cache-fil | --cache-fi \
20860     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20861       ac_prev=cache_file ;;
20862     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20863     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20864     | --c=*)
20865       ;;
20866     --config-cache | -C)
20867       ;;
20868     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20869       ac_prev=srcdir ;;
20870     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20871       ;;
20872     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20873       ac_prev=prefix ;;
20874     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20875       ;;
20876     *)
20877       case $ac_arg in
20878       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20879       esac
20880       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20881     esac
20882   done
20883
20884   # Always prepend --prefix to ensure using the same prefix
20885   # in subdir configurations.
20886   ac_arg="--prefix=$prefix"
20887   case $ac_arg in
20888   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20889   esac
20890   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20891
20892   ac_popdir=`pwd`
20893   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20894
20895     # Do not complain, so a configure script can configure whichever
20896     # parts of a large source tree are present.
20897     test -d "$srcdir/$ac_dir" || continue
20898
20899     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20900     echo "$as_me:$LINENO: $ac_msg" >&5
20901     echo "$ac_msg" >&6
20902     { as_dir="$ac_dir"
20903   case $as_dir in #(
20904   -*) as_dir=./$as_dir;;
20905   esac
20906   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20907     as_dirs=
20908     while :; do
20909       case $as_dir in #(
20910       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20911       *) as_qdir=$as_dir;;
20912       esac
20913       as_dirs="'$as_qdir' $as_dirs"
20914       as_dir=`$as_dirname -- "$as_dir" ||
20915 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20916          X"$as_dir" : 'X\(//\)[^/]' \| \
20917          X"$as_dir" : 'X\(//\)$' \| \
20918          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20919 echo X"$as_dir" |
20920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20921             s//\1/
20922             q
20923           }
20924           /^X\(\/\/\)[^/].*/{
20925             s//\1/
20926             q
20927           }
20928           /^X\(\/\/\)$/{
20929             s//\1/
20930             q
20931           }
20932           /^X\(\/\).*/{
20933             s//\1/
20934             q
20935           }
20936           s/.*/./; q'`
20937       test -d "$as_dir" && break
20938     done
20939     test -z "$as_dirs" || eval "mkdir $as_dirs"
20940   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20941 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20942    { (exit 1); exit 1; }; }; }
20943     ac_builddir=.
20944
20945 case "$ac_dir" in
20946 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20947 *)
20948   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20949   # A ".." for each directory in $ac_dir_suffix.
20950   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20951   case $ac_top_builddir_sub in
20952   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20953   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20954   esac ;;
20955 esac
20956 ac_abs_top_builddir=$ac_pwd
20957 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20958 # for backward compatibility:
20959 ac_top_builddir=$ac_top_build_prefix
20960
20961 case $srcdir in
20962   .)  # We are building in place.
20963     ac_srcdir=.
20964     ac_top_srcdir=$ac_top_builddir_sub
20965     ac_abs_top_srcdir=$ac_pwd ;;
20966   [\\/]* | ?:[\\/]* )  # Absolute name.
20967     ac_srcdir=$srcdir$ac_dir_suffix;
20968     ac_top_srcdir=$srcdir
20969     ac_abs_top_srcdir=$srcdir ;;
20970   *) # Relative name.
20971     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20972     ac_top_srcdir=$ac_top_build_prefix$srcdir
20973     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20974 esac
20975 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20976
20977
20978     cd "$ac_dir"
20979
20980     # Check for guested configure; otherwise get Cygnus style configure.
20981     if test -f "$ac_srcdir/configure.gnu"; then
20982       ac_sub_configure=$ac_srcdir/configure.gnu
20983     elif test -f "$ac_srcdir/configure"; then
20984       ac_sub_configure=$ac_srcdir/configure
20985     elif test -f "$ac_srcdir/configure.in"; then
20986       # This should be Cygnus configure.
20987       ac_sub_configure=$ac_aux_dir/configure
20988     else
20989       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
20990 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20991       ac_sub_configure=
20992     fi
20993
20994     # The recursion is here.
20995     if test -n "$ac_sub_configure"; then
20996       # Make the cache file name correct relative to the subdirectory.
20997       case $cache_file in
20998       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
20999       *) # Relative name.
21000         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21001       esac
21002
21003       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21004 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21005       # The eval makes quoting arguments work.
21006       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21007            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21008         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21009 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21010    { (exit 1); exit 1; }; }
21011     fi
21012
21013     cd "$ac_popdir"
21014   done
21015 fi
21016