Test commit.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5.0svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.5.0svn'
565 PACKAGE_STRING='LLVM 3.5.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_VERSION_MAJOR
643 LLVM_VERSION_MINOR
644 LLVM_VERSION_PATCH
645 LLVM_VERSION_SUFFIX
646 LLVM_COPYRIGHT
647 CC
648 CFLAGS
649 LDFLAGS
650 CPPFLAGS
651 ac_ct_CC
652 EXEEXT
653 OBJEXT
654 CXX
655 CXXFLAGS
656 ac_ct_CXX
657 CPP
658 subdirs
659 ENABLE_POLLY
660 LLVM_HAS_POLLY
661 build
662 build_cpu
663 build_vendor
664 build_os
665 host
666 host_cpu
667 host_vendor
668 host_os
669 target
670 target_cpu
671 target_vendor
672 target_os
673 OS
674 HOST_OS
675 TARGET_OS
676 LINKALL
677 NOLINKALL
678 LLVM_ON_UNIX
679 LLVM_ON_WIN32
680 ARCH
681 LLVM_NATIVE_ARCH
682 HOST_ARCH
683 LLVM_CROSS_COMPILING
684 BUILD_CC
685 BUILD_EXEEXT
686 BUILD_CXX
687 CVSBUILD
688 ENABLE_LIBCPP
689 ENABLE_CXX1Y
690 ENABLE_SPLIT_DWARF
691 ENABLE_CLANG_ARCMT
692 CLANG_PLUGIN_SUPPORT
693 ENABLE_CLANG_STATIC_ANALYZER
694 ENABLE_CLANG_REWRITER
695 ENABLE_OPTIMIZED
696 ENABLE_PROFILING
697 DISABLE_ASSERTIONS
698 ENABLE_WERROR
699 ENABLE_EXPENSIVE_CHECKS
700 EXPENSIVE_CHECKS
701 DEBUG_RUNTIME
702 DEBUG_SYMBOLS
703 KEEP_SYMBOLS
704 JIT
705 TARGET_HAS_JIT
706 TARGETS_WITH_JIT
707 ENABLE_DOCS
708 ENABLE_DOXYGEN
709 LLVM_ENABLE_THREADS
710 ENABLE_PTHREADS
711 LLVM_ENABLE_ZLIB
712 ENABLE_PIC
713 ENABLE_SHARED
714 ENABLE_EMBED_STDCXX
715 ENABLE_TIMESTAMPS
716 ALL_TARGETS
717 TARGETS_TO_BUILD
718 LLVM_ENUM_TARGETS
719 LLVM_ENUM_ASM_PRINTERS
720 LLVM_ENUM_ASM_PARSERS
721 LLVM_ENUM_DISASSEMBLERS
722 OPTIMIZE_OPTION
723 EXTRA_OPTIONS
724 EXTRA_LD_OPTIONS
725 CLANG_SRC_ROOT
726 BINUTILS_INCDIR
727 ENABLE_TERMINFO
728 INTERNAL_PREFIX
729 ifGNUmake
730 LN_S
731 NM
732 CMP
733 CP
734 DATE
735 FIND
736 GREP
737 MKDIR
738 MV
739 RANLIB
740 AR
741 RM
742 SED
743 TAR
744 BINPWD
745 GRAPHVIZ
746 DOT
747 FDP
748 NEATO
749 TWOPI
750 CIRCO
751 GV
752 DOTTY
753 XDOT
754 INSTALL_PROGRAM
755 INSTALL_SCRIPT
756 INSTALL_DATA
757 BZIP2
758 CAT
759 DOXYGEN
760 GROFF
761 GZIPBIN
762 PDFROFF
763 ZIP
764 OCAMLC
765 OCAMLOPT
766 OCAMLDEP
767 OCAMLDOC
768 GAS
769 HAVE_LINK_VERSION_SCRIPT
770 EGREP
771 NO_VARIADIC_MACROS
772 NO_MISSING_FIELD_INITIALIZERS
773 COVERED_SWITCH_DEFAULT
774 NO_MAYBE_UNINITIALIZED
775 NO_UNINITIALIZED
776 PYTHON
777 HAVE_DLOPEN
778 HAVE_TERMINFO
779 USE_UDIS86
780 USE_OPROFILE
781 USE_INTEL_JITEVENTS
782 XML2CONFIG
783 LIBXML2_LIBS
784 LIBXML2_INC
785 CXXCPP
786 HAVE_PTHREAD
787 HAVE_LIBZ
788 HUGE_VAL_SANITY
789 MMAP_FILE
790 SHLIBEXT
791 LLVM_PREFIX
792 LLVM_BINDIR
793 LLVM_DATADIR
794 LLVM_DOCSDIR
795 LLVM_ETCDIR
796 LLVM_INCLUDEDIR
797 LLVM_INFODIR
798 LLVM_MANDIR
799 LLVM_CONFIGTIME
800 BINDINGS_TO_BUILD
801 ALL_BINDINGS
802 OCAML_LIBDIR
803 ENABLE_VISIBILITY_INLINES_HIDDEN
804 RPATH
805 RDYNAMIC
806 program_prefix
807 LIBOBJS
808 LTLIBOBJS'
809 ac_subst_files=''
810       ac_precious_vars='build_alias
811 host_alias
812 target_alias
813 CC
814 CFLAGS
815 LDFLAGS
816 CPPFLAGS
817 CXX
818 CXXFLAGS
819 CCC
820 CPP
821 CXXCPP'
822 ac_subdirs_all='projects/test-suite
823 projects/llvm-test
824 projects/poolalloc
825 projects/llvm-poolalloc
826 projects/safecode
827 tools/polly'
828
829 # Initialize some variables set by options.
830 ac_init_help=
831 ac_init_version=false
832 # The variables have the same names as the options, with
833 # dashes changed to underlines.
834 cache_file=/dev/null
835 exec_prefix=NONE
836 no_create=
837 no_recursion=
838 prefix=NONE
839 program_prefix=NONE
840 program_suffix=NONE
841 program_transform_name=s,x,x,
842 silent=
843 site=
844 srcdir=
845 verbose=
846 x_includes=NONE
847 x_libraries=NONE
848
849 # Installation directory options.
850 # These are left unexpanded so users can "make install exec_prefix=/foo"
851 # and all the variables that are supposed to be based on exec_prefix
852 # by default will actually change.
853 # Use braces instead of parens because sh, perl, etc. also accept them.
854 # (The list follows the same order as the GNU Coding Standards.)
855 bindir='${exec_prefix}/bin'
856 sbindir='${exec_prefix}/sbin'
857 libexecdir='${exec_prefix}/libexec'
858 datarootdir='${prefix}/share'
859 datadir='${datarootdir}'
860 sysconfdir='${prefix}/etc'
861 sharedstatedir='${prefix}/com'
862 localstatedir='${prefix}/var'
863 includedir='${prefix}/include'
864 oldincludedir='/usr/include'
865 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866 infodir='${datarootdir}/info'
867 htmldir='${docdir}'
868 dvidir='${docdir}'
869 pdfdir='${docdir}'
870 psdir='${docdir}'
871 libdir='${exec_prefix}/lib'
872 localedir='${datarootdir}/locale'
873 mandir='${datarootdir}/man'
874
875 ac_prev=
876 ac_dashdash=
877 for ac_option
878 do
879   # If the previous option needs an argument, assign it.
880   if test -n "$ac_prev"; then
881     eval $ac_prev=\$ac_option
882     ac_prev=
883     continue
884   fi
885
886   case $ac_option in
887   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888   *)    ac_optarg=yes ;;
889   esac
890
891   # Accept the important Cygnus configure options, so we can diagnose typos.
892
893   case $ac_dashdash$ac_option in
894   --)
895     ac_dashdash=yes ;;
896
897   -bindir | --bindir | --bindi | --bind | --bin | --bi)
898     ac_prev=bindir ;;
899   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
900     bindir=$ac_optarg ;;
901
902   -build | --build | --buil | --bui | --bu)
903     ac_prev=build_alias ;;
904   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
905     build_alias=$ac_optarg ;;
906
907   -cache-file | --cache-file | --cache-fil | --cache-fi \
908   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
909     ac_prev=cache_file ;;
910   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
911   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
912     cache_file=$ac_optarg ;;
913
914   --config-cache | -C)
915     cache_file=config.cache ;;
916
917   -datadir | --datadir | --datadi | --datad)
918     ac_prev=datadir ;;
919   -datadir=* | --datadir=* | --datadi=* | --datad=*)
920     datadir=$ac_optarg ;;
921
922   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
923   | --dataroo | --dataro | --datar)
924     ac_prev=datarootdir ;;
925   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
926   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
927     datarootdir=$ac_optarg ;;
928
929   -disable-* | --disable-*)
930     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
931     # Reject names that are not valid shell variable names.
932     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
933       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
934    { (exit 1); exit 1; }; }
935     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
936     eval enable_$ac_feature=no ;;
937
938   -docdir | --docdir | --docdi | --doc | --do)
939     ac_prev=docdir ;;
940   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
941     docdir=$ac_optarg ;;
942
943   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
944     ac_prev=dvidir ;;
945   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
946     dvidir=$ac_optarg ;;
947
948   -enable-* | --enable-*)
949     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
950     # Reject names that are not valid shell variable names.
951     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
952       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953    { (exit 1); exit 1; }; }
954     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
955     eval enable_$ac_feature=\$ac_optarg ;;
956
957   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
958   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
959   | --exec | --exe | --ex)
960     ac_prev=exec_prefix ;;
961   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
962   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
963   | --exec=* | --exe=* | --ex=*)
964     exec_prefix=$ac_optarg ;;
965
966   -gas | --gas | --ga | --g)
967     # Obsolete; use --with-gas.
968     with_gas=yes ;;
969
970   -help | --help | --hel | --he | -h)
971     ac_init_help=long ;;
972   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
973     ac_init_help=recursive ;;
974   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
975     ac_init_help=short ;;
976
977   -host | --host | --hos | --ho)
978     ac_prev=host_alias ;;
979   -host=* | --host=* | --hos=* | --ho=*)
980     host_alias=$ac_optarg ;;
981
982   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
983     ac_prev=htmldir ;;
984   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
985   | --ht=*)
986     htmldir=$ac_optarg ;;
987
988   -includedir | --includedir | --includedi | --included | --include \
989   | --includ | --inclu | --incl | --inc)
990     ac_prev=includedir ;;
991   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
992   | --includ=* | --inclu=* | --incl=* | --inc=*)
993     includedir=$ac_optarg ;;
994
995   -infodir | --infodir | --infodi | --infod | --info | --inf)
996     ac_prev=infodir ;;
997   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
998     infodir=$ac_optarg ;;
999
1000   -libdir | --libdir | --libdi | --libd)
1001     ac_prev=libdir ;;
1002   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1003     libdir=$ac_optarg ;;
1004
1005   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1006   | --libexe | --libex | --libe)
1007     ac_prev=libexecdir ;;
1008   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1009   | --libexe=* | --libex=* | --libe=*)
1010     libexecdir=$ac_optarg ;;
1011
1012   -localedir | --localedir | --localedi | --localed | --locale)
1013     ac_prev=localedir ;;
1014   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1015     localedir=$ac_optarg ;;
1016
1017   -localstatedir | --localstatedir | --localstatedi | --localstated \
1018   | --localstate | --localstat | --localsta | --localst | --locals)
1019     ac_prev=localstatedir ;;
1020   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1021   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1022     localstatedir=$ac_optarg ;;
1023
1024   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1025     ac_prev=mandir ;;
1026   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1027     mandir=$ac_optarg ;;
1028
1029   -nfp | --nfp | --nf)
1030     # Obsolete; use --without-fp.
1031     with_fp=no ;;
1032
1033   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1034   | --no-cr | --no-c | -n)
1035     no_create=yes ;;
1036
1037   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1038   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039     no_recursion=yes ;;
1040
1041   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1042   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1043   | --oldin | --oldi | --old | --ol | --o)
1044     ac_prev=oldincludedir ;;
1045   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1046   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1047   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1048     oldincludedir=$ac_optarg ;;
1049
1050   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1051     ac_prev=prefix ;;
1052   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1053     prefix=$ac_optarg ;;
1054
1055   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1056   | --program-pre | --program-pr | --program-p)
1057     ac_prev=program_prefix ;;
1058   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1059   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1060     program_prefix=$ac_optarg ;;
1061
1062   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1063   | --program-suf | --program-su | --program-s)
1064     ac_prev=program_suffix ;;
1065   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1066   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1067     program_suffix=$ac_optarg ;;
1068
1069   -program-transform-name | --program-transform-name \
1070   | --program-transform-nam | --program-transform-na \
1071   | --program-transform-n | --program-transform- \
1072   | --program-transform | --program-transfor \
1073   | --program-transfo | --program-transf \
1074   | --program-trans | --program-tran \
1075   | --progr-tra | --program-tr | --program-t)
1076     ac_prev=program_transform_name ;;
1077   -program-transform-name=* | --program-transform-name=* \
1078   | --program-transform-nam=* | --program-transform-na=* \
1079   | --program-transform-n=* | --program-transform-=* \
1080   | --program-transform=* | --program-transfor=* \
1081   | --program-transfo=* | --program-transf=* \
1082   | --program-trans=* | --program-tran=* \
1083   | --progr-tra=* | --program-tr=* | --program-t=*)
1084     program_transform_name=$ac_optarg ;;
1085
1086   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1087     ac_prev=pdfdir ;;
1088   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1089     pdfdir=$ac_optarg ;;
1090
1091   -psdir | --psdir | --psdi | --psd | --ps)
1092     ac_prev=psdir ;;
1093   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094     psdir=$ac_optarg ;;
1095
1096   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1097   | -silent | --silent | --silen | --sile | --sil)
1098     silent=yes ;;
1099
1100   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101     ac_prev=sbindir ;;
1102   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103   | --sbi=* | --sb=*)
1104     sbindir=$ac_optarg ;;
1105
1106   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108   | --sharedst | --shareds | --shared | --share | --shar \
1109   | --sha | --sh)
1110     ac_prev=sharedstatedir ;;
1111   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114   | --sha=* | --sh=*)
1115     sharedstatedir=$ac_optarg ;;
1116
1117   -site | --site | --sit)
1118     ac_prev=site ;;
1119   -site=* | --site=* | --sit=*)
1120     site=$ac_optarg ;;
1121
1122   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123     ac_prev=srcdir ;;
1124   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125     srcdir=$ac_optarg ;;
1126
1127   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128   | --syscon | --sysco | --sysc | --sys | --sy)
1129     ac_prev=sysconfdir ;;
1130   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132     sysconfdir=$ac_optarg ;;
1133
1134   -target | --target | --targe | --targ | --tar | --ta | --t)
1135     ac_prev=target_alias ;;
1136   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137     target_alias=$ac_optarg ;;
1138
1139   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140     verbose=yes ;;
1141
1142   -version | --version | --versio | --versi | --vers | -V)
1143     ac_init_version=: ;;
1144
1145   -with-* | --with-*)
1146     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1149       { echo "$as_me: error: invalid package name: $ac_package" >&2
1150    { (exit 1); exit 1; }; }
1151     ac_package=`echo $ac_package| sed 's/-/_/g'`
1152     eval with_$ac_package=\$ac_optarg ;;
1153
1154   -without-* | --without-*)
1155     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1158       { echo "$as_me: error: invalid package name: $ac_package" >&2
1159    { (exit 1); exit 1; }; }
1160     ac_package=`echo $ac_package | sed 's/-/_/g'`
1161     eval with_$ac_package=no ;;
1162
1163   --x)
1164     # Obsolete; use --with-x.
1165     with_x=yes ;;
1166
1167   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1168   | --x-incl | --x-inc | --x-in | --x-i)
1169     ac_prev=x_includes ;;
1170   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1171   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1172     x_includes=$ac_optarg ;;
1173
1174   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1175   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1176     ac_prev=x_libraries ;;
1177   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1178   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1179     x_libraries=$ac_optarg ;;
1180
1181   -*) { echo "$as_me: error: unrecognized option: $ac_option
1182 Try \`$0 --help' for more information." >&2
1183    { (exit 1); exit 1; }; }
1184     ;;
1185
1186   *=*)
1187     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188     # Reject names that are not valid shell variable names.
1189     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1190       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1191    { (exit 1); exit 1; }; }
1192     eval $ac_envvar=\$ac_optarg
1193     export $ac_envvar ;;
1194
1195   *)
1196     # FIXME: should be removed in autoconf 3.0.
1197     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1198     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1200     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1201     ;;
1202
1203   esac
1204 done
1205
1206 if test -n "$ac_prev"; then
1207   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1208   { echo "$as_me: error: missing argument to $ac_option" >&2
1209    { (exit 1); exit 1; }; }
1210 fi
1211
1212 # Be sure to have absolute directory names.
1213 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214                 datadir sysconfdir sharedstatedir localstatedir includedir \
1215                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216                 libdir localedir mandir
1217 do
1218   eval ac_val=\$$ac_var
1219   case $ac_val in
1220     [\\/$]* | ?:[\\/]* )  continue;;
1221     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1222   esac
1223   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1224    { (exit 1); exit 1; }; }
1225 done
1226
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1230 build=$build_alias
1231 host=$host_alias
1232 target=$target_alias
1233
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x; then
1236   if test "x$build_alias" = x; then
1237     cross_compiling=maybe
1238     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1239     If a cross compiler is detected then cross compile mode will be used." >&2
1240   elif test "x$build_alias" != "x$host_alias"; then
1241     cross_compiling=yes
1242   fi
1243 fi
1244
1245 ac_tool_prefix=
1246 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1247
1248 test "$silent" = yes && exec 6>/dev/null
1249
1250
1251 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di=`ls -di .` &&
1253 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1254   { echo "$as_me: error: Working directory cannot be determined" >&2
1255    { (exit 1); exit 1; }; }
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257   { echo "$as_me: error: pwd does not report name of working directory" >&2
1258    { (exit 1); exit 1; }; }
1259
1260
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263   ac_srcdir_defaulted=yes
1264   # Try the directory containing this script, then the parent directory.
1265   ac_confdir=`$as_dirname -- "$0" ||
1266 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267          X"$0" : 'X\(//\)[^/]' \| \
1268          X"$0" : 'X\(//\)$' \| \
1269          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1270 echo X"$0" |
1271     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272             s//\1/
1273             q
1274           }
1275           /^X\(\/\/\)[^/].*/{
1276             s//\1/
1277             q
1278           }
1279           /^X\(\/\/\)$/{
1280             s//\1/
1281             q
1282           }
1283           /^X\(\/\).*/{
1284             s//\1/
1285             q
1286           }
1287           s/.*/./; q'`
1288   srcdir=$ac_confdir
1289   if test ! -r "$srcdir/$ac_unique_file"; then
1290     srcdir=..
1291   fi
1292 else
1293   ac_srcdir_defaulted=no
1294 fi
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1298    { (exit 1); exit 1; }; }
1299 fi
1300 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1301 ac_abs_confdir=`(
1302         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1303    { (exit 1); exit 1; }; }
1304         pwd)`
1305 # When building in place, set srcdir=.
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then
1307   srcdir=.
1308 fi
1309 # Remove unnecessary trailing slashes from srcdir.
1310 # Double slashes in file names in object file debugging info
1311 # mess up M-x gdb in Emacs.
1312 case $srcdir in
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1314 esac
1315 for ac_var in $ac_precious_vars; do
1316   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317   eval ac_env_${ac_var}_value=\$${ac_var}
1318   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 done
1321
1322 #
1323 # Report the --help message.
1324 #
1325 if test "$ac_init_help" = "long"; then
1326   # Omit some internal or obsolete options to make the list less imposing.
1327   # This message is too long to be a string in the A/UX 3.1 sh.
1328   cat <<_ACEOF
1329 \`configure' configures LLVM 3.5.0svn to adapt to many kinds of systems.
1330
1331 Usage: $0 [OPTION]... [VAR=VALUE]...
1332
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334 VAR=VALUE.  See below for descriptions of some of the useful variables.
1335
1336 Defaults for the options are specified in brackets.
1337
1338 Configuration:
1339   -h, --help              display this help and exit
1340       --help=short        display options specific to this package
1341       --help=recursive    display the short help of all the included packages
1342   -V, --version           display version information and exit
1343   -q, --quiet, --silent   do not print \`checking...' messages
1344       --cache-file=FILE   cache test results in FILE [disabled]
1345   -C, --config-cache      alias for \`--cache-file=config.cache'
1346   -n, --no-create         do not create output files
1347       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1348
1349 Installation directories:
1350   --prefix=PREFIX         install architecture-independent files in PREFIX
1351                           [$ac_default_prefix]
1352   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1353                           [PREFIX]
1354
1355 By default, \`make install' will install all the files in
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358 for instance \`--prefix=\$HOME'.
1359
1360 For better control, use the options below.
1361
1362 Fine tuning of the installation directories:
1363   --bindir=DIR           user executables [EPREFIX/bin]
1364   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1365   --libexecdir=DIR       program executables [EPREFIX/libexec]
1366   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1367   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1368   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1369   --libdir=DIR           object code libraries [EPREFIX/lib]
1370   --includedir=DIR       C header files [PREFIX/include]
1371   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1372   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1373   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1374   --infodir=DIR          info documentation [DATAROOTDIR/info]
1375   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1376   --mandir=DIR           man documentation [DATAROOTDIR/man]
1377   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1378   --htmldir=DIR          html documentation [DOCDIR]
1379   --dvidir=DIR           dvi documentation [DOCDIR]
1380   --pdfdir=DIR           pdf documentation [DOCDIR]
1381   --psdir=DIR            ps documentation [DOCDIR]
1382 _ACEOF
1383
1384   cat <<\_ACEOF
1385
1386 System types:
1387   --build=BUILD     configure for building on BUILD [guessed]
1388   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1389   --target=TARGET   configure for building compilers for TARGET [HOST]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394   case $ac_init_help in
1395      short | recursive ) echo "Configuration of LLVM 3.5.0svn:";;
1396    esac
1397   cat <<\_ACEOF
1398
1399 Optional Features:
1400   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1401   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1402   --enable-polly          Use polly if available (default is YES)
1403   --enable-libcpp         Use libc++ if available (default is NO)
1404   --enable-compiler-version-checks
1405                           Check the version of the host compiler (default is
1406                           YES)
1407   --enable-cxx1y          Use c++1y if available (default is NO)
1408   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1409   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1410   --enable-clang-plugin-support
1411                           Enable plugin support in clang (default is YES)
1412   --enable-clang-static-analyzer
1413                           Enable building of clang Static Analyzer (default is
1414                           YES)
1415   --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1416   --enable-optimized      Compile with optimizations enabled (default is NO)
1417   --enable-profiling      Compile with profiling enabled (default is NO)
1418   --enable-assertions     Compile with assertion checks enabled (default is
1419                           YES)
1420   --enable-werror         Compile with -Werror enabled (default is NO)
1421   --enable-expensive-checks
1422                           Compile with expensive debug checks enabled (default
1423                           is NO)
1424   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1425                           NO)
1426   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1427                           optimization is on and YES if it's off)
1428   --enable-keep-symbols   Do not strip installed executables)
1429   --enable-jit            Enable Just In Time Compiling (default is YES)
1430   --enable-docs           Build documents (default is YES)
1431   --enable-doxygen        Build doxygen documentation (default is NO)
1432   --enable-threads        Use threads if available (default is YES)
1433   --enable-pthreads       Use pthreads if available (default is YES)
1434   --enable-zlib           Use zlib for compression/decompression if available
1435                           (default is YES)
1436   --enable-pic            Build LLVM with Position Independent Code (default
1437                           is YES)
1438   --enable-shared         Build a shared library and link tools against it
1439                           (default is NO)
1440   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1441                           Win32 DLL (default is NO)
1442   --enable-timestamps     Enable embedding timestamp information in build
1443                           (default is YES)
1444   --enable-backtraces     Enable embedding backtraces on crash (default is
1445                           YES)
1446   --enable-crash-overrides
1447                           Enable crash handling overrides (default is YES)
1448   --enable-targets        Build specific host targets: all or
1449                           target1,target2,... Valid targets are: host, x86,
1450                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1451                           hexagon, xcore, msp430, nvptx, systemz, r600, and
1452                           cpp (default=all)
1453   --enable-experimental-targets
1454                           Build experimental host targets: disable or
1455                           target1,target2,... (default=disable)
1456   --enable-bindings       Build specific language bindings:
1457                           all,auto,none,{binding-name} (default=auto)
1458   --enable-terminfo       Query the terminfo database if available (default is
1459                           YES)
1460   --enable-libedit        Use libedit if available (default is YES)
1461   --enable-libffi         Check for the presence of libffi (default is NO)
1462
1463 Optional Packages:
1464   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1465   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1466   --with-optimize-option  Select the compiler options to use for optimized
1467                           builds
1468   --with-extra-options    Specify additional options to compile LLVM with
1469   --with-extra-ld-options Specify additional options to link LLVM with
1470   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1471                           is stdlib)
1472   --with-clang-srcdir     Directory to the out-of-tree Clang source
1473   --with-clang-resource-dir
1474                           Relative directory from the Clang binary for
1475                           resource files
1476   --with-c-include-dirs   Colon separated list of directories clang will
1477                           search for headers
1478   --with-gcc-toolchain    Directory where gcc is installed.
1479   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1480   --with-binutils-include Specify path to binutils/include/ containing
1481                           plugin-api.h file for gold plugin.
1482   --with-bug-report-url   Specify the URL where bug reports should be
1483                           submitted (default=http://llvm.org/bugs/)
1484   --with-internal-prefix  Installation directory for internal files
1485   --with-python           path to python
1486   --with-udis86=<path>    Use udis86 external x86 disassembler library
1487   --with-oprofile=<prefix>
1488                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1489   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1490
1491
1492 Some influential environment variables:
1493   CC          C compiler command
1494   CFLAGS      C compiler flags
1495   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1496               nonstandard directory <lib dir>
1497   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1498               you have headers in a nonstandard directory <include dir>
1499   CXX         C++ compiler command
1500   CXXFLAGS    C++ compiler flags
1501   CPP         C preprocessor
1502   CXXCPP      C++ preprocessor
1503
1504 Use these variables to override the choices made by `configure' or to help
1505 it to find libraries and programs with nonstandard names/locations.
1506
1507 Report bugs to <http://llvm.org/bugs/>.
1508 _ACEOF
1509 ac_status=$?
1510 fi
1511
1512 if test "$ac_init_help" = "recursive"; then
1513   # If there are subdirs, report their specific --help.
1514   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515     test -d "$ac_dir" || continue
1516     ac_builddir=.
1517
1518 case "$ac_dir" in
1519 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 *)
1521   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1522   # A ".." for each directory in $ac_dir_suffix.
1523   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1524   case $ac_top_builddir_sub in
1525   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527   esac ;;
1528 esac
1529 ac_abs_top_builddir=$ac_pwd
1530 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531 # for backward compatibility:
1532 ac_top_builddir=$ac_top_build_prefix
1533
1534 case $srcdir in
1535   .)  # We are building in place.
1536     ac_srcdir=.
1537     ac_top_srcdir=$ac_top_builddir_sub
1538     ac_abs_top_srcdir=$ac_pwd ;;
1539   [\\/]* | ?:[\\/]* )  # Absolute name.
1540     ac_srcdir=$srcdir$ac_dir_suffix;
1541     ac_top_srcdir=$srcdir
1542     ac_abs_top_srcdir=$srcdir ;;
1543   *) # Relative name.
1544     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545     ac_top_srcdir=$ac_top_build_prefix$srcdir
1546     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 esac
1548 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549
1550     cd "$ac_dir" || { ac_status=$?; continue; }
1551     # Check for guested configure.
1552     if test -f "$ac_srcdir/configure.gnu"; then
1553       echo &&
1554       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555     elif test -f "$ac_srcdir/configure"; then
1556       echo &&
1557       $SHELL "$ac_srcdir/configure" --help=recursive
1558     else
1559       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560     fi || ac_status=$?
1561     cd "$ac_pwd" || { ac_status=$?; break; }
1562   done
1563 fi
1564
1565 test -n "$ac_init_help" && exit $ac_status
1566 if $ac_init_version; then
1567   cat <<\_ACEOF
1568 LLVM configure 3.5.0svn
1569 generated by GNU Autoconf 2.60
1570
1571 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1572 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1573 This configure script is free software; the Free Software Foundation
1574 gives unlimited permission to copy, distribute and modify it.
1575
1576 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1577 _ACEOF
1578   exit
1579 fi
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1583
1584 It was created by LLVM $as_me 3.5.0svn, which was
1585 generated by GNU Autoconf 2.60.  Invocation command line was
1586
1587   $ $0 $@
1588
1589 _ACEOF
1590 exec 5>>config.log
1591 {
1592 cat <<_ASUNAME
1593 ## --------- ##
1594 ## Platform. ##
1595 ## --------- ##
1596
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1605
1606 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1607 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1610 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1611 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1612 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1613
1614 _ASUNAME
1615
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619   IFS=$as_save_IFS
1620   test -z "$as_dir" && as_dir=.
1621   echo "PATH: $as_dir"
1622 done
1623 IFS=$as_save_IFS
1624
1625 } >&5
1626
1627 cat >&5 <<_ACEOF
1628
1629
1630 ## ----------- ##
1631 ## Core tests. ##
1632 ## ----------- ##
1633
1634 _ACEOF
1635
1636
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1642 ac_configure_args=
1643 ac_configure_args0=
1644 ac_configure_args1=
1645 ac_must_keep_next=false
1646 for ac_pass in 1 2
1647 do
1648   for ac_arg
1649   do
1650     case $ac_arg in
1651     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653     | -silent | --silent | --silen | --sile | --sil)
1654       continue ;;
1655     *\'*)
1656       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657     esac
1658     case $ac_pass in
1659     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660     2)
1661       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662       if test $ac_must_keep_next = true; then
1663         ac_must_keep_next=false # Got value, back to normal.
1664       else
1665         case $ac_arg in
1666           *=* | --config-cache | -C | -disable-* | --disable-* \
1667           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669           | -with-* | --with-* | -without-* | --without-* | --x)
1670             case "$ac_configure_args0 " in
1671               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672             esac
1673             ;;
1674           -* ) ac_must_keep_next=true ;;
1675         esac
1676       fi
1677       ac_configure_args="$ac_configure_args '$ac_arg'"
1678       ;;
1679     esac
1680   done
1681 done
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log.  We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691   # Save into config.log some information that might help in debugging.
1692   {
1693     echo
1694
1695     cat <<\_ASBOX
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1699 _ASBOX
1700     echo
1701     # The following way of writing the cache mishandles newlines in values,
1702 (
1703   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704     eval ac_val=\$$ac_var
1705     case $ac_val in #(
1706     *${as_nl}*)
1707       case $ac_var in #(
1708       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710       esac
1711       case $ac_var in #(
1712       _ | IFS | as_nl) ;; #(
1713       *) $as_unset $ac_var ;;
1714       esac ;;
1715     esac
1716   done
1717   (set) 2>&1 |
1718     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719     *${as_nl}ac_space=\ *)
1720       sed -n \
1721         "s/'\''/'\''\\\\'\'''\''/g;
1722           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723       ;; #(
1724     *)
1725       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726       ;;
1727     esac |
1728     sort
1729 )
1730     echo
1731
1732     cat <<\_ASBOX
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1736 _ASBOX
1737     echo
1738     for ac_var in $ac_subst_vars
1739     do
1740       eval ac_val=\$$ac_var
1741       case $ac_val in
1742       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743       esac
1744       echo "$ac_var='\''$ac_val'\''"
1745     done | sort
1746     echo
1747
1748     if test -n "$ac_subst_files"; then
1749       cat <<\_ASBOX
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1753 _ASBOX
1754       echo
1755       for ac_var in $ac_subst_files
1756       do
1757         eval ac_val=\$$ac_var
1758         case $ac_val in
1759         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760         esac
1761         echo "$ac_var='\''$ac_val'\''"
1762       done | sort
1763       echo
1764     fi
1765
1766     if test -s confdefs.h; then
1767       cat <<\_ASBOX
1768 ## ----------- ##
1769 ## confdefs.h. ##
1770 ## ----------- ##
1771 _ASBOX
1772       echo
1773       cat confdefs.h
1774       echo
1775     fi
1776     test "$ac_signal" != 0 &&
1777       echo "$as_me: caught signal $ac_signal"
1778     echo "$as_me: exit $exit_status"
1779   } >&5
1780   rm -f core *.core core.conftest.* &&
1781     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782     exit $exit_status
1783 ' 0
1784 for ac_signal in 1 2 13 15; do
1785   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786 done
1787 ac_signal=0
1788
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1791
1792 # Predefined preprocessor variables.
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816 _ACEOF
1817
1818
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822   set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825 else
1826   set x "$ac_default_prefix/share/config.site" \
1827         "$ac_default_prefix/etc/config.site"
1828 fi
1829 shift
1830 for ac_site_file
1831 do
1832   if test -r "$ac_site_file"; then
1833     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835     sed 's/^/| /' "$ac_site_file" >&5
1836     . "$ac_site_file"
1837   fi
1838 done
1839
1840 if test -r "$cache_file"; then
1841   # Some versions of bash will fail to source /dev/null (special
1842   # files actually), so we avoid doing that.
1843   if test -f "$cache_file"; then
1844     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1846     case $cache_file in
1847       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848       *)                      . "./$cache_file";;
1849     esac
1850   fi
1851 else
1852   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1854   >$cache_file
1855 fi
1856
1857 # Check that the precious variables saved in the cache have kept the same
1858 # value.
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862   eval ac_new_set=\$ac_env_${ac_var}_set
1863   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864   eval ac_new_val=\$ac_env_${ac_var}_value
1865   case $ac_old_set,$ac_new_set in
1866     set,)
1867       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869       ac_cache_corrupted=: ;;
1870     ,set)
1871       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873       ac_cache_corrupted=: ;;
1874     ,);;
1875     *)
1876       if test "x$ac_old_val" != "x$ac_new_val"; then
1877         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1880 echo "$as_me:   former value:  $ac_old_val" >&2;}
1881         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1882 echo "$as_me:   current value: $ac_new_val" >&2;}
1883         ac_cache_corrupted=:
1884       fi;;
1885   esac
1886   # Pass precious variables to config.status.
1887   if test "$ac_new_set" = set; then
1888     case $ac_new_val in
1889     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890     *) ac_arg=$ac_var=$ac_new_val ;;
1891     esac
1892     case " $ac_configure_args " in
1893       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1894       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895     esac
1896   fi
1897 done
1898 if $ac_cache_corrupted; then
1899   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903    { (exit 1); exit 1; }; }
1904 fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930 ac_ext=c
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1935
1936
1937
1938 LLVM_VERSION_MAJOR=3
1939 LLVM_VERSION_MINOR=5
1940 LLVM_VERSION_PATCH=0
1941 LLVM_VERSION_SUFFIX=svn
1942
1943
1944 cat >>confdefs.h <<_ACEOF
1945 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1946 _ACEOF
1947
1948
1949 cat >>confdefs.h <<_ACEOF
1950 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1951 _ACEOF
1952
1953
1954 cat >>confdefs.h <<_ACEOF
1955 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1956 _ACEOF
1957
1958
1959
1960
1961
1962
1963
1964 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1965
1966
1967
1968
1969
1970
1971
1972 ac_aux_dir=
1973 for ac_dir in autoconf "$srcdir"/autoconf; do
1974   if test -f "$ac_dir/install-sh"; then
1975     ac_aux_dir=$ac_dir
1976     ac_install_sh="$ac_aux_dir/install-sh -c"
1977     break
1978   elif test -f "$ac_dir/install.sh"; then
1979     ac_aux_dir=$ac_dir
1980     ac_install_sh="$ac_aux_dir/install.sh -c"
1981     break
1982   elif test -f "$ac_dir/shtool"; then
1983     ac_aux_dir=$ac_dir
1984     ac_install_sh="$ac_aux_dir/shtool install -c"
1985     break
1986   fi
1987 done
1988 if test -z "$ac_aux_dir"; then
1989   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1990 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1991    { (exit 1); exit 1; }; }
1992 fi
1993
1994 # These three variables are undocumented and unsupported,
1995 # and are intended to be withdrawn in a future Autoconf release.
1996 # They can cause serious problems if a builder's source tree is in a directory
1997 # whose full name contains unusual characters.
1998 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1999 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2000 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2001
2002
2003
2004 if test ${srcdir} != "." ; then
2005   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2006     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2007 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2008    { (exit 1); exit 1; }; }
2009   fi
2010 fi
2011
2012 : ${CFLAGS=}
2013 : ${CXXFLAGS=}
2014
2015 ac_ext=c
2016 ac_cpp='$CPP $CPPFLAGS'
2017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2020 if test -n "$ac_tool_prefix"; then
2021   for ac_prog in clang gcc
2022   do
2023     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2027 if test "${ac_cv_prog_CC+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   if test -n "$CC"; then
2031   ac_cv_prog_CC="$CC" # Let the user override the test.
2032 else
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036   IFS=$as_save_IFS
2037   test -z "$as_dir" && as_dir=.
2038   for ac_exec_ext in '' $ac_executable_extensions; do
2039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2040     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042     break 2
2043   fi
2044 done
2045 done
2046 IFS=$as_save_IFS
2047
2048 fi
2049 fi
2050 CC=$ac_cv_prog_CC
2051 if test -n "$CC"; then
2052   { echo "$as_me:$LINENO: result: $CC" >&5
2053 echo "${ECHO_T}$CC" >&6; }
2054 else
2055   { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2057 fi
2058
2059
2060     test -n "$CC" && break
2061   done
2062 fi
2063 if test -z "$CC"; then
2064   ac_ct_CC=$CC
2065   for ac_prog in clang gcc
2066 do
2067   # Extract the first word of "$ac_prog", so it can be a program name with args.
2068 set dummy $ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test -n "$ac_ct_CC"; then
2075   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   for ac_exec_ext in '' $ac_executable_extensions; do
2083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084     ac_cv_prog_ac_ct_CC="$ac_prog"
2085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086     break 2
2087   fi
2088 done
2089 done
2090 IFS=$as_save_IFS
2091
2092 fi
2093 fi
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6; }
2098 else
2099   { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2101 fi
2102
2103
2104   test -n "$ac_ct_CC" && break
2105 done
2106
2107   if test "x$ac_ct_CC" = x; then
2108     CC=""
2109   else
2110     case $cross_compiling:$ac_tool_warned in
2111 yes:)
2112 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2113 whose name does not start with the host triplet.  If you think this
2114 configuration is useful to you, please write to autoconf@gnu.org." >&5
2115 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2116 whose name does not start with the host triplet.  If you think this
2117 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2118 ac_tool_warned=yes ;;
2119 esac
2120     CC=$ac_ct_CC
2121   fi
2122 fi
2123
2124
2125 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2126 See \`config.log' for more details." >&5
2127 echo "$as_me: error: no acceptable C compiler found in \$PATH
2128 See \`config.log' for more details." >&2;}
2129    { (exit 1); exit 1; }; }
2130
2131 # Provide some information about the compiler.
2132 echo "$as_me:$LINENO: checking for C compiler version" >&5
2133 ac_compiler=`set X $ac_compile; echo $2`
2134 { (ac_try="$ac_compiler --version >&5"
2135 case "(($ac_try" in
2136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2137   *) ac_try_echo=$ac_try;;
2138 esac
2139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2140   (eval "$ac_compiler --version >&5") 2>&5
2141   ac_status=$?
2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143   (exit $ac_status); }
2144 { (ac_try="$ac_compiler -v >&5"
2145 case "(($ac_try" in
2146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147   *) ac_try_echo=$ac_try;;
2148 esac
2149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2150   (eval "$ac_compiler -v >&5") 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }
2154 { (ac_try="$ac_compiler -V >&5"
2155 case "(($ac_try" in
2156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157   *) ac_try_echo=$ac_try;;
2158 esac
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160   (eval "$ac_compiler -V >&5") 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }
2164
2165 cat >conftest.$ac_ext <<_ACEOF
2166 /* confdefs.h.  */
2167 _ACEOF
2168 cat confdefs.h >>conftest.$ac_ext
2169 cat >>conftest.$ac_ext <<_ACEOF
2170 /* end confdefs.h.  */
2171
2172 int
2173 main ()
2174 {
2175
2176   ;
2177   return 0;
2178 }
2179 _ACEOF
2180 ac_clean_files_save=$ac_clean_files
2181 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2182 # Try to create an executable without -o first, disregard a.out.
2183 # It will help us diagnose broken compilers, and finding out an intuition
2184 # of exeext.
2185 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2186 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2187 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2188 #
2189 # List of possible output files, starting from the most likely.
2190 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2191 # only as a last resort.  b.out is created by i960 compilers.
2192 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2193 #
2194 # The IRIX 6 linker writes into existing files which may not be
2195 # executable, retaining their permissions.  Remove them first so a
2196 # subsequent execution test works.
2197 ac_rmfiles=
2198 for ac_file in $ac_files
2199 do
2200   case $ac_file in
2201     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2202     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2203   esac
2204 done
2205 rm -f $ac_rmfiles
2206
2207 if { (ac_try="$ac_link_default"
2208 case "(($ac_try" in
2209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210   *) ac_try_echo=$ac_try;;
2211 esac
2212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2213   (eval "$ac_link_default") 2>&5
2214   ac_status=$?
2215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216   (exit $ac_status); }; then
2217   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2218 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2219 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2220 # so that the user can short-circuit this test for compilers unknown to
2221 # Autoconf.
2222 for ac_file in $ac_files
2223 do
2224   test -f "$ac_file" || continue
2225   case $ac_file in
2226     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2227         ;;
2228     [ab].out )
2229         # We found the default executable, but exeext='' is most
2230         # certainly right.
2231         break;;
2232     *.* )
2233         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2234         then :; else
2235            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2236         fi
2237         # We set ac_cv_exeext here because the later test for it is not
2238         # safe: cross compilers may not add the suffix if given an `-o'
2239         # argument, so we may need to know it at that point already.
2240         # Even if this section looks crufty: it has the advantage of
2241         # actually working.
2242         break;;
2243     * )
2244         break;;
2245   esac
2246 done
2247 test "$ac_cv_exeext" = no && ac_cv_exeext=
2248
2249 else
2250   echo "$as_me: failed program was:" >&5
2251 sed 's/^/| /' conftest.$ac_ext >&5
2252
2253 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2254 See \`config.log' for more details." >&5
2255 echo "$as_me: error: C compiler cannot create executables
2256 See \`config.log' for more details." >&2;}
2257    { (exit 77); exit 77; }; }
2258 fi
2259
2260 ac_exeext=$ac_cv_exeext
2261 { echo "$as_me:$LINENO: result: $ac_file" >&5
2262 echo "${ECHO_T}$ac_file" >&6; }
2263
2264 # Check that the compiler produces executables we can run.  If not, either
2265 # the compiler is broken, or we cross compile.
2266 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2267 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2268 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2269 # If not cross compiling, check that we can run a simple program.
2270 if test "$cross_compiling" != yes; then
2271   if { ac_try='./$ac_file'
2272   { (case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2277   (eval "$ac_try") 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; }; then
2281     cross_compiling=no
2282   else
2283     if test "$cross_compiling" = maybe; then
2284         cross_compiling=yes
2285     else
2286         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2287 If you meant to cross compile, use \`--host'.
2288 See \`config.log' for more details." >&5
2289 echo "$as_me: error: cannot run C compiled programs.
2290 If you meant to cross compile, use \`--host'.
2291 See \`config.log' for more details." >&2;}
2292    { (exit 1); exit 1; }; }
2293     fi
2294   fi
2295 fi
2296 { echo "$as_me:$LINENO: result: yes" >&5
2297 echo "${ECHO_T}yes" >&6; }
2298
2299 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2300 ac_clean_files=$ac_clean_files_save
2301 # Check that the compiler produces executables we can run.  If not, either
2302 # the compiler is broken, or we cross compile.
2303 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2304 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2305 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2306 echo "${ECHO_T}$cross_compiling" >&6; }
2307
2308 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2309 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2310 if { (ac_try="$ac_link"
2311 case "(($ac_try" in
2312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313   *) ac_try_echo=$ac_try;;
2314 esac
2315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2316   (eval "$ac_link") 2>&5
2317   ac_status=$?
2318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319   (exit $ac_status); }; then
2320   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2322 # work properly (i.e., refer to `conftest.exe'), while it won't with
2323 # `rm'.
2324 for ac_file in conftest.exe conftest conftest.*; do
2325   test -f "$ac_file" || continue
2326   case $ac_file in
2327     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2328     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329           break;;
2330     * ) break;;
2331   esac
2332 done
2333 else
2334   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2335 See \`config.log' for more details." >&5
2336 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2337 See \`config.log' for more details." >&2;}
2338    { (exit 1); exit 1; }; }
2339 fi
2340
2341 rm -f conftest$ac_cv_exeext
2342 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2343 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2344
2345 rm -f conftest.$ac_ext
2346 EXEEXT=$ac_cv_exeext
2347 ac_exeext=$EXEEXT
2348 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2349 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2350 if test "${ac_cv_objext+set}" = set; then
2351   echo $ECHO_N "(cached) $ECHO_C" >&6
2352 else
2353   cat >conftest.$ac_ext <<_ACEOF
2354 /* confdefs.h.  */
2355 _ACEOF
2356 cat confdefs.h >>conftest.$ac_ext
2357 cat >>conftest.$ac_ext <<_ACEOF
2358 /* end confdefs.h.  */
2359
2360 int
2361 main ()
2362 {
2363
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 rm -f conftest.o conftest.obj
2369 if { (ac_try="$ac_compile"
2370 case "(($ac_try" in
2371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372   *) ac_try_echo=$ac_try;;
2373 esac
2374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2375   (eval "$ac_compile") 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }; then
2379   for ac_file in conftest.o conftest.obj conftest.*; do
2380   test -f "$ac_file" || continue;
2381   case $ac_file in
2382     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2383     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2384        break;;
2385   esac
2386 done
2387 else
2388   echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2392 See \`config.log' for more details." >&5
2393 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2394 See \`config.log' for more details." >&2;}
2395    { (exit 1); exit 1; }; }
2396 fi
2397
2398 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2399 fi
2400 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2401 echo "${ECHO_T}$ac_cv_objext" >&6; }
2402 OBJEXT=$ac_cv_objext
2403 ac_objext=$OBJEXT
2404 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2405 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2406 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2407   echo $ECHO_N "(cached) $ECHO_C" >&6
2408 else
2409   cat >conftest.$ac_ext <<_ACEOF
2410 /* confdefs.h.  */
2411 _ACEOF
2412 cat confdefs.h >>conftest.$ac_ext
2413 cat >>conftest.$ac_ext <<_ACEOF
2414 /* end confdefs.h.  */
2415
2416 int
2417 main ()
2418 {
2419 #ifndef __GNUC__
2420        choke me
2421 #endif
2422
2423   ;
2424   return 0;
2425 }
2426 _ACEOF
2427 rm -f conftest.$ac_objext
2428 if { (ac_try="$ac_compile"
2429 case "(($ac_try" in
2430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2431   *) ac_try_echo=$ac_try;;
2432 esac
2433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2434   (eval "$ac_compile") 2>conftest.er1
2435   ac_status=$?
2436   grep -v '^ *+' conftest.er1 >conftest.err
2437   rm -f conftest.er1
2438   cat conftest.err >&5
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); } &&
2441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2442   { (case "(($ac_try" in
2443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444   *) ac_try_echo=$ac_try;;
2445 esac
2446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2447   (eval "$ac_try") 2>&5
2448   ac_status=$?
2449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450   (exit $ac_status); }; } &&
2451          { ac_try='test -s conftest.$ac_objext'
2452   { (case "(($ac_try" in
2453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2454   *) ac_try_echo=$ac_try;;
2455 esac
2456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2457   (eval "$ac_try") 2>&5
2458   ac_status=$?
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; }; then
2461   ac_compiler_gnu=yes
2462 else
2463   echo "$as_me: failed program was:" >&5
2464 sed 's/^/| /' conftest.$ac_ext >&5
2465
2466         ac_compiler_gnu=no
2467 fi
2468
2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2471
2472 fi
2473 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2474 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2475 GCC=`test $ac_compiler_gnu = yes && echo yes`
2476 ac_test_CFLAGS=${CFLAGS+set}
2477 ac_save_CFLAGS=$CFLAGS
2478 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2479 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_cc_g+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   ac_save_c_werror_flag=$ac_c_werror_flag
2484    ac_c_werror_flag=yes
2485    ac_cv_prog_cc_g=no
2486    CFLAGS="-g"
2487    cat >conftest.$ac_ext <<_ACEOF
2488 /* confdefs.h.  */
2489 _ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h.  */
2493
2494 int
2495 main ()
2496 {
2497
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 rm -f conftest.$ac_objext
2503 if { (ac_try="$ac_compile"
2504 case "(($ac_try" in
2505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506   *) ac_try_echo=$ac_try;;
2507 esac
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509   (eval "$ac_compile") 2>conftest.er1
2510   ac_status=$?
2511   grep -v '^ *+' conftest.er1 >conftest.err
2512   rm -f conftest.er1
2513   cat conftest.err >&5
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); } &&
2516          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2517   { (case "(($ac_try" in
2518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519   *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522   (eval "$ac_try") 2>&5
2523   ac_status=$?
2524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525   (exit $ac_status); }; } &&
2526          { ac_try='test -s conftest.$ac_objext'
2527   { (case "(($ac_try" in
2528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529   *) ac_try_echo=$ac_try;;
2530 esac
2531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2532   (eval "$ac_try") 2>&5
2533   ac_status=$?
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); }; }; then
2536   ac_cv_prog_cc_g=yes
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541         CFLAGS=""
2542       cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h.  */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h.  */
2548
2549 int
2550 main ()
2551 {
2552
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (ac_try="$ac_compile"
2559 case "(($ac_try" in
2560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561   *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564   (eval "$ac_compile") 2>conftest.er1
2565   ac_status=$?
2566   grep -v '^ *+' conftest.er1 >conftest.err
2567   rm -f conftest.er1
2568   cat conftest.err >&5
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); } &&
2571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2572   { (case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2577   (eval "$ac_try") 2>&5
2578   ac_status=$?
2579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580   (exit $ac_status); }; } &&
2581          { ac_try='test -s conftest.$ac_objext'
2582   { (case "(($ac_try" in
2583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584   *) ac_try_echo=$ac_try;;
2585 esac
2586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2587   (eval "$ac_try") 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   :
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596         ac_c_werror_flag=$ac_save_c_werror_flag
2597          CFLAGS="-g"
2598          cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h.  */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h.  */
2604
2605 int
2606 main ()
2607 {
2608
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (ac_try="$ac_compile"
2615 case "(($ac_try" in
2616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617   *) ac_try_echo=$ac_try;;
2618 esac
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620   (eval "$ac_compile") 2>conftest.er1
2621   ac_status=$?
2622   grep -v '^ *+' conftest.er1 >conftest.err
2623   rm -f conftest.er1
2624   cat conftest.err >&5
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); } &&
2627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628   { (case "(($ac_try" in
2629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2630   *) ac_try_echo=$ac_try;;
2631 esac
2632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2633   (eval "$ac_try") 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; } &&
2637          { ac_try='test -s conftest.$ac_objext'
2638   { (case "(($ac_try" in
2639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2640   *) ac_try_echo=$ac_try;;
2641 esac
2642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2643   (eval "$ac_try") 2>&5
2644   ac_status=$?
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); }; }; then
2647   ac_cv_prog_cc_g=yes
2648 else
2649   echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652
2653 fi
2654
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2656 fi
2657
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 fi
2660
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662    ac_c_werror_flag=$ac_save_c_werror_flag
2663 fi
2664 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2665 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2666 if test "$ac_test_CFLAGS" = set; then
2667   CFLAGS=$ac_save_CFLAGS
2668 elif test $ac_cv_prog_cc_g = yes; then
2669   if test "$GCC" = yes; then
2670     CFLAGS="-g -O2"
2671   else
2672     CFLAGS="-g"
2673   fi
2674 else
2675   if test "$GCC" = yes; then
2676     CFLAGS="-O2"
2677   else
2678     CFLAGS=
2679   fi
2680 fi
2681 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2682 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_cc_c89+set}" = set; then
2684   echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686   ac_cv_prog_cc_c89=no
2687 ac_save_CC=$CC
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h.  */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h.  */
2694 #include <stdarg.h>
2695 #include <stdio.h>
2696 #include <sys/types.h>
2697 #include <sys/stat.h>
2698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2699 struct buf { int x; };
2700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2701 static char *e (p, i)
2702      char **p;
2703      int i;
2704 {
2705   return p[i];
2706 }
2707 static char *f (char * (*g) (char **, int), char **p, ...)
2708 {
2709   char *s;
2710   va_list v;
2711   va_start (v,p);
2712   s = g (p, va_arg (v,int));
2713   va_end (v);
2714   return s;
2715 }
2716
2717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2718    function prototypes and stuff, but not '\xHH' hex character constants.
2719    These don't provoke an error unfortunately, instead are silently treated
2720    as 'x'.  The following induces an error, until -std is added to get
2721    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2722    array size at least.  It's necessary to write '\x00'==0 to get something
2723    that's true only with -std.  */
2724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2725
2726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2727    inside strings and character constants.  */
2728 #define FOO(x) 'x'
2729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2730
2731 int test (int i, double x);
2732 struct s1 {int (*f) (int a);};
2733 struct s2 {int (*f) (double a);};
2734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2735 int argc;
2736 char **argv;
2737 int
2738 main ()
2739 {
2740 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2741   ;
2742   return 0;
2743 }
2744 _ACEOF
2745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2746         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2747 do
2748   CC="$ac_save_CC $ac_arg"
2749   rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
2751 case "(($ac_try" in
2752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753   *) ac_try_echo=$ac_try;;
2754 esac
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756   (eval "$ac_compile") 2>conftest.er1
2757   ac_status=$?
2758   grep -v '^ *+' conftest.er1 >conftest.err
2759   rm -f conftest.er1
2760   cat conftest.err >&5
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); } &&
2763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2764   { (case "(($ac_try" in
2765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2766   *) ac_try_echo=$ac_try;;
2767 esac
2768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2769   (eval "$ac_try") 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; } &&
2773          { ac_try='test -s conftest.$ac_objext'
2774   { (case "(($ac_try" in
2775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776   *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779   (eval "$ac_try") 2>&5
2780   ac_status=$?
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); }; }; then
2783   ac_cv_prog_cc_c89=$ac_arg
2784 else
2785   echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2787
2788
2789 fi
2790
2791 rm -f core conftest.err conftest.$ac_objext
2792   test "x$ac_cv_prog_cc_c89" != "xno" && break
2793 done
2794 rm -f conftest.$ac_ext
2795 CC=$ac_save_CC
2796
2797 fi
2798 # AC_CACHE_VAL
2799 case "x$ac_cv_prog_cc_c89" in
2800   x)
2801     { echo "$as_me:$LINENO: result: none needed" >&5
2802 echo "${ECHO_T}none needed" >&6; } ;;
2803   xno)
2804     { echo "$as_me:$LINENO: result: unsupported" >&5
2805 echo "${ECHO_T}unsupported" >&6; } ;;
2806   *)
2807     CC="$CC $ac_cv_prog_cc_c89"
2808     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2809 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2810 esac
2811
2812
2813 ac_ext=c
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818
2819 ac_ext=cpp
2820 ac_cpp='$CXXCPP $CPPFLAGS'
2821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2824 if test -z "$CXX"; then
2825   if test -n "$CCC"; then
2826     CXX=$CCC
2827   else
2828     if test -n "$ac_tool_prefix"; then
2829   for ac_prog in clang++ g++
2830   do
2831     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_CXX+set}" = set; then
2836   echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838   if test -n "$CXX"; then
2839   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2840 else
2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842 for as_dir in $PATH
2843 do
2844   IFS=$as_save_IFS
2845   test -z "$as_dir" && as_dir=.
2846   for ac_exec_ext in '' $ac_executable_extensions; do
2847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2848     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850     break 2
2851   fi
2852 done
2853 done
2854 IFS=$as_save_IFS
2855
2856 fi
2857 fi
2858 CXX=$ac_cv_prog_CXX
2859 if test -n "$CXX"; then
2860   { echo "$as_me:$LINENO: result: $CXX" >&5
2861 echo "${ECHO_T}$CXX" >&6; }
2862 else
2863   { echo "$as_me:$LINENO: result: no" >&5
2864 echo "${ECHO_T}no" >&6; }
2865 fi
2866
2867
2868     test -n "$CXX" && break
2869   done
2870 fi
2871 if test -z "$CXX"; then
2872   ac_ct_CXX=$CXX
2873   for ac_prog in clang++ g++
2874 do
2875   # Extract the first word of "$ac_prog", so it can be a program name with args.
2876 set dummy $ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$ac_ct_CXX"; then
2883   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892     ac_cv_prog_ac_ct_CXX="$ac_prog"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2903 if test -n "$ac_ct_CXX"; then
2904   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2905 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2906 else
2907   { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2909 fi
2910
2911
2912   test -n "$ac_ct_CXX" && break
2913 done
2914
2915   if test "x$ac_ct_CXX" = x; then
2916     CXX="g++"
2917   else
2918     case $cross_compiling:$ac_tool_warned in
2919 yes:)
2920 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2921 whose name does not start with the host triplet.  If you think this
2922 configuration is useful to you, please write to autoconf@gnu.org." >&5
2923 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2924 whose name does not start with the host triplet.  If you think this
2925 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2926 ac_tool_warned=yes ;;
2927 esac
2928     CXX=$ac_ct_CXX
2929   fi
2930 fi
2931
2932   fi
2933 fi
2934 # Provide some information about the compiler.
2935 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2936 ac_compiler=`set X $ac_compile; echo $2`
2937 { (ac_try="$ac_compiler --version >&5"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943   (eval "$ac_compiler --version >&5") 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }
2947 { (ac_try="$ac_compiler -v >&5"
2948 case "(($ac_try" in
2949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950   *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953   (eval "$ac_compiler -v >&5") 2>&5
2954   ac_status=$?
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); }
2957 { (ac_try="$ac_compiler -V >&5"
2958 case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963   (eval "$ac_compiler -V >&5") 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }
2967
2968 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2969 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2970 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2971   echo $ECHO_N "(cached) $ECHO_C" >&6
2972 else
2973   cat >conftest.$ac_ext <<_ACEOF
2974 /* confdefs.h.  */
2975 _ACEOF
2976 cat confdefs.h >>conftest.$ac_ext
2977 cat >>conftest.$ac_ext <<_ACEOF
2978 /* end confdefs.h.  */
2979
2980 int
2981 main ()
2982 {
2983 #ifndef __GNUC__
2984        choke me
2985 #endif
2986
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 rm -f conftest.$ac_objext
2992 if { (ac_try="$ac_compile"
2993 case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998   (eval "$ac_compile") 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } &&
3005          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006   { (case "(($ac_try" in
3007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3008   *) ac_try_echo=$ac_try;;
3009 esac
3010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3011   (eval "$ac_try") 2>&5
3012   ac_status=$?
3013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014   (exit $ac_status); }; } &&
3015          { ac_try='test -s conftest.$ac_objext'
3016   { (case "(($ac_try" in
3017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018   *) ac_try_echo=$ac_try;;
3019 esac
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021   (eval "$ac_try") 2>&5
3022   ac_status=$?
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); }; }; then
3025   ac_compiler_gnu=yes
3026 else
3027   echo "$as_me: failed program was:" >&5
3028 sed 's/^/| /' conftest.$ac_ext >&5
3029
3030         ac_compiler_gnu=no
3031 fi
3032
3033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3035
3036 fi
3037 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3038 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3039 GXX=`test $ac_compiler_gnu = yes && echo yes`
3040 ac_test_CXXFLAGS=${CXXFLAGS+set}
3041 ac_save_CXXFLAGS=$CXXFLAGS
3042 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3043 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3044 if test "${ac_cv_prog_cxx_g+set}" = set; then
3045   echo $ECHO_N "(cached) $ECHO_C" >&6
3046 else
3047   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3048    ac_cxx_werror_flag=yes
3049    ac_cv_prog_cxx_g=no
3050    CXXFLAGS="-g"
3051    cat >conftest.$ac_ext <<_ACEOF
3052 /* confdefs.h.  */
3053 _ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h.  */
3057
3058 int
3059 main ()
3060 {
3061
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3068 case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073   (eval "$ac_compile") 2>conftest.er1
3074   ac_status=$?
3075   grep -v '^ *+' conftest.er1 >conftest.err
3076   rm -f conftest.er1
3077   cat conftest.err >&5
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } &&
3080          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3081   { (case "(($ac_try" in
3082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083   *) ac_try_echo=$ac_try;;
3084 esac
3085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3086   (eval "$ac_try") 2>&5
3087   ac_status=$?
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); }; } &&
3090          { ac_try='test -s conftest.$ac_objext'
3091   { (case "(($ac_try" in
3092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093   *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096   (eval "$ac_try") 2>&5
3097   ac_status=$?
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); }; }; then
3100   ac_cv_prog_cxx_g=yes
3101 else
3102   echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105         CXXFLAGS=""
3106       cat >conftest.$ac_ext <<_ACEOF
3107 /* confdefs.h.  */
3108 _ACEOF
3109 cat confdefs.h >>conftest.$ac_ext
3110 cat >>conftest.$ac_ext <<_ACEOF
3111 /* end confdefs.h.  */
3112
3113 int
3114 main ()
3115 {
3116
3117   ;
3118   return 0;
3119 }
3120 _ACEOF
3121 rm -f conftest.$ac_objext
3122 if { (ac_try="$ac_compile"
3123 case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_compile") 2>conftest.er1
3129   ac_status=$?
3130   grep -v '^ *+' conftest.er1 >conftest.err
3131   rm -f conftest.er1
3132   cat conftest.err >&5
3133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134   (exit $ac_status); } &&
3135          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3136   { (case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141   (eval "$ac_try") 2>&5
3142   ac_status=$?
3143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144   (exit $ac_status); }; } &&
3145          { ac_try='test -s conftest.$ac_objext'
3146   { (case "(($ac_try" in
3147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148   *) ac_try_echo=$ac_try;;
3149 esac
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151   (eval "$ac_try") 2>&5
3152   ac_status=$?
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); }; }; then
3155   :
3156 else
3157   echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3159
3160         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3161          CXXFLAGS="-g"
3162          cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168
3169 int
3170 main ()
3171 {
3172
3173   ;
3174   return 0;
3175 }
3176 _ACEOF
3177 rm -f conftest.$ac_objext
3178 if { (ac_try="$ac_compile"
3179 case "(($ac_try" in
3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181   *) ac_try_echo=$ac_try;;
3182 esac
3183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3184   (eval "$ac_compile") 2>conftest.er1
3185   ac_status=$?
3186   grep -v '^ *+' conftest.er1 >conftest.err
3187   rm -f conftest.er1
3188   cat conftest.err >&5
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); } &&
3191          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3192   { (case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_try") 2>&5
3198   ac_status=$?
3199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200   (exit $ac_status); }; } &&
3201          { ac_try='test -s conftest.$ac_objext'
3202   { (case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_try") 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); }; }; then
3211   ac_cv_prog_cxx_g=yes
3212 else
3213   echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3215
3216
3217 fi
3218
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 fi
3224
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3227 fi
3228 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3229 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3230 if test "$ac_test_CXXFLAGS" = set; then
3231   CXXFLAGS=$ac_save_CXXFLAGS
3232 elif test $ac_cv_prog_cxx_g = yes; then
3233   if test "$GXX" = yes; then
3234     CXXFLAGS="-g -O2"
3235   else
3236     CXXFLAGS="-g"
3237   fi
3238 else
3239   if test "$GXX" = yes; then
3240     CXXFLAGS="-O2"
3241   else
3242     CXXFLAGS=
3243   fi
3244 fi
3245 ac_ext=c
3246 ac_cpp='$CPP $CPPFLAGS'
3247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251 ac_ext=c
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3257 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3258 # On Suns, sometimes $CPP names a directory.
3259 if test -n "$CPP" && test -d "$CPP"; then
3260   CPP=
3261 fi
3262 if test -z "$CPP"; then
3263   if test "${ac_cv_prog_CPP+set}" = set; then
3264   echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266       # Double quotes because CPP needs to be expanded
3267     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3268     do
3269       ac_preproc_ok=false
3270 for ac_c_preproc_warn_flag in '' yes
3271 do
3272   # Use a header file that comes with gcc, so configuring glibc
3273   # with a fresh cross-compiler works.
3274   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3275   # <limits.h> exists even on freestanding compilers.
3276   # On the NeXT, cc -E runs the code through the compiler's parser,
3277   # not just through cpp. "Syntax error" is here to catch this case.
3278   cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284 #ifdef __STDC__
3285 # include <limits.h>
3286 #else
3287 # include <assert.h>
3288 #endif
3289                      Syntax error
3290 _ACEOF
3291 if { (ac_try="$ac_cpp conftest.$ac_ext"
3292 case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3298   ac_status=$?
3299   grep -v '^ *+' conftest.er1 >conftest.err
3300   rm -f conftest.er1
3301   cat conftest.err >&5
3302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303   (exit $ac_status); } >/dev/null; then
3304   if test -s conftest.err; then
3305     ac_cpp_err=$ac_c_preproc_warn_flag
3306     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3307   else
3308     ac_cpp_err=
3309   fi
3310 else
3311   ac_cpp_err=yes
3312 fi
3313 if test -z "$ac_cpp_err"; then
3314   :
3315 else
3316   echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319   # Broken: fails on valid input.
3320 continue
3321 fi
3322
3323 rm -f conftest.err conftest.$ac_ext
3324
3325   # OK, works on sane cases.  Now check whether nonexistent headers
3326   # can be detected and how.
3327   cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333 #include <ac_nonexistent.h>
3334 _ACEOF
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } >/dev/null; then
3348   if test -s conftest.err; then
3349     ac_cpp_err=$ac_c_preproc_warn_flag
3350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3351   else
3352     ac_cpp_err=
3353   fi
3354 else
3355   ac_cpp_err=yes
3356 fi
3357 if test -z "$ac_cpp_err"; then
3358   # Broken: success on invalid input.
3359 continue
3360 else
3361   echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364   # Passes both tests.
3365 ac_preproc_ok=:
3366 break
3367 fi
3368
3369 rm -f conftest.err conftest.$ac_ext
3370
3371 done
3372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3373 rm -f conftest.err conftest.$ac_ext
3374 if $ac_preproc_ok; then
3375   break
3376 fi
3377
3378     done
3379     ac_cv_prog_CPP=$CPP
3380
3381 fi
3382   CPP=$ac_cv_prog_CPP
3383 else
3384   ac_cv_prog_CPP=$CPP
3385 fi
3386 { echo "$as_me:$LINENO: result: $CPP" >&5
3387 echo "${ECHO_T}$CPP" >&6; }
3388 ac_preproc_ok=false
3389 for ac_c_preproc_warn_flag in '' yes
3390 do
3391   # Use a header file that comes with gcc, so configuring glibc
3392   # with a fresh cross-compiler works.
3393   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3394   # <limits.h> exists even on freestanding compilers.
3395   # On the NeXT, cc -E runs the code through the compiler's parser,
3396   # not just through cpp. "Syntax error" is here to catch this case.
3397   cat >conftest.$ac_ext <<_ACEOF
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #ifdef __STDC__
3404 # include <limits.h>
3405 #else
3406 # include <assert.h>
3407 #endif
3408                      Syntax error
3409 _ACEOF
3410 if { (ac_try="$ac_cpp conftest.$ac_ext"
3411 case "(($ac_try" in
3412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413   *) ac_try_echo=$ac_try;;
3414 esac
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3417   ac_status=$?
3418   grep -v '^ *+' conftest.er1 >conftest.err
3419   rm -f conftest.er1
3420   cat conftest.err >&5
3421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422   (exit $ac_status); } >/dev/null; then
3423   if test -s conftest.err; then
3424     ac_cpp_err=$ac_c_preproc_warn_flag
3425     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426   else
3427     ac_cpp_err=
3428   fi
3429 else
3430   ac_cpp_err=yes
3431 fi
3432 if test -z "$ac_cpp_err"; then
3433   :
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438   # Broken: fails on valid input.
3439 continue
3440 fi
3441
3442 rm -f conftest.err conftest.$ac_ext
3443
3444   # OK, works on sane cases.  Now check whether nonexistent headers
3445   # can be detected and how.
3446   cat >conftest.$ac_ext <<_ACEOF
3447 /* confdefs.h.  */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h.  */
3452 #include <ac_nonexistent.h>
3453 _ACEOF
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } >/dev/null; then
3467   if test -s conftest.err; then
3468     ac_cpp_err=$ac_c_preproc_warn_flag
3469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470   else
3471     ac_cpp_err=
3472   fi
3473 else
3474   ac_cpp_err=yes
3475 fi
3476 if test -z "$ac_cpp_err"; then
3477   # Broken: success on invalid input.
3478 continue
3479 else
3480   echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483   # Passes both tests.
3484 ac_preproc_ok=:
3485 break
3486 fi
3487
3488 rm -f conftest.err conftest.$ac_ext
3489
3490 done
3491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3492 rm -f conftest.err conftest.$ac_ext
3493 if $ac_preproc_ok; then
3494   :
3495 else
3496   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3497 See \`config.log' for more details." >&5
3498 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3499 See \`config.log' for more details." >&2;}
3500    { (exit 1); exit 1; }; }
3501 fi
3502
3503 ac_ext=c
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510 if test "$CXX" = "clang++" ; then
3511   { echo "$as_me:$LINENO: checking whether clang works" >&5
3512 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3513   ac_ext=cpp
3514 ac_cpp='$CXXCPP $CPPFLAGS'
3515 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3518
3519
3520 cat >conftest.$ac_ext <<_ACEOF
3521 /* confdefs.h.  */
3522 _ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h.  */
3526 #include <limits>
3527 #if __has_include (<cxxabi.h>)
3528 #include <cxxabi.h>
3529 #endif
3530 #if __has_include (<unwind.h>)
3531 #include <unwind.h>
3532 #endif
3533
3534 int
3535 main ()
3536 {
3537
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 rm -f conftest.$ac_objext
3543 if { (ac_try="$ac_compile"
3544 case "(($ac_try" in
3545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546   *) ac_try_echo=$ac_try;;
3547 esac
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549   (eval "$ac_compile") 2>conftest.er1
3550   ac_status=$?
3551   grep -v '^ *+' conftest.er1 >conftest.err
3552   rm -f conftest.er1
3553   cat conftest.err >&5
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); } &&
3556          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3557   { (case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562   (eval "$ac_try") 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); }; } &&
3566          { ac_try='test -s conftest.$ac_objext'
3567   { (case "(($ac_try" in
3568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569   *) ac_try_echo=$ac_try;;
3570 esac
3571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572   (eval "$ac_try") 2>&5
3573   ac_status=$?
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); }; }; then
3576
3577   { echo "$as_me:$LINENO: result: yes" >&5
3578 echo "${ECHO_T}yes" >&6; }
3579
3580 else
3581   echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584
3585   { echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6; }
3587   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3588 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3589    { (exit 1); exit 1; }; }
3590
3591 fi
3592
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594   ac_ext=c
3595 ac_cpp='$CPP $CPPFLAGS'
3596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3599
3600 fi
3601
3602 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3603 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3604 ac_ext=cpp
3605 ac_cpp='$CXXCPP $CPPFLAGS'
3606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3609
3610 llvm_cv_cxx_compiler=unknown
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h.  */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h.  */
3617 #if ! __clang__
3618                                     #error
3619                                     #endif
3620
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
3624 case "(($ac_try" in
3625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626   *) ac_try_echo=$ac_try;;
3627 esac
3628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3629   (eval "$ac_compile") 2>conftest.er1
3630   ac_status=$?
3631   grep -v '^ *+' conftest.er1 >conftest.err
3632   rm -f conftest.er1
3633   cat conftest.err >&5
3634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635   (exit $ac_status); } &&
3636          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3637   { (case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642   (eval "$ac_try") 2>&5
3643   ac_status=$?
3644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645   (exit $ac_status); }; } &&
3646          { ac_try='test -s conftest.$ac_objext'
3647   { (case "(($ac_try" in
3648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649   *) ac_try_echo=$ac_try;;
3650 esac
3651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652   (eval "$ac_try") 2>&5
3653   ac_status=$?
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); }; }; then
3656   llvm_cv_cxx_compiler=clang
3657 else
3658   echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661         cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 #if ! __GNUC__
3668                                                        #error
3669                                                        #endif
3670
3671 _ACEOF
3672 rm -f conftest.$ac_objext
3673 if { (ac_try="$ac_compile"
3674 case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679   (eval "$ac_compile") 2>conftest.er1
3680   ac_status=$?
3681   grep -v '^ *+' conftest.er1 >conftest.err
3682   rm -f conftest.er1
3683   cat conftest.err >&5
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); } &&
3686          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3687   { (case "(($ac_try" in
3688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689   *) ac_try_echo=$ac_try;;
3690 esac
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692   (eval "$ac_try") 2>&5
3693   ac_status=$?
3694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695   (exit $ac_status); }; } &&
3696          { ac_try='test -s conftest.$ac_objext'
3697   { (case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702   (eval "$ac_try") 2>&5
3703   ac_status=$?
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); }; }; then
3706   llvm_cv_cxx_compiler=gcc
3707 else
3708   echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711
3712 fi
3713
3714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 fi
3716
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
3724 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3725 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3726
3727
3728
3729 if test -d ${srcdir}/projects/test-suite ; then
3730   subdirs="$subdirs projects/test-suite"
3731
3732 fi
3733
3734 if test -d ${srcdir}/projects/llvm-test ; then
3735   subdirs="$subdirs projects/llvm-test"
3736
3737 fi
3738
3739 if test -d ${srcdir}/projects/poolalloc ; then
3740   subdirs="$subdirs projects/poolalloc"
3741
3742 fi
3743
3744 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3745   subdirs="$subdirs projects/llvm-poolalloc"
3746
3747 fi
3748
3749 for i in `ls ${srcdir}/projects`
3750 do
3751   if test -d ${srcdir}/projects/${i} ; then
3752     case ${i} in
3753       safecode)     subdirs="$subdirs projects/safecode"
3754  ;;
3755       compiler-rt)       ;;
3756       test-suite)     ;;
3757       llvm-test)      ;;
3758       poolalloc)      ;;
3759       llvm-poolalloc) ;;
3760       *)
3761         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3762 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3763         ;;
3764     esac
3765   fi
3766 done
3767
3768 # Check whether --enable-polly was given.
3769 if test "${enable_polly+set}" = set; then
3770   enableval=$enable_polly;
3771 else
3772   enableval=default
3773 fi
3774
3775 case "$enableval" in
3776   yes) ENABLE_POLLY=1
3777  ;;
3778   no)  ENABLE_POLLY=0
3779  ;;
3780   default) ENABLE_POLLY=1
3781  ;;
3782   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3783 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3784    { (exit 1); exit 1; }; } ;;
3785 esac
3786
3787
3788 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3789   LLVM_HAS_POLLY=1
3790
3791   subdirs="$subdirs tools/polly"
3792
3793 fi
3794
3795
3796 # Make sure we can run config.sub.
3797 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3798   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3799 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3800    { (exit 1); exit 1; }; }
3801
3802 { echo "$as_me:$LINENO: checking build system type" >&5
3803 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3804 if test "${ac_cv_build+set}" = set; then
3805   echo $ECHO_N "(cached) $ECHO_C" >&6
3806 else
3807   ac_build_alias=$build_alias
3808 test "x$ac_build_alias" = x &&
3809   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3810 test "x$ac_build_alias" = x &&
3811   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3812 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3813    { (exit 1); exit 1; }; }
3814 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3815   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3817    { (exit 1); exit 1; }; }
3818
3819 fi
3820 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3821 echo "${ECHO_T}$ac_cv_build" >&6; }
3822 case $ac_cv_build in
3823 *-*-*) ;;
3824 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3825 echo "$as_me: error: invalid value of canonical build" >&2;}
3826    { (exit 1); exit 1; }; };;
3827 esac
3828 build=$ac_cv_build
3829 ac_save_IFS=$IFS; IFS='-'
3830 set x $ac_cv_build
3831 shift
3832 build_cpu=$1
3833 build_vendor=$2
3834 shift; shift
3835 # Remember, the first character of IFS is used to create $*,
3836 # except with old shells:
3837 build_os=$*
3838 IFS=$ac_save_IFS
3839 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3840
3841
3842 { echo "$as_me:$LINENO: checking host system type" >&5
3843 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3844 if test "${ac_cv_host+set}" = set; then
3845   echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847   if test "x$host_alias" = x; then
3848   ac_cv_host=$ac_cv_build
3849 else
3850   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3851     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3852 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3853    { (exit 1); exit 1; }; }
3854 fi
3855
3856 fi
3857 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3858 echo "${ECHO_T}$ac_cv_host" >&6; }
3859 case $ac_cv_host in
3860 *-*-*) ;;
3861 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3862 echo "$as_me: error: invalid value of canonical host" >&2;}
3863    { (exit 1); exit 1; }; };;
3864 esac
3865 host=$ac_cv_host
3866 ac_save_IFS=$IFS; IFS='-'
3867 set x $ac_cv_host
3868 shift
3869 host_cpu=$1
3870 host_vendor=$2
3871 shift; shift
3872 # Remember, the first character of IFS is used to create $*,
3873 # except with old shells:
3874 host_os=$*
3875 IFS=$ac_save_IFS
3876 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3877
3878
3879 { echo "$as_me:$LINENO: checking target system type" >&5
3880 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3881 if test "${ac_cv_target+set}" = set; then
3882   echo $ECHO_N "(cached) $ECHO_C" >&6
3883 else
3884   if test "x$target_alias" = x; then
3885   ac_cv_target=$ac_cv_host
3886 else
3887   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3888     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3889 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3890    { (exit 1); exit 1; }; }
3891 fi
3892
3893 fi
3894 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3895 echo "${ECHO_T}$ac_cv_target" >&6; }
3896 case $ac_cv_target in
3897 *-*-*) ;;
3898 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3899 echo "$as_me: error: invalid value of canonical target" >&2;}
3900    { (exit 1); exit 1; }; };;
3901 esac
3902 target=$ac_cv_target
3903 ac_save_IFS=$IFS; IFS='-'
3904 set x $ac_cv_target
3905 shift
3906 target_cpu=$1
3907 target_vendor=$2
3908 shift; shift
3909 # Remember, the first character of IFS is used to create $*,
3910 # except with old shells:
3911 target_os=$*
3912 IFS=$ac_save_IFS
3913 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3914
3915
3916 # The aliases save the names the user supplied, while $host etc.
3917 # will get canonicalized.
3918 test -n "$target_alias" &&
3919   test "$program_prefix$program_suffix$program_transform_name" = \
3920     NONENONEs,x,x, &&
3921   program_prefix=${target_alias}-
3922
3923 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3924 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3925 if test "${llvm_cv_os_type+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   case $host in
3929   *-*-aix*)
3930     llvm_cv_link_all_option="-Wl,--whole-archive"
3931     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3932     llvm_cv_os_type="AIX"
3933     llvm_cv_platform_type="Unix" ;;
3934   *-*-irix*)
3935     llvm_cv_link_all_option="-Wl,--whole-archive"
3936     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3937     llvm_cv_os_type="IRIX"
3938     llvm_cv_platform_type="Unix" ;;
3939   *-*-cygwin*)
3940     llvm_cv_link_all_option="-Wl,--whole-archive"
3941     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3942     llvm_cv_os_type="Cygwin"
3943     llvm_cv_platform_type="Unix" ;;
3944   *-*-darwin*)
3945     llvm_cv_link_all_option="-Wl,-all_load"
3946     llvm_cv_no_link_all_option="-Wl,-noall_load"
3947     llvm_cv_os_type="Darwin"
3948     llvm_cv_platform_type="Unix" ;;
3949   *-*-minix*)
3950     llvm_cv_link_all_option="-Wl,-all_load"
3951     llvm_cv_no_link_all_option="-Wl,-noall_load"
3952     llvm_cv_os_type="Minix"
3953     llvm_cv_platform_type="Unix" ;;
3954   *-*-freebsd*)
3955     llvm_cv_link_all_option="-Wl,--whole-archive"
3956     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957     llvm_cv_os_type="FreeBSD"
3958     llvm_cv_platform_type="Unix" ;;
3959   *-*-kfreebsd-gnu)
3960     llvm_cv_link_all_option="-Wl,--whole-archive"
3961     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962     llvm_cv_os_type="GNU/kFreeBSD"
3963     llvm_cv_platform_type="Unix" ;;
3964   *-*-openbsd*)
3965     llvm_cv_link_all_option="-Wl,--whole-archive"
3966     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3967     llvm_cv_os_type="OpenBSD"
3968     llvm_cv_platform_type="Unix" ;;
3969   *-*-netbsd*)
3970     llvm_cv_link_all_option="-Wl,--whole-archive"
3971     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3972     llvm_cv_os_type="NetBSD"
3973     llvm_cv_platform_type="Unix" ;;
3974   *-*-dragonfly*)
3975     llvm_cv_link_all_option="-Wl,--whole-archive"
3976     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977     llvm_cv_os_type="DragonFly"
3978     llvm_cv_platform_type="Unix" ;;
3979   *-*-hpux*)
3980     llvm_cv_link_all_option="-Wl,--whole-archive"
3981     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982     llvm_cv_os_type="HP-UX"
3983     llvm_cv_platform_type="Unix" ;;
3984   *-*-interix*)
3985     llvm_cv_link_all_option="-Wl,--whole-archive"
3986     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987     llvm_cv_os_type="Interix"
3988     llvm_cv_platform_type="Unix" ;;
3989   *-*-linux*)
3990     llvm_cv_link_all_option="-Wl,--whole-archive"
3991     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992     llvm_cv_os_type="Linux"
3993     llvm_cv_platform_type="Unix" ;;
3994   *-*-gnu*)
3995     llvm_cv_link_all_option="-Wl,--whole-archive"
3996     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997     llvm_cv_os_type="GNU"
3998     llvm_cv_platform_type="Unix" ;;
3999   *-*-solaris*)
4000     llvm_cv_link_all_option="-Wl,-z,allextract"
4001     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4002     llvm_cv_os_type="SunOS"
4003     llvm_cv_platform_type="Unix" ;;
4004   *-*-auroraux*)
4005     llvm_cv_link_all_option="-Wl,-z,allextract"
4006     llvm_cv_link_all_option="-Wl,-z,defaultextract"
4007     llvm_cv_os_type="AuroraUX"
4008     llvm_cv_platform_type="Unix" ;;
4009   *-*-win32*)
4010     llvm_cv_link_all_option="-Wl,--whole-archive"
4011     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012     llvm_cv_os_type="Win32"
4013     llvm_cv_platform_type="Win32" ;;
4014   *-*-mingw*)
4015     llvm_cv_link_all_option="-Wl,--whole-archive"
4016     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017     llvm_cv_os_type="MingW"
4018     llvm_cv_platform_type="Win32" ;;
4019   *-*-haiku*)
4020     llvm_cv_link_all_option="-Wl,--whole-archive"
4021     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022     llvm_cv_os_type="Haiku"
4023     llvm_cv_platform_type="Unix" ;;
4024   *-unknown-eabi*)
4025     llvm_cv_link_all_option="-Wl,--whole-archive"
4026     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4027     llvm_cv_os_type="Freestanding"
4028     llvm_cv_platform_type="Unix" ;;
4029   *-unknown-elf*)
4030     llvm_cv_link_all_option="-Wl,--whole-archive"
4031     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4032     llvm_cv_os_type="Freestanding"
4033     llvm_cv_platform_type="Unix" ;;
4034   *)
4035     llvm_cv_link_all_option=""
4036     llvm_cv_no_link_all_option=""
4037     llvm_cv_os_type="Unknown"
4038     llvm_cv_platform_type="Unknown" ;;
4039 esac
4040 fi
4041 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4042 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4043
4044 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4045 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4046 if test "${llvm_cv_target_os_type+set}" = set; then
4047   echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049   case $target in
4050   *-*-aix*)
4051     llvm_cv_target_os_type="AIX" ;;
4052   *-*-irix*)
4053     llvm_cv_target_os_type="IRIX" ;;
4054   *-*-cygwin*)
4055     llvm_cv_target_os_type="Cygwin" ;;
4056   *-*-darwin*)
4057     llvm_cv_target_os_type="Darwin" ;;
4058   *-*-minix*)
4059     llvm_cv_target_os_type="Minix" ;;
4060   *-*-freebsd*)
4061     llvm_cv_target_os_type="FreeBSD" ;;
4062   *-*-kfreebsd-gnu)
4063     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4064   *-*-openbsd*)
4065     llvm_cv_target_os_type="OpenBSD" ;;
4066   *-*-netbsd*)
4067     llvm_cv_target_os_type="NetBSD" ;;
4068   *-*-dragonfly*)
4069     llvm_cv_target_os_type="DragonFly" ;;
4070   *-*-hpux*)
4071     llvm_cv_target_os_type="HP-UX" ;;
4072   *-*-interix*)
4073     llvm_cv_target_os_type="Interix" ;;
4074   *-*-linux*)
4075     llvm_cv_target_os_type="Linux" ;;
4076   *-*-gnu*)
4077     llvm_cv_target_os_type="GNU" ;;
4078   *-*-solaris*)
4079     llvm_cv_target_os_type="SunOS" ;;
4080   *-*-auroraux*)
4081     llvm_cv_target_os_type="AuroraUX" ;;
4082   *-*-win32*)
4083     llvm_cv_target_os_type="Win32" ;;
4084   *-*-mingw*)
4085     llvm_cv_target_os_type="MingW" ;;
4086   *-*-haiku*)
4087     llvm_cv_target_os_type="Haiku" ;;
4088   *-*-rtems*)
4089     llvm_cv_target_os_type="RTEMS" ;;
4090   *-*-nacl*)
4091     llvm_cv_target_os_type="NativeClient" ;;
4092   *-unknown-eabi*)
4093     llvm_cv_target_os_type="Freestanding" ;;
4094   *)
4095     llvm_cv_target_os_type="Unknown" ;;
4096 esac
4097 fi
4098 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4099 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4100
4101 if test "$llvm_cv_os_type" = "Unknown" ; then
4102   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4103 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4104    { (exit 1); exit 1; }; }
4105 fi
4106
4107 OS=$llvm_cv_os_type
4108
4109 HOST_OS=$llvm_cv_os_type
4110
4111 TARGET_OS=$llvm_cv_target_os_type
4112
4113
4114 LINKALL=$llvm_cv_link_all_option
4115
4116 NOLINKALL=$llvm_cv_no_link_all_option
4117
4118
4119 case $llvm_cv_platform_type in
4120   Unix)
4121
4122 cat >>confdefs.h <<\_ACEOF
4123 #define LLVM_ON_UNIX 1
4124 _ACEOF
4125
4126     LLVM_ON_UNIX=1
4127
4128     LLVM_ON_WIN32=0
4129
4130     ;;
4131   Win32)
4132
4133 cat >>confdefs.h <<\_ACEOF
4134 #define LLVM_ON_WIN32 1
4135 _ACEOF
4136
4137     LLVM_ON_UNIX=0
4138
4139     LLVM_ON_WIN32=1
4140
4141     ;;
4142 esac
4143
4144 { echo "$as_me:$LINENO: checking target architecture" >&5
4145 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4146 if test "${llvm_cv_target_arch+set}" = set; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149   case $target in
4150   i?86-*)                 llvm_cv_target_arch="x86" ;;
4151   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4152   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4153   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4154   arm64*-*)               llvm_cv_target_arch="ARM64" ;;
4155   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4156   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4157   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4158   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4159   xcore-*)                llvm_cv_target_arch="XCore" ;;
4160   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4161   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4162   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4163   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4164   *)                      llvm_cv_target_arch="Unknown" ;;
4165 esac
4166 fi
4167 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4168 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4169
4170 if test "$llvm_cv_target_arch" = "Unknown" ; then
4171   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4172 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4173 fi
4174
4175 case "$llvm_cv_target_arch" in
4176     x86)     LLVM_NATIVE_ARCH="X86" ;;
4177     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4178     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4179 esac
4180
4181 ARCH=$llvm_cv_target_arch
4182
4183 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4184
4185
4186 case $host in
4187   i?86-*)                 host_arch="x86" ;;
4188   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4189   sparc*-*)               host_arch="Sparc" ;;
4190   powerpc*-*)             host_arch="PowerPC" ;;
4191   arm64*-*)               host_arch="ARM64" ;;
4192   arm*-*)                 host_arch="ARM" ;;
4193   aarch64*-*)             host_arch="AArch64" ;;
4194   mips-* | mips64-*)      host_arch="Mips" ;;
4195   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4196   xcore-*)                host_arch="XCore" ;;
4197   msp430-*)               host_arch="MSP430" ;;
4198   hexagon-*)              host_arch="Hexagon" ;;
4199   s390x-*)                host_arch="SystemZ" ;;
4200   *)                      host_arch="Unknown" ;;
4201 esac
4202
4203 if test "$host_arch" = "Unknown" ; then
4204   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4205 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4206 fi
4207
4208 HOST_ARCH=$host_arch
4209
4210
4211 if test "$cross_compiling" = yes; then
4212   LLVM_CROSS_COMPILING=1
4213
4214
4215 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4216 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4217 if test "${ac_cv_build_exeext+set}" = set; then
4218   echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4221   ac_cv_build_exeext=.exe
4222 else
4223   ac_build_prefix=${build_alias}-
4224
4225   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4226 set dummy ${ac_build_prefix}gcc; ac_word=$2
4227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4229 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4230   echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232   if test -n "$BUILD_CC"; then
4233   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4237 do
4238   IFS=$as_save_IFS
4239   test -z "$as_dir" && as_dir=.
4240   for ac_exec_ext in '' $ac_executable_extensions; do
4241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4242     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4244     break 2
4245   fi
4246 done
4247 done
4248 IFS=$as_save_IFS
4249
4250 fi
4251 fi
4252 BUILD_CC=$ac_cv_prog_BUILD_CC
4253 if test -n "$BUILD_CC"; then
4254   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4255 echo "${ECHO_T}$BUILD_CC" >&6; }
4256 else
4257   { echo "$as_me:$LINENO: result: no" >&5
4258 echo "${ECHO_T}no" >&6; }
4259 fi
4260
4261
4262   if test -z "$BUILD_CC"; then
4263      # Extract the first word of "gcc", so it can be a program name with args.
4264 set dummy gcc; ac_word=$2
4265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4267 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4268   echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270   if test -n "$BUILD_CC"; then
4271   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276   IFS=$as_save_IFS
4277   test -z "$as_dir" && as_dir=.
4278   for ac_exec_ext in '' $ac_executable_extensions; do
4279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4280     ac_cv_prog_BUILD_CC="gcc"
4281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282     break 2
4283   fi
4284 done
4285 done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 BUILD_CC=$ac_cv_prog_BUILD_CC
4291 if test -n "$BUILD_CC"; then
4292   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4293 echo "${ECHO_T}$BUILD_CC" >&6; }
4294 else
4295   { echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6; }
4297 fi
4298
4299
4300      if test -z "$BUILD_CC"; then
4301        # Extract the first word of "cc", so it can be a program name with args.
4302 set dummy cc; ac_word=$2
4303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4305 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4306   echo $ECHO_N "(cached) $ECHO_C" >&6
4307 else
4308   if test -n "$BUILD_CC"; then
4309   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4310 else
4311   ac_prog_rejected=no
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4314 do
4315   IFS=$as_save_IFS
4316   test -z "$as_dir" && as_dir=.
4317   for ac_exec_ext in '' $ac_executable_extensions; do
4318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4319     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4320        ac_prog_rejected=yes
4321        continue
4322      fi
4323     ac_cv_prog_BUILD_CC="cc"
4324     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4325     break 2
4326   fi
4327 done
4328 done
4329 IFS=$as_save_IFS
4330
4331 if test $ac_prog_rejected = yes; then
4332   # We found a bogon in the path, so make sure we never use it.
4333   set dummy $ac_cv_prog_BUILD_CC
4334   shift
4335   if test $# != 0; then
4336     # We chose a different compiler from the bogus one.
4337     # However, it has the same basename, so the bogon will be chosen
4338     # first if we set BUILD_CC to just the basename; use the full file name.
4339     shift
4340     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4341   fi
4342 fi
4343 fi
4344 fi
4345 BUILD_CC=$ac_cv_prog_BUILD_CC
4346 if test -n "$BUILD_CC"; then
4347   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4348 echo "${ECHO_T}$BUILD_CC" >&6; }
4349 else
4350   { echo "$as_me:$LINENO: result: no" >&5
4351 echo "${ECHO_T}no" >&6; }
4352 fi
4353
4354
4355      fi
4356   fi
4357   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4358 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4359    { (exit 1); exit 1; }; }
4360   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4361   rm -f conftest*
4362   echo 'int main () { return 0; }' > conftest.$ac_ext
4363   ac_cv_build_exeext=
4364   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4365   (eval $ac_build_link) 2>&5
4366   ac_status=$?
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); }; then
4369     for file in conftest.*; do
4370       case $file in
4371       *.c | *.o | *.obj | *.dSYM) ;;
4372       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4373       esac
4374     done
4375   else
4376     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4377 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4378    { (exit 1); exit 1; }; }
4379   fi
4380   rm -f conftest*
4381   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4382 fi
4383 fi
4384
4385 BUILD_EXEEXT=""
4386 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4387 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4388 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4389 ac_build_exeext=$BUILD_EXEEXT
4390
4391   ac_build_prefix=${build_alias}-
4392   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4393 set dummy ${ac_build_prefix}g++; ac_word=$2
4394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4396 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4397   echo $ECHO_N "(cached) $ECHO_C" >&6
4398 else
4399   if test -n "$BUILD_CXX"; then
4400   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405   IFS=$as_save_IFS
4406   test -z "$as_dir" && as_dir=.
4407   for ac_exec_ext in '' $ac_executable_extensions; do
4408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4409     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411     break 2
4412   fi
4413 done
4414 done
4415 IFS=$as_save_IFS
4416
4417 fi
4418 fi
4419 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4420 if test -n "$BUILD_CXX"; then
4421   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4422 echo "${ECHO_T}$BUILD_CXX" >&6; }
4423 else
4424   { echo "$as_me:$LINENO: result: no" >&5
4425 echo "${ECHO_T}no" >&6; }
4426 fi
4427
4428
4429   if test -z "$BUILD_CXX"; then
4430      # Extract the first word of "g++", so it can be a program name with args.
4431 set dummy g++; ac_word=$2
4432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4434 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4435   echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437   if test -n "$BUILD_CXX"; then
4438   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4439 else
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   for ac_exec_ext in '' $ac_executable_extensions; do
4446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447     ac_cv_prog_BUILD_CXX="g++"
4448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450   fi
4451 done
4452 done
4453 IFS=$as_save_IFS
4454
4455 fi
4456 fi
4457 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4458 if test -n "$BUILD_CXX"; then
4459   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4460 echo "${ECHO_T}$BUILD_CXX" >&6; }
4461 else
4462   { echo "$as_me:$LINENO: result: no" >&5
4463 echo "${ECHO_T}no" >&6; }
4464 fi
4465
4466
4467      if test -z "$BUILD_CXX"; then
4468        # Extract the first word of "c++", so it can be a program name with args.
4469 set dummy c++; ac_word=$2
4470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4472 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4473   echo $ECHO_N "(cached) $ECHO_C" >&6
4474 else
4475   if test -n "$BUILD_CXX"; then
4476   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4477 else
4478   ac_prog_rejected=no
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 for as_dir in $PATH
4481 do
4482   IFS=$as_save_IFS
4483   test -z "$as_dir" && as_dir=.
4484   for ac_exec_ext in '' $ac_executable_extensions; do
4485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4486     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4487        ac_prog_rejected=yes
4488        continue
4489      fi
4490     ac_cv_prog_BUILD_CXX="c++"
4491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492     break 2
4493   fi
4494 done
4495 done
4496 IFS=$as_save_IFS
4497
4498 if test $ac_prog_rejected = yes; then
4499   # We found a bogon in the path, so make sure we never use it.
4500   set dummy $ac_cv_prog_BUILD_CXX
4501   shift
4502   if test $# != 0; then
4503     # We chose a different compiler from the bogus one.
4504     # However, it has the same basename, so the bogon will be chosen
4505     # first if we set BUILD_CXX to just the basename; use the full file name.
4506     shift
4507     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4508   fi
4509 fi
4510 fi
4511 fi
4512 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4513 if test -n "$BUILD_CXX"; then
4514   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4515 echo "${ECHO_T}$BUILD_CXX" >&6; }
4516 else
4517   { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }
4519 fi
4520
4521
4522      fi
4523   fi
4524 else
4525   LLVM_CROSS_COMPILING=0
4526
4527 fi
4528
4529 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4530   cvsbuild="yes"
4531   optimize="no"
4532   CVSBUILD=CVSBUILD=1
4533
4534 else
4535   cvsbuild="no"
4536   optimize="yes"
4537 fi
4538
4539
4540 # Check whether --enable-libcpp was given.
4541 if test "${enable_libcpp+set}" = set; then
4542   enableval=$enable_libcpp;
4543 else
4544   enableval=default
4545 fi
4546
4547 case "$enableval" in
4548   yes) ENABLE_LIBCPP=1
4549  ;;
4550   no)  ENABLE_LIBCPP=0
4551  ;;
4552   default) ENABLE_LIBCPP=0
4553 ;;
4554   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4555 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4556    { (exit 1); exit 1; }; } ;;
4557 esac
4558
4559 # Check whether --enable-compiler-version-checks was given.
4560 if test "${enable_compiler_version_checks+set}" = set; then
4561   enableval=$enable_compiler_version_checks;
4562 else
4563   enableval=default
4564 fi
4565
4566 case "$enableval" in
4567   no)
4568     ;;
4569   yes|default)
4570     ac_ext=cpp
4571 ac_cpp='$CXXCPP $CPPFLAGS'
4572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4575
4576     case "$llvm_cv_cxx_compiler" in
4577     clang)
4578       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4579 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4580       cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h.  */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h.  */
4586
4587 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4588 #error This version of Clang is too old to build LLVM
4589 #endif
4590
4591 _ACEOF
4592 rm -f conftest.$ac_objext
4593 if { (ac_try="$ac_compile"
4594 case "(($ac_try" in
4595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596   *) ac_try_echo=$ac_try;;
4597 esac
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599   (eval "$ac_compile") 2>conftest.er1
4600   ac_status=$?
4601   grep -v '^ *+' conftest.er1 >conftest.err
4602   rm -f conftest.er1
4603   cat conftest.err >&5
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); } &&
4606          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4607   { (case "(($ac_try" in
4608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609   *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612   (eval "$ac_try") 2>&5
4613   ac_status=$?
4614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615   (exit $ac_status); }; } &&
4616          { ac_try='test -s conftest.$ac_objext'
4617   { (case "(($ac_try" in
4618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619   *) ac_try_echo=$ac_try;;
4620 esac
4621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4622   (eval "$ac_try") 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }; }; then
4626   { echo "$as_me:$LINENO: result: yes" >&5
4627 echo "${ECHO_T}yes" >&6; }
4628 else
4629   echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632         { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4634            { { echo "$as_me:$LINENO: error:
4635 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4636 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4637 bypass these sanity checks." >&5
4638 echo "$as_me: error:
4639 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4640 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4641 bypass these sanity checks." >&2;}
4642    { (exit 1); exit 1; }; }
4643 fi
4644
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4646
4647                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4648         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4649 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4650         llvm_cv_old_cxxflags="$CXXFLAGS"
4651         CXXFLAGS="$CXXFLAGS -std=c++0x"
4652         cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h.  */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h.  */
4658
4659 #include <atomic>
4660 std::atomic<float> x(0.0f);
4661 int main() { return (float)x; }
4662
4663 _ACEOF
4664 rm -f conftest.$ac_objext conftest$ac_exeext
4665 if { (ac_try="$ac_link"
4666 case "(($ac_try" in
4667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668   *) ac_try_echo=$ac_try;;
4669 esac
4670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671   (eval "$ac_link") 2>conftest.er1
4672   ac_status=$?
4673   grep -v '^ *+' conftest.er1 >conftest.err
4674   rm -f conftest.er1
4675   cat conftest.err >&5
4676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677   (exit $ac_status); } &&
4678          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4679   { (case "(($ac_try" in
4680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4681   *) ac_try_echo=$ac_try;;
4682 esac
4683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4684   (eval "$ac_try") 2>&5
4685   ac_status=$?
4686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687   (exit $ac_status); }; } &&
4688          { ac_try='test -s conftest$ac_exeext'
4689   { (case "(($ac_try" in
4690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4691   *) ac_try_echo=$ac_try;;
4692 esac
4693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4694   (eval "$ac_try") 2>&5
4695   ac_status=$?
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); }; }; then
4698   { echo "$as_me:$LINENO: result: yes" >&5
4699 echo "${ECHO_T}yes" >&6; }
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704         { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4706              { { echo "$as_me:$LINENO: error:
4707 We detected a missing feature in the standard C++ library that was known to be
4708 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4709 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4710 than 4.7. You will need to update your system and ensure Clang uses the newer
4711 standard library.
4712
4713 If this error is incorrect or you need to force things to work, you may pass
4714 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4715 echo "$as_me: error:
4716 We detected a missing feature in the standard C++ library that was known to be
4717 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4718 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4719 than 4.7. You will need to update your system and ensure Clang uses the newer
4720 standard library.
4721
4722 If this error is incorrect or you need to force things to work, you may pass
4723 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4724    { (exit 1); exit 1; }; }
4725 fi
4726
4727 rm -f core conftest.err conftest.$ac_objext \
4728       conftest$ac_exeext conftest.$ac_ext
4729         CXXFLAGS="$llvm_cv_old_cxxflags"
4730       fi
4731       ;;
4732     gcc)
4733       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4734 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4735       cat >conftest.$ac_ext <<_ACEOF
4736 /* confdefs.h.  */
4737 _ACEOF
4738 cat confdefs.h >>conftest.$ac_ext
4739 cat >>conftest.$ac_ext <<_ACEOF
4740 /* end confdefs.h.  */
4741
4742 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4743 #error This version of GCC is too old to build LLVM
4744 #endif
4745
4746 _ACEOF
4747 rm -f conftest.$ac_objext
4748 if { (ac_try="$ac_compile"
4749 case "(($ac_try" in
4750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4751   *) ac_try_echo=$ac_try;;
4752 esac
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754   (eval "$ac_compile") 2>conftest.er1
4755   ac_status=$?
4756   grep -v '^ *+' conftest.er1 >conftest.err
4757   rm -f conftest.er1
4758   cat conftest.err >&5
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); } &&
4761          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4762   { (case "(($ac_try" in
4763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764   *) ac_try_echo=$ac_try;;
4765 esac
4766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4767   (eval "$ac_try") 2>&5
4768   ac_status=$?
4769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770   (exit $ac_status); }; } &&
4771          { ac_try='test -s conftest.$ac_objext'
4772   { (case "(($ac_try" in
4773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774   *) ac_try_echo=$ac_try;;
4775 esac
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777   (eval "$ac_try") 2>&5
4778   ac_status=$?
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); }; }; then
4781   { echo "$as_me:$LINENO: result: yes" >&5
4782 echo "${ECHO_T}yes" >&6; }
4783 else
4784   echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4786
4787         { echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6; }
4789            { { echo "$as_me:$LINENO: error:
4790 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4791 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4792 bypass these sanity checks." >&5
4793 echo "$as_me: error:
4794 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4795 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4796 bypass these sanity checks." >&2;}
4797    { (exit 1); exit 1; }; }
4798 fi
4799
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801       ;;
4802     unknown)
4803       ;;
4804     esac
4805     ac_ext=c
4806 ac_cpp='$CPP $CPPFLAGS'
4807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4810
4811     ;;
4812   *)
4813     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4814 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4815    { (exit 1); exit 1; }; }
4816     ;;
4817 esac
4818
4819 # Check whether --enable-cxx1y was given.
4820 if test "${enable_cxx1y+set}" = set; then
4821   enableval=$enable_cxx1y;
4822 else
4823   enableval=default
4824 fi
4825
4826 case "$enableval" in
4827   yes) ENABLE_CXX1Y=1
4828  ;;
4829   no)  ENABLE_CXX1Y=0
4830  ;;
4831   default) ENABLE_CXX1Y=0
4832 ;;
4833   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4834 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4835    { (exit 1); exit 1; }; } ;;
4836 esac
4837
4838 # Check whether --enable-split-dwarf was given.
4839 if test "${enable_split_dwarf+set}" = set; then
4840   enableval=$enable_split_dwarf;
4841 else
4842   enableval=default
4843 fi
4844
4845 case "$enableval" in
4846   yes) ENABLE_SPLIT_DWARF=1
4847  ;;
4848   no)  ENABLE_SPLIT_DWARF=0
4849  ;;
4850   default) ENABLE_SPLIT_DWARF=0
4851 ;;
4852   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4853 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4854    { (exit 1); exit 1; }; } ;;
4855 esac
4856
4857 clang_arcmt="yes"
4858 # Check whether --enable-clang-arcmt was given.
4859 if test "${enable_clang_arcmt+set}" = set; then
4860   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4861 else
4862   enableval="yes"
4863 fi
4864
4865 case "$enableval" in
4866   yes) ENABLE_CLANG_ARCMT=1
4867  ;;
4868   no)  ENABLE_CLANG_ARCMT=0
4869  ;;
4870   default) ENABLE_CLANG_ARCMT=1
4871 ;;
4872   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4873 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4874    { (exit 1); exit 1; }; } ;;
4875 esac
4876
4877 clang_plugin_support="yes"
4878 # Check whether --enable-clang-plugin-support was given.
4879 if test "${enable_clang_plugin_support+set}" = set; then
4880   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4881 else
4882   enableval="yes"
4883 fi
4884
4885 case "$enableval" in
4886   yes) CLANG_PLUGIN_SUPPORT=1
4887  ;;
4888   no)  CLANG_PLUGIN_SUPPORT=0
4889  ;;
4890   default) CLANG_PLUGIN_SUPPORT=1
4891 ;;
4892   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4893 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4894    { (exit 1); exit 1; }; } ;;
4895 esac
4896
4897 clang_static_analyzer="yes"
4898 # Check whether --enable-clang-static-analyzer was given.
4899 if test "${enable_clang_static_analyzer+set}" = set; then
4900   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4901 else
4902   enableval="yes"
4903 fi
4904
4905 case "$enableval" in
4906   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4907  ;;
4908   no)
4909     if test ${clang_arcmt} != "no" ; then
4910       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4911 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4912    { (exit 1); exit 1; }; }
4913     fi
4914     ENABLE_CLANG_STATIC_ANALYZER=0
4915
4916     ;;
4917   default) ENABLE_CLANG_STATIC_ANALYZER=1
4918 ;;
4919   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4920 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4921    { (exit 1); exit 1; }; } ;;
4922 esac
4923
4924 # Check whether --enable-clang-rewriter was given.
4925 if test "${enable_clang_rewriter+set}" = set; then
4926   enableval=$enable_clang_rewriter;
4927 else
4928   enableval="yes"
4929 fi
4930
4931 case "$enableval" in
4932   yes) ENABLE_CLANG_REWRITER=1
4933  ;;
4934   no)
4935     if test ${clang_arcmt} != "no" ; then
4936       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&5
4937 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling rewriter." >&2;}
4938    { (exit 1); exit 1; }; }
4939     fi
4940     if test ${clang_static_analyzer} != "no" ; then
4941       { { echo "$as_me:$LINENO: error: Cannot enable clang static analyzer while disabling rewriter." >&5
4942 echo "$as_me: error: Cannot enable clang static analyzer while disabling rewriter." >&2;}
4943    { (exit 1); exit 1; }; }
4944     fi
4945     ENABLE_CLANG_REWRITER=0
4946
4947     ;;
4948   default) ENABLE_CLANG_REWRITER=1
4949 ;;
4950   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&5
4951 echo "$as_me: error: Invalid setting for --enable-clang-rewriter. Use \"yes\" or \"no\"" >&2;}
4952    { (exit 1); exit 1; }; } ;;
4953 esac
4954
4955 # Check whether --enable-optimized was given.
4956 if test "${enable_optimized+set}" = set; then
4957   enableval=$enable_optimized;
4958 else
4959   enableval=$optimize
4960 fi
4961
4962 if test ${enableval} = "no" ; then
4963   ENABLE_OPTIMIZED=
4964
4965 else
4966   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4967
4968 fi
4969
4970 # Check whether --enable-profiling was given.
4971 if test "${enable_profiling+set}" = set; then
4972   enableval=$enable_profiling;
4973 else
4974   enableval="no"
4975 fi
4976
4977 if test ${enableval} = "no" ; then
4978   ENABLE_PROFILING=
4979
4980 else
4981   ENABLE_PROFILING=ENABLE_PROFILING=1
4982
4983 fi
4984
4985 # Check whether --enable-assertions was given.
4986 if test "${enable_assertions+set}" = set; then
4987   enableval=$enable_assertions;
4988 else
4989   enableval="yes"
4990 fi
4991
4992 if test ${enableval} = "yes" ; then
4993   DISABLE_ASSERTIONS=
4994
4995 else
4996   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4997
4998 fi
4999
5000 # Check whether --enable-werror was given.
5001 if test "${enable_werror+set}" = set; then
5002   enableval=$enable_werror;
5003 else
5004   enableval="no"
5005 fi
5006
5007 case "$enableval" in
5008   yes) ENABLE_WERROR=1
5009  ;;
5010   no)  ENABLE_WERROR=0
5011  ;;
5012   default) ENABLE_WERROR=0
5013 ;;
5014   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5015 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5016    { (exit 1); exit 1; }; } ;;
5017 esac
5018
5019 # Check whether --enable-expensive-checks was given.
5020 if test "${enable_expensive_checks+set}" = set; then
5021   enableval=$enable_expensive_checks;
5022 else
5023   enableval="no"
5024 fi
5025
5026 if test ${enableval} = "yes" ; then
5027   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5028
5029   EXPENSIVE_CHECKS=yes
5030
5031 else
5032   ENABLE_EXPENSIVE_CHECKS=
5033
5034   EXPENSIVE_CHECKS=no
5035
5036 fi
5037
5038 # Check whether --enable-debug-runtime was given.
5039 if test "${enable_debug_runtime+set}" = set; then
5040   enableval=$enable_debug_runtime;
5041 else
5042   enableval=no
5043 fi
5044
5045 if test ${enableval} = "no" ; then
5046   DEBUG_RUNTIME=
5047
5048 else
5049   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5050
5051 fi
5052
5053 # Check whether --enable-debug-symbols was given.
5054 if test "${enable_debug_symbols+set}" = set; then
5055   enableval=$enable_debug_symbols;
5056 else
5057   enableval=no
5058 fi
5059
5060 if test ${enableval} = "no" ; then
5061   DEBUG_SYMBOLS=
5062
5063 else
5064   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5065
5066 fi
5067
5068 # Check whether --enable-keep-symbols was given.
5069 if test "${enable_keep_symbols+set}" = set; then
5070   enableval=$enable_keep_symbols;
5071 else
5072   enableval=no
5073 fi
5074
5075 if test ${enableval} = "no" ; then
5076   KEEP_SYMBOLS=
5077
5078 else
5079   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5080
5081 fi
5082
5083 # Check whether --enable-jit was given.
5084 if test "${enable_jit+set}" = set; then
5085   enableval=$enable_jit;
5086 else
5087   enableval=default
5088 fi
5089
5090 if test ${enableval} = "no"
5091 then
5092   JIT=
5093
5094 else
5095   case "$llvm_cv_target_arch" in
5096     x86)         TARGET_HAS_JIT=1
5097  ;;
5098     Sparc)       TARGET_HAS_JIT=0
5099  ;;
5100     PowerPC)     TARGET_HAS_JIT=1
5101  ;;
5102     x86_64)      TARGET_HAS_JIT=1
5103  ;;
5104     ARM)         TARGET_HAS_JIT=1
5105  ;;
5106     AArch64)     TARGET_HAS_JIT=0
5107  ;;
5108     Mips)        TARGET_HAS_JIT=1
5109  ;;
5110     XCore)       TARGET_HAS_JIT=0
5111  ;;
5112     MSP430)      TARGET_HAS_JIT=0
5113  ;;
5114     Hexagon)     TARGET_HAS_JIT=0
5115  ;;
5116     NVPTX)       TARGET_HAS_JIT=0
5117  ;;
5118     SystemZ)     TARGET_HAS_JIT=1
5119  ;;
5120     *)           TARGET_HAS_JIT=0
5121  ;;
5122   esac
5123 fi
5124
5125 TARGETS_WITH_JIT="AArch64 ARM ARM64 Mips PowerPC SystemZ X86"
5126 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5127
5128
5129 # Check whether --enable-docs was given.
5130 if test "${enable_docs+set}" = set; then
5131   enableval=$enable_docs;
5132 else
5133   enableval=default
5134 fi
5135
5136 case "$enableval" in
5137   yes) ENABLE_DOCS=1
5138  ;;
5139   no)  ENABLE_DOCS=0
5140  ;;
5141   default) ENABLE_DOCS=1
5142  ;;
5143   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5144 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5145    { (exit 1); exit 1; }; } ;;
5146 esac
5147
5148 # Check whether --enable-doxygen was given.
5149 if test "${enable_doxygen+set}" = set; then
5150   enableval=$enable_doxygen;
5151 else
5152   enableval=default
5153 fi
5154
5155 case "$enableval" in
5156   yes) ENABLE_DOXYGEN=1
5157  ;;
5158   no)  ENABLE_DOXYGEN=0
5159  ;;
5160   default) ENABLE_DOXYGEN=0
5161  ;;
5162   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5163 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5164    { (exit 1); exit 1; }; } ;;
5165 esac
5166
5167 # Check whether --enable-threads was given.
5168 if test "${enable_threads+set}" = set; then
5169   enableval=$enable_threads;
5170 else
5171   enableval=default
5172 fi
5173
5174 case "$enableval" in
5175   yes) LLVM_ENABLE_THREADS=1
5176  ;;
5177   no)  LLVM_ENABLE_THREADS=0
5178  ;;
5179   default) LLVM_ENABLE_THREADS=1
5180  ;;
5181   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5182 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5183    { (exit 1); exit 1; }; } ;;
5184 esac
5185
5186 cat >>confdefs.h <<_ACEOF
5187 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5188 _ACEOF
5189
5190
5191 # Check whether --enable-pthreads was given.
5192 if test "${enable_pthreads+set}" = set; then
5193   enableval=$enable_pthreads;
5194 else
5195   enableval=default
5196 fi
5197
5198 case "$enableval" in
5199   yes) ENABLE_PTHREADS=1
5200  ;;
5201   no)  ENABLE_PTHREADS=0
5202  ;;
5203   default) ENABLE_PTHREADS=1
5204  ;;
5205   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5206 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5207    { (exit 1); exit 1; }; } ;;
5208 esac
5209
5210 # Check whether --enable-zlib was given.
5211 if test "${enable_zlib+set}" = set; then
5212   enableval=$enable_zlib;
5213 else
5214   enableval=default
5215 fi
5216
5217 case "$enableval" in
5218   yes) LLVM_ENABLE_ZLIB=1
5219  ;;
5220   no)  LLVM_ENABLE_ZLIB=0
5221  ;;
5222   default) LLVM_ENABLE_ZLIB=1
5223  ;;
5224   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5225 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5226    { (exit 1); exit 1; }; } ;;
5227 esac
5228
5229 cat >>confdefs.h <<_ACEOF
5230 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5231 _ACEOF
5232
5233
5234 # Check whether --enable-pic was given.
5235 if test "${enable_pic+set}" = set; then
5236   enableval=$enable_pic;
5237 else
5238   enableval=default
5239 fi
5240
5241 case "$enableval" in
5242   yes) ENABLE_PIC=1
5243  ;;
5244   no)  ENABLE_PIC=0
5245  ;;
5246   default) ENABLE_PIC=1
5247  ;;
5248   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5249 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5250    { (exit 1); exit 1; }; } ;;
5251 esac
5252
5253 cat >>confdefs.h <<_ACEOF
5254 #define ENABLE_PIC $ENABLE_PIC
5255 _ACEOF
5256
5257
5258 # Check whether --enable-shared was given.
5259 if test "${enable_shared+set}" = set; then
5260   enableval=$enable_shared;
5261 else
5262   enableval=default
5263 fi
5264
5265 case "$enableval" in
5266   yes) ENABLE_SHARED=1
5267  ;;
5268   no)  ENABLE_SHARED=0
5269  ;;
5270   default) ENABLE_SHARED=0
5271  ;;
5272   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5274    { (exit 1); exit 1; }; } ;;
5275 esac
5276
5277 # Check whether --enable-embed-stdcxx was given.
5278 if test "${enable_embed_stdcxx+set}" = set; then
5279   enableval=$enable_embed_stdcxx;
5280 else
5281   enableval=default
5282 fi
5283
5284 case "$enableval" in
5285   yes) ENABLE_EMBED_STDCXX=1
5286  ;;
5287   no)  ENABLE_EMBED_STDCXX=0
5288  ;;
5289   default) ENABLE_EMBED_STDCXX=0
5290  ;;
5291   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5293    { (exit 1); exit 1; }; } ;;
5294 esac
5295
5296 # Check whether --enable-timestamps was given.
5297 if test "${enable_timestamps+set}" = set; then
5298   enableval=$enable_timestamps;
5299 else
5300   enableval=default
5301 fi
5302
5303 case "$enableval" in
5304   yes) ENABLE_TIMESTAMPS=1
5305  ;;
5306   no)  ENABLE_TIMESTAMPS=0
5307  ;;
5308   default) ENABLE_TIMESTAMPS=1
5309  ;;
5310   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5311 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5312    { (exit 1); exit 1; }; } ;;
5313 esac
5314
5315 cat >>confdefs.h <<_ACEOF
5316 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5317 _ACEOF
5318
5319
5320 # Check whether --enable-backtraces was given.
5321 if test "${enable_backtraces+set}" = set; then
5322   enableval=$enable_backtraces; case "$enableval" in
5323     yes) llvm_cv_enable_backtraces="yes" ;;
5324     no)  llvm_cv_enable_backtraces="no"  ;;
5325     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5326 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5327    { (exit 1); exit 1; }; } ;;
5328   esac
5329 else
5330   llvm_cv_enable_backtraces="yes"
5331 fi
5332
5333 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5334
5335 cat >>confdefs.h <<\_ACEOF
5336 #define ENABLE_BACKTRACES 1
5337 _ACEOF
5338
5339 fi
5340
5341 # Check whether --enable-crash-overrides was given.
5342 if test "${enable_crash_overrides+set}" = set; then
5343   enableval=$enable_crash_overrides; case "$enableval" in
5344     yes) llvm_cv_enable_crash_overrides="yes" ;;
5345     no)  llvm_cv_enable_crash_overrides="no"  ;;
5346     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5347 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5348    { (exit 1); exit 1; }; } ;;
5349   esac
5350 else
5351   llvm_cv_enable_crash_overrides="yes"
5352 fi
5353
5354 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5355
5356 cat >>confdefs.h <<\_ACEOF
5357 #define ENABLE_CRASH_OVERRIDES 1
5358 _ACEOF
5359
5360 fi
5361
5362 ALL_TARGETS="X86 Sparc PowerPC AArch64 ARM ARM64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5363 ALL_TARGETS=$ALL_TARGETS
5364
5365
5366 TARGETS_TO_BUILD=""
5367 # Check whether --enable-targets was given.
5368 if test "${enable_targets+set}" = set; then
5369   enableval=$enable_targets;
5370 else
5371   enableval=all
5372 fi
5373
5374 if test "$enableval" = host-only ; then
5375   enableval=host
5376 fi
5377 case "$enableval" in
5378   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5379   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5380       case "$a_target" in
5381         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5382         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5383         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5384         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5385         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5386         arm64)    TARGETS_TO_BUILD="ARM64 $TARGETS_TO_BUILD" ;;
5387         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5388         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5389         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5390         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5391         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5392         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5393         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5394         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5395         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5396         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5397         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5398         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5399         host) case "$llvm_cv_target_arch" in
5400             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5401             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5402             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5403             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5404             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5405             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5406             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5407             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5408             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5409             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5410             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5411             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5412             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5413 echo "$as_me: error: Can not set target to build" >&2;}
5414    { (exit 1); exit 1; }; } ;;
5415           esac ;;
5416         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5417 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5418    { (exit 1); exit 1; }; } ;;
5419       esac
5420   done
5421   ;;
5422 esac
5423
5424 # Check whether --enable-experimental-targets was given.
5425 if test "${enable_experimental_targets+set}" = set; then
5426   enableval=$enable_experimental_targets;
5427 else
5428   enableval=disable
5429 fi
5430
5431
5432 if test ${enableval} != "disable"
5433 then
5434   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5435 fi
5436
5437 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5438
5439
5440 for a_target in $TARGETS_TO_BUILD; do
5441   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5442
5443 cat >>confdefs.h <<_ACEOF
5444 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5445 _ACEOF
5446
5447     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5448     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5449     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5450     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5451     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5452       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5453     fi
5454     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5455       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5456     fi
5457
5458 cat >>confdefs.h <<_ACEOF
5459 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5460 _ACEOF
5461
5462
5463 cat >>confdefs.h <<_ACEOF
5464 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5465 _ACEOF
5466
5467
5468 cat >>confdefs.h <<_ACEOF
5469 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5470 _ACEOF
5471
5472
5473 cat >>confdefs.h <<_ACEOF
5474 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5475 _ACEOF
5476
5477     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5478
5479 cat >>confdefs.h <<_ACEOF
5480 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5481 _ACEOF
5482
5483     fi
5484     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5485
5486 cat >>confdefs.h <<_ACEOF
5487 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5488 _ACEOF
5489
5490     fi
5491   fi
5492 done
5493
5494 LLVM_ENUM_TARGETS=""
5495 LLVM_ENUM_ASM_PRINTERS=""
5496 LLVM_ENUM_ASM_PARSERS=""
5497 LLVM_ENUM_DISASSEMBLERS=""
5498 for target_to_build in $TARGETS_TO_BUILD; do
5499   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5500   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5501     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5502   fi
5503   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5504     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5505   fi
5506   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5507     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5508   fi
5509 done
5510
5511
5512
5513
5514
5515
5516 # Check whether --with-optimize-option was given.
5517 if test "${with_optimize_option+set}" = set; then
5518   withval=$with_optimize_option;
5519 else
5520   withval=default
5521 fi
5522
5523 { echo "$as_me:$LINENO: checking optimization flags" >&5
5524 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5525 case "$withval" in
5526   default)
5527     case "$llvm_cv_os_type" in
5528     FreeBSD) optimize_option=-O2 ;;
5529     MingW) optimize_option=-O2 ;;
5530     *)     optimize_option=-O3 ;;
5531     esac ;;
5532   *) optimize_option="$withval" ;;
5533 esac
5534 OPTIMIZE_OPTION=$optimize_option
5535
5536 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5537 echo "${ECHO_T}$optimize_option" >&6; }
5538
5539
5540 # Check whether --with-extra-options was given.
5541 if test "${with_extra_options+set}" = set; then
5542   withval=$with_extra_options;
5543 else
5544   withval=default
5545 fi
5546
5547 case "$withval" in
5548   default) EXTRA_OPTIONS= ;;
5549   *) EXTRA_OPTIONS=$withval ;;
5550 esac
5551 EXTRA_OPTIONS=$EXTRA_OPTIONS
5552
5553
5554
5555 # Check whether --with-extra-ld-options was given.
5556 if test "${with_extra_ld_options+set}" = set; then
5557   withval=$with_extra_ld_options;
5558 else
5559   withval=default
5560 fi
5561
5562 case "$withval" in
5563   default) EXTRA_LD_OPTIONS= ;;
5564   *) EXTRA_LD_OPTIONS=$withval ;;
5565 esac
5566 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5567
5568
5569 # Check whether --enable-bindings was given.
5570 if test "${enable_bindings+set}" = set; then
5571   enableval=$enable_bindings;
5572 else
5573   enableval=default
5574 fi
5575
5576 BINDINGS_TO_BUILD=""
5577 case "$enableval" in
5578   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5579   all ) BINDINGS_TO_BUILD="ocaml" ;;
5580   none | no) BINDINGS_TO_BUILD="" ;;
5581   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5582       case "$a_binding" in
5583         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5584         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5585 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5586    { (exit 1); exit 1; }; } ;;
5587       esac
5588   done
5589   ;;
5590 esac
5591
5592
5593 # Check whether --with-ocaml-libdir was given.
5594 if test "${with_ocaml_libdir+set}" = set; then
5595   withval=$with_ocaml_libdir;
5596 else
5597   withval=auto
5598 fi
5599
5600 case "$withval" in
5601   auto) with_ocaml_libdir="$withval" ;;
5602   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5603   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5604 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5605    { (exit 1); exit 1; }; } ;;
5606 esac
5607
5608
5609 # Check whether --with-clang-srcdir was given.
5610 if test "${with_clang_srcdir+set}" = set; then
5611   withval=$with_clang_srcdir;
5612 else
5613   withval="-"
5614 fi
5615
5616 case "$withval" in
5617   -) clang_src_root="" ;;
5618   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5619   *) clang_src_root="$ac_pwd/$withval" ;;
5620 esac
5621 CLANG_SRC_ROOT=$clang_src_root
5622
5623
5624
5625 # Check whether --with-clang-resource-dir was given.
5626 if test "${with_clang_resource_dir+set}" = set; then
5627   withval=$with_clang_resource_dir;
5628 else
5629   withval=""
5630 fi
5631
5632
5633 cat >>confdefs.h <<_ACEOF
5634 #define CLANG_RESOURCE_DIR "$withval"
5635 _ACEOF
5636
5637
5638
5639 # Check whether --with-c-include-dirs was given.
5640 if test "${with_c_include_dirs+set}" = set; then
5641   withval=$with_c_include_dirs;
5642 else
5643   withval=""
5644 fi
5645
5646
5647 cat >>confdefs.h <<_ACEOF
5648 #define C_INCLUDE_DIRS "$withval"
5649 _ACEOF
5650
5651
5652 # Clang normally uses the system c++ headers and libraries. With this option,
5653 # clang will use the ones provided by a gcc installation instead. This option should
5654 # be passed the same value that was used with --prefix when configuring gcc.
5655
5656 # Check whether --with-gcc-toolchain was given.
5657 if test "${with_gcc_toolchain+set}" = set; then
5658   withval=$with_gcc_toolchain;
5659 else
5660   withval=""
5661 fi
5662
5663
5664 cat >>confdefs.h <<_ACEOF
5665 #define GCC_INSTALL_PREFIX "$withval"
5666 _ACEOF
5667
5668
5669
5670 # Check whether --with-default-sysroot was given.
5671 if test "${with_default_sysroot+set}" = set; then
5672   withval=$with_default_sysroot;
5673 else
5674   withval=""
5675 fi
5676
5677
5678 cat >>confdefs.h <<_ACEOF
5679 #define DEFAULT_SYSROOT "$withval"
5680 _ACEOF
5681
5682
5683
5684 # Check whether --with-binutils-include was given.
5685 if test "${with_binutils_include+set}" = set; then
5686   withval=$with_binutils_include;
5687 else
5688   withval=default
5689 fi
5690
5691 case "$withval" in
5692   default) WITH_BINUTILS_INCDIR=default ;;
5693   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5694   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5695 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5696    { (exit 1); exit 1; }; } ;;
5697 esac
5698 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5699   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5700
5701   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5702      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5703      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5704 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5705    { (exit 1); exit 1; }; };
5706   fi
5707 fi
5708
5709
5710 # Check whether --with-bug-report-url was given.
5711 if test "${with_bug_report_url+set}" = set; then
5712   withval=$with_bug_report_url;
5713 else
5714   withval="http://llvm.org/bugs/"
5715 fi
5716
5717
5718 cat >>confdefs.h <<_ACEOF
5719 #define BUG_REPORT_URL "$withval"
5720 _ACEOF
5721
5722
5723 # Check whether --enable-terminfo was given.
5724 if test "${enable_terminfo+set}" = set; then
5725   enableval=$enable_terminfo; case "$enableval" in
5726     yes) llvm_cv_enable_terminfo="yes" ;;
5727     no)  llvm_cv_enable_terminfo="no"  ;;
5728     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5729 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5730    { (exit 1); exit 1; }; } ;;
5731   esac
5732 else
5733   llvm_cv_enable_terminfo="yes"
5734 fi
5735
5736 case "$llvm_cv_enable_terminfo" in
5737   yes) ENABLE_TERMINFO=1
5738  ;;
5739   no)  ENABLE_TERMINFO=0
5740  ;;
5741 esac
5742
5743 # Check whether --enable-libedit was given.
5744 if test "${enable_libedit+set}" = set; then
5745   enableval=$enable_libedit; case "$enableval" in
5746     yes) llvm_cv_enable_libedit="yes" ;;
5747     no)  llvm_cv_enable_libedit="no"  ;;
5748     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5749 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5750    { (exit 1); exit 1; }; } ;;
5751   esac
5752 else
5753   llvm_cv_enable_libedit="yes"
5754 fi
5755
5756
5757 # Check whether --enable-libffi was given.
5758 if test "${enable_libffi+set}" = set; then
5759   enableval=$enable_libffi; case "$enableval" in
5760     yes) llvm_cv_enable_libffi="yes" ;;
5761     no)  llvm_cv_enable_libffi="no"  ;;
5762     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5763 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5764    { (exit 1); exit 1; }; } ;;
5765   esac
5766 else
5767   llvm_cv_enable_libffi=no
5768 fi
5769
5770
5771
5772 # Check whether --with-internal-prefix was given.
5773 if test "${with_internal_prefix+set}" = set; then
5774   withval=$with_internal_prefix;
5775 else
5776   withval=""
5777 fi
5778
5779 INTERNAL_PREFIX=$withval
5780
5781
5782
5783 { echo "$as_me:$LINENO: checking for GNU make" >&5
5784 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5785 if test "${llvm_cv_gnu_make_command+set}" = set; then
5786   echo $ECHO_N "(cached) $ECHO_C" >&6
5787 else
5788   llvm_cv_gnu_make_command=''
5789  for a in "$MAKE" make gmake gnumake ; do
5790   if test -z "$a" ; then continue ; fi ;
5791   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5792   then
5793    llvm_cv_gnu_make_command=$a ;
5794    break;
5795   fi
5796  done
5797 fi
5798 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5799 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5800  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
5801    ifGNUmake='' ;
5802  else
5803    ifGNUmake='#' ;
5804    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5805 echo "${ECHO_T}\"Not found\"" >&6; };
5806  fi
5807
5808
5809 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5810 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5811 LN_S=$as_ln_s
5812 if test "$LN_S" = "ln -s"; then
5813   { echo "$as_me:$LINENO: result: yes" >&5
5814 echo "${ECHO_T}yes" >&6; }
5815 else
5816   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5817 echo "${ECHO_T}no, using $LN_S" >&6; }
5818 fi
5819
5820 # Extract the first word of "nm", so it can be a program name with args.
5821 set dummy nm; ac_word=$2
5822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5824 if test "${ac_cv_path_NM+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827   case $NM in
5828   [\\/]* | ?:[\\/]*)
5829   ac_cv_path_NM="$NM" # Let the user override the test with a path.
5830   ;;
5831   *)
5832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837   for ac_exec_ext in '' $ac_executable_extensions; do
5838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5839     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
5840     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844 done
5845 IFS=$as_save_IFS
5846
5847   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
5848   ;;
5849 esac
5850 fi
5851 NM=$ac_cv_path_NM
5852 if test -n "$NM"; then
5853   { echo "$as_me:$LINENO: result: $NM" >&5
5854 echo "${ECHO_T}$NM" >&6; }
5855 else
5856   { echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6; }
5858 fi
5859
5860
5861 # Extract the first word of "cmp", so it can be a program name with args.
5862 set dummy cmp; ac_word=$2
5863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865 if test "${ac_cv_path_CMP+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   case $CMP in
5869   [\\/]* | ?:[\\/]*)
5870   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5871   ;;
5872   *)
5873   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874 for as_dir in $PATH
5875 do
5876   IFS=$as_save_IFS
5877   test -z "$as_dir" && as_dir=.
5878   for ac_exec_ext in '' $ac_executable_extensions; do
5879   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5880     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5881     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5882     break 2
5883   fi
5884 done
5885 done
5886 IFS=$as_save_IFS
5887
5888   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5889   ;;
5890 esac
5891 fi
5892 CMP=$ac_cv_path_CMP
5893 if test -n "$CMP"; then
5894   { echo "$as_me:$LINENO: result: $CMP" >&5
5895 echo "${ECHO_T}$CMP" >&6; }
5896 else
5897   { echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6; }
5899 fi
5900
5901
5902 # Extract the first word of "cp", so it can be a program name with args.
5903 set dummy cp; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_path_CP+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   case $CP in
5910   [\\/]* | ?:[\\/]*)
5911   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5912   ;;
5913   *)
5914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917   IFS=$as_save_IFS
5918   test -z "$as_dir" && as_dir=.
5919   for ac_exec_ext in '' $ac_executable_extensions; do
5920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5921     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923     break 2
5924   fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5930   ;;
5931 esac
5932 fi
5933 CP=$ac_cv_path_CP
5934 if test -n "$CP"; then
5935   { echo "$as_me:$LINENO: result: $CP" >&5
5936 echo "${ECHO_T}$CP" >&6; }
5937 else
5938   { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5940 fi
5941
5942
5943 # Extract the first word of "date", so it can be a program name with args.
5944 set dummy date; ac_word=$2
5945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5947 if test "${ac_cv_path_DATE+set}" = set; then
5948   echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950   case $DATE in
5951   [\\/]* | ?:[\\/]*)
5952   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5953   ;;
5954   *)
5955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958   IFS=$as_save_IFS
5959   test -z "$as_dir" && as_dir=.
5960   for ac_exec_ext in '' $ac_executable_extensions; do
5961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5962     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964     break 2
5965   fi
5966 done
5967 done
5968 IFS=$as_save_IFS
5969
5970   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5971   ;;
5972 esac
5973 fi
5974 DATE=$ac_cv_path_DATE
5975 if test -n "$DATE"; then
5976   { echo "$as_me:$LINENO: result: $DATE" >&5
5977 echo "${ECHO_T}$DATE" >&6; }
5978 else
5979   { echo "$as_me:$LINENO: result: no" >&5
5980 echo "${ECHO_T}no" >&6; }
5981 fi
5982
5983
5984 # Extract the first word of "find", so it can be a program name with args.
5985 set dummy find; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_path_FIND+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   case $FIND in
5992   [\\/]* | ?:[\\/]*)
5993   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5994   ;;
5995   *)
5996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5998 do
5999   IFS=$as_save_IFS
6000   test -z "$as_dir" && as_dir=.
6001   for ac_exec_ext in '' $ac_executable_extensions; do
6002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6003     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6005     break 2
6006   fi
6007 done
6008 done
6009 IFS=$as_save_IFS
6010
6011   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6012   ;;
6013 esac
6014 fi
6015 FIND=$ac_cv_path_FIND
6016 if test -n "$FIND"; then
6017   { echo "$as_me:$LINENO: result: $FIND" >&5
6018 echo "${ECHO_T}$FIND" >&6; }
6019 else
6020   { echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6; }
6022 fi
6023
6024
6025 # Extract the first word of "grep", so it can be a program name with args.
6026 set dummy grep; ac_word=$2
6027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6029 if test "${ac_cv_path_GREP+set}" = set; then
6030   echo $ECHO_N "(cached) $ECHO_C" >&6
6031 else
6032   case $GREP in
6033   [\\/]* | ?:[\\/]*)
6034   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6035   ;;
6036   *)
6037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040   IFS=$as_save_IFS
6041   test -z "$as_dir" && as_dir=.
6042   for ac_exec_ext in '' $ac_executable_extensions; do
6043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6044     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6046     break 2
6047   fi
6048 done
6049 done
6050 IFS=$as_save_IFS
6051
6052   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6053   ;;
6054 esac
6055 fi
6056 GREP=$ac_cv_path_GREP
6057 if test -n "$GREP"; then
6058   { echo "$as_me:$LINENO: result: $GREP" >&5
6059 echo "${ECHO_T}$GREP" >&6; }
6060 else
6061   { echo "$as_me:$LINENO: result: no" >&5
6062 echo "${ECHO_T}no" >&6; }
6063 fi
6064
6065
6066 # Extract the first word of "mkdir", so it can be a program name with args.
6067 set dummy mkdir; ac_word=$2
6068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6070 if test "${ac_cv_path_MKDIR+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   case $MKDIR in
6074   [\\/]* | ?:[\\/]*)
6075   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6076   ;;
6077   *)
6078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081   IFS=$as_save_IFS
6082   test -z "$as_dir" && as_dir=.
6083   for ac_exec_ext in '' $ac_executable_extensions; do
6084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6085     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6087     break 2
6088   fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6092
6093   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6094   ;;
6095 esac
6096 fi
6097 MKDIR=$ac_cv_path_MKDIR
6098 if test -n "$MKDIR"; then
6099   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6100 echo "${ECHO_T}$MKDIR" >&6; }
6101 else
6102   { echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6; }
6104 fi
6105
6106
6107 # Extract the first word of "mv", so it can be a program name with args.
6108 set dummy mv; ac_word=$2
6109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6111 if test "${ac_cv_path_MV+set}" = set; then
6112   echo $ECHO_N "(cached) $ECHO_C" >&6
6113 else
6114   case $MV in
6115   [\\/]* | ?:[\\/]*)
6116   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6117   ;;
6118   *)
6119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH
6121 do
6122   IFS=$as_save_IFS
6123   test -z "$as_dir" && as_dir=.
6124   for ac_exec_ext in '' $ac_executable_extensions; do
6125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6126     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6128     break 2
6129   fi
6130 done
6131 done
6132 IFS=$as_save_IFS
6133
6134   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6135   ;;
6136 esac
6137 fi
6138 MV=$ac_cv_path_MV
6139 if test -n "$MV"; then
6140   { echo "$as_me:$LINENO: result: $MV" >&5
6141 echo "${ECHO_T}$MV" >&6; }
6142 else
6143   { echo "$as_me:$LINENO: result: no" >&5
6144 echo "${ECHO_T}no" >&6; }
6145 fi
6146
6147
6148 if test -n "$ac_tool_prefix"; then
6149   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6151 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6153 if test "${ac_cv_prog_RANLIB+set}" = set; then
6154   echo $ECHO_N "(cached) $ECHO_C" >&6
6155 else
6156   if test -n "$RANLIB"; then
6157   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6158 else
6159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160 for as_dir in $PATH
6161 do
6162   IFS=$as_save_IFS
6163   test -z "$as_dir" && as_dir=.
6164   for ac_exec_ext in '' $ac_executable_extensions; do
6165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6166     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6167     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6168     break 2
6169   fi
6170 done
6171 done
6172 IFS=$as_save_IFS
6173
6174 fi
6175 fi
6176 RANLIB=$ac_cv_prog_RANLIB
6177 if test -n "$RANLIB"; then
6178   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6179 echo "${ECHO_T}$RANLIB" >&6; }
6180 else
6181   { echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6; }
6183 fi
6184
6185
6186 fi
6187 if test -z "$ac_cv_prog_RANLIB"; then
6188   ac_ct_RANLIB=$RANLIB
6189   # Extract the first word of "ranlib", so it can be a program name with args.
6190 set dummy ranlib; ac_word=$2
6191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6193 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   if test -n "$ac_ct_RANLIB"; then
6197   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204   for ac_exec_ext in '' $ac_executable_extensions; do
6205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206     ac_cv_prog_ac_ct_RANLIB="ranlib"
6207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208     break 2
6209   fi
6210 done
6211 done
6212 IFS=$as_save_IFS
6213
6214 fi
6215 fi
6216 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6217 if test -n "$ac_ct_RANLIB"; then
6218   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6219 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6220 else
6221   { echo "$as_me:$LINENO: result: no" >&5
6222 echo "${ECHO_T}no" >&6; }
6223 fi
6224
6225   if test "x$ac_ct_RANLIB" = x; then
6226     RANLIB=":"
6227   else
6228     case $cross_compiling:$ac_tool_warned in
6229 yes:)
6230 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6231 whose name does not start with the host triplet.  If you think this
6232 configuration is useful to you, please write to autoconf@gnu.org." >&5
6233 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6234 whose name does not start with the host triplet.  If you think this
6235 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6236 ac_tool_warned=yes ;;
6237 esac
6238     RANLIB=$ac_ct_RANLIB
6239   fi
6240 else
6241   RANLIB="$ac_cv_prog_RANLIB"
6242 fi
6243
6244 if test -n "$ac_tool_prefix"; then
6245   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}ar; ac_word=$2
6247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6249 if test "${ac_cv_prog_AR+set}" = set; then
6250   echo $ECHO_N "(cached) $ECHO_C" >&6
6251 else
6252   if test -n "$AR"; then
6253   ac_cv_prog_AR="$AR" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260   for ac_exec_ext in '' $ac_executable_extensions; do
6261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6262     ac_cv_prog_AR="${ac_tool_prefix}ar"
6263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264     break 2
6265   fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 AR=$ac_cv_prog_AR
6273 if test -n "$AR"; then
6274   { echo "$as_me:$LINENO: result: $AR" >&5
6275 echo "${ECHO_T}$AR" >&6; }
6276 else
6277   { echo "$as_me:$LINENO: result: no" >&5
6278 echo "${ECHO_T}no" >&6; }
6279 fi
6280
6281
6282 fi
6283 if test -z "$ac_cv_prog_AR"; then
6284   ac_ct_AR=$AR
6285   # Extract the first word of "ar", so it can be a program name with args.
6286 set dummy ar; ac_word=$2
6287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6289 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6290   echo $ECHO_N "(cached) $ECHO_C" >&6
6291 else
6292   if test -n "$ac_ct_AR"; then
6293   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300   for ac_exec_ext in '' $ac_executable_extensions; do
6301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6302     ac_cv_prog_ac_ct_AR="ar"
6303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6313 if test -n "$ac_ct_AR"; then
6314   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6315 echo "${ECHO_T}$ac_ct_AR" >&6; }
6316 else
6317   { echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6; }
6319 fi
6320
6321   if test "x$ac_ct_AR" = x; then
6322     AR="false"
6323   else
6324     case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6327 whose name does not start with the host triplet.  If you think this
6328 configuration is useful to you, please write to autoconf@gnu.org." >&5
6329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6330 whose name does not start with the host triplet.  If you think this
6331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6332 ac_tool_warned=yes ;;
6333 esac
6334     AR=$ac_ct_AR
6335   fi
6336 else
6337   AR="$ac_cv_prog_AR"
6338 fi
6339
6340 # Extract the first word of "rm", so it can be a program name with args.
6341 set dummy rm; ac_word=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_path_RM+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   case $RM in
6348   [\\/]* | ?:[\\/]*)
6349   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6350   ;;
6351   *)
6352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357   for ac_exec_ext in '' $ac_executable_extensions; do
6358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6359     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6368   ;;
6369 esac
6370 fi
6371 RM=$ac_cv_path_RM
6372 if test -n "$RM"; then
6373   { echo "$as_me:$LINENO: result: $RM" >&5
6374 echo "${ECHO_T}$RM" >&6; }
6375 else
6376   { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6378 fi
6379
6380
6381 # Extract the first word of "sed", so it can be a program name with args.
6382 set dummy sed; ac_word=$2
6383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6385 if test "${ac_cv_path_SED+set}" = set; then
6386   echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388   case $SED in
6389   [\\/]* | ?:[\\/]*)
6390   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6391   ;;
6392   *)
6393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396   IFS=$as_save_IFS
6397   test -z "$as_dir" && as_dir=.
6398   for ac_exec_ext in '' $ac_executable_extensions; do
6399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6400     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6402     break 2
6403   fi
6404 done
6405 done
6406 IFS=$as_save_IFS
6407
6408   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6409   ;;
6410 esac
6411 fi
6412 SED=$ac_cv_path_SED
6413 if test -n "$SED"; then
6414   { echo "$as_me:$LINENO: result: $SED" >&5
6415 echo "${ECHO_T}$SED" >&6; }
6416 else
6417   { echo "$as_me:$LINENO: result: no" >&5
6418 echo "${ECHO_T}no" >&6; }
6419 fi
6420
6421
6422 # Extract the first word of "tar", so it can be a program name with args.
6423 set dummy tar; ac_word=$2
6424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426 if test "${ac_cv_path_TAR+set}" = set; then
6427   echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429   case $TAR in
6430   [\\/]* | ?:[\\/]*)
6431   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6432   ;;
6433   *)
6434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437   IFS=$as_save_IFS
6438   test -z "$as_dir" && as_dir=.
6439   for ac_exec_ext in '' $ac_executable_extensions; do
6440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6441     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443     break 2
6444   fi
6445 done
6446 done
6447 IFS=$as_save_IFS
6448
6449   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6450   ;;
6451 esac
6452 fi
6453 TAR=$ac_cv_path_TAR
6454 if test -n "$TAR"; then
6455   { echo "$as_me:$LINENO: result: $TAR" >&5
6456 echo "${ECHO_T}$TAR" >&6; }
6457 else
6458   { echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6; }
6460 fi
6461
6462
6463 # Extract the first word of "pwd", so it can be a program name with args.
6464 set dummy pwd; ac_word=$2
6465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6467 if test "${ac_cv_path_BINPWD+set}" = set; then
6468   echo $ECHO_N "(cached) $ECHO_C" >&6
6469 else
6470   case $BINPWD in
6471   [\\/]* | ?:[\\/]*)
6472   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6473   ;;
6474   *)
6475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480   for ac_exec_ext in '' $ac_executable_extensions; do
6481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6482     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487 done
6488 IFS=$as_save_IFS
6489
6490   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6491   ;;
6492 esac
6493 fi
6494 BINPWD=$ac_cv_path_BINPWD
6495 if test -n "$BINPWD"; then
6496   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6497 echo "${ECHO_T}$BINPWD" >&6; }
6498 else
6499   { echo "$as_me:$LINENO: result: no" >&5
6500 echo "${ECHO_T}no" >&6; }
6501 fi
6502
6503
6504
6505 # Extract the first word of "Graphviz", so it can be a program name with args.
6506 set dummy Graphviz; ac_word=$2
6507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6509 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6510   echo $ECHO_N "(cached) $ECHO_C" >&6
6511 else
6512   case $GRAPHVIZ in
6513   [\\/]* | ?:[\\/]*)
6514   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6515   ;;
6516   *)
6517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6519 do
6520   IFS=$as_save_IFS
6521   test -z "$as_dir" && as_dir=.
6522   for ac_exec_ext in '' $ac_executable_extensions; do
6523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6524     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6525     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526     break 2
6527   fi
6528 done
6529 done
6530 IFS=$as_save_IFS
6531
6532   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6533   ;;
6534 esac
6535 fi
6536 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6537 if test -n "$GRAPHVIZ"; then
6538   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6539 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6540 else
6541   { echo "$as_me:$LINENO: result: no" >&5
6542 echo "${ECHO_T}no" >&6; }
6543 fi
6544
6545
6546 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6547
6548 cat >>confdefs.h <<\_ACEOF
6549 #define HAVE_GRAPHVIZ 1
6550 _ACEOF
6551
6552     if test "$llvm_cv_os_type" = "MingW" ; then
6553     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6554   fi
6555
6556 cat >>confdefs.h <<_ACEOF
6557 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6558 _ACEOF
6559
6560 fi
6561 # Extract the first word of "dot", so it can be a program name with args.
6562 set dummy dot; ac_word=$2
6563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6565 if test "${ac_cv_path_DOT+set}" = set; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   case $DOT in
6569   [\\/]* | ?:[\\/]*)
6570   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6571   ;;
6572   *)
6573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6574 for as_dir in $PATH
6575 do
6576   IFS=$as_save_IFS
6577   test -z "$as_dir" && as_dir=.
6578   for ac_exec_ext in '' $ac_executable_extensions; do
6579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6580     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6582     break 2
6583   fi
6584 done
6585 done
6586 IFS=$as_save_IFS
6587
6588   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6589   ;;
6590 esac
6591 fi
6592 DOT=$ac_cv_path_DOT
6593 if test -n "$DOT"; then
6594   { echo "$as_me:$LINENO: result: $DOT" >&5
6595 echo "${ECHO_T}$DOT" >&6; }
6596 else
6597   { echo "$as_me:$LINENO: result: no" >&5
6598 echo "${ECHO_T}no" >&6; }
6599 fi
6600
6601
6602 if test "$DOT" != "echo dot" ; then
6603
6604 cat >>confdefs.h <<\_ACEOF
6605 #define HAVE_DOT 1
6606 _ACEOF
6607
6608     if test "$llvm_cv_os_type" = "MingW" ; then
6609     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6610   fi
6611
6612 cat >>confdefs.h <<_ACEOF
6613 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6614 _ACEOF
6615
6616 fi
6617 # Extract the first word of "fdp", so it can be a program name with args.
6618 set dummy fdp; ac_word=$2
6619 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6621 if test "${ac_cv_path_FDP+set}" = set; then
6622   echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624   case $FDP in
6625   [\\/]* | ?:[\\/]*)
6626   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6627   ;;
6628   *)
6629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632   IFS=$as_save_IFS
6633   test -z "$as_dir" && as_dir=.
6634   for ac_exec_ext in '' $ac_executable_extensions; do
6635   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6636     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6637     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638     break 2
6639   fi
6640 done
6641 done
6642 IFS=$as_save_IFS
6643
6644   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6645   ;;
6646 esac
6647 fi
6648 FDP=$ac_cv_path_FDP
6649 if test -n "$FDP"; then
6650   { echo "$as_me:$LINENO: result: $FDP" >&5
6651 echo "${ECHO_T}$FDP" >&6; }
6652 else
6653   { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6655 fi
6656
6657
6658 if test "$FDP" != "echo fdp" ; then
6659
6660 cat >>confdefs.h <<\_ACEOF
6661 #define HAVE_FDP 1
6662 _ACEOF
6663
6664     if test "$llvm_cv_os_type" = "MingW" ; then
6665     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6666   fi
6667
6668 cat >>confdefs.h <<_ACEOF
6669 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6670 _ACEOF
6671
6672 fi
6673 # Extract the first word of "neato", so it can be a program name with args.
6674 set dummy neato; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_path_NEATO+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   case $NEATO in
6681   [\\/]* | ?:[\\/]*)
6682   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6683   ;;
6684   *)
6685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690   for ac_exec_ext in '' $ac_executable_extensions; do
6691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6692     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694     break 2
6695   fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6701   ;;
6702 esac
6703 fi
6704 NEATO=$ac_cv_path_NEATO
6705 if test -n "$NEATO"; then
6706   { echo "$as_me:$LINENO: result: $NEATO" >&5
6707 echo "${ECHO_T}$NEATO" >&6; }
6708 else
6709   { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6711 fi
6712
6713
6714 if test "$NEATO" != "echo neato" ; then
6715
6716 cat >>confdefs.h <<\_ACEOF
6717 #define HAVE_NEATO 1
6718 _ACEOF
6719
6720     if test "$llvm_cv_os_type" = "MingW" ; then
6721     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6722   fi
6723
6724 cat >>confdefs.h <<_ACEOF
6725 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6726 _ACEOF
6727
6728 fi
6729 # Extract the first word of "twopi", so it can be a program name with args.
6730 set dummy twopi; ac_word=$2
6731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6733 if test "${ac_cv_path_TWOPI+set}" = set; then
6734   echo $ECHO_N "(cached) $ECHO_C" >&6
6735 else
6736   case $TWOPI in
6737   [\\/]* | ?:[\\/]*)
6738   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6739   ;;
6740   *)
6741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744   IFS=$as_save_IFS
6745   test -z "$as_dir" && as_dir=.
6746   for ac_exec_ext in '' $ac_executable_extensions; do
6747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6748     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6749     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6750     break 2
6751   fi
6752 done
6753 done
6754 IFS=$as_save_IFS
6755
6756   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6757   ;;
6758 esac
6759 fi
6760 TWOPI=$ac_cv_path_TWOPI
6761 if test -n "$TWOPI"; then
6762   { echo "$as_me:$LINENO: result: $TWOPI" >&5
6763 echo "${ECHO_T}$TWOPI" >&6; }
6764 else
6765   { echo "$as_me:$LINENO: result: no" >&5
6766 echo "${ECHO_T}no" >&6; }
6767 fi
6768
6769
6770 if test "$TWOPI" != "echo twopi" ; then
6771
6772 cat >>confdefs.h <<\_ACEOF
6773 #define HAVE_TWOPI 1
6774 _ACEOF
6775
6776     if test "$llvm_cv_os_type" = "MingW" ; then
6777     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6778   fi
6779
6780 cat >>confdefs.h <<_ACEOF
6781 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6782 _ACEOF
6783
6784 fi
6785 # Extract the first word of "circo", so it can be a program name with args.
6786 set dummy circo; ac_word=$2
6787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6789 if test "${ac_cv_path_CIRCO+set}" = set; then
6790   echo $ECHO_N "(cached) $ECHO_C" >&6
6791 else
6792   case $CIRCO in
6793   [\\/]* | ?:[\\/]*)
6794   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6795   ;;
6796   *)
6797   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798 for as_dir in $PATH
6799 do
6800   IFS=$as_save_IFS
6801   test -z "$as_dir" && as_dir=.
6802   for ac_exec_ext in '' $ac_executable_extensions; do
6803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6804     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6805     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806     break 2
6807   fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6813   ;;
6814 esac
6815 fi
6816 CIRCO=$ac_cv_path_CIRCO
6817 if test -n "$CIRCO"; then
6818   { echo "$as_me:$LINENO: result: $CIRCO" >&5
6819 echo "${ECHO_T}$CIRCO" >&6; }
6820 else
6821   { echo "$as_me:$LINENO: result: no" >&5
6822 echo "${ECHO_T}no" >&6; }
6823 fi
6824
6825
6826 if test "$CIRCO" != "echo circo" ; then
6827
6828 cat >>confdefs.h <<\_ACEOF
6829 #define HAVE_CIRCO 1
6830 _ACEOF
6831
6832     if test "$llvm_cv_os_type" = "MingW" ; then
6833     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6834   fi
6835
6836 cat >>confdefs.h <<_ACEOF
6837 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6838 _ACEOF
6839
6840 fi
6841 for ac_prog in gv gsview32
6842 do
6843   # Extract the first word of "$ac_prog", so it can be a program name with args.
6844 set dummy $ac_prog; ac_word=$2
6845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6847 if test "${ac_cv_path_GV+set}" = set; then
6848   echo $ECHO_N "(cached) $ECHO_C" >&6
6849 else
6850   case $GV in
6851   [\\/]* | ?:[\\/]*)
6852   ac_cv_path_GV="$GV" # Let the user override the test with a path.
6853   ;;
6854   *)
6855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858   IFS=$as_save_IFS
6859   test -z "$as_dir" && as_dir=.
6860   for ac_exec_ext in '' $ac_executable_extensions; do
6861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6862     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864     break 2
6865   fi
6866 done
6867 done
6868 IFS=$as_save_IFS
6869
6870   ;;
6871 esac
6872 fi
6873 GV=$ac_cv_path_GV
6874 if test -n "$GV"; then
6875   { echo "$as_me:$LINENO: result: $GV" >&5
6876 echo "${ECHO_T}$GV" >&6; }
6877 else
6878   { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6880 fi
6881
6882
6883   test -n "$GV" && break
6884 done
6885 test -n "$GV" || GV="echo gv"
6886
6887 if test "$GV" != "echo gv" ; then
6888
6889 cat >>confdefs.h <<\_ACEOF
6890 #define HAVE_GV 1
6891 _ACEOF
6892
6893     if test "$llvm_cv_os_type" = "MingW" ; then
6894     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6895   fi
6896
6897 cat >>confdefs.h <<_ACEOF
6898 #define LLVM_PATH_GV "$GV${EXEEXT}"
6899 _ACEOF
6900
6901 fi
6902 # Extract the first word of "dotty", so it can be a program name with args.
6903 set dummy dotty; ac_word=$2
6904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6906 if test "${ac_cv_path_DOTTY+set}" = set; then
6907   echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909   case $DOTTY in
6910   [\\/]* | ?:[\\/]*)
6911   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6912   ;;
6913   *)
6914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917   IFS=$as_save_IFS
6918   test -z "$as_dir" && as_dir=.
6919   for ac_exec_ext in '' $ac_executable_extensions; do
6920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6921     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923     break 2
6924   fi
6925 done
6926 done
6927 IFS=$as_save_IFS
6928
6929   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6930   ;;
6931 esac
6932 fi
6933 DOTTY=$ac_cv_path_DOTTY
6934 if test -n "$DOTTY"; then
6935   { echo "$as_me:$LINENO: result: $DOTTY" >&5
6936 echo "${ECHO_T}$DOTTY" >&6; }
6937 else
6938   { echo "$as_me:$LINENO: result: no" >&5
6939 echo "${ECHO_T}no" >&6; }
6940 fi
6941
6942
6943 if test "$DOTTY" != "echo dotty" ; then
6944
6945 cat >>confdefs.h <<\_ACEOF
6946 #define HAVE_DOTTY 1
6947 _ACEOF
6948
6949     if test "$llvm_cv_os_type" = "MingW" ; then
6950     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6951   fi
6952
6953 cat >>confdefs.h <<_ACEOF
6954 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6955 _ACEOF
6956
6957 fi
6958 for ac_prog in xdot xdot.py
6959 do
6960   # Extract the first word of "$ac_prog", so it can be a program name with args.
6961 set dummy $ac_prog; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_path_XDOT+set}" = set; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   case $XDOT in
6968   [\\/]* | ?:[\\/]*)
6969   ac_cv_path_XDOT="$XDOT" # Let the user override the test with a path.
6970   ;;
6971   *)
6972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975   IFS=$as_save_IFS
6976   test -z "$as_dir" && as_dir=.
6977   for ac_exec_ext in '' $ac_executable_extensions; do
6978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6979     ac_cv_path_XDOT="$as_dir/$ac_word$ac_exec_ext"
6980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981     break 2
6982   fi
6983 done
6984 done
6985 IFS=$as_save_IFS
6986
6987   ;;
6988 esac
6989 fi
6990 XDOT=$ac_cv_path_XDOT
6991 if test -n "$XDOT"; then
6992   { echo "$as_me:$LINENO: result: $XDOT" >&5
6993 echo "${ECHO_T}$XDOT" >&6; }
6994 else
6995   { echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6; }
6997 fi
6998
6999
7000   test -n "$XDOT" && break
7001 done
7002 test -n "$XDOT" || XDOT="echo xdot"
7003
7004 if test "$XDOT" != "echo xdot" ; then
7005
7006 cat >>confdefs.h <<\_ACEOF
7007 #define HAVE_XDOT 1
7008 _ACEOF
7009
7010     if test "$llvm_cv_os_type" = "MingW" ; then
7011     XDOT=`echo $XDOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7012   fi
7013
7014 cat >>confdefs.h <<_ACEOF
7015 #define LLVM_PATH_XDOT "$XDOT${EXEEXT}"
7016 _ACEOF
7017
7018 fi
7019
7020 # Find a good install program.  We prefer a C program (faster),
7021 # so one script is as good as another.  But avoid the broken or
7022 # incompatible versions:
7023 # SysV /etc/install, /usr/sbin/install
7024 # SunOS /usr/etc/install
7025 # IRIX /sbin/install
7026 # AIX /bin/install
7027 # AmigaOS /C/install, which installs bootblocks on floppy discs
7028 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7029 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7030 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7031 # OS/2's system install, which has a completely different semantic
7032 # ./install, which can be erroneously created by make from ./install.sh.
7033 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7034 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7035 if test -z "$INSTALL"; then
7036 if test "${ac_cv_path_install+set}" = set; then
7037   echo $ECHO_N "(cached) $ECHO_C" >&6
7038 else
7039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   test -z "$as_dir" && as_dir=.
7044   # Account for people who put trailing slashes in PATH elements.
7045 case $as_dir/ in
7046   ./ | .// | /cC/* | \
7047   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7048   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7049   /usr/ucb/* ) ;;
7050   *)
7051     # OSF1 and SCO ODT 3.0 have their own names for install.
7052     # Don't use installbsd from OSF since it installs stuff as root
7053     # by default.
7054     for ac_prog in ginstall scoinst install; do
7055       for ac_exec_ext in '' $ac_executable_extensions; do
7056         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7057           if test $ac_prog = install &&
7058             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7059             # AIX install.  It has an incompatible calling convention.
7060             :
7061           elif test $ac_prog = install &&
7062             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7063             # program-specific install script used by HP pwplus--don't use.
7064             :
7065           else
7066             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7067             break 3
7068           fi
7069         fi
7070       done
7071     done
7072     ;;
7073 esac
7074 done
7075 IFS=$as_save_IFS
7076
7077
7078 fi
7079   if test "${ac_cv_path_install+set}" = set; then
7080     INSTALL=$ac_cv_path_install
7081   else
7082     # As a last resort, use the slow shell script.  Don't cache a
7083     # value for INSTALL within a source directory, because that will
7084     # break other packages using the cache if that directory is
7085     # removed, or if the value is a relative name.
7086     INSTALL=$ac_install_sh
7087   fi
7088 fi
7089 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7090 echo "${ECHO_T}$INSTALL" >&6; }
7091
7092 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7093 # It thinks the first close brace ends the variable substitution.
7094 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7095
7096 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7097
7098 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7099
7100 case "$INSTALL" in
7101  [\\/$]* | ?:[\\/]* ) ;;
7102  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7103 esac
7104
7105 # Extract the first word of "bzip2", so it can be a program name with args.
7106 set dummy bzip2; ac_word=$2
7107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7109 if test "${ac_cv_path_BZIP2+set}" = set; then
7110   echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112   case $BZIP2 in
7113   [\\/]* | ?:[\\/]*)
7114   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7115   ;;
7116   *)
7117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120   IFS=$as_save_IFS
7121   test -z "$as_dir" && as_dir=.
7122   for ac_exec_ext in '' $ac_executable_extensions; do
7123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7124     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126     break 2
7127   fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132   ;;
7133 esac
7134 fi
7135 BZIP2=$ac_cv_path_BZIP2
7136 if test -n "$BZIP2"; then
7137   { echo "$as_me:$LINENO: result: $BZIP2" >&5
7138 echo "${ECHO_T}$BZIP2" >&6; }
7139 else
7140   { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7142 fi
7143
7144
7145 # Extract the first word of "cat", so it can be a program name with args.
7146 set dummy cat; ac_word=$2
7147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7149 if test "${ac_cv_path_CAT+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   case $CAT in
7153   [\\/]* | ?:[\\/]*)
7154   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7155   ;;
7156   *)
7157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160   IFS=$as_save_IFS
7161   test -z "$as_dir" && as_dir=.
7162   for ac_exec_ext in '' $ac_executable_extensions; do
7163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7164     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166     break 2
7167   fi
7168 done
7169 done
7170 IFS=$as_save_IFS
7171
7172   ;;
7173 esac
7174 fi
7175 CAT=$ac_cv_path_CAT
7176 if test -n "$CAT"; then
7177   { echo "$as_me:$LINENO: result: $CAT" >&5
7178 echo "${ECHO_T}$CAT" >&6; }
7179 else
7180   { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7182 fi
7183
7184
7185 # Extract the first word of "doxygen", so it can be a program name with args.
7186 set dummy doxygen; ac_word=$2
7187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7189 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7190   echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192   case $DOXYGEN in
7193   [\\/]* | ?:[\\/]*)
7194   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7195   ;;
7196   *)
7197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202   for ac_exec_ext in '' $ac_executable_extensions; do
7203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7204     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209 done
7210 IFS=$as_save_IFS
7211
7212   ;;
7213 esac
7214 fi
7215 DOXYGEN=$ac_cv_path_DOXYGEN
7216 if test -n "$DOXYGEN"; then
7217   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7218 echo "${ECHO_T}$DOXYGEN" >&6; }
7219 else
7220   { echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6; }
7222 fi
7223
7224
7225 # Extract the first word of "groff", so it can be a program name with args.
7226 set dummy groff; ac_word=$2
7227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229 if test "${ac_cv_path_GROFF+set}" = set; then
7230   echo $ECHO_N "(cached) $ECHO_C" >&6
7231 else
7232   case $GROFF in
7233   [\\/]* | ?:[\\/]*)
7234   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7235   ;;
7236   *)
7237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242   for ac_exec_ext in '' $ac_executable_extensions; do
7243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249 done
7250 IFS=$as_save_IFS
7251
7252   ;;
7253 esac
7254 fi
7255 GROFF=$ac_cv_path_GROFF
7256 if test -n "$GROFF"; then
7257   { echo "$as_me:$LINENO: result: $GROFF" >&5
7258 echo "${ECHO_T}$GROFF" >&6; }
7259 else
7260   { echo "$as_me:$LINENO: result: no" >&5
7261 echo "${ECHO_T}no" >&6; }
7262 fi
7263
7264
7265 # Extract the first word of "gzip", so it can be a program name with args.
7266 set dummy gzip; ac_word=$2
7267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7269 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   case $GZIPBIN in
7273   [\\/]* | ?:[\\/]*)
7274   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7275   ;;
7276   *)
7277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7278 for as_dir in $PATH
7279 do
7280   IFS=$as_save_IFS
7281   test -z "$as_dir" && as_dir=.
7282   for ac_exec_ext in '' $ac_executable_extensions; do
7283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7284     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7286     break 2
7287   fi
7288 done
7289 done
7290 IFS=$as_save_IFS
7291
7292   ;;
7293 esac
7294 fi
7295 GZIPBIN=$ac_cv_path_GZIPBIN
7296 if test -n "$GZIPBIN"; then
7297   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7298 echo "${ECHO_T}$GZIPBIN" >&6; }
7299 else
7300   { echo "$as_me:$LINENO: result: no" >&5
7301 echo "${ECHO_T}no" >&6; }
7302 fi
7303
7304
7305 # Extract the first word of "pdfroff", so it can be a program name with args.
7306 set dummy pdfroff; ac_word=$2
7307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7309 if test "${ac_cv_path_PDFROFF+set}" = set; then
7310   echo $ECHO_N "(cached) $ECHO_C" >&6
7311 else
7312   case $PDFROFF in
7313   [\\/]* | ?:[\\/]*)
7314   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7315   ;;
7316   *)
7317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7318 for as_dir in $PATH
7319 do
7320   IFS=$as_save_IFS
7321   test -z "$as_dir" && as_dir=.
7322   for ac_exec_ext in '' $ac_executable_extensions; do
7323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7324     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7326     break 2
7327   fi
7328 done
7329 done
7330 IFS=$as_save_IFS
7331
7332   ;;
7333 esac
7334 fi
7335 PDFROFF=$ac_cv_path_PDFROFF
7336 if test -n "$PDFROFF"; then
7337   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7338 echo "${ECHO_T}$PDFROFF" >&6; }
7339 else
7340   { echo "$as_me:$LINENO: result: no" >&5
7341 echo "${ECHO_T}no" >&6; }
7342 fi
7343
7344
7345 # Extract the first word of "zip", so it can be a program name with args.
7346 set dummy zip; ac_word=$2
7347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7349 if test "${ac_cv_path_ZIP+set}" = set; then
7350   echo $ECHO_N "(cached) $ECHO_C" >&6
7351 else
7352   case $ZIP in
7353   [\\/]* | ?:[\\/]*)
7354   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7355   ;;
7356   *)
7357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362   for ac_exec_ext in '' $ac_executable_extensions; do
7363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7364     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7365     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369 done
7370 IFS=$as_save_IFS
7371
7372   ;;
7373 esac
7374 fi
7375 ZIP=$ac_cv_path_ZIP
7376 if test -n "$ZIP"; then
7377   { echo "$as_me:$LINENO: result: $ZIP" >&5
7378 echo "${ECHO_T}$ZIP" >&6; }
7379 else
7380   { echo "$as_me:$LINENO: result: no" >&5
7381 echo "${ECHO_T}no" >&6; }
7382 fi
7383
7384
7385 for ac_prog in ocamlc
7386 do
7387   # Extract the first word of "$ac_prog", so it can be a program name with args.
7388 set dummy $ac_prog; ac_word=$2
7389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7391 if test "${ac_cv_path_OCAMLC+set}" = set; then
7392   echo $ECHO_N "(cached) $ECHO_C" >&6
7393 else
7394   case $OCAMLC in
7395   [\\/]* | ?:[\\/]*)
7396   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7397   ;;
7398   *)
7399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 for as_dir in $PATH
7401 do
7402   IFS=$as_save_IFS
7403   test -z "$as_dir" && as_dir=.
7404   for ac_exec_ext in '' $ac_executable_extensions; do
7405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7406     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408     break 2
7409   fi
7410 done
7411 done
7412 IFS=$as_save_IFS
7413
7414   ;;
7415 esac
7416 fi
7417 OCAMLC=$ac_cv_path_OCAMLC
7418 if test -n "$OCAMLC"; then
7419   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7420 echo "${ECHO_T}$OCAMLC" >&6; }
7421 else
7422   { echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6; }
7424 fi
7425
7426
7427   test -n "$OCAMLC" && break
7428 done
7429
7430 for ac_prog in ocamlopt
7431 do
7432   # Extract the first word of "$ac_prog", so it can be a program name with args.
7433 set dummy $ac_prog; ac_word=$2
7434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7436 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7437   echo $ECHO_N "(cached) $ECHO_C" >&6
7438 else
7439   case $OCAMLOPT in
7440   [\\/]* | ?:[\\/]*)
7441   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7442   ;;
7443   *)
7444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449   for ac_exec_ext in '' $ac_executable_extensions; do
7450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7451     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459   ;;
7460 esac
7461 fi
7462 OCAMLOPT=$ac_cv_path_OCAMLOPT
7463 if test -n "$OCAMLOPT"; then
7464   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7465 echo "${ECHO_T}$OCAMLOPT" >&6; }
7466 else
7467   { echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6; }
7469 fi
7470
7471
7472   test -n "$OCAMLOPT" && break
7473 done
7474
7475 for ac_prog in ocamldep
7476 do
7477   # Extract the first word of "$ac_prog", so it can be a program name with args.
7478 set dummy $ac_prog; ac_word=$2
7479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7481 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7482   echo $ECHO_N "(cached) $ECHO_C" >&6
7483 else
7484   case $OCAMLDEP in
7485   [\\/]* | ?:[\\/]*)
7486   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7487   ;;
7488   *)
7489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7491 do
7492   IFS=$as_save_IFS
7493   test -z "$as_dir" && as_dir=.
7494   for ac_exec_ext in '' $ac_executable_extensions; do
7495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7496     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7498     break 2
7499   fi
7500 done
7501 done
7502 IFS=$as_save_IFS
7503
7504   ;;
7505 esac
7506 fi
7507 OCAMLDEP=$ac_cv_path_OCAMLDEP
7508 if test -n "$OCAMLDEP"; then
7509   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7510 echo "${ECHO_T}$OCAMLDEP" >&6; }
7511 else
7512   { echo "$as_me:$LINENO: result: no" >&5
7513 echo "${ECHO_T}no" >&6; }
7514 fi
7515
7516
7517   test -n "$OCAMLDEP" && break
7518 done
7519
7520 for ac_prog in ocamldoc
7521 do
7522   # Extract the first word of "$ac_prog", so it can be a program name with args.
7523 set dummy $ac_prog; ac_word=$2
7524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7526 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7527   echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529   case $OCAMLDOC in
7530   [\\/]* | ?:[\\/]*)
7531   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7532   ;;
7533   *)
7534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7536 do
7537   IFS=$as_save_IFS
7538   test -z "$as_dir" && as_dir=.
7539   for ac_exec_ext in '' $ac_executable_extensions; do
7540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7541     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7543     break 2
7544   fi
7545 done
7546 done
7547 IFS=$as_save_IFS
7548
7549   ;;
7550 esac
7551 fi
7552 OCAMLDOC=$ac_cv_path_OCAMLDOC
7553 if test -n "$OCAMLDOC"; then
7554   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7555 echo "${ECHO_T}$OCAMLDOC" >&6; }
7556 else
7557   { echo "$as_me:$LINENO: result: no" >&5
7558 echo "${ECHO_T}no" >&6; }
7559 fi
7560
7561
7562   test -n "$OCAMLDOC" && break
7563 done
7564
7565 for ac_prog in gas as
7566 do
7567   # Extract the first word of "$ac_prog", so it can be a program name with args.
7568 set dummy $ac_prog; ac_word=$2
7569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7571 if test "${ac_cv_path_GAS+set}" = set; then
7572   echo $ECHO_N "(cached) $ECHO_C" >&6
7573 else
7574   case $GAS in
7575   [\\/]* | ?:[\\/]*)
7576   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7577   ;;
7578   *)
7579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 for as_dir in $PATH
7581 do
7582   IFS=$as_save_IFS
7583   test -z "$as_dir" && as_dir=.
7584   for ac_exec_ext in '' $ac_executable_extensions; do
7585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7586     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7588     break 2
7589   fi
7590 done
7591 done
7592 IFS=$as_save_IFS
7593
7594   ;;
7595 esac
7596 fi
7597 GAS=$ac_cv_path_GAS
7598 if test -n "$GAS"; then
7599   { echo "$as_me:$LINENO: result: $GAS" >&5
7600 echo "${ECHO_T}$GAS" >&6; }
7601 else
7602   { echo "$as_me:$LINENO: result: no" >&5
7603 echo "${ECHO_T}no" >&6; }
7604 fi
7605
7606
7607   test -n "$GAS" && break
7608 done
7609
7610
7611 { echo "$as_me:$LINENO: checking for linker version" >&5
7612 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7613 if test "${llvm_cv_link_version+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616
7617    version_string="$(ld -v 2>&1 | head -1)"
7618
7619    # Check for ld64.
7620    if (echo "$version_string" | grep -q "ld64"); then
7621      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7622    else
7623      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7624    fi
7625
7626 fi
7627 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7628 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7629
7630 cat >>confdefs.h <<_ACEOF
7631 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7632 _ACEOF
7633
7634
7635
7636
7637 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7638 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7639 if test "${llvm_cv_link_use_r+set}" = set; then
7640   echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642    ac_ext=c
7643 ac_cpp='$CPP $CPPFLAGS'
7644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7647
7648   oldcflags="$CFLAGS"
7649   CFLAGS="$CFLAGS -Wl,-R."
7650   cat >conftest.$ac_ext <<_ACEOF
7651 /* confdefs.h.  */
7652 _ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h.  */
7656
7657 int
7658 main ()
7659 {
7660
7661   ;
7662   return 0;
7663 }
7664 _ACEOF
7665 rm -f conftest.$ac_objext conftest$ac_exeext
7666 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
7673   ac_status=$?
7674   grep -v '^ *+' conftest.er1 >conftest.err
7675   rm -f conftest.er1
7676   cat conftest.err >&5
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); } &&
7679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7680   { (case "(($ac_try" in
7681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7682   *) ac_try_echo=$ac_try;;
7683 esac
7684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7685   (eval "$ac_try") 2>&5
7686   ac_status=$?
7687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688   (exit $ac_status); }; } &&
7689          { ac_try='test -s conftest$ac_exeext'
7690   { (case "(($ac_try" in
7691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692   *) ac_try_echo=$ac_try;;
7693 esac
7694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695   (eval "$ac_try") 2>&5
7696   ac_status=$?
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); }; }; then
7699   llvm_cv_link_use_r=yes
7700 else
7701   echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7703
7704         llvm_cv_link_use_r=no
7705 fi
7706
7707 rm -f core conftest.err conftest.$ac_objext \
7708       conftest$ac_exeext conftest.$ac_ext
7709   CFLAGS="$oldcflags"
7710   ac_ext=c
7711 ac_cpp='$CPP $CPPFLAGS'
7712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7715
7716
7717 fi
7718 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7719 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7720 if test "$llvm_cv_link_use_r" = yes ; then
7721
7722 cat >>confdefs.h <<\_ACEOF
7723 #define HAVE_LINK_R 1
7724 _ACEOF
7725
7726   fi
7727
7728
7729 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7730 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7731 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7732   echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734    ac_ext=c
7735 ac_cpp='$CPP $CPPFLAGS'
7736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739
7740   oldcflags="$CFLAGS"
7741   CFLAGS="$CFLAGS -rdynamic"
7742   cat >conftest.$ac_ext <<_ACEOF
7743 /* confdefs.h.  */
7744 _ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h.  */
7748
7749 int
7750 main ()
7751 {
7752
7753   ;
7754   return 0;
7755 }
7756 _ACEOF
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
7765   ac_status=$?
7766   grep -v '^ *+' conftest.er1 >conftest.err
7767   rm -f conftest.er1
7768   cat conftest.err >&5
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); } &&
7771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7772   { (case "(($ac_try" in
7773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774   *) ac_try_echo=$ac_try;;
7775 esac
7776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7777   (eval "$ac_try") 2>&5
7778   ac_status=$?
7779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780   (exit $ac_status); }; } &&
7781          { ac_try='test -s conftest$ac_exeext'
7782   { (case "(($ac_try" in
7783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784   *) ac_try_echo=$ac_try;;
7785 esac
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787   (eval "$ac_try") 2>&5
7788   ac_status=$?
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); }; }; then
7791   llvm_cv_link_use_export_dynamic=yes
7792 else
7793   echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7795
7796         llvm_cv_link_use_export_dynamic=no
7797 fi
7798
7799 rm -f core conftest.err conftest.$ac_objext \
7800       conftest$ac_exeext conftest.$ac_ext
7801   CFLAGS="$oldcflags"
7802   ac_ext=c
7803 ac_cpp='$CPP $CPPFLAGS'
7804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7807
7808
7809 fi
7810 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7811 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7812 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7813
7814 cat >>confdefs.h <<\_ACEOF
7815 #define HAVE_LINK_EXPORT_DYNAMIC 1
7816 _ACEOF
7817
7818   fi
7819
7820
7821 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7822 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7823 if test "${llvm_cv_link_use_version_script+set}" = set; then
7824   echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826    ac_ext=c
7827 ac_cpp='$CPP $CPPFLAGS'
7828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7831
7832   oldcflags="$CFLAGS"
7833
7834   # The following code is from the autoconf manual,
7835   # "11.13: Limitations of Usual Tools".
7836   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7837   # Use mktemp if possible; otherwise fall back on mkdir,
7838   # with $RANDOM to make collisions less likely.
7839   : ${TMPDIR=/tmp}
7840   {
7841     tmp=`
7842       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7843     ` &&
7844     test -n "$tmp" && test -d "$tmp"
7845   } || {
7846     tmp=$TMPDIR/foo$$-$RANDOM
7847     (umask 077 && mkdir "$tmp")
7848   } || exit $?
7849
7850   echo "{" > "$tmp/export.map"
7851   echo "  global: main;" >> "$tmp/export.map"
7852   echo "  local: *;" >> "$tmp/export.map"
7853   echo "};" >> "$tmp/export.map"
7854
7855   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7856   cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h.  */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h.  */
7862
7863 int
7864 main ()
7865 {
7866
7867   ;
7868   return 0;
7869 }
7870 _ACEOF
7871 rm -f conftest.$ac_objext conftest$ac_exeext
7872 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
7879   ac_status=$?
7880   grep -v '^ *+' conftest.er1 >conftest.err
7881   rm -f conftest.er1
7882   cat conftest.err >&5
7883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884   (exit $ac_status); } &&
7885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7886   { (case "(($ac_try" in
7887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888   *) ac_try_echo=$ac_try;;
7889 esac
7890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7891   (eval "$ac_try") 2>&5
7892   ac_status=$?
7893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894   (exit $ac_status); }; } &&
7895          { ac_try='test -s conftest$ac_exeext'
7896   { (case "(($ac_try" in
7897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898   *) ac_try_echo=$ac_try;;
7899 esac
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901   (eval "$ac_try") 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); }; }; then
7905   llvm_cv_link_use_version_script=yes
7906 else
7907   echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910         llvm_cv_link_use_version_script=no
7911 fi
7912
7913 rm -f core conftest.err conftest.$ac_objext \
7914       conftest$ac_exeext conftest.$ac_ext
7915   rm "$tmp/export.map"
7916   rmdir "$tmp"
7917   CFLAGS="$oldcflags"
7918   ac_ext=c
7919 ac_cpp='$CPP $CPPFLAGS'
7920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7923
7924
7925 fi
7926 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7927 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7928 if test "$llvm_cv_link_use_version_script" = yes ; then
7929   HAVE_LINK_VERSION_SCRIPT=1
7930
7931   fi
7932
7933
7934
7935 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7936 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7937 if test "${ac_cv_path_GREP+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940   # Extract the first word of "grep ggrep" to use in msg output
7941 if test -z "$GREP"; then
7942 set dummy grep ggrep; ac_prog_name=$2
7943 if test "${ac_cv_path_GREP+set}" = set; then
7944   echo $ECHO_N "(cached) $ECHO_C" >&6
7945 else
7946   ac_path_GREP_found=false
7947 # Loop through the user's path and test for each of PROGNAME-LIST
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7950 do
7951   IFS=$as_save_IFS
7952   test -z "$as_dir" && as_dir=.
7953   for ac_prog in grep ggrep; do
7954   for ac_exec_ext in '' $ac_executable_extensions; do
7955     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7956     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7957     # Check for GNU ac_path_GREP and select it if it is found.
7958   # Check for GNU $ac_path_GREP
7959 case `"$ac_path_GREP" --version 2>&1` in
7960 *GNU*)
7961   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7962 *)
7963   ac_count=0
7964   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7965   while :
7966   do
7967     cat "conftest.in" "conftest.in" >"conftest.tmp"
7968     mv "conftest.tmp" "conftest.in"
7969     cp "conftest.in" "conftest.nl"
7970     echo 'GREP' >> "conftest.nl"
7971     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7972     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7973     ac_count=`expr $ac_count + 1`
7974     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7975       # Best one so far, save it but keep looking for a better one
7976       ac_cv_path_GREP="$ac_path_GREP"
7977       ac_path_GREP_max=$ac_count
7978     fi
7979     # 10*(2^10) chars as input seems more than enough
7980     test $ac_count -gt 10 && break
7981   done
7982   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7983 esac
7984
7985
7986     $ac_path_GREP_found && break 3
7987   done
7988 done
7989
7990 done
7991 IFS=$as_save_IFS
7992
7993
7994 fi
7995
7996 GREP="$ac_cv_path_GREP"
7997 if test -z "$GREP"; then
7998   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7999 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8000    { (exit 1); exit 1; }; }
8001 fi
8002
8003 else
8004   ac_cv_path_GREP=$GREP
8005 fi
8006
8007
8008 fi
8009 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8010 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8011  GREP="$ac_cv_path_GREP"
8012
8013
8014 { echo "$as_me:$LINENO: checking for egrep" >&5
8015 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8016 if test "${ac_cv_path_EGREP+set}" = set; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8020    then ac_cv_path_EGREP="$GREP -E"
8021    else
8022      # Extract the first word of "egrep" to use in msg output
8023 if test -z "$EGREP"; then
8024 set dummy egrep; ac_prog_name=$2
8025 if test "${ac_cv_path_EGREP+set}" = set; then
8026   echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028   ac_path_EGREP_found=false
8029 # Loop through the user's path and test for each of PROGNAME-LIST
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8032 do
8033   IFS=$as_save_IFS
8034   test -z "$as_dir" && as_dir=.
8035   for ac_prog in egrep; do
8036   for ac_exec_ext in '' $ac_executable_extensions; do
8037     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8038     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8039     # Check for GNU ac_path_EGREP and select it if it is found.
8040   # Check for GNU $ac_path_EGREP
8041 case `"$ac_path_EGREP" --version 2>&1` in
8042 *GNU*)
8043   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8044 *)
8045   ac_count=0
8046   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8047   while :
8048   do
8049     cat "conftest.in" "conftest.in" >"conftest.tmp"
8050     mv "conftest.tmp" "conftest.in"
8051     cp "conftest.in" "conftest.nl"
8052     echo 'EGREP' >> "conftest.nl"
8053     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8054     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8055     ac_count=`expr $ac_count + 1`
8056     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8057       # Best one so far, save it but keep looking for a better one
8058       ac_cv_path_EGREP="$ac_path_EGREP"
8059       ac_path_EGREP_max=$ac_count
8060     fi
8061     # 10*(2^10) chars as input seems more than enough
8062     test $ac_count -gt 10 && break
8063   done
8064   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8065 esac
8066
8067
8068     $ac_path_EGREP_found && break 3
8069   done
8070 done
8071
8072 done
8073 IFS=$as_save_IFS
8074
8075
8076 fi
8077
8078 EGREP="$ac_cv_path_EGREP"
8079 if test -z "$EGREP"; then
8080   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8081 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8082    { (exit 1); exit 1; }; }
8083 fi
8084
8085 else
8086   ac_cv_path_EGREP=$EGREP
8087 fi
8088
8089
8090    fi
8091 fi
8092 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8093 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8094  EGREP="$ac_cv_path_EGREP"
8095
8096
8097 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8098 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8099 if test "${ac_cv_header_stdc+set}" = set; then
8100   echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102   cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h.  */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h.  */
8108 #include <stdlib.h>
8109 #include <stdarg.h>
8110 #include <string.h>
8111 #include <float.h>
8112
8113 int
8114 main ()
8115 {
8116
8117   ;
8118   return 0;
8119 }
8120 _ACEOF
8121 rm -f conftest.$ac_objext
8122 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8129   ac_status=$?
8130   grep -v '^ *+' conftest.er1 >conftest.err
8131   rm -f conftest.er1
8132   cat conftest.err >&5
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); } &&
8135          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8136   { (case "(($ac_try" in
8137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138   *) ac_try_echo=$ac_try;;
8139 esac
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141   (eval "$ac_try") 2>&5
8142   ac_status=$?
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); }; } &&
8145          { ac_try='test -s conftest.$ac_objext'
8146   { (case "(($ac_try" in
8147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148   *) ac_try_echo=$ac_try;;
8149 esac
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151   (eval "$ac_try") 2>&5
8152   ac_status=$?
8153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154   (exit $ac_status); }; }; then
8155   ac_cv_header_stdc=yes
8156 else
8157   echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8159
8160         ac_cv_header_stdc=no
8161 fi
8162
8163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8164
8165 if test $ac_cv_header_stdc = yes; then
8166   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8167   cat >conftest.$ac_ext <<_ACEOF
8168 /* confdefs.h.  */
8169 _ACEOF
8170 cat confdefs.h >>conftest.$ac_ext
8171 cat >>conftest.$ac_ext <<_ACEOF
8172 /* end confdefs.h.  */
8173 #include <string.h>
8174
8175 _ACEOF
8176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8177   $EGREP "memchr" >/dev/null 2>&1; then
8178   :
8179 else
8180   ac_cv_header_stdc=no
8181 fi
8182 rm -f conftest*
8183
8184 fi
8185
8186 if test $ac_cv_header_stdc = yes; then
8187   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8188   cat >conftest.$ac_ext <<_ACEOF
8189 /* confdefs.h.  */
8190 _ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h.  */
8194 #include <stdlib.h>
8195
8196 _ACEOF
8197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8198   $EGREP "free" >/dev/null 2>&1; then
8199   :
8200 else
8201   ac_cv_header_stdc=no
8202 fi
8203 rm -f conftest*
8204
8205 fi
8206
8207 if test $ac_cv_header_stdc = yes; then
8208   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8209   if test "$cross_compiling" = yes; then
8210   :
8211 else
8212   cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h.  */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h.  */
8218 #include <ctype.h>
8219 #include <stdlib.h>
8220 #if ((' ' & 0x0FF) == 0x020)
8221 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8222 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8223 #else
8224 # define ISLOWER(c) \
8225                    (('a' <= (c) && (c) <= 'i') \
8226                      || ('j' <= (c) && (c) <= 'r') \
8227                      || ('s' <= (c) && (c) <= 'z'))
8228 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8229 #endif
8230
8231 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8232 int
8233 main ()
8234 {
8235   int i;
8236   for (i = 0; i < 256; i++)
8237     if (XOR (islower (i), ISLOWER (i))
8238         || toupper (i) != TOUPPER (i))
8239       return 2;
8240   return 0;
8241 }
8242 _ACEOF
8243 rm -f conftest$ac_exeext
8244 if { (ac_try="$ac_link"
8245 case "(($ac_try" in
8246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8247   *) ac_try_echo=$ac_try;;
8248 esac
8249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8250   (eval "$ac_link") 2>&5
8251   ac_status=$?
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8254   { (case "(($ac_try" in
8255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256   *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259   (eval "$ac_try") 2>&5
8260   ac_status=$?
8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262   (exit $ac_status); }; }; then
8263   :
8264 else
8265   echo "$as_me: program exited with status $ac_status" >&5
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269 ( exit $ac_status )
8270 ac_cv_header_stdc=no
8271 fi
8272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8273 fi
8274
8275
8276 fi
8277 fi
8278 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8279 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8280 if test $ac_cv_header_stdc = yes; then
8281
8282 cat >>confdefs.h <<\_ACEOF
8283 #define STDC_HEADERS 1
8284 _ACEOF
8285
8286 fi
8287
8288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8299                   inttypes.h stdint.h unistd.h
8300 do
8301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8305   echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307   cat >conftest.$ac_ext <<_ACEOF
8308 /* confdefs.h.  */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h.  */
8313 $ac_includes_default
8314
8315 #include <$ac_header>
8316 _ACEOF
8317 rm -f conftest.$ac_objext
8318 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8325   ac_status=$?
8326   grep -v '^ *+' conftest.er1 >conftest.err
8327   rm -f conftest.er1
8328   cat conftest.err >&5
8329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330   (exit $ac_status); } &&
8331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8332   { (case "(($ac_try" in
8333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334   *) ac_try_echo=$ac_try;;
8335 esac
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337   (eval "$ac_try") 2>&5
8338   ac_status=$?
8339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340   (exit $ac_status); }; } &&
8341          { ac_try='test -s conftest.$ac_objext'
8342   { (case "(($ac_try" in
8343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8344   *) ac_try_echo=$ac_try;;
8345 esac
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347   (eval "$ac_try") 2>&5
8348   ac_status=$?
8349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350   (exit $ac_status); }; }; then
8351   eval "$as_ac_Header=yes"
8352 else
8353   echo "$as_me: failed program was:" >&5
8354 sed 's/^/| /' conftest.$ac_ext >&5
8355
8356         eval "$as_ac_Header=no"
8357 fi
8358
8359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8365   cat >>confdefs.h <<_ACEOF
8366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8367 _ACEOF
8368
8369 fi
8370
8371 done
8372
8373
8374
8375 for ac_header in errno.h
8376 do
8377 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8379   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8382   echo $ECHO_N "(cached) $ECHO_C" >&6
8383 fi
8384 ac_res=`eval echo '${'$as_ac_Header'}'`
8385                { echo "$as_me:$LINENO: result: $ac_res" >&5
8386 echo "${ECHO_T}$ac_res" >&6; }
8387 else
8388   # Is the header compilable?
8389 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8390 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8391 cat >conftest.$ac_ext <<_ACEOF
8392 /* confdefs.h.  */
8393 _ACEOF
8394 cat confdefs.h >>conftest.$ac_ext
8395 cat >>conftest.$ac_ext <<_ACEOF
8396 /* end confdefs.h.  */
8397 $ac_includes_default
8398 #include <$ac_header>
8399 _ACEOF
8400 rm -f conftest.$ac_objext
8401 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8408   ac_status=$?
8409   grep -v '^ *+' conftest.er1 >conftest.err
8410   rm -f conftest.er1
8411   cat conftest.err >&5
8412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413   (exit $ac_status); } &&
8414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8415   { (case "(($ac_try" in
8416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417   *) ac_try_echo=$ac_try;;
8418 esac
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420   (eval "$ac_try") 2>&5
8421   ac_status=$?
8422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423   (exit $ac_status); }; } &&
8424          { ac_try='test -s conftest.$ac_objext'
8425   { (case "(($ac_try" in
8426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427   *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430   (eval "$ac_try") 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; }; then
8434   ac_header_compiler=yes
8435 else
8436   echo "$as_me: failed program was:" >&5
8437 sed 's/^/| /' conftest.$ac_ext >&5
8438
8439         ac_header_compiler=no
8440 fi
8441
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8444 echo "${ECHO_T}$ac_header_compiler" >&6; }
8445
8446 # Is the header present?
8447 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8449 cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h.  */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h.  */
8455 #include <$ac_header>
8456 _ACEOF
8457 if { (ac_try="$ac_cpp conftest.$ac_ext"
8458 case "(($ac_try" in
8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460   *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8464   ac_status=$?
8465   grep -v '^ *+' conftest.er1 >conftest.err
8466   rm -f conftest.er1
8467   cat conftest.err >&5
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); } >/dev/null; then
8470   if test -s conftest.err; then
8471     ac_cpp_err=$ac_c_preproc_warn_flag
8472     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8473   else
8474     ac_cpp_err=
8475   fi
8476 else
8477   ac_cpp_err=yes
8478 fi
8479 if test -z "$ac_cpp_err"; then
8480   ac_header_preproc=yes
8481 else
8482   echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8484
8485   ac_header_preproc=no
8486 fi
8487
8488 rm -f conftest.err conftest.$ac_ext
8489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8490 echo "${ECHO_T}$ac_header_preproc" >&6; }
8491
8492 # So?  What about this header?
8493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8494   yes:no: )
8495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8499     ac_header_preproc=yes
8500     ;;
8501   no:yes:* )
8502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8514     ( cat <<\_ASBOX
8515 ## ------------------------------------ ##
8516 ## Report this to http://llvm.org/bugs/ ##
8517 ## ------------------------------------ ##
8518 _ASBOX
8519      ) | sed "s/^/$as_me: WARNING:     /" >&2
8520     ;;
8521 esac
8522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8525   echo $ECHO_N "(cached) $ECHO_C" >&6
8526 else
8527   eval "$as_ac_Header=\$ac_header_preproc"
8528 fi
8529 ac_res=`eval echo '${'$as_ac_Header'}'`
8530                { echo "$as_me:$LINENO: result: $ac_res" >&5
8531 echo "${ECHO_T}$ac_res" >&6; }
8532
8533 fi
8534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8535   cat >>confdefs.h <<_ACEOF
8536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8537 _ACEOF
8538
8539 fi
8540
8541 done
8542
8543
8544 case "$llvm_cv_os_type" in
8545   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8546   Darwin) llvm_shlib_ext=.dylib ;;
8547   *) llvm_shlib_ext=.so ;;
8548 esac
8549
8550
8551 cat >>confdefs.h <<_ACEOF
8552 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8553 _ACEOF
8554
8555
8556 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8557 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8558
8559 ICC=no
8560 IXX=no
8561 case $CC in
8562   icc*|icpc*)
8563     ICC=yes
8564     IXX=yes
8565     ;;
8566    *)
8567     ;;
8568 esac
8569
8570 if test "$GCC" != "yes" && test "$ICC" != "yes"
8571 then
8572   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8573 echo "$as_me: error: gcc|icc required but not found" >&2;}
8574    { (exit 1); exit 1; }; }
8575 fi
8576
8577 if test "$GXX" != "yes" && test "$IXX" != "yes"
8578 then
8579   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8580 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8581    { (exit 1); exit 1; }; }
8582 fi
8583
8584 if test "$GCC" = "yes"
8585 then
8586   cat >conftest.$ac_ext <<_ACEOF
8587
8588   /* confdefs.h.  */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h.  */
8593
8594     #if !defined(__GNUC__) || __GNUC__ < 3
8595     #error Unsupported GCC version
8596     #endif
8597
8598
8599 _ACEOF
8600 rm -f conftest.$ac_objext
8601 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
8608   ac_status=$?
8609   grep -v '^ *+' conftest.er1 >conftest.err
8610   rm -f conftest.er1
8611   cat conftest.err >&5
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); } &&
8614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8615   { (case "(($ac_try" in
8616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617   *) ac_try_echo=$ac_try;;
8618 esac
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620   (eval "$ac_try") 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; } &&
8624          { ac_try='test -s conftest.$ac_objext'
8625   { (case "(($ac_try" in
8626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627   *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630   (eval "$ac_try") 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; }; then
8634   :
8635 else
8636   echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8640 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8641    { (exit 1); exit 1; }; }
8642 fi
8643
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 fi
8646
8647 if test -z "$llvm_cv_gnu_make_command"
8648 then
8649   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8650 echo "$as_me: error: GNU Make required but not found" >&2;}
8651    { (exit 1); exit 1; }; }
8652 fi
8653
8654 { echo "$as_me:$LINENO: result: ok" >&5
8655 echo "${ECHO_T}ok" >&6; }
8656
8657 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8658 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8659 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8660
8661 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8662
8663 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8664
8665
8666 NO_UNINITIALIZED=
8667 NO_MAYBE_UNINITIALIZED=
8668 if test "$GXX" = "yes"
8669 then
8670   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8671
8672         if test -z "$NO_MAYBE_UNINITIALIZED"
8673   then
8674     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8675
8676   fi
8677 fi
8678 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&5
8679 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED" >&6; }
8680
8681
8682 # Check whether --with-python was given.
8683 if test "${with_python+set}" = set; then
8684   withval=$with_python; PYTHON="$withval"
8685 fi
8686
8687
8688 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8689   { echo "$as_me:$LINENO: checking for python" >&5
8690 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8691   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8692 echo "${ECHO_T}user defined: $with_python" >&6; }
8693 else
8694   if test -n "$PYTHON" ; then
8695     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8696 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8697   fi
8698
8699   # Extract the first word of "python python2 python26", so it can be a program name with args.
8700 set dummy python python2 python26; ac_word=$2
8701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8703 if test "${ac_cv_path_PYTHON+set}" = set; then
8704   echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706   case $PYTHON in
8707   [\\/]* | ?:[\\/]*)
8708   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8709   ;;
8710   *)
8711   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712 for as_dir in $PATH
8713 do
8714   IFS=$as_save_IFS
8715   test -z "$as_dir" && as_dir=.
8716   for ac_exec_ext in '' $ac_executable_extensions; do
8717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8718     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8720     break 2
8721   fi
8722 done
8723 done
8724 IFS=$as_save_IFS
8725
8726   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8727 echo "${ECHO_T}not found" >&6; }
8728                 { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
8729 echo "$as_me: error: could not find python 2.5 or higher" >&2;}
8730    { (exit 1); exit 1; }; }"
8731   ;;
8732 esac
8733 fi
8734 PYTHON=$ac_cv_path_PYTHON
8735 if test -n "$PYTHON"; then
8736   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8737 echo "${ECHO_T}$PYTHON" >&6; }
8738 else
8739   { echo "$as_me:$LINENO: result: no" >&5
8740 echo "${ECHO_T}no" >&6; }
8741 fi
8742
8743
8744 fi
8745
8746 { echo "$as_me:$LINENO: checking for python >= 2.5" >&5
8747 echo $ECHO_N "checking for python >= 2.5... $ECHO_C" >&6; }
8748 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8749 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8750 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8751 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8752 if test "$ac_python_version_major" -gt "2" || \
8753    (test "$ac_python_version_major" -eq "2" && \
8754     test "$ac_python_version_minor" -ge "5") ; then
8755   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8756 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8757 else
8758   { echo "$as_me:$LINENO: result: not found" >&5
8759 echo "${ECHO_T}not found" >&6; }
8760   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.5
8761 See \`config.log' for more details." >&5
8762 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.5
8763 See \`config.log' for more details." >&2;}
8764    { (exit 1); exit 1; }; }
8765 fi
8766
8767
8768
8769 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8770 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8771 if test "${ac_cv_lib_m_sin+set}" = set; then
8772   echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774   ac_check_lib_save_LIBS=$LIBS
8775 LIBS="-lm  $LIBS"
8776 cat >conftest.$ac_ext <<_ACEOF
8777 /* confdefs.h.  */
8778 _ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h.  */
8782
8783 /* Override any GCC internal prototype to avoid an error.
8784    Use char because int might match the return type of a GCC
8785    builtin and then its argument prototype would still apply.  */
8786 #ifdef __cplusplus
8787 extern "C"
8788 #endif
8789 char sin ();
8790 int
8791 main ()
8792 {
8793 return sin ();
8794   ;
8795   return 0;
8796 }
8797 _ACEOF
8798 rm -f conftest.$ac_objext conftest$ac_exeext
8799 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8806   ac_status=$?
8807   grep -v '^ *+' conftest.er1 >conftest.err
8808   rm -f conftest.er1
8809   cat conftest.err >&5
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); } &&
8812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8813   { (case "(($ac_try" in
8814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815   *) ac_try_echo=$ac_try;;
8816 esac
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818   (eval "$ac_try") 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); }; } &&
8822          { ac_try='test -s conftest$ac_exeext'
8823   { (case "(($ac_try" in
8824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8825   *) ac_try_echo=$ac_try;;
8826 esac
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828   (eval "$ac_try") 2>&5
8829   ac_status=$?
8830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831   (exit $ac_status); }; }; then
8832   ac_cv_lib_m_sin=yes
8833 else
8834   echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8836
8837         ac_cv_lib_m_sin=no
8838 fi
8839
8840 rm -f core conftest.err conftest.$ac_objext \
8841       conftest$ac_exeext conftest.$ac_ext
8842 LIBS=$ac_check_lib_save_LIBS
8843 fi
8844 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8845 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8846 if test $ac_cv_lib_m_sin = yes; then
8847   cat >>confdefs.h <<_ACEOF
8848 #define HAVE_LIBM 1
8849 _ACEOF
8850
8851   LIBS="-lm $LIBS"
8852
8853 fi
8854
8855 if test "$llvm_cv_os_type" = "MingW" ; then
8856
8857 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8858 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8859 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8860   echo $ECHO_N "(cached) $ECHO_C" >&6
8861 else
8862   ac_check_lib_save_LIBS=$LIBS
8863 LIBS="-limagehlp  $LIBS"
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h.  */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h.  */
8870
8871
8872 int
8873 main ()
8874 {
8875 return main ();
8876   ;
8877   return 0;
8878 }
8879 _ACEOF
8880 rm -f conftest.$ac_objext conftest$ac_exeext
8881 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8888   ac_status=$?
8889   grep -v '^ *+' conftest.er1 >conftest.err
8890   rm -f conftest.er1
8891   cat conftest.err >&5
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); } &&
8894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8895   { (case "(($ac_try" in
8896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897   *) ac_try_echo=$ac_try;;
8898 esac
8899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900   (eval "$ac_try") 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); }; } &&
8904          { ac_try='test -s conftest$ac_exeext'
8905   { (case "(($ac_try" in
8906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8907   *) ac_try_echo=$ac_try;;
8908 esac
8909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8910   (eval "$ac_try") 2>&5
8911   ac_status=$?
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); }; }; then
8914   ac_cv_lib_imagehlp_main=yes
8915 else
8916   echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8918
8919         ac_cv_lib_imagehlp_main=no
8920 fi
8921
8922 rm -f core conftest.err conftest.$ac_objext \
8923       conftest$ac_exeext conftest.$ac_ext
8924 LIBS=$ac_check_lib_save_LIBS
8925 fi
8926 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8927 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8928 if test $ac_cv_lib_imagehlp_main = yes; then
8929   cat >>confdefs.h <<_ACEOF
8930 #define HAVE_LIBIMAGEHLP 1
8931 _ACEOF
8932
8933   LIBS="-limagehlp $LIBS"
8934
8935 fi
8936
8937
8938 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8939 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8940 if test "${ac_cv_lib_psapi_main+set}" = set; then
8941   echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943   ac_check_lib_save_LIBS=$LIBS
8944 LIBS="-lpsapi  $LIBS"
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h.  */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h.  */
8951
8952
8953 int
8954 main ()
8955 {
8956 return main ();
8957   ;
8958   return 0;
8959 }
8960 _ACEOF
8961 rm -f conftest.$ac_objext conftest$ac_exeext
8962 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8969   ac_status=$?
8970   grep -v '^ *+' conftest.er1 >conftest.err
8971   rm -f conftest.er1
8972   cat conftest.err >&5
8973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974   (exit $ac_status); } &&
8975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8976   { (case "(($ac_try" in
8977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8978   *) ac_try_echo=$ac_try;;
8979 esac
8980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8981   (eval "$ac_try") 2>&5
8982   ac_status=$?
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); }; } &&
8985          { ac_try='test -s conftest$ac_exeext'
8986   { (case "(($ac_try" in
8987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988   *) ac_try_echo=$ac_try;;
8989 esac
8990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8991   (eval "$ac_try") 2>&5
8992   ac_status=$?
8993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994   (exit $ac_status); }; }; then
8995   ac_cv_lib_psapi_main=yes
8996 else
8997   echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000         ac_cv_lib_psapi_main=no
9001 fi
9002
9003 rm -f core conftest.err conftest.$ac_objext \
9004       conftest$ac_exeext conftest.$ac_ext
9005 LIBS=$ac_check_lib_save_LIBS
9006 fi
9007 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
9008 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
9009 if test $ac_cv_lib_psapi_main = yes; then
9010   cat >>confdefs.h <<_ACEOF
9011 #define HAVE_LIBPSAPI 1
9012 _ACEOF
9013
9014   LIBS="-lpsapi $LIBS"
9015
9016 fi
9017
9018
9019 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
9020 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
9021 if test "${ac_cv_lib_shell32_main+set}" = set; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024   ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lshell32  $LIBS"
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032
9033
9034 int
9035 main ()
9036 {
9037 return main ();
9038   ;
9039   return 0;
9040 }
9041 _ACEOF
9042 rm -f conftest.$ac_objext conftest$ac_exeext
9043 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9050   ac_status=$?
9051   grep -v '^ *+' conftest.er1 >conftest.err
9052   rm -f conftest.er1
9053   cat conftest.err >&5
9054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055   (exit $ac_status); } &&
9056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9057   { (case "(($ac_try" in
9058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9059   *) ac_try_echo=$ac_try;;
9060 esac
9061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9062   (eval "$ac_try") 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; } &&
9066          { ac_try='test -s conftest$ac_exeext'
9067   { (case "(($ac_try" in
9068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9069   *) ac_try_echo=$ac_try;;
9070 esac
9071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9072   (eval "$ac_try") 2>&5
9073   ac_status=$?
9074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075   (exit $ac_status); }; }; then
9076   ac_cv_lib_shell32_main=yes
9077 else
9078   echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9080
9081         ac_cv_lib_shell32_main=no
9082 fi
9083
9084 rm -f core conftest.err conftest.$ac_objext \
9085       conftest$ac_exeext conftest.$ac_ext
9086 LIBS=$ac_check_lib_save_LIBS
9087 fi
9088 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
9089 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
9090 if test $ac_cv_lib_shell32_main = yes; then
9091   cat >>confdefs.h <<_ACEOF
9092 #define HAVE_LIBSHELL32 1
9093 _ACEOF
9094
9095   LIBS="-lshell32 $LIBS"
9096
9097 fi
9098
9099 fi
9100
9101 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9102 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9103 if test "${ac_cv_search_dlopen+set}" = set; then
9104   echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106   ac_func_search_save_LIBS=$LIBS
9107 cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h.  */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h.  */
9113
9114 /* Override any GCC internal prototype to avoid an error.
9115    Use char because int might match the return type of a GCC
9116    builtin and then its argument prototype would still apply.  */
9117 #ifdef __cplusplus
9118 extern "C"
9119 #endif
9120 char dlopen ();
9121 int
9122 main ()
9123 {
9124 return dlopen ();
9125   ;
9126   return 0;
9127 }
9128 _ACEOF
9129 for ac_lib in '' dl; do
9130   if test -z "$ac_lib"; then
9131     ac_res="none required"
9132   else
9133     ac_res=-l$ac_lib
9134     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9135   fi
9136   rm -f conftest.$ac_objext conftest$ac_exeext
9137 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9144   ac_status=$?
9145   grep -v '^ *+' conftest.er1 >conftest.err
9146   rm -f conftest.er1
9147   cat conftest.err >&5
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); } &&
9150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9151   { (case "(($ac_try" in
9152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153   *) ac_try_echo=$ac_try;;
9154 esac
9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156   (eval "$ac_try") 2>&5
9157   ac_status=$?
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); }; } &&
9160          { ac_try='test -s conftest$ac_exeext'
9161   { (case "(($ac_try" in
9162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163   *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166   (eval "$ac_try") 2>&5
9167   ac_status=$?
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); }; }; then
9170   ac_cv_search_dlopen=$ac_res
9171 else
9172   echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9174
9175
9176 fi
9177
9178 rm -f core conftest.err conftest.$ac_objext \
9179       conftest$ac_exeext
9180   if test "${ac_cv_search_dlopen+set}" = set; then
9181   break
9182 fi
9183 done
9184 if test "${ac_cv_search_dlopen+set}" = set; then
9185   :
9186 else
9187   ac_cv_search_dlopen=no
9188 fi
9189 rm conftest.$ac_ext
9190 LIBS=$ac_func_search_save_LIBS
9191 fi
9192 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9193 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9194 ac_res=$ac_cv_search_dlopen
9195 if test "$ac_res" != no; then
9196   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9197
9198
9199 cat >>confdefs.h <<\_ACEOF
9200 #define HAVE_DLOPEN 1
9201 _ACEOF
9202
9203 HAVE_DLOPEN='1'
9204
9205
9206 else
9207   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9208 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9209 fi
9210
9211
9212 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9213 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9214 if test "${ac_cv_search_clock_gettime+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217   ac_func_search_save_LIBS=$LIBS
9218 cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h.  */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h.  */
9224
9225 /* Override any GCC internal prototype to avoid an error.
9226    Use char because int might match the return type of a GCC
9227    builtin and then its argument prototype would still apply.  */
9228 #ifdef __cplusplus
9229 extern "C"
9230 #endif
9231 char clock_gettime ();
9232 int
9233 main ()
9234 {
9235 return clock_gettime ();
9236   ;
9237   return 0;
9238 }
9239 _ACEOF
9240 for ac_lib in '' rt; do
9241   if test -z "$ac_lib"; then
9242     ac_res="none required"
9243   else
9244     ac_res=-l$ac_lib
9245     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9246   fi
9247   rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9255   ac_status=$?
9256   grep -v '^ *+' conftest.er1 >conftest.err
9257   rm -f conftest.er1
9258   cat conftest.err >&5
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); } &&
9261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9262   { (case "(($ac_try" in
9263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264   *) ac_try_echo=$ac_try;;
9265 esac
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267   (eval "$ac_try") 2>&5
9268   ac_status=$?
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); }; } &&
9271          { ac_try='test -s conftest$ac_exeext'
9272   { (case "(($ac_try" in
9273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274   *) ac_try_echo=$ac_try;;
9275 esac
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277   (eval "$ac_try") 2>&5
9278   ac_status=$?
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); }; }; then
9281   ac_cv_search_clock_gettime=$ac_res
9282 else
9283   echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9285
9286
9287 fi
9288
9289 rm -f core conftest.err conftest.$ac_objext \
9290       conftest$ac_exeext
9291   if test "${ac_cv_search_clock_gettime+set}" = set; then
9292   break
9293 fi
9294 done
9295 if test "${ac_cv_search_clock_gettime+set}" = set; then
9296   :
9297 else
9298   ac_cv_search_clock_gettime=no
9299 fi
9300 rm conftest.$ac_ext
9301 LIBS=$ac_func_search_save_LIBS
9302 fi
9303 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9304 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9305 ac_res=$ac_cv_search_clock_gettime
9306 if test "$ac_res" != no; then
9307   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9308
9309 fi
9310
9311
9312 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9313     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9314 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9315 if test "${ac_cv_search_setupterm+set}" = set; then
9316   echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318   ac_func_search_save_LIBS=$LIBS
9319 cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h.  */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h.  */
9325
9326 /* Override any GCC internal prototype to avoid an error.
9327    Use char because int might match the return type of a GCC
9328    builtin and then its argument prototype would still apply.  */
9329 #ifdef __cplusplus
9330 extern "C"
9331 #endif
9332 char setupterm ();
9333 int
9334 main ()
9335 {
9336 return setupterm ();
9337   ;
9338   return 0;
9339 }
9340 _ACEOF
9341 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9342   if test -z "$ac_lib"; then
9343     ac_res="none required"
9344   else
9345     ac_res=-l$ac_lib
9346     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9347   fi
9348   rm -f conftest.$ac_objext conftest$ac_exeext
9349 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9356   ac_status=$?
9357   grep -v '^ *+' conftest.er1 >conftest.err
9358   rm -f conftest.er1
9359   cat conftest.err >&5
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); } &&
9362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9363   { (case "(($ac_try" in
9364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365   *) ac_try_echo=$ac_try;;
9366 esac
9367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368   (eval "$ac_try") 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); }; } &&
9372          { ac_try='test -s conftest$ac_exeext'
9373   { (case "(($ac_try" in
9374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9375   *) ac_try_echo=$ac_try;;
9376 esac
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378   (eval "$ac_try") 2>&5
9379   ac_status=$?
9380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381   (exit $ac_status); }; }; then
9382   ac_cv_search_setupterm=$ac_res
9383 else
9384   echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9386
9387
9388 fi
9389
9390 rm -f core conftest.err conftest.$ac_objext \
9391       conftest$ac_exeext
9392   if test "${ac_cv_search_setupterm+set}" = set; then
9393   break
9394 fi
9395 done
9396 if test "${ac_cv_search_setupterm+set}" = set; then
9397   :
9398 else
9399   ac_cv_search_setupterm=no
9400 fi
9401 rm conftest.$ac_ext
9402 LIBS=$ac_func_search_save_LIBS
9403 fi
9404 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9405 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9406 ac_res=$ac_cv_search_setupterm
9407 if test "$ac_res" != no; then
9408   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9409
9410
9411 cat >>confdefs.h <<\_ACEOF
9412 #define HAVE_TERMINFO 1
9413 _ACEOF
9414
9415 HAVE_TERMINFO='1'
9416
9417
9418 fi
9419
9420 fi
9421
9422 if test "$llvm_cv_enable_libedit" = "yes" ; then
9423   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9424 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9425 if test "${ac_cv_search_el_init+set}" = set; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   ac_func_search_save_LIBS=$LIBS
9429 cat >conftest.$ac_ext <<_ACEOF
9430 /* confdefs.h.  */
9431 _ACEOF
9432 cat confdefs.h >>conftest.$ac_ext
9433 cat >>conftest.$ac_ext <<_ACEOF
9434 /* end confdefs.h.  */
9435
9436 /* Override any GCC internal prototype to avoid an error.
9437    Use char because int might match the return type of a GCC
9438    builtin and then its argument prototype would still apply.  */
9439 #ifdef __cplusplus
9440 extern "C"
9441 #endif
9442 char el_init ();
9443 int
9444 main ()
9445 {
9446 return el_init ();
9447   ;
9448   return 0;
9449 }
9450 _ACEOF
9451 for ac_lib in '' edit; do
9452   if test -z "$ac_lib"; then
9453     ac_res="none required"
9454   else
9455     ac_res=-l$ac_lib
9456     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9457   fi
9458   rm -f conftest.$ac_objext conftest$ac_exeext
9459 if { (ac_try="$ac_link"
9460 case "(($ac_try" in
9461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9462   *) ac_try_echo=$ac_try;;
9463 esac
9464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9465   (eval "$ac_link") 2>conftest.er1
9466   ac_status=$?
9467   grep -v '^ *+' conftest.er1 >conftest.err
9468   rm -f conftest.er1
9469   cat conftest.err >&5
9470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); } &&
9472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9473   { (case "(($ac_try" in
9474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475   *) ac_try_echo=$ac_try;;
9476 esac
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478   (eval "$ac_try") 2>&5
9479   ac_status=$?
9480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481   (exit $ac_status); }; } &&
9482          { ac_try='test -s conftest$ac_exeext'
9483   { (case "(($ac_try" in
9484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485   *) ac_try_echo=$ac_try;;
9486 esac
9487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9488   (eval "$ac_try") 2>&5
9489   ac_status=$?
9490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491   (exit $ac_status); }; }; then
9492   ac_cv_search_el_init=$ac_res
9493 else
9494   echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.$ac_ext >&5
9496
9497
9498 fi
9499
9500 rm -f core conftest.err conftest.$ac_objext \
9501       conftest$ac_exeext
9502   if test "${ac_cv_search_el_init+set}" = set; then
9503   break
9504 fi
9505 done
9506 if test "${ac_cv_search_el_init+set}" = set; then
9507   :
9508 else
9509   ac_cv_search_el_init=no
9510 fi
9511 rm conftest.$ac_ext
9512 LIBS=$ac_func_search_save_LIBS
9513 fi
9514 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9515 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9516 ac_res=$ac_cv_search_el_init
9517 if test "$ac_res" != no; then
9518   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9519
9520 cat >>confdefs.h <<\_ACEOF
9521 #define HAVE_LIBEDIT 1
9522 _ACEOF
9523
9524 fi
9525
9526 fi
9527
9528 if test "$llvm_cv_enable_libffi" = "yes" ; then
9529   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9530 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9531 if test "${ac_cv_search_ffi_call+set}" = set; then
9532   echo $ECHO_N "(cached) $ECHO_C" >&6
9533 else
9534   ac_func_search_save_LIBS=$LIBS
9535 cat >conftest.$ac_ext <<_ACEOF
9536 /* confdefs.h.  */
9537 _ACEOF
9538 cat confdefs.h >>conftest.$ac_ext
9539 cat >>conftest.$ac_ext <<_ACEOF
9540 /* end confdefs.h.  */
9541
9542 /* Override any GCC internal prototype to avoid an error.
9543    Use char because int might match the return type of a GCC
9544    builtin and then its argument prototype would still apply.  */
9545 #ifdef __cplusplus
9546 extern "C"
9547 #endif
9548 char ffi_call ();
9549 int
9550 main ()
9551 {
9552 return ffi_call ();
9553   ;
9554   return 0;
9555 }
9556 _ACEOF
9557 for ac_lib in '' ffi; do
9558   if test -z "$ac_lib"; then
9559     ac_res="none required"
9560   else
9561     ac_res=-l$ac_lib
9562     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9563   fi
9564   rm -f conftest.$ac_objext conftest$ac_exeext
9565 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9572   ac_status=$?
9573   grep -v '^ *+' conftest.er1 >conftest.err
9574   rm -f conftest.er1
9575   cat conftest.err >&5
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); } &&
9578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9579   { (case "(($ac_try" in
9580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581   *) ac_try_echo=$ac_try;;
9582 esac
9583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584   (eval "$ac_try") 2>&5
9585   ac_status=$?
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); }; } &&
9588          { ac_try='test -s conftest$ac_exeext'
9589   { (case "(($ac_try" in
9590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591   *) ac_try_echo=$ac_try;;
9592 esac
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594   (eval "$ac_try") 2>&5
9595   ac_status=$?
9596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597   (exit $ac_status); }; }; then
9598   ac_cv_search_ffi_call=$ac_res
9599 else
9600   echo "$as_me: failed program was:" >&5
9601 sed 's/^/| /' conftest.$ac_ext >&5
9602
9603
9604 fi
9605
9606 rm -f core conftest.err conftest.$ac_objext \
9607       conftest$ac_exeext
9608   if test "${ac_cv_search_ffi_call+set}" = set; then
9609   break
9610 fi
9611 done
9612 if test "${ac_cv_search_ffi_call+set}" = set; then
9613   :
9614 else
9615   ac_cv_search_ffi_call=no
9616 fi
9617 rm conftest.$ac_ext
9618 LIBS=$ac_func_search_save_LIBS
9619 fi
9620 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9621 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9622 ac_res=$ac_cv_search_ffi_call
9623 if test "$ac_res" != no; then
9624   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9625
9626 cat >>confdefs.h <<\_ACEOF
9627 #define HAVE_FFI_CALL 1
9628 _ACEOF
9629
9630 else
9631   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9632 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9633    { (exit 1); exit 1; }; }
9634 fi
9635
9636 fi
9637
9638 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9639 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9640 if test "${ac_cv_search_mallinfo+set}" = set; then
9641   echo $ECHO_N "(cached) $ECHO_C" >&6
9642 else
9643   ac_func_search_save_LIBS=$LIBS
9644 cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h.  */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h.  */
9650
9651 /* Override any GCC internal prototype to avoid an error.
9652    Use char because int might match the return type of a GCC
9653    builtin and then its argument prototype would still apply.  */
9654 #ifdef __cplusplus
9655 extern "C"
9656 #endif
9657 char mallinfo ();
9658 int
9659 main ()
9660 {
9661 return mallinfo ();
9662   ;
9663   return 0;
9664 }
9665 _ACEOF
9666 for ac_lib in '' malloc; do
9667   if test -z "$ac_lib"; then
9668     ac_res="none required"
9669   else
9670     ac_res=-l$ac_lib
9671     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9672   fi
9673   rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9681   ac_status=$?
9682   grep -v '^ *+' conftest.er1 >conftest.err
9683   rm -f conftest.er1
9684   cat conftest.err >&5
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); } &&
9687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9688   { (case "(($ac_try" in
9689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690   *) ac_try_echo=$ac_try;;
9691 esac
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693   (eval "$ac_try") 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); }; } &&
9697          { ac_try='test -s conftest$ac_exeext'
9698   { (case "(($ac_try" in
9699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700   *) ac_try_echo=$ac_try;;
9701 esac
9702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9703   (eval "$ac_try") 2>&5
9704   ac_status=$?
9705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706   (exit $ac_status); }; }; then
9707   ac_cv_search_mallinfo=$ac_res
9708 else
9709   echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9711
9712
9713 fi
9714
9715 rm -f core conftest.err conftest.$ac_objext \
9716       conftest$ac_exeext
9717   if test "${ac_cv_search_mallinfo+set}" = set; then
9718   break
9719 fi
9720 done
9721 if test "${ac_cv_search_mallinfo+set}" = set; then
9722   :
9723 else
9724   ac_cv_search_mallinfo=no
9725 fi
9726 rm conftest.$ac_ext
9727 LIBS=$ac_func_search_save_LIBS
9728 fi
9729 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9730 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9731 ac_res=$ac_cv_search_mallinfo
9732 if test "$ac_res" != no; then
9733   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9734
9735 cat >>confdefs.h <<\_ACEOF
9736 #define HAVE_MALLINFO 1
9737 _ACEOF
9738
9739 fi
9740
9741
9742 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9743
9744 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9745 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9746 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9747   echo $ECHO_N "(cached) $ECHO_C" >&6
9748 else
9749   ac_check_lib_save_LIBS=$LIBS
9750 LIBS="-lpthread  $LIBS"
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757
9758 /* Override any GCC internal prototype to avoid an error.
9759    Use char because int might match the return type of a GCC
9760    builtin and then its argument prototype would still apply.  */
9761 #ifdef __cplusplus
9762 extern "C"
9763 #endif
9764 char pthread_mutex_init ();
9765 int
9766 main ()
9767 {
9768 return pthread_mutex_init ();
9769   ;
9770   return 0;
9771 }
9772 _ACEOF
9773 rm -f conftest.$ac_objext conftest$ac_exeext
9774 if { (ac_try="$ac_link"
9775 case "(($ac_try" in
9776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9777   *) ac_try_echo=$ac_try;;
9778 esac
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780   (eval "$ac_link") 2>conftest.er1
9781   ac_status=$?
9782   grep -v '^ *+' conftest.er1 >conftest.err
9783   rm -f conftest.er1
9784   cat conftest.err >&5
9785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786   (exit $ac_status); } &&
9787          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9788   { (case "(($ac_try" in
9789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790   *) ac_try_echo=$ac_try;;
9791 esac
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793   (eval "$ac_try") 2>&5
9794   ac_status=$?
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); }; } &&
9797          { ac_try='test -s conftest$ac_exeext'
9798   { (case "(($ac_try" in
9799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800   *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803   (eval "$ac_try") 2>&5
9804   ac_status=$?
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); }; }; then
9807   ac_cv_lib_pthread_pthread_mutex_init=yes
9808 else
9809   echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9811
9812         ac_cv_lib_pthread_pthread_mutex_init=no
9813 fi
9814
9815 rm -f core conftest.err conftest.$ac_objext \
9816       conftest$ac_exeext conftest.$ac_ext
9817 LIBS=$ac_check_lib_save_LIBS
9818 fi
9819 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9820 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9821 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9822   cat >>confdefs.h <<_ACEOF
9823 #define HAVE_LIBPTHREAD 1
9824 _ACEOF
9825
9826   LIBS="-lpthread $LIBS"
9827
9828 fi
9829
9830   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9831 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9832 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9833   echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835   ac_func_search_save_LIBS=$LIBS
9836 cat >conftest.$ac_ext <<_ACEOF
9837 /* confdefs.h.  */
9838 _ACEOF
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h.  */
9842
9843 /* Override any GCC internal prototype to avoid an error.
9844    Use char because int might match the return type of a GCC
9845    builtin and then its argument prototype would still apply.  */
9846 #ifdef __cplusplus
9847 extern "C"
9848 #endif
9849 char pthread_mutex_lock ();
9850 int
9851 main ()
9852 {
9853 return pthread_mutex_lock ();
9854   ;
9855   return 0;
9856 }
9857 _ACEOF
9858 for ac_lib in '' pthread; do
9859   if test -z "$ac_lib"; then
9860     ac_res="none required"
9861   else
9862     ac_res=-l$ac_lib
9863     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9864   fi
9865   rm -f conftest.$ac_objext conftest$ac_exeext
9866 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9873   ac_status=$?
9874   grep -v '^ *+' conftest.er1 >conftest.err
9875   rm -f conftest.er1
9876   cat conftest.err >&5
9877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878   (exit $ac_status); } &&
9879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9880   { (case "(($ac_try" in
9881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882   *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885   (eval "$ac_try") 2>&5
9886   ac_status=$?
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); }; } &&
9889          { ac_try='test -s conftest$ac_exeext'
9890   { (case "(($ac_try" in
9891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892   *) ac_try_echo=$ac_try;;
9893 esac
9894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895   (eval "$ac_try") 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; }; then
9899   ac_cv_search_pthread_mutex_lock=$ac_res
9900 else
9901   echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904
9905 fi
9906
9907 rm -f core conftest.err conftest.$ac_objext \
9908       conftest$ac_exeext
9909   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9910   break
9911 fi
9912 done
9913 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9914   :
9915 else
9916   ac_cv_search_pthread_mutex_lock=no
9917 fi
9918 rm conftest.$ac_ext
9919 LIBS=$ac_func_search_save_LIBS
9920 fi
9921 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9922 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9923 ac_res=$ac_cv_search_pthread_mutex_lock
9924 if test "$ac_res" != no; then
9925   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9926
9927 cat >>confdefs.h <<\_ACEOF
9928 #define HAVE_PTHREAD_MUTEX_LOCK 1
9929 _ACEOF
9930
9931 fi
9932
9933   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9934 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9935 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9936   echo $ECHO_N "(cached) $ECHO_C" >&6
9937 else
9938   ac_func_search_save_LIBS=$LIBS
9939 cat >conftest.$ac_ext <<_ACEOF
9940 /* confdefs.h.  */
9941 _ACEOF
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h.  */
9945
9946 /* Override any GCC internal prototype to avoid an error.
9947    Use char because int might match the return type of a GCC
9948    builtin and then its argument prototype would still apply.  */
9949 #ifdef __cplusplus
9950 extern "C"
9951 #endif
9952 char pthread_rwlock_init ();
9953 int
9954 main ()
9955 {
9956 return pthread_rwlock_init ();
9957   ;
9958   return 0;
9959 }
9960 _ACEOF
9961 for ac_lib in '' pthread; do
9962   if test -z "$ac_lib"; then
9963     ac_res="none required"
9964   else
9965     ac_res=-l$ac_lib
9966     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9967   fi
9968   rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9976   ac_status=$?
9977   grep -v '^ *+' conftest.er1 >conftest.err
9978   rm -f conftest.er1
9979   cat conftest.err >&5
9980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981   (exit $ac_status); } &&
9982          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9983   { (case "(($ac_try" in
9984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985   *) ac_try_echo=$ac_try;;
9986 esac
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988   (eval "$ac_try") 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; } &&
9992          { ac_try='test -s conftest$ac_exeext'
9993   { (case "(($ac_try" in
9994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995   *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998   (eval "$ac_try") 2>&5
9999   ac_status=$?
10000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001   (exit $ac_status); }; }; then
10002   ac_cv_search_pthread_rwlock_init=$ac_res
10003 else
10004   echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10006
10007
10008 fi
10009
10010 rm -f core conftest.err conftest.$ac_objext \
10011       conftest$ac_exeext
10012   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10013   break
10014 fi
10015 done
10016 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
10017   :
10018 else
10019   ac_cv_search_pthread_rwlock_init=no
10020 fi
10021 rm conftest.$ac_ext
10022 LIBS=$ac_func_search_save_LIBS
10023 fi
10024 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
10025 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
10026 ac_res=$ac_cv_search_pthread_rwlock_init
10027 if test "$ac_res" != no; then
10028   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10029
10030 cat >>confdefs.h <<\_ACEOF
10031 #define HAVE_PTHREAD_RWLOCK_INIT 1
10032 _ACEOF
10033
10034 fi
10035
10036   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
10037 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
10038 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10039   echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041   ac_func_search_save_LIBS=$LIBS
10042 cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h.  */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h.  */
10048
10049 /* Override any GCC internal prototype to avoid an error.
10050    Use char because int might match the return type of a GCC
10051    builtin and then its argument prototype would still apply.  */
10052 #ifdef __cplusplus
10053 extern "C"
10054 #endif
10055 char pthread_getspecific ();
10056 int
10057 main ()
10058 {
10059 return pthread_getspecific ();
10060   ;
10061   return 0;
10062 }
10063 _ACEOF
10064 for ac_lib in '' pthread; do
10065   if test -z "$ac_lib"; then
10066     ac_res="none required"
10067   else
10068     ac_res=-l$ac_lib
10069     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10070   fi
10071   rm -f conftest.$ac_objext conftest$ac_exeext
10072 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10079   ac_status=$?
10080   grep -v '^ *+' conftest.er1 >conftest.err
10081   rm -f conftest.er1
10082   cat conftest.err >&5
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); } &&
10085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10086   { (case "(($ac_try" in
10087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088   *) ac_try_echo=$ac_try;;
10089 esac
10090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091   (eval "$ac_try") 2>&5
10092   ac_status=$?
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); }; } &&
10095          { ac_try='test -s conftest$ac_exeext'
10096   { (case "(($ac_try" in
10097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098   *) ac_try_echo=$ac_try;;
10099 esac
10100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101   (eval "$ac_try") 2>&5
10102   ac_status=$?
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); }; }; then
10105   ac_cv_search_pthread_getspecific=$ac_res
10106 else
10107   echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10109
10110
10111 fi
10112
10113 rm -f core conftest.err conftest.$ac_objext \
10114       conftest$ac_exeext
10115   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10116   break
10117 fi
10118 done
10119 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
10120   :
10121 else
10122   ac_cv_search_pthread_getspecific=no
10123 fi
10124 rm conftest.$ac_ext
10125 LIBS=$ac_func_search_save_LIBS
10126 fi
10127 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
10128 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
10129 ac_res=$ac_cv_search_pthread_getspecific
10130 if test "$ac_res" != no; then
10131   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10132
10133 cat >>confdefs.h <<\_ACEOF
10134 #define HAVE_PTHREAD_GETSPECIFIC 1
10135 _ACEOF
10136
10137 fi
10138
10139 fi
10140
10141 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10142
10143 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10144 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10145 if test "${ac_cv_lib_z_compress2+set}" = set; then
10146   echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148   ac_check_lib_save_LIBS=$LIBS
10149 LIBS="-lz  $LIBS"
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h.  */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h.  */
10156
10157 /* Override any GCC internal prototype to avoid an error.
10158    Use char because int might match the return type of a GCC
10159    builtin and then its argument prototype would still apply.  */
10160 #ifdef __cplusplus
10161 extern "C"
10162 #endif
10163 char compress2 ();
10164 int
10165 main ()
10166 {
10167 return compress2 ();
10168   ;
10169   return 0;
10170 }
10171 _ACEOF
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10180   ac_status=$?
10181   grep -v '^ *+' conftest.er1 >conftest.err
10182   rm -f conftest.er1
10183   cat conftest.err >&5
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); } &&
10186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10187   { (case "(($ac_try" in
10188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189   *) ac_try_echo=$ac_try;;
10190 esac
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192   (eval "$ac_try") 2>&5
10193   ac_status=$?
10194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }; } &&
10196          { ac_try='test -s conftest$ac_exeext'
10197   { (case "(($ac_try" in
10198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199   *) ac_try_echo=$ac_try;;
10200 esac
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202   (eval "$ac_try") 2>&5
10203   ac_status=$?
10204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205   (exit $ac_status); }; }; then
10206   ac_cv_lib_z_compress2=yes
10207 else
10208   echo "$as_me: failed program was:" >&5
10209 sed 's/^/| /' conftest.$ac_ext >&5
10210
10211         ac_cv_lib_z_compress2=no
10212 fi
10213
10214 rm -f core conftest.err conftest.$ac_objext \
10215       conftest$ac_exeext conftest.$ac_ext
10216 LIBS=$ac_check_lib_save_LIBS
10217 fi
10218 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10219 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10220 if test $ac_cv_lib_z_compress2 = yes; then
10221   cat >>confdefs.h <<_ACEOF
10222 #define HAVE_LIBZ 1
10223 _ACEOF
10224
10225   LIBS="-lz $LIBS"
10226
10227 fi
10228
10229 fi
10230
10231
10232 # Check whether --with-udis86 was given.
10233 if test "${with_udis86+set}" = set; then
10234   withval=$with_udis86;
10235       USE_UDIS86=1
10236
10237       case "$withval" in
10238         /usr/lib|yes) ;;
10239         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
10240       esac
10241
10242 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
10243 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
10244 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
10245   echo $ECHO_N "(cached) $ECHO_C" >&6
10246 else
10247   ac_check_lib_save_LIBS=$LIBS
10248 LIBS="-ludis86  $LIBS"
10249 cat >conftest.$ac_ext <<_ACEOF
10250 /* confdefs.h.  */
10251 _ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h.  */
10255
10256 /* Override any GCC internal prototype to avoid an error.
10257    Use char because int might match the return type of a GCC
10258    builtin and then its argument prototype would still apply.  */
10259 #ifdef __cplusplus
10260 extern "C"
10261 #endif
10262 char ud_init ();
10263 int
10264 main ()
10265 {
10266 return ud_init ();
10267   ;
10268   return 0;
10269 }
10270 _ACEOF
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10279   ac_status=$?
10280   grep -v '^ *+' conftest.er1 >conftest.err
10281   rm -f conftest.er1
10282   cat conftest.err >&5
10283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284   (exit $ac_status); } &&
10285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286   { (case "(($ac_try" in
10287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288   *) ac_try_echo=$ac_try;;
10289 esac
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291   (eval "$ac_try") 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); }; } &&
10295          { ac_try='test -s conftest$ac_exeext'
10296   { (case "(($ac_try" in
10297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298   *) ac_try_echo=$ac_try;;
10299 esac
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301   (eval "$ac_try") 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; }; then
10305   ac_cv_lib_udis86_ud_init=yes
10306 else
10307   echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10309
10310         ac_cv_lib_udis86_ud_init=no
10311 fi
10312
10313 rm -f core conftest.err conftest.$ac_objext \
10314       conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10316 fi
10317 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
10318 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
10319 if test $ac_cv_lib_udis86_ud_init = yes; then
10320   cat >>confdefs.h <<_ACEOF
10321 #define HAVE_LIBUDIS86 1
10322 _ACEOF
10323
10324   LIBS="-ludis86 $LIBS"
10325
10326 else
10327
10328         echo "Error! You need to have libudis86 around."
10329         exit -1
10330
10331 fi
10332
10333
10334 else
10335   USE_UDIS86=0
10336
10337 fi
10338
10339
10340 cat >>confdefs.h <<_ACEOF
10341 #define USE_UDIS86 $USE_UDIS86
10342 _ACEOF
10343
10344
10345
10346 # Check whether --with-oprofile was given.
10347 if test "${with_oprofile+set}" = set; then
10348   withval=$with_oprofile;
10349       USE_OPROFILE=1
10350
10351       case "$withval" in
10352         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10353         no) llvm_cv_oppath=
10354             USE_OPROFILE=0
10355  ;;
10356         *) llvm_cv_oppath="${withval}/lib/oprofile"
10357            CPPFLAGS="-I${withval}/include";;
10358       esac
10359       case $llvm_cv_os_type in
10360         Linux)
10361           if test -n "$llvm_cv_oppath" ; then
10362             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10363                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10364 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10365 if test "${ac_cv_search_bfd_init+set}" = set; then
10366   echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368   ac_func_search_save_LIBS=$LIBS
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h.  */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h.  */
10375
10376 /* Override any GCC internal prototype to avoid an error.
10377    Use char because int might match the return type of a GCC
10378    builtin and then its argument prototype would still apply.  */
10379 #ifdef __cplusplus
10380 extern "C"
10381 #endif
10382 char bfd_init ();
10383 int
10384 main ()
10385 {
10386 return bfd_init ();
10387   ;
10388   return 0;
10389 }
10390 _ACEOF
10391 for ac_lib in '' bfd; do
10392   if test -z "$ac_lib"; then
10393     ac_res="none required"
10394   else
10395     ac_res=-l$ac_lib
10396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10397   fi
10398   rm -f conftest.$ac_objext conftest$ac_exeext
10399 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10406   ac_status=$?
10407   grep -v '^ *+' conftest.er1 >conftest.err
10408   rm -f conftest.er1
10409   cat conftest.err >&5
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } &&
10412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10413   { (case "(($ac_try" in
10414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415   *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418   (eval "$ac_try") 2>&5
10419   ac_status=$?
10420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421   (exit $ac_status); }; } &&
10422          { ac_try='test -s conftest$ac_exeext'
10423   { (case "(($ac_try" in
10424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425   *) ac_try_echo=$ac_try;;
10426 esac
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428   (eval "$ac_try") 2>&5
10429   ac_status=$?
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); }; }; then
10432   ac_cv_search_bfd_init=$ac_res
10433 else
10434   echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437
10438 fi
10439
10440 rm -f core conftest.err conftest.$ac_objext \
10441       conftest$ac_exeext
10442   if test "${ac_cv_search_bfd_init+set}" = set; then
10443   break
10444 fi
10445 done
10446 if test "${ac_cv_search_bfd_init+set}" = set; then
10447   :
10448 else
10449   ac_cv_search_bfd_init=no
10450 fi
10451 rm conftest.$ac_ext
10452 LIBS=$ac_func_search_save_LIBS
10453 fi
10454 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10455 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10456 ac_res=$ac_cv_search_bfd_init
10457 if test "$ac_res" != no; then
10458   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10459
10460 fi
10461
10462             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10463 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10464 if test "${ac_cv_search_op_open_agent+set}" = set; then
10465   echo $ECHO_N "(cached) $ECHO_C" >&6
10466 else
10467   ac_func_search_save_LIBS=$LIBS
10468 cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h.  */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h.  */
10474
10475 /* Override any GCC internal prototype to avoid an error.
10476    Use char because int might match the return type of a GCC
10477    builtin and then its argument prototype would still apply.  */
10478 #ifdef __cplusplus
10479 extern "C"
10480 #endif
10481 char op_open_agent ();
10482 int
10483 main ()
10484 {
10485 return op_open_agent ();
10486   ;
10487   return 0;
10488 }
10489 _ACEOF
10490 for ac_lib in '' opagent; do
10491   if test -z "$ac_lib"; then
10492     ac_res="none required"
10493   else
10494     ac_res=-l$ac_lib
10495     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10496   fi
10497   rm -f conftest.$ac_objext conftest$ac_exeext
10498 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10505   ac_status=$?
10506   grep -v '^ *+' conftest.er1 >conftest.err
10507   rm -f conftest.er1
10508   cat conftest.err >&5
10509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510   (exit $ac_status); } &&
10511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10512   { (case "(($ac_try" in
10513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10514   *) ac_try_echo=$ac_try;;
10515 esac
10516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10517   (eval "$ac_try") 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); }; } &&
10521          { ac_try='test -s conftest$ac_exeext'
10522   { (case "(($ac_try" in
10523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10524   *) ac_try_echo=$ac_try;;
10525 esac
10526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10527   (eval "$ac_try") 2>&5
10528   ac_status=$?
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); }; }; then
10531   ac_cv_search_op_open_agent=$ac_res
10532 else
10533   echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10535
10536
10537 fi
10538
10539 rm -f core conftest.err conftest.$ac_objext \
10540       conftest$ac_exeext
10541   if test "${ac_cv_search_op_open_agent+set}" = set; then
10542   break
10543 fi
10544 done
10545 if test "${ac_cv_search_op_open_agent+set}" = set; then
10546   :
10547 else
10548   ac_cv_search_op_open_agent=no
10549 fi
10550 rm conftest.$ac_ext
10551 LIBS=$ac_func_search_save_LIBS
10552 fi
10553 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10554 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10555 ac_res=$ac_cv_search_op_open_agent
10556 if test "$ac_res" != no; then
10557   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10558
10559 else
10560
10561               echo "Error! You need to have libopagent around."
10562               exit -1
10563
10564 fi
10565
10566             if test "${ac_cv_header_opagent_h+set}" = set; then
10567   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10568 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10569 if test "${ac_cv_header_opagent_h+set}" = set; then
10570   echo $ECHO_N "(cached) $ECHO_C" >&6
10571 fi
10572 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10573 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10574 else
10575   # Is the header compilable?
10576 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10577 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10578 cat >conftest.$ac_ext <<_ACEOF
10579 /* confdefs.h.  */
10580 _ACEOF
10581 cat confdefs.h >>conftest.$ac_ext
10582 cat >>conftest.$ac_ext <<_ACEOF
10583 /* end confdefs.h.  */
10584 $ac_includes_default
10585 #include <opagent.h>
10586 _ACEOF
10587 rm -f conftest.$ac_objext
10588 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
10595   ac_status=$?
10596   grep -v '^ *+' conftest.er1 >conftest.err
10597   rm -f conftest.er1
10598   cat conftest.err >&5
10599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600   (exit $ac_status); } &&
10601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10602   { (case "(($ac_try" in
10603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604   *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607   (eval "$ac_try") 2>&5
10608   ac_status=$?
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); }; } &&
10611          { ac_try='test -s conftest.$ac_objext'
10612   { (case "(($ac_try" in
10613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614   *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617   (eval "$ac_try") 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); }; }; then
10621   ac_header_compiler=yes
10622 else
10623   echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10625
10626         ac_header_compiler=no
10627 fi
10628
10629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10631 echo "${ECHO_T}$ac_header_compiler" >&6; }
10632
10633 # Is the header present?
10634 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10635 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10636 cat >conftest.$ac_ext <<_ACEOF
10637 /* confdefs.h.  */
10638 _ACEOF
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h.  */
10642 #include <opagent.h>
10643 _ACEOF
10644 if { (ac_try="$ac_cpp conftest.$ac_ext"
10645 case "(($ac_try" in
10646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647   *) ac_try_echo=$ac_try;;
10648 esac
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10651   ac_status=$?
10652   grep -v '^ *+' conftest.er1 >conftest.err
10653   rm -f conftest.er1
10654   cat conftest.err >&5
10655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656   (exit $ac_status); } >/dev/null; then
10657   if test -s conftest.err; then
10658     ac_cpp_err=$ac_c_preproc_warn_flag
10659     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10660   else
10661     ac_cpp_err=
10662   fi
10663 else
10664   ac_cpp_err=yes
10665 fi
10666 if test -z "$ac_cpp_err"; then
10667   ac_header_preproc=yes
10668 else
10669   echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10671
10672   ac_header_preproc=no
10673 fi
10674
10675 rm -f conftest.err conftest.$ac_ext
10676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10677 echo "${ECHO_T}$ac_header_preproc" >&6; }
10678
10679 # So?  What about this header?
10680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10681   yes:no: )
10682     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10683 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10684     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10685 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10686     ac_header_preproc=yes
10687     ;;
10688   no:yes:* )
10689     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10690 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10691     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10692 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10693     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10694 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10695     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10696 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10697     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10698 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10699     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10700 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10701     ( cat <<\_ASBOX
10702 ## ------------------------------------ ##
10703 ## Report this to http://llvm.org/bugs/ ##
10704 ## ------------------------------------ ##
10705 _ASBOX
10706      ) | sed "s/^/$as_me: WARNING:     /" >&2
10707     ;;
10708 esac
10709 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10710 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10711 if test "${ac_cv_header_opagent_h+set}" = set; then
10712   echo $ECHO_N "(cached) $ECHO_C" >&6
10713 else
10714   ac_cv_header_opagent_h=$ac_header_preproc
10715 fi
10716 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10717 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10718
10719 fi
10720 if test $ac_cv_header_opagent_h = yes; then
10721   :
10722 else
10723
10724               echo "Error! You need to have opagent.h around."
10725               exit -1
10726
10727 fi
10728
10729
10730           fi ;;
10731         *)
10732           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10733 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10734    { (exit 1); exit 1; }; } ;;
10735       esac
10736
10737 else
10738
10739       USE_OPROFILE=0
10740
10741
10742 fi
10743
10744
10745 cat >>confdefs.h <<_ACEOF
10746 #define LLVM_USE_OPROFILE $USE_OPROFILE
10747 _ACEOF
10748
10749
10750
10751 # Check whether --with-intel-jitevents was given.
10752 if test "${with_intel_jitevents+set}" = set; then
10753   withval=$with_intel_jitevents;
10754        case "$withval" in
10755           yes) USE_INTEL_JITEVENTS=1
10756 ;;
10757           no)  USE_INTEL_JITEVENTS=0
10758 ;;
10759           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10760 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10761    { (exit 1); exit 1; }; };;
10762        esac
10763
10764       case $llvm_cv_os_type in
10765         Linux|Win32|Cygwin|MingW) ;;
10766         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10767 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10768    { (exit 1); exit 1; }; };;
10769       esac
10770
10771       case "$llvm_cv_target_arch" in
10772         x86|x86_64) ;;
10773         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10774 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10775    { (exit 1); exit 1; }; };;
10776       esac
10777
10778 else
10779
10780       USE_INTEL_JITEVENTS=0
10781
10782
10783 fi
10784
10785
10786 cat >>confdefs.h <<_ACEOF
10787 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10788 _ACEOF
10789
10790
10791 for ac_prog in xml2-config
10792 do
10793   # Extract the first word of "$ac_prog", so it can be a program name with args.
10794 set dummy $ac_prog; ac_word=$2
10795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10797 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10798   echo $ECHO_N "(cached) $ECHO_C" >&6
10799 else
10800   if test -n "$XML2CONFIG"; then
10801   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10802 else
10803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804 for as_dir in $PATH
10805 do
10806   IFS=$as_save_IFS
10807   test -z "$as_dir" && as_dir=.
10808   for ac_exec_ext in '' $ac_executable_extensions; do
10809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10810     ac_cv_prog_XML2CONFIG="$ac_prog"
10811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10812     break 2
10813   fi
10814 done
10815 done
10816 IFS=$as_save_IFS
10817
10818 fi
10819 fi
10820 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10821 if test -n "$XML2CONFIG"; then
10822   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10823 echo "${ECHO_T}$XML2CONFIG" >&6; }
10824 else
10825   { echo "$as_me:$LINENO: result: no" >&5
10826 echo "${ECHO_T}no" >&6; }
10827 fi
10828
10829
10830   test -n "$XML2CONFIG" && break
10831 done
10832
10833
10834 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10835 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10836 if test "x$XML2CONFIG" = "x"; then
10837  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10838 echo "${ECHO_T}xml2-config not found" >&6; }
10839 else
10840  LIBXML2_INC=`$XML2CONFIG --cflags`
10841  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10842 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10843  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10844 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10845 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10846   echo $ECHO_N "(cached) $ECHO_C" >&6
10847 else
10848   ac_check_lib_save_LIBS=$LIBS
10849 LIBS="-lxml2  $LIBS"
10850 cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h.  */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h.  */
10856
10857 /* Override any GCC internal prototype to avoid an error.
10858    Use char because int might match the return type of a GCC
10859    builtin and then its argument prototype would still apply.  */
10860 #ifdef __cplusplus
10861 extern "C"
10862 #endif
10863 char xmlReadFile ();
10864 int
10865 main ()
10866 {
10867 return xmlReadFile ();
10868   ;
10869   return 0;
10870 }
10871 _ACEOF
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10880   ac_status=$?
10881   grep -v '^ *+' conftest.er1 >conftest.err
10882   rm -f conftest.er1
10883   cat conftest.err >&5
10884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885   (exit $ac_status); } &&
10886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10887   { (case "(($ac_try" in
10888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889   *) ac_try_echo=$ac_try;;
10890 esac
10891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10892   (eval "$ac_try") 2>&5
10893   ac_status=$?
10894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895   (exit $ac_status); }; } &&
10896          { ac_try='test -s conftest$ac_exeext'
10897   { (case "(($ac_try" in
10898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10899   *) ac_try_echo=$ac_try;;
10900 esac
10901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10902   (eval "$ac_try") 2>&5
10903   ac_status=$?
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); }; }; then
10906   ac_cv_lib_xml2_xmlReadFile=yes
10907 else
10908   echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10910
10911         ac_cv_lib_xml2_xmlReadFile=no
10912 fi
10913
10914 rm -f core conftest.err conftest.$ac_objext \
10915       conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10917 fi
10918 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10919 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10920 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10921
10922 cat >>confdefs.h <<\_ACEOF
10923 #define CLANG_HAVE_LIBXML 1
10924 _ACEOF
10925
10926                                 LIBXML2_LIBS="-lxml2"
10927 fi
10928
10929 fi
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939 ac_header_dirent=no
10940 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10941   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10942 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10943 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10945   echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947   cat >conftest.$ac_ext <<_ACEOF
10948 /* confdefs.h.  */
10949 _ACEOF
10950 cat confdefs.h >>conftest.$ac_ext
10951 cat >>conftest.$ac_ext <<_ACEOF
10952 /* end confdefs.h.  */
10953 #include <sys/types.h>
10954 #include <$ac_hdr>
10955
10956 int
10957 main ()
10958 {
10959 if ((DIR *) 0)
10960 return 0;
10961   ;
10962   return 0;
10963 }
10964 _ACEOF
10965 rm -f conftest.$ac_objext
10966 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
10973   ac_status=$?
10974   grep -v '^ *+' conftest.er1 >conftest.err
10975   rm -f conftest.er1
10976   cat conftest.err >&5
10977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10978   (exit $ac_status); } &&
10979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10980   { (case "(($ac_try" in
10981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10982   *) ac_try_echo=$ac_try;;
10983 esac
10984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10985   (eval "$ac_try") 2>&5
10986   ac_status=$?
10987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988   (exit $ac_status); }; } &&
10989          { ac_try='test -s conftest.$ac_objext'
10990   { (case "(($ac_try" in
10991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992   *) ac_try_echo=$ac_try;;
10993 esac
10994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995   (eval "$ac_try") 2>&5
10996   ac_status=$?
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); }; }; then
10999   eval "$as_ac_Header=yes"
11000 else
11001   echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.$ac_ext >&5
11003
11004         eval "$as_ac_Header=no"
11005 fi
11006
11007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11008 fi
11009 ac_res=`eval echo '${'$as_ac_Header'}'`
11010                { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11013   cat >>confdefs.h <<_ACEOF
11014 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11015 _ACEOF
11016
11017 ac_header_dirent=$ac_hdr; break
11018 fi
11019
11020 done
11021 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11022 if test $ac_header_dirent = dirent.h; then
11023   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11024 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11025 if test "${ac_cv_search_opendir+set}" = set; then
11026   echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028   ac_func_search_save_LIBS=$LIBS
11029 cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h.  */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h.  */
11035
11036 /* Override any GCC internal prototype to avoid an error.
11037    Use char because int might match the return type of a GCC
11038    builtin and then its argument prototype would still apply.  */
11039 #ifdef __cplusplus
11040 extern "C"
11041 #endif
11042 char opendir ();
11043 int
11044 main ()
11045 {
11046 return opendir ();
11047   ;
11048   return 0;
11049 }
11050 _ACEOF
11051 for ac_lib in '' dir; do
11052   if test -z "$ac_lib"; then
11053     ac_res="none required"
11054   else
11055     ac_res=-l$ac_lib
11056     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11057   fi
11058   rm -f conftest.$ac_objext conftest$ac_exeext
11059 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11066   ac_status=$?
11067   grep -v '^ *+' conftest.er1 >conftest.err
11068   rm -f conftest.er1
11069   cat conftest.err >&5
11070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071   (exit $ac_status); } &&
11072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11073   { (case "(($ac_try" in
11074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11075   *) ac_try_echo=$ac_try;;
11076 esac
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078   (eval "$ac_try") 2>&5
11079   ac_status=$?
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); }; } &&
11082          { ac_try='test -s conftest$ac_exeext'
11083   { (case "(($ac_try" in
11084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085   *) ac_try_echo=$ac_try;;
11086 esac
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088   (eval "$ac_try") 2>&5
11089   ac_status=$?
11090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091   (exit $ac_status); }; }; then
11092   ac_cv_search_opendir=$ac_res
11093 else
11094   echo "$as_me: failed program was:" >&5
11095 sed 's/^/| /' conftest.$ac_ext >&5
11096
11097
11098 fi
11099
11100 rm -f core conftest.err conftest.$ac_objext \
11101       conftest$ac_exeext
11102   if test "${ac_cv_search_opendir+set}" = set; then
11103   break
11104 fi
11105 done
11106 if test "${ac_cv_search_opendir+set}" = set; then
11107   :
11108 else
11109   ac_cv_search_opendir=no
11110 fi
11111 rm conftest.$ac_ext
11112 LIBS=$ac_func_search_save_LIBS
11113 fi
11114 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11115 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11116 ac_res=$ac_cv_search_opendir
11117 if test "$ac_res" != no; then
11118   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11119
11120 fi
11121
11122 else
11123   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
11124 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
11125 if test "${ac_cv_search_opendir+set}" = set; then
11126   echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128   ac_func_search_save_LIBS=$LIBS
11129 cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135
11136 /* Override any GCC internal prototype to avoid an error.
11137    Use char because int might match the return type of a GCC
11138    builtin and then its argument prototype would still apply.  */
11139 #ifdef __cplusplus
11140 extern "C"
11141 #endif
11142 char opendir ();
11143 int
11144 main ()
11145 {
11146 return opendir ();
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 for ac_lib in '' x; do
11152   if test -z "$ac_lib"; then
11153     ac_res="none required"
11154   else
11155     ac_res=-l$ac_lib
11156     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11157   fi
11158   rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
11166   ac_status=$?
11167   grep -v '^ *+' conftest.er1 >conftest.err
11168   rm -f conftest.er1
11169   cat conftest.err >&5
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); } &&
11172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11173   { (case "(($ac_try" in
11174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175   *) ac_try_echo=$ac_try;;
11176 esac
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178   (eval "$ac_try") 2>&5
11179   ac_status=$?
11180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181   (exit $ac_status); }; } &&
11182          { ac_try='test -s conftest$ac_exeext'
11183   { (case "(($ac_try" in
11184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11185   *) ac_try_echo=$ac_try;;
11186 esac
11187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11188   (eval "$ac_try") 2>&5
11189   ac_status=$?
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); }; }; then
11192   ac_cv_search_opendir=$ac_res
11193 else
11194   echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11196
11197
11198 fi
11199
11200 rm -f core conftest.err conftest.$ac_objext \
11201       conftest$ac_exeext
11202   if test "${ac_cv_search_opendir+set}" = set; then
11203   break
11204 fi
11205 done
11206 if test "${ac_cv_search_opendir+set}" = set; then
11207   :
11208 else
11209   ac_cv_search_opendir=no
11210 fi
11211 rm conftest.$ac_ext
11212 LIBS=$ac_func_search_save_LIBS
11213 fi
11214 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11215 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
11216 ac_res=$ac_cv_search_opendir
11217 if test "$ac_res" != no; then
11218   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11219
11220 fi
11221
11222 fi
11223
11224 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11225 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
11226 if test "${ac_cv_header_mmap_anon+set}" = set; then
11227   echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229    ac_ext=c
11230 ac_cpp='$CPP $CPPFLAGS'
11231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11234
11235   cat >conftest.$ac_ext <<_ACEOF
11236 /* confdefs.h.  */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h.  */
11241 #include <sys/mman.h>
11242 #include <unistd.h>
11243 #include <fcntl.h>
11244 int
11245 main ()
11246 {
11247 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11248   ;
11249   return 0;
11250 }
11251 _ACEOF
11252 rm -f conftest.$ac_objext
11253 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11260   ac_status=$?
11261   grep -v '^ *+' conftest.er1 >conftest.err
11262   rm -f conftest.er1
11263   cat conftest.err >&5
11264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265   (exit $ac_status); } &&
11266          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267   { (case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_try") 2>&5
11273   ac_status=$?
11274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275   (exit $ac_status); }; } &&
11276          { ac_try='test -s conftest.$ac_objext'
11277   { (case "(($ac_try" in
11278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279   *) ac_try_echo=$ac_try;;
11280 esac
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282   (eval "$ac_try") 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); }; }; then
11286   ac_cv_header_mmap_anon=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291         ac_cv_header_mmap_anon=no
11292 fi
11293
11294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11295   ac_ext=c
11296 ac_cpp='$CPP $CPPFLAGS'
11297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11300
11301
11302 fi
11303 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11304 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11305 if test "$ac_cv_header_mmap_anon" = yes; then
11306
11307 cat >>confdefs.h <<\_ACEOF
11308 #define HAVE_MMAP_ANONYMOUS 1
11309 _ACEOF
11310
11311 fi
11312
11313 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11314 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11315 if test "${ac_cv_header_stat_broken+set}" = set; then
11316   echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318   cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h.  */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h.  */
11324 #include <sys/types.h>
11325 #include <sys/stat.h>
11326
11327 #if defined S_ISBLK && defined S_IFDIR
11328 # if S_ISBLK (S_IFDIR)
11329 You lose.
11330 # endif
11331 #endif
11332
11333 #if defined S_ISBLK && defined S_IFCHR
11334 # if S_ISBLK (S_IFCHR)
11335 You lose.
11336 # endif
11337 #endif
11338
11339 #if defined S_ISLNK && defined S_IFREG
11340 # if S_ISLNK (S_IFREG)
11341 You lose.
11342 # endif
11343 #endif
11344
11345 #if defined S_ISSOCK && defined S_IFREG
11346 # if S_ISSOCK (S_IFREG)
11347 You lose.
11348 # endif
11349 #endif
11350
11351 _ACEOF
11352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11353   $EGREP "You lose" >/dev/null 2>&1; then
11354   ac_cv_header_stat_broken=yes
11355 else
11356   ac_cv_header_stat_broken=no
11357 fi
11358 rm -f conftest*
11359
11360 fi
11361 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11362 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11363 if test $ac_cv_header_stat_broken = yes; then
11364
11365 cat >>confdefs.h <<\_ACEOF
11366 #define STAT_MACROS_BROKEN 1
11367 _ACEOF
11368
11369 fi
11370
11371 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11372 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11373 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11374   echo $ECHO_N "(cached) $ECHO_C" >&6
11375 else
11376   cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h.  */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h.  */
11382 #include <sys/types.h>
11383 #include <sys/wait.h>
11384 #ifndef WEXITSTATUS
11385 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11386 #endif
11387 #ifndef WIFEXITED
11388 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11389 #endif
11390
11391 int
11392 main ()
11393 {
11394   int s;
11395   wait (&s);
11396   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11397   ;
11398   return 0;
11399 }
11400 _ACEOF
11401 rm -f conftest.$ac_objext
11402 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11409   ac_status=$?
11410   grep -v '^ *+' conftest.er1 >conftest.err
11411   rm -f conftest.er1
11412   cat conftest.err >&5
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); } &&
11415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11416   { (case "(($ac_try" in
11417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418   *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421   (eval "$ac_try") 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; } &&
11425          { ac_try='test -s conftest.$ac_objext'
11426   { (case "(($ac_try" in
11427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428   *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431   (eval "$ac_try") 2>&5
11432   ac_status=$?
11433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); }; }; then
11435   ac_cv_header_sys_wait_h=yes
11436 else
11437   echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440         ac_cv_header_sys_wait_h=no
11441 fi
11442
11443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11444 fi
11445 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11446 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11447 if test $ac_cv_header_sys_wait_h = yes; then
11448
11449 cat >>confdefs.h <<\_ACEOF
11450 #define HAVE_SYS_WAIT_H 1
11451 _ACEOF
11452
11453 fi
11454
11455 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11456 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11457 if test "${ac_cv_header_time+set}" = set; then
11458   echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460   cat >conftest.$ac_ext <<_ACEOF
11461 /* confdefs.h.  */
11462 _ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h.  */
11466 #include <sys/types.h>
11467 #include <sys/time.h>
11468 #include <time.h>
11469
11470 int
11471 main ()
11472 {
11473 if ((struct tm *) 0)
11474 return 0;
11475   ;
11476   return 0;
11477 }
11478 _ACEOF
11479 rm -f conftest.$ac_objext
11480 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11487   ac_status=$?
11488   grep -v '^ *+' conftest.er1 >conftest.err
11489   rm -f conftest.er1
11490   cat conftest.err >&5
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); } &&
11493          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11494   { (case "(($ac_try" in
11495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496   *) ac_try_echo=$ac_try;;
11497 esac
11498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499   (eval "$ac_try") 2>&5
11500   ac_status=$?
11501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502   (exit $ac_status); }; } &&
11503          { ac_try='test -s conftest.$ac_objext'
11504   { (case "(($ac_try" in
11505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506   *) ac_try_echo=$ac_try;;
11507 esac
11508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509   (eval "$ac_try") 2>&5
11510   ac_status=$?
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); }; }; then
11513   ac_cv_header_time=yes
11514 else
11515   echo "$as_me: failed program was:" >&5
11516 sed 's/^/| /' conftest.$ac_ext >&5
11517
11518         ac_cv_header_time=no
11519 fi
11520
11521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11522 fi
11523 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11524 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11525 if test $ac_cv_header_time = yes; then
11526
11527 cat >>confdefs.h <<\_ACEOF
11528 #define TIME_WITH_SYS_TIME 1
11529 _ACEOF
11530
11531 fi
11532
11533
11534 ac_ext=cpp
11535 ac_cpp='$CXXCPP $CPPFLAGS'
11536 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11537 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11538 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11539
11540 ac_ext=cpp
11541 ac_cpp='$CXXCPP $CPPFLAGS'
11542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11545 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11546 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
11547 if test -z "$CXXCPP"; then
11548   if test "${ac_cv_prog_CXXCPP+set}" = set; then
11549   echo $ECHO_N "(cached) $ECHO_C" >&6
11550 else
11551       # Double quotes because CXXCPP needs to be expanded
11552     for CXXCPP in "$CXX -E" "/lib/cpp"
11553     do
11554       ac_preproc_ok=false
11555 for ac_cxx_preproc_warn_flag in '' yes
11556 do
11557   # Use a header file that comes with gcc, so configuring glibc
11558   # with a fresh cross-compiler works.
11559   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11560   # <limits.h> exists even on freestanding compilers.
11561   # On the NeXT, cc -E runs the code through the compiler's parser,
11562   # not just through cpp. "Syntax error" is here to catch this case.
11563   cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h.  */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h.  */
11569 #ifdef __STDC__
11570 # include <limits.h>
11571 #else
11572 # include <assert.h>
11573 #endif
11574                      Syntax error
11575 _ACEOF
11576 if { (ac_try="$ac_cpp conftest.$ac_ext"
11577 case "(($ac_try" in
11578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579   *) ac_try_echo=$ac_try;;
11580 esac
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11583   ac_status=$?
11584   grep -v '^ *+' conftest.er1 >conftest.err
11585   rm -f conftest.er1
11586   cat conftest.err >&5
11587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588   (exit $ac_status); } >/dev/null; then
11589   if test -s conftest.err; then
11590     ac_cpp_err=$ac_cxx_preproc_warn_flag
11591     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11592   else
11593     ac_cpp_err=
11594   fi
11595 else
11596   ac_cpp_err=yes
11597 fi
11598 if test -z "$ac_cpp_err"; then
11599   :
11600 else
11601   echo "$as_me: failed program was:" >&5
11602 sed 's/^/| /' conftest.$ac_ext >&5
11603
11604   # Broken: fails on valid input.
11605 continue
11606 fi
11607
11608 rm -f conftest.err conftest.$ac_ext
11609
11610   # OK, works on sane cases.  Now check whether nonexistent headers
11611   # can be detected and how.
11612   cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h.  */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h.  */
11618 #include <ac_nonexistent.h>
11619 _ACEOF
11620 if { (ac_try="$ac_cpp conftest.$ac_ext"
11621 case "(($ac_try" in
11622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623   *) ac_try_echo=$ac_try;;
11624 esac
11625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11626   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11627   ac_status=$?
11628   grep -v '^ *+' conftest.er1 >conftest.err
11629   rm -f conftest.er1
11630   cat conftest.err >&5
11631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); } >/dev/null; then
11633   if test -s conftest.err; then
11634     ac_cpp_err=$ac_cxx_preproc_warn_flag
11635     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11636   else
11637     ac_cpp_err=
11638   fi
11639 else
11640   ac_cpp_err=yes
11641 fi
11642 if test -z "$ac_cpp_err"; then
11643   # Broken: success on invalid input.
11644 continue
11645 else
11646   echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11648
11649   # Passes both tests.
11650 ac_preproc_ok=:
11651 break
11652 fi
11653
11654 rm -f conftest.err conftest.$ac_ext
11655
11656 done
11657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11658 rm -f conftest.err conftest.$ac_ext
11659 if $ac_preproc_ok; then
11660   break
11661 fi
11662
11663     done
11664     ac_cv_prog_CXXCPP=$CXXCPP
11665
11666 fi
11667   CXXCPP=$ac_cv_prog_CXXCPP
11668 else
11669   ac_cv_prog_CXXCPP=$CXXCPP
11670 fi
11671 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
11672 echo "${ECHO_T}$CXXCPP" >&6; }
11673 ac_preproc_ok=false
11674 for ac_cxx_preproc_warn_flag in '' yes
11675 do
11676   # Use a header file that comes with gcc, so configuring glibc
11677   # with a fresh cross-compiler works.
11678   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11679   # <limits.h> exists even on freestanding compilers.
11680   # On the NeXT, cc -E runs the code through the compiler's parser,
11681   # not just through cpp. "Syntax error" is here to catch this case.
11682   cat >conftest.$ac_ext <<_ACEOF
11683 /* confdefs.h.  */
11684 _ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h.  */
11688 #ifdef __STDC__
11689 # include <limits.h>
11690 #else
11691 # include <assert.h>
11692 #endif
11693                      Syntax error
11694 _ACEOF
11695 if { (ac_try="$ac_cpp conftest.$ac_ext"
11696 case "(($ac_try" in
11697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698   *) ac_try_echo=$ac_try;;
11699 esac
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11702   ac_status=$?
11703   grep -v '^ *+' conftest.er1 >conftest.err
11704   rm -f conftest.er1
11705   cat conftest.err >&5
11706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707   (exit $ac_status); } >/dev/null; then
11708   if test -s conftest.err; then
11709     ac_cpp_err=$ac_cxx_preproc_warn_flag
11710     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11711   else
11712     ac_cpp_err=
11713   fi
11714 else
11715   ac_cpp_err=yes
11716 fi
11717 if test -z "$ac_cpp_err"; then
11718   :
11719 else
11720   echo "$as_me: failed program was:" >&5
11721 sed 's/^/| /' conftest.$ac_ext >&5
11722
11723   # Broken: fails on valid input.
11724 continue
11725 fi
11726
11727 rm -f conftest.err conftest.$ac_ext
11728
11729   # OK, works on sane cases.  Now check whether nonexistent headers
11730   # can be detected and how.
11731   cat >conftest.$ac_ext <<_ACEOF
11732 /* confdefs.h.  */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h.  */
11737 #include <ac_nonexistent.h>
11738 _ACEOF
11739 if { (ac_try="$ac_cpp conftest.$ac_ext"
11740 case "(($ac_try" in
11741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742   *) ac_try_echo=$ac_try;;
11743 esac
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11746   ac_status=$?
11747   grep -v '^ *+' conftest.er1 >conftest.err
11748   rm -f conftest.er1
11749   cat conftest.err >&5
11750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); } >/dev/null; then
11752   if test -s conftest.err; then
11753     ac_cpp_err=$ac_cxx_preproc_warn_flag
11754     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11755   else
11756     ac_cpp_err=
11757   fi
11758 else
11759   ac_cpp_err=yes
11760 fi
11761 if test -z "$ac_cpp_err"; then
11762   # Broken: success on invalid input.
11763 continue
11764 else
11765   echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11767
11768   # Passes both tests.
11769 ac_preproc_ok=:
11770 break
11771 fi
11772
11773 rm -f conftest.err conftest.$ac_ext
11774
11775 done
11776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11777 rm -f conftest.err conftest.$ac_ext
11778 if $ac_preproc_ok; then
11779   :
11780 else
11781   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11782 See \`config.log' for more details." >&5
11783 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11784 See \`config.log' for more details." >&2;}
11785    { (exit 1); exit 1; }; }
11786 fi
11787
11788 ac_ext=cpp
11789 ac_cpp='$CXXCPP $CPPFLAGS'
11790 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11793
11794
11795
11796 for ac_header in cxxabi.h
11797 do
11798 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11803   echo $ECHO_N "(cached) $ECHO_C" >&6
11804 fi
11805 ac_res=`eval echo '${'$as_ac_Header'}'`
11806                { echo "$as_me:$LINENO: result: $ac_res" >&5
11807 echo "${ECHO_T}$ac_res" >&6; }
11808 else
11809   # Is the header compilable?
11810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11812 cat >conftest.$ac_ext <<_ACEOF
11813 /* confdefs.h.  */
11814 _ACEOF
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h.  */
11818 $ac_includes_default
11819 #include <$ac_header>
11820 _ACEOF
11821 rm -f conftest.$ac_objext
11822 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
11829   ac_status=$?
11830   grep -v '^ *+' conftest.er1 >conftest.err
11831   rm -f conftest.er1
11832   cat conftest.err >&5
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); } &&
11835          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11836   { (case "(($ac_try" in
11837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838   *) ac_try_echo=$ac_try;;
11839 esac
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841   (eval "$ac_try") 2>&5
11842   ac_status=$?
11843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844   (exit $ac_status); }; } &&
11845          { ac_try='test -s conftest.$ac_objext'
11846   { (case "(($ac_try" in
11847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11848   *) ac_try_echo=$ac_try;;
11849 esac
11850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11851   (eval "$ac_try") 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; }; then
11855   ac_header_compiler=yes
11856 else
11857   echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11859
11860         ac_header_compiler=no
11861 fi
11862
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11865 echo "${ECHO_T}$ac_header_compiler" >&6; }
11866
11867 # Is the header present?
11868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11870 cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876 #include <$ac_header>
11877 _ACEOF
11878 if { (ac_try="$ac_cpp conftest.$ac_ext"
11879 case "(($ac_try" in
11880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881   *) ac_try_echo=$ac_try;;
11882 esac
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11885   ac_status=$?
11886   grep -v '^ *+' conftest.er1 >conftest.err
11887   rm -f conftest.er1
11888   cat conftest.err >&5
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); } >/dev/null; then
11891   if test -s conftest.err; then
11892     ac_cpp_err=$ac_cxx_preproc_warn_flag
11893     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
11894   else
11895     ac_cpp_err=
11896   fi
11897 else
11898   ac_cpp_err=yes
11899 fi
11900 if test -z "$ac_cpp_err"; then
11901   ac_header_preproc=yes
11902 else
11903   echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11905
11906   ac_header_preproc=no
11907 fi
11908
11909 rm -f conftest.err conftest.$ac_ext
11910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11911 echo "${ECHO_T}$ac_header_preproc" >&6; }
11912
11913 # So?  What about this header?
11914 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11915   yes:no: )
11916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11920     ac_header_preproc=yes
11921     ;;
11922   no:yes:* )
11923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11925     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11926 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11927     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11929     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11930 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11933     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11935     ( cat <<\_ASBOX
11936 ## ------------------------------------ ##
11937 ## Report this to http://llvm.org/bugs/ ##
11938 ## ------------------------------------ ##
11939 _ASBOX
11940      ) | sed "s/^/$as_me: WARNING:     /" >&2
11941     ;;
11942 esac
11943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11946   echo $ECHO_N "(cached) $ECHO_C" >&6
11947 else
11948   eval "$as_ac_Header=\$ac_header_preproc"
11949 fi
11950 ac_res=`eval echo '${'$as_ac_Header'}'`
11951                { echo "$as_me:$LINENO: result: $ac_res" >&5
11952 echo "${ECHO_T}$ac_res" >&6; }
11953
11954 fi
11955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11956   cat >>confdefs.h <<_ACEOF
11957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11958 _ACEOF
11959
11960 fi
11961
11962 done
11963
11964 ac_ext=c
11965 ac_cpp='$CPP $CPPFLAGS'
11966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11969
11970
11971
11972
11973
11974
11975 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11976 do
11977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11979   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11982   echo $ECHO_N "(cached) $ECHO_C" >&6
11983 fi
11984 ac_res=`eval echo '${'$as_ac_Header'}'`
11985                { echo "$as_me:$LINENO: result: $ac_res" >&5
11986 echo "${ECHO_T}$ac_res" >&6; }
11987 else
11988   # Is the header compilable?
11989 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11991 cat >conftest.$ac_ext <<_ACEOF
11992 /* confdefs.h.  */
11993 _ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h.  */
11997 $ac_includes_default
11998 #include <$ac_header>
11999 _ACEOF
12000 rm -f conftest.$ac_objext
12001 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12008   ac_status=$?
12009   grep -v '^ *+' conftest.er1 >conftest.err
12010   rm -f conftest.er1
12011   cat conftest.err >&5
12012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013   (exit $ac_status); } &&
12014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12015   { (case "(($ac_try" in
12016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017   *) ac_try_echo=$ac_try;;
12018 esac
12019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12020   (eval "$ac_try") 2>&5
12021   ac_status=$?
12022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); }; } &&
12024          { ac_try='test -s conftest.$ac_objext'
12025   { (case "(($ac_try" in
12026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027   *) ac_try_echo=$ac_try;;
12028 esac
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030   (eval "$ac_try") 2>&5
12031   ac_status=$?
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); }; }; then
12034   ac_header_compiler=yes
12035 else
12036   echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12038
12039         ac_header_compiler=no
12040 fi
12041
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12044 echo "${ECHO_T}$ac_header_compiler" >&6; }
12045
12046 # Is the header present?
12047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12049 cat >conftest.$ac_ext <<_ACEOF
12050 /* confdefs.h.  */
12051 _ACEOF
12052 cat confdefs.h >>conftest.$ac_ext
12053 cat >>conftest.$ac_ext <<_ACEOF
12054 /* end confdefs.h.  */
12055 #include <$ac_header>
12056 _ACEOF
12057 if { (ac_try="$ac_cpp conftest.$ac_ext"
12058 case "(($ac_try" in
12059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060   *) ac_try_echo=$ac_try;;
12061 esac
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12064   ac_status=$?
12065   grep -v '^ *+' conftest.er1 >conftest.err
12066   rm -f conftest.er1
12067   cat conftest.err >&5
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); } >/dev/null; then
12070   if test -s conftest.err; then
12071     ac_cpp_err=$ac_c_preproc_warn_flag
12072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12073   else
12074     ac_cpp_err=
12075   fi
12076 else
12077   ac_cpp_err=yes
12078 fi
12079 if test -z "$ac_cpp_err"; then
12080   ac_header_preproc=yes
12081 else
12082   echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12084
12085   ac_header_preproc=no
12086 fi
12087
12088 rm -f conftest.err conftest.$ac_ext
12089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12090 echo "${ECHO_T}$ac_header_preproc" >&6; }
12091
12092 # So?  What about this header?
12093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12094   yes:no: )
12095     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12097     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12099     ac_header_preproc=yes
12100     ;;
12101   no:yes:* )
12102     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12104     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12105 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12106     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12108     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12109 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12112     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12114     ( cat <<\_ASBOX
12115 ## ------------------------------------ ##
12116 ## Report this to http://llvm.org/bugs/ ##
12117 ## ------------------------------------ ##
12118 _ASBOX
12119      ) | sed "s/^/$as_me: WARNING:     /" >&2
12120     ;;
12121 esac
12122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12125   echo $ECHO_N "(cached) $ECHO_C" >&6
12126 else
12127   eval "$as_ac_Header=\$ac_header_preproc"
12128 fi
12129 ac_res=`eval echo '${'$as_ac_Header'}'`
12130                { echo "$as_me:$LINENO: result: $ac_res" >&5
12131 echo "${ECHO_T}$ac_res" >&6; }
12132
12133 fi
12134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12135   cat >>confdefs.h <<_ACEOF
12136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12137 _ACEOF
12138
12139 fi
12140
12141 done
12142
12143
12144
12145
12146
12147
12148
12149 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
12150 do
12151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12153   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12156   echo $ECHO_N "(cached) $ECHO_C" >&6
12157 fi
12158 ac_res=`eval echo '${'$as_ac_Header'}'`
12159                { echo "$as_me:$LINENO: result: $ac_res" >&5
12160 echo "${ECHO_T}$ac_res" >&6; }
12161 else
12162   # Is the header compilable?
12163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12165 cat >conftest.$ac_ext <<_ACEOF
12166 /* confdefs.h.  */
12167 _ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h.  */
12171 $ac_includes_default
12172 #include <$ac_header>
12173 _ACEOF
12174 rm -f conftest.$ac_objext
12175 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12182   ac_status=$?
12183   grep -v '^ *+' conftest.er1 >conftest.err
12184   rm -f conftest.er1
12185   cat conftest.err >&5
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } &&
12188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12189   { (case "(($ac_try" in
12190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12191   *) ac_try_echo=$ac_try;;
12192 esac
12193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194   (eval "$ac_try") 2>&5
12195   ac_status=$?
12196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197   (exit $ac_status); }; } &&
12198          { ac_try='test -s conftest.$ac_objext'
12199   { (case "(($ac_try" in
12200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201   *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204   (eval "$ac_try") 2>&5
12205   ac_status=$?
12206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207   (exit $ac_status); }; }; then
12208   ac_header_compiler=yes
12209 else
12210   echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12212
12213         ac_header_compiler=no
12214 fi
12215
12216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12218 echo "${ECHO_T}$ac_header_compiler" >&6; }
12219
12220 # Is the header present?
12221 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12222 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12223 cat >conftest.$ac_ext <<_ACEOF
12224 /* confdefs.h.  */
12225 _ACEOF
12226 cat confdefs.h >>conftest.$ac_ext
12227 cat >>conftest.$ac_ext <<_ACEOF
12228 /* end confdefs.h.  */
12229 #include <$ac_header>
12230 _ACEOF
12231 if { (ac_try="$ac_cpp conftest.$ac_ext"
12232 case "(($ac_try" in
12233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12234   *) ac_try_echo=$ac_try;;
12235 esac
12236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12237   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12238   ac_status=$?
12239   grep -v '^ *+' conftest.er1 >conftest.err
12240   rm -f conftest.er1
12241   cat conftest.err >&5
12242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12243   (exit $ac_status); } >/dev/null; then
12244   if test -s conftest.err; then
12245     ac_cpp_err=$ac_c_preproc_warn_flag
12246     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12247   else
12248     ac_cpp_err=
12249   fi
12250 else
12251   ac_cpp_err=yes
12252 fi
12253 if test -z "$ac_cpp_err"; then
12254   ac_header_preproc=yes
12255 else
12256   echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12258
12259   ac_header_preproc=no
12260 fi
12261
12262 rm -f conftest.err conftest.$ac_ext
12263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12264 echo "${ECHO_T}$ac_header_preproc" >&6; }
12265
12266 # So?  What about this header?
12267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12268   yes:no: )
12269     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12271     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12273     ac_header_preproc=yes
12274     ;;
12275   no:yes:* )
12276     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12278     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12279 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12280     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12282     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12283 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12284     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12286     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12288     ( cat <<\_ASBOX
12289 ## ------------------------------------ ##
12290 ## Report this to http://llvm.org/bugs/ ##
12291 ## ------------------------------------ ##
12292 _ASBOX
12293      ) | sed "s/^/$as_me: WARNING:     /" >&2
12294     ;;
12295 esac
12296 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12299   echo $ECHO_N "(cached) $ECHO_C" >&6
12300 else
12301   eval "$as_ac_Header=\$ac_header_preproc"
12302 fi
12303 ac_res=`eval echo '${'$as_ac_Header'}'`
12304                { echo "$as_me:$LINENO: result: $ac_res" >&5
12305 echo "${ECHO_T}$ac_res" >&6; }
12306
12307 fi
12308 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12309   cat >>confdefs.h <<_ACEOF
12310 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12311 _ACEOF
12312
12313 fi
12314
12315 done
12316
12317
12318 for ac_header in utime.h
12319 do
12320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12322   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12325   echo $ECHO_N "(cached) $ECHO_C" >&6
12326 fi
12327 ac_res=`eval echo '${'$as_ac_Header'}'`
12328                { echo "$as_me:$LINENO: result: $ac_res" >&5
12329 echo "${ECHO_T}$ac_res" >&6; }
12330 else
12331   # Is the header compilable?
12332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12334 cat >conftest.$ac_ext <<_ACEOF
12335 /* confdefs.h.  */
12336 _ACEOF
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h.  */
12340 $ac_includes_default
12341 #include <$ac_header>
12342 _ACEOF
12343 rm -f conftest.$ac_objext
12344 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12351   ac_status=$?
12352   grep -v '^ *+' conftest.er1 >conftest.err
12353   rm -f conftest.er1
12354   cat conftest.err >&5
12355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356   (exit $ac_status); } &&
12357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12358   { (case "(($ac_try" in
12359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360   *) ac_try_echo=$ac_try;;
12361 esac
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363   (eval "$ac_try") 2>&5
12364   ac_status=$?
12365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366   (exit $ac_status); }; } &&
12367          { ac_try='test -s conftest.$ac_objext'
12368   { (case "(($ac_try" in
12369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370   *) ac_try_echo=$ac_try;;
12371 esac
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373   (eval "$ac_try") 2>&5
12374   ac_status=$?
12375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376   (exit $ac_status); }; }; then
12377   ac_header_compiler=yes
12378 else
12379   echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12381
12382         ac_header_compiler=no
12383 fi
12384
12385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12387 echo "${ECHO_T}$ac_header_compiler" >&6; }
12388
12389 # Is the header present?
12390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h.  */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h.  */
12398 #include <$ac_header>
12399 _ACEOF
12400 if { (ac_try="$ac_cpp conftest.$ac_ext"
12401 case "(($ac_try" in
12402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403   *) ac_try_echo=$ac_try;;
12404 esac
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12407   ac_status=$?
12408   grep -v '^ *+' conftest.er1 >conftest.err
12409   rm -f conftest.er1
12410   cat conftest.err >&5
12411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412   (exit $ac_status); } >/dev/null; then
12413   if test -s conftest.err; then
12414     ac_cpp_err=$ac_c_preproc_warn_flag
12415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12416   else
12417     ac_cpp_err=
12418   fi
12419 else
12420   ac_cpp_err=yes
12421 fi
12422 if test -z "$ac_cpp_err"; then
12423   ac_header_preproc=yes
12424 else
12425   echo "$as_me: failed program was:" >&5
12426 sed 's/^/| /' conftest.$ac_ext >&5
12427
12428   ac_header_preproc=no
12429 fi
12430
12431 rm -f conftest.err conftest.$ac_ext
12432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12433 echo "${ECHO_T}$ac_header_preproc" >&6; }
12434
12435 # So?  What about this header?
12436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12437   yes:no: )
12438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12442     ac_header_preproc=yes
12443     ;;
12444   no:yes:* )
12445     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12447     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12448 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12449     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12451     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12452 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12455     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12457     ( cat <<\_ASBOX
12458 ## ------------------------------------ ##
12459 ## Report this to http://llvm.org/bugs/ ##
12460 ## ------------------------------------ ##
12461 _ASBOX
12462      ) | sed "s/^/$as_me: WARNING:     /" >&2
12463     ;;
12464 esac
12465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12468   echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470   eval "$as_ac_Header=\$ac_header_preproc"
12471 fi
12472 ac_res=`eval echo '${'$as_ac_Header'}'`
12473                { echo "$as_me:$LINENO: result: $ac_res" >&5
12474 echo "${ECHO_T}$ac_res" >&6; }
12475
12476 fi
12477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12478   cat >>confdefs.h <<_ACEOF
12479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12480 _ACEOF
12481
12482 fi
12483
12484 done
12485
12486
12487
12488
12489
12490
12491 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
12492 do
12493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12495   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12498   echo $ECHO_N "(cached) $ECHO_C" >&6
12499 fi
12500 ac_res=`eval echo '${'$as_ac_Header'}'`
12501                { echo "$as_me:$LINENO: result: $ac_res" >&5
12502 echo "${ECHO_T}$ac_res" >&6; }
12503 else
12504   # Is the header compilable?
12505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12507 cat >conftest.$ac_ext <<_ACEOF
12508 /* confdefs.h.  */
12509 _ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h.  */
12513 $ac_includes_default
12514 #include <$ac_header>
12515 _ACEOF
12516 rm -f conftest.$ac_objext
12517 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } &&
12530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12531   { (case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_try") 2>&5
12537   ac_status=$?
12538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539   (exit $ac_status); }; } &&
12540          { ac_try='test -s conftest.$ac_objext'
12541   { (case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546   (eval "$ac_try") 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; }; then
12550   ac_header_compiler=yes
12551 else
12552   echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555         ac_header_compiler=no
12556 fi
12557
12558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12560 echo "${ECHO_T}$ac_header_compiler" >&6; }
12561
12562 # Is the header present?
12563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12565 cat >conftest.$ac_ext <<_ACEOF
12566 /* confdefs.h.  */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h.  */
12571 #include <$ac_header>
12572 _ACEOF
12573 if { (ac_try="$ac_cpp conftest.$ac_ext"
12574 case "(($ac_try" in
12575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576   *) ac_try_echo=$ac_try;;
12577 esac
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12580   ac_status=$?
12581   grep -v '^ *+' conftest.er1 >conftest.err
12582   rm -f conftest.er1
12583   cat conftest.err >&5
12584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585   (exit $ac_status); } >/dev/null; then
12586   if test -s conftest.err; then
12587     ac_cpp_err=$ac_c_preproc_warn_flag
12588     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12589   else
12590     ac_cpp_err=
12591   fi
12592 else
12593   ac_cpp_err=yes
12594 fi
12595 if test -z "$ac_cpp_err"; then
12596   ac_header_preproc=yes
12597 else
12598   echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12600
12601   ac_header_preproc=no
12602 fi
12603
12604 rm -f conftest.err conftest.$ac_ext
12605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12606 echo "${ECHO_T}$ac_header_preproc" >&6; }
12607
12608 # So?  What about this header?
12609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12610   yes:no: )
12611     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12613     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12615     ac_header_preproc=yes
12616     ;;
12617   no:yes:* )
12618     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12620     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12621 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12622     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12624     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12625 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12628     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12630     ( cat <<\_ASBOX
12631 ## ------------------------------------ ##
12632 ## Report this to http://llvm.org/bugs/ ##
12633 ## ------------------------------------ ##
12634 _ASBOX
12635      ) | sed "s/^/$as_me: WARNING:     /" >&2
12636     ;;
12637 esac
12638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12641   echo $ECHO_N "(cached) $ECHO_C" >&6
12642 else
12643   eval "$as_ac_Header=\$ac_header_preproc"
12644 fi
12645 ac_res=`eval echo '${'$as_ac_Header'}'`
12646                { echo "$as_me:$LINENO: result: $ac_res" >&5
12647 echo "${ECHO_T}$ac_res" >&6; }
12648
12649 fi
12650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12651   cat >>confdefs.h <<_ACEOF
12652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12653 _ACEOF
12654
12655 fi
12656
12657 done
12658
12659
12660
12661
12662 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12663 do
12664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12666   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12669   echo $ECHO_N "(cached) $ECHO_C" >&6
12670 fi
12671 ac_res=`eval echo '${'$as_ac_Header'}'`
12672                { echo "$as_me:$LINENO: result: $ac_res" >&5
12673 echo "${ECHO_T}$ac_res" >&6; }
12674 else
12675   # Is the header compilable?
12676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12678 cat >conftest.$ac_ext <<_ACEOF
12679 /* confdefs.h.  */
12680 _ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h.  */
12684 $ac_includes_default
12685 #include <$ac_header>
12686 _ACEOF
12687 rm -f conftest.$ac_objext
12688 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12695   ac_status=$?
12696   grep -v '^ *+' conftest.er1 >conftest.err
12697   rm -f conftest.er1
12698   cat conftest.err >&5
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); } &&
12701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12702   { (case "(($ac_try" in
12703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704   *) ac_try_echo=$ac_try;;
12705 esac
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707   (eval "$ac_try") 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); }; } &&
12711          { ac_try='test -s conftest.$ac_objext'
12712   { (case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717   (eval "$ac_try") 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); }; }; then
12721   ac_header_compiler=yes
12722 else
12723   echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12725
12726         ac_header_compiler=no
12727 fi
12728
12729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12731 echo "${ECHO_T}$ac_header_compiler" >&6; }
12732
12733 # Is the header present?
12734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12736 cat >conftest.$ac_ext <<_ACEOF
12737 /* confdefs.h.  */
12738 _ACEOF
12739 cat confdefs.h >>conftest.$ac_ext
12740 cat >>conftest.$ac_ext <<_ACEOF
12741 /* end confdefs.h.  */
12742 #include <$ac_header>
12743 _ACEOF
12744 if { (ac_try="$ac_cpp conftest.$ac_ext"
12745 case "(($ac_try" in
12746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12747   *) ac_try_echo=$ac_try;;
12748 esac
12749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12751   ac_status=$?
12752   grep -v '^ *+' conftest.er1 >conftest.err
12753   rm -f conftest.er1
12754   cat conftest.err >&5
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); } >/dev/null; then
12757   if test -s conftest.err; then
12758     ac_cpp_err=$ac_c_preproc_warn_flag
12759     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12760   else
12761     ac_cpp_err=
12762   fi
12763 else
12764   ac_cpp_err=yes
12765 fi
12766 if test -z "$ac_cpp_err"; then
12767   ac_header_preproc=yes
12768 else
12769   echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12771
12772   ac_header_preproc=no
12773 fi
12774
12775 rm -f conftest.err conftest.$ac_ext
12776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12777 echo "${ECHO_T}$ac_header_preproc" >&6; }
12778
12779 # So?  What about this header?
12780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12781   yes:no: )
12782     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12786     ac_header_preproc=yes
12787     ;;
12788   no:yes:* )
12789     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12791     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12792 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12793     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12795     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12796 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12799     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12801     ( cat <<\_ASBOX
12802 ## ------------------------------------ ##
12803 ## Report this to http://llvm.org/bugs/ ##
12804 ## ------------------------------------ ##
12805 _ASBOX
12806      ) | sed "s/^/$as_me: WARNING:     /" >&2
12807     ;;
12808 esac
12809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12812   echo $ECHO_N "(cached) $ECHO_C" >&6
12813 else
12814   eval "$as_ac_Header=\$ac_header_preproc"
12815 fi
12816 ac_res=`eval echo '${'$as_ac_Header'}'`
12817                { echo "$as_me:$LINENO: result: $ac_res" >&5
12818 echo "${ECHO_T}$ac_res" >&6; }
12819
12820 fi
12821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12822   cat >>confdefs.h <<_ACEOF
12823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12824 _ACEOF
12825
12826 fi
12827
12828 done
12829
12830
12831 for ac_header in valgrind/valgrind.h
12832 do
12833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12835   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12838   echo $ECHO_N "(cached) $ECHO_C" >&6
12839 fi
12840 ac_res=`eval echo '${'$as_ac_Header'}'`
12841                { echo "$as_me:$LINENO: result: $ac_res" >&5
12842 echo "${ECHO_T}$ac_res" >&6; }
12843 else
12844   # Is the header compilable?
12845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12847 cat >conftest.$ac_ext <<_ACEOF
12848 /* confdefs.h.  */
12849 _ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h.  */
12853 $ac_includes_default
12854 #include <$ac_header>
12855 _ACEOF
12856 rm -f conftest.$ac_objext
12857 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12864   ac_status=$?
12865   grep -v '^ *+' conftest.er1 >conftest.err
12866   rm -f conftest.er1
12867   cat conftest.err >&5
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); } &&
12870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12871   { (case "(($ac_try" in
12872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12873   *) ac_try_echo=$ac_try;;
12874 esac
12875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12876   (eval "$ac_try") 2>&5
12877   ac_status=$?
12878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879   (exit $ac_status); }; } &&
12880          { ac_try='test -s conftest.$ac_objext'
12881   { (case "(($ac_try" in
12882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883   *) ac_try_echo=$ac_try;;
12884 esac
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886   (eval "$ac_try") 2>&5
12887   ac_status=$?
12888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889   (exit $ac_status); }; }; then
12890   ac_header_compiler=yes
12891 else
12892   echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12894
12895         ac_header_compiler=no
12896 fi
12897
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12900 echo "${ECHO_T}$ac_header_compiler" >&6; }
12901
12902 # Is the header present?
12903 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12904 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12905 cat >conftest.$ac_ext <<_ACEOF
12906 /* confdefs.h.  */
12907 _ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h.  */
12911 #include <$ac_header>
12912 _ACEOF
12913 if { (ac_try="$ac_cpp conftest.$ac_ext"
12914 case "(($ac_try" in
12915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12916   *) ac_try_echo=$ac_try;;
12917 esac
12918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12920   ac_status=$?
12921   grep -v '^ *+' conftest.er1 >conftest.err
12922   rm -f conftest.er1
12923   cat conftest.err >&5
12924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925   (exit $ac_status); } >/dev/null; then
12926   if test -s conftest.err; then
12927     ac_cpp_err=$ac_c_preproc_warn_flag
12928     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12929   else
12930     ac_cpp_err=
12931   fi
12932 else
12933   ac_cpp_err=yes
12934 fi
12935 if test -z "$ac_cpp_err"; then
12936   ac_header_preproc=yes
12937 else
12938   echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12940
12941   ac_header_preproc=no
12942 fi
12943
12944 rm -f conftest.err conftest.$ac_ext
12945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12946 echo "${ECHO_T}$ac_header_preproc" >&6; }
12947
12948 # So?  What about this header?
12949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12950   yes:no: )
12951     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12955     ac_header_preproc=yes
12956     ;;
12957   no:yes:* )
12958     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12960     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12961 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12962     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12964     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12965 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12968     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12970     ( cat <<\_ASBOX
12971 ## ------------------------------------ ##
12972 ## Report this to http://llvm.org/bugs/ ##
12973 ## ------------------------------------ ##
12974 _ASBOX
12975      ) | sed "s/^/$as_me: WARNING:     /" >&2
12976     ;;
12977 esac
12978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12981   echo $ECHO_N "(cached) $ECHO_C" >&6
12982 else
12983   eval "$as_ac_Header=\$ac_header_preproc"
12984 fi
12985 ac_res=`eval echo '${'$as_ac_Header'}'`
12986                { echo "$as_me:$LINENO: result: $ac_res" >&5
12987 echo "${ECHO_T}$ac_res" >&6; }
12988
12989 fi
12990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12991   cat >>confdefs.h <<_ACEOF
12992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12993 _ACEOF
12994
12995 fi
12996
12997 done
12998
12999
13000 for ac_header in fenv.h
13001 do
13002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13004   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13007   echo $ECHO_N "(cached) $ECHO_C" >&6
13008 fi
13009 ac_res=`eval echo '${'$as_ac_Header'}'`
13010                { echo "$as_me:$LINENO: result: $ac_res" >&5
13011 echo "${ECHO_T}$ac_res" >&6; }
13012 else
13013   # Is the header compilable?
13014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13016 cat >conftest.$ac_ext <<_ACEOF
13017 /* confdefs.h.  */
13018 _ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h.  */
13022 $ac_includes_default
13023 #include <$ac_header>
13024 _ACEOF
13025 rm -f conftest.$ac_objext
13026 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13033   ac_status=$?
13034   grep -v '^ *+' conftest.er1 >conftest.err
13035   rm -f conftest.er1
13036   cat conftest.err >&5
13037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038   (exit $ac_status); } &&
13039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13040   { (case "(($ac_try" in
13041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13042   *) ac_try_echo=$ac_try;;
13043 esac
13044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13045   (eval "$ac_try") 2>&5
13046   ac_status=$?
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); }; } &&
13049          { ac_try='test -s conftest.$ac_objext'
13050   { (case "(($ac_try" in
13051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052   *) ac_try_echo=$ac_try;;
13053 esac
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055   (eval "$ac_try") 2>&5
13056   ac_status=$?
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); }; }; then
13059   ac_header_compiler=yes
13060 else
13061   echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.$ac_ext >&5
13063
13064         ac_header_compiler=no
13065 fi
13066
13067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13069 echo "${ECHO_T}$ac_header_compiler" >&6; }
13070
13071 # Is the header present?
13072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13074 cat >conftest.$ac_ext <<_ACEOF
13075 /* confdefs.h.  */
13076 _ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h.  */
13080 #include <$ac_header>
13081 _ACEOF
13082 if { (ac_try="$ac_cpp conftest.$ac_ext"
13083 case "(($ac_try" in
13084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13085   *) ac_try_echo=$ac_try;;
13086 esac
13087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13089   ac_status=$?
13090   grep -v '^ *+' conftest.er1 >conftest.err
13091   rm -f conftest.er1
13092   cat conftest.err >&5
13093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094   (exit $ac_status); } >/dev/null; then
13095   if test -s conftest.err; then
13096     ac_cpp_err=$ac_c_preproc_warn_flag
13097     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13098   else
13099     ac_cpp_err=
13100   fi
13101 else
13102   ac_cpp_err=yes
13103 fi
13104 if test -z "$ac_cpp_err"; then
13105   ac_header_preproc=yes
13106 else
13107   echo "$as_me: failed program was:" >&5
13108 sed 's/^/| /' conftest.$ac_ext >&5
13109
13110   ac_header_preproc=no
13111 fi
13112
13113 rm -f conftest.err conftest.$ac_ext
13114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13115 echo "${ECHO_T}$ac_header_preproc" >&6; }
13116
13117 # So?  What about this header?
13118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13119   yes:no: )
13120     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13122     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13124     ac_header_preproc=yes
13125     ;;
13126   no:yes:* )
13127     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13129     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13130 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13131     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13133     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13134 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13137     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13139     ( cat <<\_ASBOX
13140 ## ------------------------------------ ##
13141 ## Report this to http://llvm.org/bugs/ ##
13142 ## ------------------------------------ ##
13143 _ASBOX
13144      ) | sed "s/^/$as_me: WARNING:     /" >&2
13145     ;;
13146 esac
13147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13150   echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152   eval "$as_ac_Header=\$ac_header_preproc"
13153 fi
13154 ac_res=`eval echo '${'$as_ac_Header'}'`
13155                { echo "$as_me:$LINENO: result: $ac_res" >&5
13156 echo "${ECHO_T}$ac_res" >&6; }
13157
13158 fi
13159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13160   cat >>confdefs.h <<_ACEOF
13161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13162 _ACEOF
13163
13164 fi
13165
13166 done
13167
13168 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
13169 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
13170 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
13171   echo $ECHO_N "(cached) $ECHO_C" >&6
13172 else
13173   cat >conftest.$ac_ext <<_ACEOF
13174 /* confdefs.h.  */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h.  */
13179 #include <fenv.h>
13180
13181 int
13182 main ()
13183 {
13184 #ifndef FE_ALL_EXCEPT
13185   char *p = (char *) FE_ALL_EXCEPT;
13186   return !p;
13187 #endif
13188
13189   ;
13190   return 0;
13191 }
13192 _ACEOF
13193 rm -f conftest.$ac_objext
13194 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13201   ac_status=$?
13202   grep -v '^ *+' conftest.er1 >conftest.err
13203   rm -f conftest.er1
13204   cat conftest.err >&5
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); } &&
13207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13208   { (case "(($ac_try" in
13209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210   *) ac_try_echo=$ac_try;;
13211 esac
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213   (eval "$ac_try") 2>&5
13214   ac_status=$?
13215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216   (exit $ac_status); }; } &&
13217          { ac_try='test -s conftest.$ac_objext'
13218   { (case "(($ac_try" in
13219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220   *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223   (eval "$ac_try") 2>&5
13224   ac_status=$?
13225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226   (exit $ac_status); }; }; then
13227   ac_cv_have_decl_FE_ALL_EXCEPT=yes
13228 else
13229   echo "$as_me: failed program was:" >&5
13230 sed 's/^/| /' conftest.$ac_ext >&5
13231
13232         ac_cv_have_decl_FE_ALL_EXCEPT=no
13233 fi
13234
13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 fi
13237 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
13238 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
13239 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
13240
13241 cat >>confdefs.h <<_ACEOF
13242 #define HAVE_DECL_FE_ALL_EXCEPT 1
13243 _ACEOF
13244
13245
13246 else
13247   cat >>confdefs.h <<_ACEOF
13248 #define HAVE_DECL_FE_ALL_EXCEPT 0
13249 _ACEOF
13250
13251
13252 fi
13253 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
13254 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
13255 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
13256   echo $ECHO_N "(cached) $ECHO_C" >&6
13257 else
13258   cat >conftest.$ac_ext <<_ACEOF
13259 /* confdefs.h.  */
13260 _ACEOF
13261 cat confdefs.h >>conftest.$ac_ext
13262 cat >>conftest.$ac_ext <<_ACEOF
13263 /* end confdefs.h.  */
13264 #include <fenv.h>
13265
13266 int
13267 main ()
13268 {
13269 #ifndef FE_INEXACT
13270   char *p = (char *) FE_INEXACT;
13271   return !p;
13272 #endif
13273
13274   ;
13275   return 0;
13276 }
13277 _ACEOF
13278 rm -f conftest.$ac_objext
13279 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13286   ac_status=$?
13287   grep -v '^ *+' conftest.er1 >conftest.err
13288   rm -f conftest.er1
13289   cat conftest.err >&5
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } &&
13292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13293   { (case "(($ac_try" in
13294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295   *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298   (eval "$ac_try") 2>&5
13299   ac_status=$?
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); }; } &&
13302          { ac_try='test -s conftest.$ac_objext'
13303   { (case "(($ac_try" in
13304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305   *) ac_try_echo=$ac_try;;
13306 esac
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308   (eval "$ac_try") 2>&5
13309   ac_status=$?
13310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311   (exit $ac_status); }; }; then
13312   ac_cv_have_decl_FE_INEXACT=yes
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317         ac_cv_have_decl_FE_INEXACT=no
13318 fi
13319
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321 fi
13322 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
13323 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
13324 if test $ac_cv_have_decl_FE_INEXACT = yes; then
13325
13326 cat >>confdefs.h <<_ACEOF
13327 #define HAVE_DECL_FE_INEXACT 1
13328 _ACEOF
13329
13330
13331 else
13332   cat >>confdefs.h <<_ACEOF
13333 #define HAVE_DECL_FE_INEXACT 0
13334 _ACEOF
13335
13336
13337 fi
13338
13339
13340 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
13341
13342 for ac_header in pthread.h
13343 do
13344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13346   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13349   echo $ECHO_N "(cached) $ECHO_C" >&6
13350 fi
13351 ac_res=`eval echo '${'$as_ac_Header'}'`
13352                { echo "$as_me:$LINENO: result: $ac_res" >&5
13353 echo "${ECHO_T}$ac_res" >&6; }
13354 else
13355   # Is the header compilable?
13356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13358 cat >conftest.$ac_ext <<_ACEOF
13359 /* confdefs.h.  */
13360 _ACEOF
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h.  */
13364 $ac_includes_default
13365 #include <$ac_header>
13366 _ACEOF
13367 rm -f conftest.$ac_objext
13368 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13375   ac_status=$?
13376   grep -v '^ *+' conftest.er1 >conftest.err
13377   rm -f conftest.er1
13378   cat conftest.err >&5
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); } &&
13381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13382   { (case "(($ac_try" in
13383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384   *) ac_try_echo=$ac_try;;
13385 esac
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387   (eval "$ac_try") 2>&5
13388   ac_status=$?
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); }; } &&
13391          { ac_try='test -s conftest.$ac_objext'
13392   { (case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_try") 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; }; then
13401   ac_header_compiler=yes
13402 else
13403   echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13405
13406         ac_header_compiler=no
13407 fi
13408
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13411 echo "${ECHO_T}$ac_header_compiler" >&6; }
13412
13413 # Is the header present?
13414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13416 cat >conftest.$ac_ext <<_ACEOF
13417 /* confdefs.h.  */
13418 _ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h.  */
13422 #include <$ac_header>
13423 _ACEOF
13424 if { (ac_try="$ac_cpp conftest.$ac_ext"
13425 case "(($ac_try" in
13426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427   *) ac_try_echo=$ac_try;;
13428 esac
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13431   ac_status=$?
13432   grep -v '^ *+' conftest.er1 >conftest.err
13433   rm -f conftest.er1
13434   cat conftest.err >&5
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); } >/dev/null; then
13437   if test -s conftest.err; then
13438     ac_cpp_err=$ac_c_preproc_warn_flag
13439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13440   else
13441     ac_cpp_err=
13442   fi
13443 else
13444   ac_cpp_err=yes
13445 fi
13446 if test -z "$ac_cpp_err"; then
13447   ac_header_preproc=yes
13448 else
13449   echo "$as_me: failed program was:" >&5
13450 sed 's/^/| /' conftest.$ac_ext >&5
13451
13452   ac_header_preproc=no
13453 fi
13454
13455 rm -f conftest.err conftest.$ac_ext
13456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13457 echo "${ECHO_T}$ac_header_preproc" >&6; }
13458
13459 # So?  What about this header?
13460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13461   yes:no: )
13462     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13466     ac_header_preproc=yes
13467     ;;
13468   no:yes:* )
13469     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13471     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13472 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13473     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13475     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13476 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13477     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13479     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13481     ( cat <<\_ASBOX
13482 ## ------------------------------------ ##
13483 ## Report this to http://llvm.org/bugs/ ##
13484 ## ------------------------------------ ##
13485 _ASBOX
13486      ) | sed "s/^/$as_me: WARNING:     /" >&2
13487     ;;
13488 esac
13489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13492   echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494   eval "$as_ac_Header=\$ac_header_preproc"
13495 fi
13496 ac_res=`eval echo '${'$as_ac_Header'}'`
13497                { echo "$as_me:$LINENO: result: $ac_res" >&5
13498 echo "${ECHO_T}$ac_res" >&6; }
13499
13500 fi
13501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13502   cat >>confdefs.h <<_ACEOF
13503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13504 _ACEOF
13505  HAVE_PTHREAD=1
13506
13507 else
13508   HAVE_PTHREAD=0
13509
13510 fi
13511
13512 done
13513
13514 else
13515   HAVE_PTHREAD=0
13516
13517 fi
13518 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
13519
13520 for ac_header in zlib.h
13521 do
13522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13524   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13527   echo $ECHO_N "(cached) $ECHO_C" >&6
13528 fi
13529 ac_res=`eval echo '${'$as_ac_Header'}'`
13530                { echo "$as_me:$LINENO: result: $ac_res" >&5
13531 echo "${ECHO_T}$ac_res" >&6; }
13532 else
13533   # Is the header compilable?
13534 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13535 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13536 cat >conftest.$ac_ext <<_ACEOF
13537 /* confdefs.h.  */
13538 _ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h.  */
13542 $ac_includes_default
13543 #include <$ac_header>
13544 _ACEOF
13545 rm -f conftest.$ac_objext
13546 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13553   ac_status=$?
13554   grep -v '^ *+' conftest.er1 >conftest.err
13555   rm -f conftest.er1
13556   cat conftest.err >&5
13557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558   (exit $ac_status); } &&
13559          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13560   { (case "(($ac_try" in
13561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562   *) ac_try_echo=$ac_try;;
13563 esac
13564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13565   (eval "$ac_try") 2>&5
13566   ac_status=$?
13567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568   (exit $ac_status); }; } &&
13569          { ac_try='test -s conftest.$ac_objext'
13570   { (case "(($ac_try" in
13571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572   *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575   (eval "$ac_try") 2>&5
13576   ac_status=$?
13577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578   (exit $ac_status); }; }; then
13579   ac_header_compiler=yes
13580 else
13581   echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13583
13584         ac_header_compiler=no
13585 fi
13586
13587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13589 echo "${ECHO_T}$ac_header_compiler" >&6; }
13590
13591 # Is the header present?
13592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13594 cat >conftest.$ac_ext <<_ACEOF
13595 /* confdefs.h.  */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h.  */
13600 #include <$ac_header>
13601 _ACEOF
13602 if { (ac_try="$ac_cpp conftest.$ac_ext"
13603 case "(($ac_try" in
13604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13605   *) ac_try_echo=$ac_try;;
13606 esac
13607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13608   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13609   ac_status=$?
13610   grep -v '^ *+' conftest.er1 >conftest.err
13611   rm -f conftest.er1
13612   cat conftest.err >&5
13613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614   (exit $ac_status); } >/dev/null; then
13615   if test -s conftest.err; then
13616     ac_cpp_err=$ac_c_preproc_warn_flag
13617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13618   else
13619     ac_cpp_err=
13620   fi
13621 else
13622   ac_cpp_err=yes
13623 fi
13624 if test -z "$ac_cpp_err"; then
13625   ac_header_preproc=yes
13626 else
13627   echo "$as_me: failed program was:" >&5
13628 sed 's/^/| /' conftest.$ac_ext >&5
13629
13630   ac_header_preproc=no
13631 fi
13632
13633 rm -f conftest.err conftest.$ac_ext
13634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13635 echo "${ECHO_T}$ac_header_preproc" >&6; }
13636
13637 # So?  What about this header?
13638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13639   yes:no: )
13640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13644     ac_header_preproc=yes
13645     ;;
13646   no:yes:* )
13647     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13649     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13650 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13651     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13653     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13654 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13657     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13659     ( cat <<\_ASBOX
13660 ## ------------------------------------ ##
13661 ## Report this to http://llvm.org/bugs/ ##
13662 ## ------------------------------------ ##
13663 _ASBOX
13664      ) | sed "s/^/$as_me: WARNING:     /" >&2
13665     ;;
13666 esac
13667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13670   echo $ECHO_N "(cached) $ECHO_C" >&6
13671 else
13672   eval "$as_ac_Header=\$ac_header_preproc"
13673 fi
13674 ac_res=`eval echo '${'$as_ac_Header'}'`
13675                { echo "$as_me:$LINENO: result: $ac_res" >&5
13676 echo "${ECHO_T}$ac_res" >&6; }
13677
13678 fi
13679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13680   cat >>confdefs.h <<_ACEOF
13681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13682 _ACEOF
13683  HAVE_LIBZ=1
13684
13685 else
13686   HAVE_LIBZ=0
13687
13688 fi
13689
13690 done
13691
13692 else
13693   HAVE_LIBZ=0
13694
13695 fi
13696
13697 if test "$llvm_cv_enable_libffi" = "yes" ; then
13698
13699
13700 for ac_header in ffi.h ffi/ffi.h
13701 do
13702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13704   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13707   echo $ECHO_N "(cached) $ECHO_C" >&6
13708 fi
13709 ac_res=`eval echo '${'$as_ac_Header'}'`
13710                { echo "$as_me:$LINENO: result: $ac_res" >&5
13711 echo "${ECHO_T}$ac_res" >&6; }
13712 else
13713   # Is the header compilable?
13714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13716 cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h.  */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h.  */
13722 $ac_includes_default
13723 #include <$ac_header>
13724 _ACEOF
13725 rm -f conftest.$ac_objext
13726 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13733   ac_status=$?
13734   grep -v '^ *+' conftest.er1 >conftest.err
13735   rm -f conftest.er1
13736   cat conftest.err >&5
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); } &&
13739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13740   { (case "(($ac_try" in
13741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13742   *) ac_try_echo=$ac_try;;
13743 esac
13744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13745   (eval "$ac_try") 2>&5
13746   ac_status=$?
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); }; } &&
13749          { ac_try='test -s conftest.$ac_objext'
13750   { (case "(($ac_try" in
13751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752   *) ac_try_echo=$ac_try;;
13753 esac
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755   (eval "$ac_try") 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; }; then
13759   ac_header_compiler=yes
13760 else
13761   echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13763
13764         ac_header_compiler=no
13765 fi
13766
13767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13769 echo "${ECHO_T}$ac_header_compiler" >&6; }
13770
13771 # Is the header present?
13772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13774 cat >conftest.$ac_ext <<_ACEOF
13775 /* confdefs.h.  */
13776 _ACEOF
13777 cat confdefs.h >>conftest.$ac_ext
13778 cat >>conftest.$ac_ext <<_ACEOF
13779 /* end confdefs.h.  */
13780 #include <$ac_header>
13781 _ACEOF
13782 if { (ac_try="$ac_cpp conftest.$ac_ext"
13783 case "(($ac_try" in
13784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785   *) ac_try_echo=$ac_try;;
13786 esac
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13789   ac_status=$?
13790   grep -v '^ *+' conftest.er1 >conftest.err
13791   rm -f conftest.er1
13792   cat conftest.err >&5
13793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794   (exit $ac_status); } >/dev/null; then
13795   if test -s conftest.err; then
13796     ac_cpp_err=$ac_c_preproc_warn_flag
13797     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13798   else
13799     ac_cpp_err=
13800   fi
13801 else
13802   ac_cpp_err=yes
13803 fi
13804 if test -z "$ac_cpp_err"; then
13805   ac_header_preproc=yes
13806 else
13807   echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13809
13810   ac_header_preproc=no
13811 fi
13812
13813 rm -f conftest.err conftest.$ac_ext
13814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13815 echo "${ECHO_T}$ac_header_preproc" >&6; }
13816
13817 # So?  What about this header?
13818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13819   yes:no: )
13820     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13822     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13824     ac_header_preproc=yes
13825     ;;
13826   no:yes:* )
13827     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13829     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13830 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13831     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13833     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13834 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13835     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13837     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13839     ( cat <<\_ASBOX
13840 ## ------------------------------------ ##
13841 ## Report this to http://llvm.org/bugs/ ##
13842 ## ------------------------------------ ##
13843 _ASBOX
13844      ) | sed "s/^/$as_me: WARNING:     /" >&2
13845     ;;
13846 esac
13847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13850   echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852   eval "$as_ac_Header=\$ac_header_preproc"
13853 fi
13854 ac_res=`eval echo '${'$as_ac_Header'}'`
13855                { echo "$as_me:$LINENO: result: $ac_res" >&5
13856 echo "${ECHO_T}$ac_res" >&6; }
13857
13858 fi
13859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13860   cat >>confdefs.h <<_ACEOF
13861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13862 _ACEOF
13863
13864 fi
13865
13866 done
13867
13868 fi
13869
13870
13871 for ac_header in CrashReporterClient.h
13872 do
13873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13875   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13878   echo $ECHO_N "(cached) $ECHO_C" >&6
13879 fi
13880 ac_res=`eval echo '${'$as_ac_Header'}'`
13881                { echo "$as_me:$LINENO: result: $ac_res" >&5
13882 echo "${ECHO_T}$ac_res" >&6; }
13883 else
13884   # Is the header compilable?
13885 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13887 cat >conftest.$ac_ext <<_ACEOF
13888 /* confdefs.h.  */
13889 _ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h.  */
13893 $ac_includes_default
13894 #include <$ac_header>
13895 _ACEOF
13896 rm -f conftest.$ac_objext
13897 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13904   ac_status=$?
13905   grep -v '^ *+' conftest.er1 >conftest.err
13906   rm -f conftest.er1
13907   cat conftest.err >&5
13908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909   (exit $ac_status); } &&
13910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13911   { (case "(($ac_try" in
13912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13913   *) ac_try_echo=$ac_try;;
13914 esac
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916   (eval "$ac_try") 2>&5
13917   ac_status=$?
13918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919   (exit $ac_status); }; } &&
13920          { ac_try='test -s conftest.$ac_objext'
13921   { (case "(($ac_try" in
13922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923   *) ac_try_echo=$ac_try;;
13924 esac
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926   (eval "$ac_try") 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; }; then
13930   ac_header_compiler=yes
13931 else
13932   echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13934
13935         ac_header_compiler=no
13936 fi
13937
13938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13940 echo "${ECHO_T}$ac_header_compiler" >&6; }
13941
13942 # Is the header present?
13943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13945 cat >conftest.$ac_ext <<_ACEOF
13946 /* confdefs.h.  */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h.  */
13951 #include <$ac_header>
13952 _ACEOF
13953 if { (ac_try="$ac_cpp conftest.$ac_ext"
13954 case "(($ac_try" in
13955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13956   *) ac_try_echo=$ac_try;;
13957 esac
13958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13960   ac_status=$?
13961   grep -v '^ *+' conftest.er1 >conftest.err
13962   rm -f conftest.er1
13963   cat conftest.err >&5
13964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965   (exit $ac_status); } >/dev/null; then
13966   if test -s conftest.err; then
13967     ac_cpp_err=$ac_c_preproc_warn_flag
13968     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13969   else
13970     ac_cpp_err=
13971   fi
13972 else
13973   ac_cpp_err=yes
13974 fi
13975 if test -z "$ac_cpp_err"; then
13976   ac_header_preproc=yes
13977 else
13978   echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.$ac_ext >&5
13980
13981   ac_header_preproc=no
13982 fi
13983
13984 rm -f conftest.err conftest.$ac_ext
13985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13986 echo "${ECHO_T}$ac_header_preproc" >&6; }
13987
13988 # So?  What about this header?
13989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13990   yes:no: )
13991     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13995     ac_header_preproc=yes
13996     ;;
13997   no:yes:* )
13998     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14000     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14001 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14002     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14004     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14005 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14008     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14010     ( cat <<\_ASBOX
14011 ## ------------------------------------ ##
14012 ## Report this to http://llvm.org/bugs/ ##
14013 ## ------------------------------------ ##
14014 _ASBOX
14015      ) | sed "s/^/$as_me: WARNING:     /" >&2
14016     ;;
14017 esac
14018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14021   echo $ECHO_N "(cached) $ECHO_C" >&6
14022 else
14023   eval "$as_ac_Header=\$ac_header_preproc"
14024 fi
14025 ac_res=`eval echo '${'$as_ac_Header'}'`
14026                { echo "$as_me:$LINENO: result: $ac_res" >&5
14027 echo "${ECHO_T}$ac_res" >&6; }
14028
14029 fi
14030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14031   cat >>confdefs.h <<_ACEOF
14032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14033 _ACEOF
14034
14035 fi
14036
14037 done
14038
14039
14040 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
14041 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
14042 cat >conftest.$ac_ext <<_ACEOF
14043
14044   /* confdefs.h.  */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h.  */
14049
14050     extern const char *__crashreporter_info__;
14051     int main() {
14052       __crashreporter_info__ = "test";
14053       return 0;
14054     }
14055
14056
14057 _ACEOF
14058 rm -f conftest.$ac_objext conftest$ac_exeext
14059 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14066   ac_status=$?
14067   grep -v '^ *+' conftest.er1 >conftest.err
14068   rm -f conftest.er1
14069   cat conftest.err >&5
14070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071   (exit $ac_status); } &&
14072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073   { (case "(($ac_try" in
14074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075   *) ac_try_echo=$ac_try;;
14076 esac
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078   (eval "$ac_try") 2>&5
14079   ac_status=$?
14080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081   (exit $ac_status); }; } &&
14082          { ac_try='test -s conftest$ac_exeext'
14083   { (case "(($ac_try" in
14084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085   *) ac_try_echo=$ac_try;;
14086 esac
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088   (eval "$ac_try") 2>&5
14089   ac_status=$?
14090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); }; }; then
14092
14093   { echo "$as_me:$LINENO: result: yes" >&5
14094 echo "${ECHO_T}yes" >&6; }
14095
14096 cat >>confdefs.h <<\_ACEOF
14097 #define HAVE_CRASHREPORTER_INFO 1
14098 _ACEOF
14099
14100
14101 else
14102   echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14104
14105
14106   { echo "$as_me:$LINENO: result: no" >&5
14107 echo "${ECHO_T}no" >&6; }
14108
14109 cat >>confdefs.h <<\_ACEOF
14110 #define HAVE_CRASHREPORTER_INFO 0
14111 _ACEOF
14112
14113
14114 fi
14115
14116 rm -f core conftest.err conftest.$ac_objext \
14117       conftest$ac_exeext conftest.$ac_ext
14118
14119
14120
14121   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
14122 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
14123 if test "${ac_cv_huge_val_sanity+set}" = set; then
14124   echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126
14127     ac_ext=cpp
14128 ac_cpp='$CXXCPP $CPPFLAGS'
14129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14132
14133     ac_save_CXXFLAGS=$CXXFLAGS
14134     CXXFLAGS="$CXXFLAGS -pedantic"
14135     if test "$cross_compiling" = yes; then
14136   ac_cv_huge_val_sanity=yes
14137 else
14138   cat >conftest.$ac_ext <<_ACEOF
14139 /* confdefs.h.  */
14140 _ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h.  */
14144 #include <math.h>
14145 int
14146 main ()
14147 {
14148 double x = HUGE_VAL; return x != x;
14149   ;
14150   return 0;
14151 }
14152 _ACEOF
14153 rm -f conftest$ac_exeext
14154 if { (ac_try="$ac_link"
14155 case "(($ac_try" in
14156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157   *) ac_try_echo=$ac_try;;
14158 esac
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160   (eval "$ac_link") 2>&5
14161   ac_status=$?
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14164   { (case "(($ac_try" in
14165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14166   *) ac_try_echo=$ac_try;;
14167 esac
14168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14169   (eval "$ac_try") 2>&5
14170   ac_status=$?
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); }; }; then
14173   ac_cv_huge_val_sanity=yes
14174 else
14175   echo "$as_me: program exited with status $ac_status" >&5
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14178
14179 ( exit $ac_status )
14180 ac_cv_huge_val_sanity=no
14181 fi
14182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14183 fi
14184
14185
14186     CXXFLAGS=$ac_save_CXXFLAGS
14187     ac_ext=c
14188 ac_cpp='$CPP $CPPFLAGS'
14189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14192
14193
14194 fi
14195 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
14196 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
14197   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
14198
14199
14200 { echo "$as_me:$LINENO: checking for pid_t" >&5
14201 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
14202 if test "${ac_cv_type_pid_t+set}" = set; then
14203   echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205   cat >conftest.$ac_ext <<_ACEOF
14206 /* confdefs.h.  */
14207 _ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h.  */
14211 $ac_includes_default
14212 typedef pid_t ac__type_new_;
14213 int
14214 main ()
14215 {
14216 if ((ac__type_new_ *) 0)
14217   return 0;
14218 if (sizeof (ac__type_new_))
14219   return 0;
14220   ;
14221   return 0;
14222 }
14223 _ACEOF
14224 rm -f conftest.$ac_objext
14225 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14232   ac_status=$?
14233   grep -v '^ *+' conftest.er1 >conftest.err
14234   rm -f conftest.er1
14235   cat conftest.err >&5
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); } &&
14238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14239   { (case "(($ac_try" in
14240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241   *) ac_try_echo=$ac_try;;
14242 esac
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244   (eval "$ac_try") 2>&5
14245   ac_status=$?
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); }; } &&
14248          { ac_try='test -s conftest.$ac_objext'
14249   { (case "(($ac_try" in
14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251   *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254   (eval "$ac_try") 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; }; then
14258   ac_cv_type_pid_t=yes
14259 else
14260   echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263         ac_cv_type_pid_t=no
14264 fi
14265
14266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14267 fi
14268 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14269 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
14270 if test $ac_cv_type_pid_t = yes; then
14271   :
14272 else
14273
14274 cat >>confdefs.h <<_ACEOF
14275 #define pid_t int
14276 _ACEOF
14277
14278 fi
14279
14280 { echo "$as_me:$LINENO: checking for size_t" >&5
14281 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14282 if test "${ac_cv_type_size_t+set}" = set; then
14283   echo $ECHO_N "(cached) $ECHO_C" >&6
14284 else
14285   cat >conftest.$ac_ext <<_ACEOF
14286 /* confdefs.h.  */
14287 _ACEOF
14288 cat confdefs.h >>conftest.$ac_ext
14289 cat >>conftest.$ac_ext <<_ACEOF
14290 /* end confdefs.h.  */
14291 $ac_includes_default
14292 typedef size_t ac__type_new_;
14293 int
14294 main ()
14295 {
14296 if ((ac__type_new_ *) 0)
14297   return 0;
14298 if (sizeof (ac__type_new_))
14299   return 0;
14300   ;
14301   return 0;
14302 }
14303 _ACEOF
14304 rm -f conftest.$ac_objext
14305 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14312   ac_status=$?
14313   grep -v '^ *+' conftest.er1 >conftest.err
14314   rm -f conftest.er1
14315   cat conftest.err >&5
14316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317   (exit $ac_status); } &&
14318          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14319   { (case "(($ac_try" in
14320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321   *) ac_try_echo=$ac_try;;
14322 esac
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324   (eval "$ac_try") 2>&5
14325   ac_status=$?
14326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327   (exit $ac_status); }; } &&
14328          { ac_try='test -s conftest.$ac_objext'
14329   { (case "(($ac_try" in
14330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331   *) ac_try_echo=$ac_try;;
14332 esac
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334   (eval "$ac_try") 2>&5
14335   ac_status=$?
14336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); }; }; then
14338   ac_cv_type_size_t=yes
14339 else
14340   echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343         ac_cv_type_size_t=no
14344 fi
14345
14346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 fi
14348 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14349 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14350 if test $ac_cv_type_size_t = yes; then
14351   :
14352 else
14353
14354 cat >>confdefs.h <<_ACEOF
14355 #define size_t unsigned int
14356 _ACEOF
14357
14358 fi
14359
14360
14361 cat >>confdefs.h <<_ACEOF
14362 #define RETSIGTYPE void
14363 _ACEOF
14364
14365 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14366 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14367 if test "${ac_cv_struct_tm+set}" = set; then
14368   echo $ECHO_N "(cached) $ECHO_C" >&6
14369 else
14370   cat >conftest.$ac_ext <<_ACEOF
14371 /* confdefs.h.  */
14372 _ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h.  */
14376 #include <sys/types.h>
14377 #include <time.h>
14378
14379 int
14380 main ()
14381 {
14382 struct tm *tp; tp->tm_sec;
14383   ;
14384   return 0;
14385 }
14386 _ACEOF
14387 rm -f conftest.$ac_objext
14388 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14395   ac_status=$?
14396   grep -v '^ *+' conftest.er1 >conftest.err
14397   rm -f conftest.er1
14398   cat conftest.err >&5
14399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14400   (exit $ac_status); } &&
14401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14402   { (case "(($ac_try" in
14403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404   *) ac_try_echo=$ac_try;;
14405 esac
14406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14407   (eval "$ac_try") 2>&5
14408   ac_status=$?
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); }; } &&
14411          { ac_try='test -s conftest.$ac_objext'
14412   { (case "(($ac_try" in
14413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414   *) ac_try_echo=$ac_try;;
14415 esac
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417   (eval "$ac_try") 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); }; }; then
14421   ac_cv_struct_tm=time.h
14422 else
14423   echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426         ac_cv_struct_tm=sys/time.h
14427 fi
14428
14429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14430 fi
14431 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14432 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14433 if test $ac_cv_struct_tm = sys/time.h; then
14434
14435 cat >>confdefs.h <<\_ACEOF
14436 #define TM_IN_SYS_TIME 1
14437 _ACEOF
14438
14439 fi
14440
14441 { echo "$as_me:$LINENO: checking for int64_t" >&5
14442 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
14443 if test "${ac_cv_type_int64_t+set}" = set; then
14444   echo $ECHO_N "(cached) $ECHO_C" >&6
14445 else
14446   cat >conftest.$ac_ext <<_ACEOF
14447 /* confdefs.h.  */
14448 _ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h.  */
14452 $ac_includes_default
14453 typedef int64_t ac__type_new_;
14454 int
14455 main ()
14456 {
14457 if ((ac__type_new_ *) 0)
14458   return 0;
14459 if (sizeof (ac__type_new_))
14460   return 0;
14461   ;
14462   return 0;
14463 }
14464 _ACEOF
14465 rm -f conftest.$ac_objext
14466 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14473   ac_status=$?
14474   grep -v '^ *+' conftest.er1 >conftest.err
14475   rm -f conftest.er1
14476   cat conftest.err >&5
14477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478   (exit $ac_status); } &&
14479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14480   { (case "(($ac_try" in
14481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482   *) ac_try_echo=$ac_try;;
14483 esac
14484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485   (eval "$ac_try") 2>&5
14486   ac_status=$?
14487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488   (exit $ac_status); }; } &&
14489          { ac_try='test -s conftest.$ac_objext'
14490   { (case "(($ac_try" in
14491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14492   *) ac_try_echo=$ac_try;;
14493 esac
14494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14495   (eval "$ac_try") 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); }; }; then
14499   ac_cv_type_int64_t=yes
14500 else
14501   echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504         ac_cv_type_int64_t=no
14505 fi
14506
14507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14508 fi
14509 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
14510 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
14511 if test $ac_cv_type_int64_t = yes; then
14512
14513 cat >>confdefs.h <<_ACEOF
14514 #define HAVE_INT64_T 1
14515 _ACEOF
14516
14517
14518 else
14519   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
14520 echo "$as_me: error: Type int64_t required but not found" >&2;}
14521    { (exit 1); exit 1; }; }
14522 fi
14523
14524 { echo "$as_me:$LINENO: checking for uint64_t" >&5
14525 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
14526 if test "${ac_cv_type_uint64_t+set}" = set; then
14527   echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529   cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h.  */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h.  */
14535 $ac_includes_default
14536 typedef uint64_t ac__type_new_;
14537 int
14538 main ()
14539 {
14540 if ((ac__type_new_ *) 0)
14541   return 0;
14542 if (sizeof (ac__type_new_))
14543   return 0;
14544   ;
14545   return 0;
14546 }
14547 _ACEOF
14548 rm -f conftest.$ac_objext
14549 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14556   ac_status=$?
14557   grep -v '^ *+' conftest.er1 >conftest.err
14558   rm -f conftest.er1
14559   cat conftest.err >&5
14560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561   (exit $ac_status); } &&
14562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14563   { (case "(($ac_try" in
14564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14565   *) ac_try_echo=$ac_try;;
14566 esac
14567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14568   (eval "$ac_try") 2>&5
14569   ac_status=$?
14570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571   (exit $ac_status); }; } &&
14572          { ac_try='test -s conftest.$ac_objext'
14573   { (case "(($ac_try" in
14574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14575   *) ac_try_echo=$ac_try;;
14576 esac
14577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14578   (eval "$ac_try") 2>&5
14579   ac_status=$?
14580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581   (exit $ac_status); }; }; then
14582   ac_cv_type_uint64_t=yes
14583 else
14584   echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14586
14587         ac_cv_type_uint64_t=no
14588 fi
14589
14590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591 fi
14592 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14593 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14594 if test $ac_cv_type_uint64_t = yes; then
14595
14596 cat >>confdefs.h <<_ACEOF
14597 #define HAVE_UINT64_T 1
14598 _ACEOF
14599
14600
14601 else
14602   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14603 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14604 if test "${ac_cv_type_u_int64_t+set}" = set; then
14605   echo $ECHO_N "(cached) $ECHO_C" >&6
14606 else
14607   cat >conftest.$ac_ext <<_ACEOF
14608 /* confdefs.h.  */
14609 _ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h.  */
14613 $ac_includes_default
14614 typedef u_int64_t ac__type_new_;
14615 int
14616 main ()
14617 {
14618 if ((ac__type_new_ *) 0)
14619   return 0;
14620 if (sizeof (ac__type_new_))
14621   return 0;
14622   ;
14623   return 0;
14624 }
14625 _ACEOF
14626 rm -f conftest.$ac_objext
14627 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14634   ac_status=$?
14635   grep -v '^ *+' conftest.er1 >conftest.err
14636   rm -f conftest.er1
14637   cat conftest.err >&5
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); } &&
14640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14641   { (case "(($ac_try" in
14642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643   *) ac_try_echo=$ac_try;;
14644 esac
14645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646   (eval "$ac_try") 2>&5
14647   ac_status=$?
14648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649   (exit $ac_status); }; } &&
14650          { ac_try='test -s conftest.$ac_objext'
14651   { (case "(($ac_try" in
14652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14653   *) ac_try_echo=$ac_try;;
14654 esac
14655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14656   (eval "$ac_try") 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); }; }; then
14660   ac_cv_type_u_int64_t=yes
14661 else
14662   echo "$as_me: failed program was:" >&5
14663 sed 's/^/| /' conftest.$ac_ext >&5
14664
14665         ac_cv_type_u_int64_t=no
14666 fi
14667
14668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669 fi
14670 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14671 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14672 if test $ac_cv_type_u_int64_t = yes; then
14673
14674 cat >>confdefs.h <<_ACEOF
14675 #define HAVE_U_INT64_T 1
14676 _ACEOF
14677
14678
14679 else
14680   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14681 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14682    { (exit 1); exit 1; }; }
14683 fi
14684
14685 fi
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
14697 do
14698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14699 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14702   echo $ECHO_N "(cached) $ECHO_C" >&6
14703 else
14704   cat >conftest.$ac_ext <<_ACEOF
14705 /* confdefs.h.  */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h.  */
14710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14711    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14712 #define $ac_func innocuous_$ac_func
14713
14714 /* System header to define __stub macros and hopefully few prototypes,
14715     which can conflict with char $ac_func (); below.
14716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14717     <limits.h> exists even on freestanding compilers.  */
14718
14719 #ifdef __STDC__
14720 # include <limits.h>
14721 #else
14722 # include <assert.h>
14723 #endif
14724
14725 #undef $ac_func
14726
14727 /* Override any GCC internal prototype to avoid an error.
14728    Use char because int might match the return type of a GCC
14729    builtin and then its argument prototype would still apply.  */
14730 #ifdef __cplusplus
14731 extern "C"
14732 #endif
14733 char $ac_func ();
14734 /* The GNU C library defines this for functions which it implements
14735     to always fail with ENOSYS.  Some functions are actually named
14736     something starting with __ and the normal name is an alias.  */
14737 #if defined __stub_$ac_func || defined __stub___$ac_func
14738 choke me
14739 #endif
14740
14741 int
14742 main ()
14743 {
14744 return $ac_func ();
14745   ;
14746   return 0;
14747 }
14748 _ACEOF
14749 rm -f conftest.$ac_objext conftest$ac_exeext
14750 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14757   ac_status=$?
14758   grep -v '^ *+' conftest.er1 >conftest.err
14759   rm -f conftest.er1
14760   cat conftest.err >&5
14761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762   (exit $ac_status); } &&
14763          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14764   { (case "(($ac_try" in
14765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14766   *) ac_try_echo=$ac_try;;
14767 esac
14768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14769   (eval "$ac_try") 2>&5
14770   ac_status=$?
14771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772   (exit $ac_status); }; } &&
14773          { ac_try='test -s conftest$ac_exeext'
14774   { (case "(($ac_try" in
14775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776   *) ac_try_echo=$ac_try;;
14777 esac
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779   (eval "$ac_try") 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); }; }; then
14783   eval "$as_ac_var=yes"
14784 else
14785   echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14787
14788         eval "$as_ac_var=no"
14789 fi
14790
14791 rm -f core conftest.err conftest.$ac_objext \
14792       conftest$ac_exeext conftest.$ac_ext
14793 fi
14794 ac_res=`eval echo '${'$as_ac_var'}'`
14795                { echo "$as_me:$LINENO: result: $ac_res" >&5
14796 echo "${ECHO_T}$ac_res" >&6; }
14797 if test `eval echo '${'$as_ac_var'}'` = yes; then
14798   cat >>confdefs.h <<_ACEOF
14799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14800 _ACEOF
14801
14802 fi
14803 done
14804
14805
14806
14807
14808
14809 for ac_func in powf fmodf strtof round
14810 do
14811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14815   echo $ECHO_N "(cached) $ECHO_C" >&6
14816 else
14817   cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h.  */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h.  */
14823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14825 #define $ac_func innocuous_$ac_func
14826
14827 /* System header to define __stub macros and hopefully few prototypes,
14828     which can conflict with char $ac_func (); below.
14829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14830     <limits.h> exists even on freestanding compilers.  */
14831
14832 #ifdef __STDC__
14833 # include <limits.h>
14834 #else
14835 # include <assert.h>
14836 #endif
14837
14838 #undef $ac_func
14839
14840 /* Override any GCC internal prototype to avoid an error.
14841    Use char because int might match the return type of a GCC
14842    builtin and then its argument prototype would still apply.  */
14843 #ifdef __cplusplus
14844 extern "C"
14845 #endif
14846 char $ac_func ();
14847 /* The GNU C library defines this for functions which it implements
14848     to always fail with ENOSYS.  Some functions are actually named
14849     something starting with __ and the normal name is an alias.  */
14850 #if defined __stub_$ac_func || defined __stub___$ac_func
14851 choke me
14852 #endif
14853
14854 int
14855 main ()
14856 {
14857 return $ac_func ();
14858   ;
14859   return 0;
14860 }
14861 _ACEOF
14862 rm -f conftest.$ac_objext conftest$ac_exeext
14863 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14870   ac_status=$?
14871   grep -v '^ *+' conftest.er1 >conftest.err
14872   rm -f conftest.er1
14873   cat conftest.err >&5
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); } &&
14876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14877   { (case "(($ac_try" in
14878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14879   *) ac_try_echo=$ac_try;;
14880 esac
14881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14882   (eval "$ac_try") 2>&5
14883   ac_status=$?
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); }; } &&
14886          { ac_try='test -s conftest$ac_exeext'
14887   { (case "(($ac_try" in
14888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889   *) ac_try_echo=$ac_try;;
14890 esac
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892   (eval "$ac_try") 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); }; }; then
14896   eval "$as_ac_var=yes"
14897 else
14898   echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14900
14901         eval "$as_ac_var=no"
14902 fi
14903
14904 rm -f core conftest.err conftest.$ac_objext \
14905       conftest$ac_exeext conftest.$ac_ext
14906 fi
14907 ac_res=`eval echo '${'$as_ac_var'}'`
14908                { echo "$as_me:$LINENO: result: $ac_res" >&5
14909 echo "${ECHO_T}$ac_res" >&6; }
14910 if test `eval echo '${'$as_ac_var'}'` = yes; then
14911   cat >>confdefs.h <<_ACEOF
14912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14913 _ACEOF
14914
14915 fi
14916 done
14917
14918
14919
14920
14921
14922
14923 for ac_func in log log2 log10 exp exp2
14924 do
14925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14929   echo $ECHO_N "(cached) $ECHO_C" >&6
14930 else
14931   cat >conftest.$ac_ext <<_ACEOF
14932 /* confdefs.h.  */
14933 _ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h.  */
14937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14939 #define $ac_func innocuous_$ac_func
14940
14941 /* System header to define __stub macros and hopefully few prototypes,
14942     which can conflict with char $ac_func (); below.
14943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14944     <limits.h> exists even on freestanding compilers.  */
14945
14946 #ifdef __STDC__
14947 # include <limits.h>
14948 #else
14949 # include <assert.h>
14950 #endif
14951
14952 #undef $ac_func
14953
14954 /* Override any GCC internal prototype to avoid an error.
14955    Use char because int might match the return type of a GCC
14956    builtin and then its argument prototype would still apply.  */
14957 #ifdef __cplusplus
14958 extern "C"
14959 #endif
14960 char $ac_func ();
14961 /* The GNU C library defines this for functions which it implements
14962     to always fail with ENOSYS.  Some functions are actually named
14963     something starting with __ and the normal name is an alias.  */
14964 #if defined __stub_$ac_func || defined __stub___$ac_func
14965 choke me
14966 #endif
14967
14968 int
14969 main ()
14970 {
14971 return $ac_func ();
14972   ;
14973   return 0;
14974 }
14975 _ACEOF
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14984   ac_status=$?
14985   grep -v '^ *+' conftest.er1 >conftest.err
14986   rm -f conftest.er1
14987   cat conftest.err >&5
14988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989   (exit $ac_status); } &&
14990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14991   { (case "(($ac_try" in
14992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14993   *) ac_try_echo=$ac_try;;
14994 esac
14995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14996   (eval "$ac_try") 2>&5
14997   ac_status=$?
14998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999   (exit $ac_status); }; } &&
15000          { ac_try='test -s conftest$ac_exeext'
15001   { (case "(($ac_try" in
15002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003   *) ac_try_echo=$ac_try;;
15004 esac
15005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006   (eval "$ac_try") 2>&5
15007   ac_status=$?
15008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009   (exit $ac_status); }; }; then
15010   eval "$as_ac_var=yes"
15011 else
15012   echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15014
15015         eval "$as_ac_var=no"
15016 fi
15017
15018 rm -f core conftest.err conftest.$ac_objext \
15019       conftest$ac_exeext conftest.$ac_ext
15020 fi
15021 ac_res=`eval echo '${'$as_ac_var'}'`
15022                { echo "$as_me:$LINENO: result: $ac_res" >&5
15023 echo "${ECHO_T}$ac_res" >&6; }
15024 if test `eval echo '${'$as_ac_var'}'` = yes; then
15025   cat >>confdefs.h <<_ACEOF
15026 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15027 _ACEOF
15028
15029 fi
15030 done
15031
15032
15033
15034
15035
15036
15037 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
15038 do
15039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15043   echo $ECHO_N "(cached) $ECHO_C" >&6
15044 else
15045   cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h.  */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h.  */
15051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15053 #define $ac_func innocuous_$ac_func
15054
15055 /* System header to define __stub macros and hopefully few prototypes,
15056     which can conflict with char $ac_func (); below.
15057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15058     <limits.h> exists even on freestanding compilers.  */
15059
15060 #ifdef __STDC__
15061 # include <limits.h>
15062 #else
15063 # include <assert.h>
15064 #endif
15065
15066 #undef $ac_func
15067
15068 /* Override any GCC internal prototype to avoid an error.
15069    Use char because int might match the return type of a GCC
15070    builtin and then its argument prototype would still apply.  */
15071 #ifdef __cplusplus
15072 extern "C"
15073 #endif
15074 char $ac_func ();
15075 /* The GNU C library defines this for functions which it implements
15076     to always fail with ENOSYS.  Some functions are actually named
15077     something starting with __ and the normal name is an alias.  */
15078 #if defined __stub_$ac_func || defined __stub___$ac_func
15079 choke me
15080 #endif
15081
15082 int
15083 main ()
15084 {
15085 return $ac_func ();
15086   ;
15087   return 0;
15088 }
15089 _ACEOF
15090 rm -f conftest.$ac_objext conftest$ac_exeext
15091 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15098   ac_status=$?
15099   grep -v '^ *+' conftest.er1 >conftest.err
15100   rm -f conftest.er1
15101   cat conftest.err >&5
15102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103   (exit $ac_status); } &&
15104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15105   { (case "(($ac_try" in
15106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107   *) ac_try_echo=$ac_try;;
15108 esac
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110   (eval "$ac_try") 2>&5
15111   ac_status=$?
15112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113   (exit $ac_status); }; } &&
15114          { ac_try='test -s conftest$ac_exeext'
15115   { (case "(($ac_try" in
15116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15117   *) ac_try_echo=$ac_try;;
15118 esac
15119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15120   (eval "$ac_try") 2>&5
15121   ac_status=$?
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); }; }; then
15124   eval "$as_ac_var=yes"
15125 else
15126   echo "$as_me: failed program was:" >&5
15127 sed 's/^/| /' conftest.$ac_ext >&5
15128
15129         eval "$as_ac_var=no"
15130 fi
15131
15132 rm -f core conftest.err conftest.$ac_objext \
15133       conftest$ac_exeext conftest.$ac_ext
15134 fi
15135 ac_res=`eval echo '${'$as_ac_var'}'`
15136                { echo "$as_me:$LINENO: result: $ac_res" >&5
15137 echo "${ECHO_T}$ac_res" >&6; }
15138 if test `eval echo '${'$as_ac_var'}'` = yes; then
15139   cat >>confdefs.h <<_ACEOF
15140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15141 _ACEOF
15142
15143 fi
15144 done
15145
15146
15147
15148
15149 for ac_func in isatty mkdtemp mkstemp
15150 do
15151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15155   echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157   cat >conftest.$ac_ext <<_ACEOF
15158 /* confdefs.h.  */
15159 _ACEOF
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h.  */
15163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15165 #define $ac_func innocuous_$ac_func
15166
15167 /* System header to define __stub macros and hopefully few prototypes,
15168     which can conflict with char $ac_func (); below.
15169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15170     <limits.h> exists even on freestanding compilers.  */
15171
15172 #ifdef __STDC__
15173 # include <limits.h>
15174 #else
15175 # include <assert.h>
15176 #endif
15177
15178 #undef $ac_func
15179
15180 /* Override any GCC internal prototype to avoid an error.
15181    Use char because int might match the return type of a GCC
15182    builtin and then its argument prototype would still apply.  */
15183 #ifdef __cplusplus
15184 extern "C"
15185 #endif
15186 char $ac_func ();
15187 /* The GNU C library defines this for functions which it implements
15188     to always fail with ENOSYS.  Some functions are actually named
15189     something starting with __ and the normal name is an alias.  */
15190 #if defined __stub_$ac_func || defined __stub___$ac_func
15191 choke me
15192 #endif
15193
15194 int
15195 main ()
15196 {
15197 return $ac_func ();
15198   ;
15199   return 0;
15200 }
15201 _ACEOF
15202 rm -f conftest.$ac_objext conftest$ac_exeext
15203 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15210   ac_status=$?
15211   grep -v '^ *+' conftest.er1 >conftest.err
15212   rm -f conftest.er1
15213   cat conftest.err >&5
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); } &&
15216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15217   { (case "(($ac_try" in
15218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219   *) ac_try_echo=$ac_try;;
15220 esac
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222   (eval "$ac_try") 2>&5
15223   ac_status=$?
15224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225   (exit $ac_status); }; } &&
15226          { ac_try='test -s conftest$ac_exeext'
15227   { (case "(($ac_try" in
15228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229   *) ac_try_echo=$ac_try;;
15230 esac
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232   (eval "$ac_try") 2>&5
15233   ac_status=$?
15234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235   (exit $ac_status); }; }; then
15236   eval "$as_ac_var=yes"
15237 else
15238   echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15240
15241         eval "$as_ac_var=no"
15242 fi
15243
15244 rm -f core conftest.err conftest.$ac_objext \
15245       conftest$ac_exeext conftest.$ac_ext
15246 fi
15247 ac_res=`eval echo '${'$as_ac_var'}'`
15248                { echo "$as_me:$LINENO: result: $ac_res" >&5
15249 echo "${ECHO_T}$ac_res" >&6; }
15250 if test `eval echo '${'$as_ac_var'}'` = yes; then
15251   cat >>confdefs.h <<_ACEOF
15252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15253 _ACEOF
15254
15255 fi
15256 done
15257
15258
15259
15260
15261
15262
15263
15264 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
15265 do
15266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15270   echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272   cat >conftest.$ac_ext <<_ACEOF
15273 /* confdefs.h.  */
15274 _ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h.  */
15278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15280 #define $ac_func innocuous_$ac_func
15281
15282 /* System header to define __stub macros and hopefully few prototypes,
15283     which can conflict with char $ac_func (); below.
15284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15285     <limits.h> exists even on freestanding compilers.  */
15286
15287 #ifdef __STDC__
15288 # include <limits.h>
15289 #else
15290 # include <assert.h>
15291 #endif
15292
15293 #undef $ac_func
15294
15295 /* Override any GCC internal prototype to avoid an error.
15296    Use char because int might match the return type of a GCC
15297    builtin and then its argument prototype would still apply.  */
15298 #ifdef __cplusplus
15299 extern "C"
15300 #endif
15301 char $ac_func ();
15302 /* The GNU C library defines this for functions which it implements
15303     to always fail with ENOSYS.  Some functions are actually named
15304     something starting with __ and the normal name is an alias.  */
15305 #if defined __stub_$ac_func || defined __stub___$ac_func
15306 choke me
15307 #endif
15308
15309 int
15310 main ()
15311 {
15312 return $ac_func ();
15313   ;
15314   return 0;
15315 }
15316 _ACEOF
15317 rm -f conftest.$ac_objext conftest$ac_exeext
15318 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15325   ac_status=$?
15326   grep -v '^ *+' conftest.er1 >conftest.err
15327   rm -f conftest.er1
15328   cat conftest.err >&5
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); } &&
15331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15332   { (case "(($ac_try" in
15333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334   *) ac_try_echo=$ac_try;;
15335 esac
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337   (eval "$ac_try") 2>&5
15338   ac_status=$?
15339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15340   (exit $ac_status); }; } &&
15341          { ac_try='test -s conftest$ac_exeext'
15342   { (case "(($ac_try" in
15343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344   *) ac_try_echo=$ac_try;;
15345 esac
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347   (eval "$ac_try") 2>&5
15348   ac_status=$?
15349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350   (exit $ac_status); }; }; then
15351   eval "$as_ac_var=yes"
15352 else
15353   echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15355
15356         eval "$as_ac_var=no"
15357 fi
15358
15359 rm -f core conftest.err conftest.$ac_objext \
15360       conftest$ac_exeext conftest.$ac_ext
15361 fi
15362 ac_res=`eval echo '${'$as_ac_var'}'`
15363                { echo "$as_me:$LINENO: result: $ac_res" >&5
15364 echo "${ECHO_T}$ac_res" >&6; }
15365 if test `eval echo '${'$as_ac_var'}'` = yes; then
15366   cat >>confdefs.h <<_ACEOF
15367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15368 _ACEOF
15369
15370 fi
15371 done
15372
15373
15374
15375
15376 for ac_func in strerror strerror_r setenv
15377 do
15378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15382   echo $ECHO_N "(cached) $ECHO_C" >&6
15383 else
15384   cat >conftest.$ac_ext <<_ACEOF
15385 /* confdefs.h.  */
15386 _ACEOF
15387 cat confdefs.h >>conftest.$ac_ext
15388 cat >>conftest.$ac_ext <<_ACEOF
15389 /* end confdefs.h.  */
15390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15391    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15392 #define $ac_func innocuous_$ac_func
15393
15394 /* System header to define __stub macros and hopefully few prototypes,
15395     which can conflict with char $ac_func (); below.
15396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15397     <limits.h> exists even on freestanding compilers.  */
15398
15399 #ifdef __STDC__
15400 # include <limits.h>
15401 #else
15402 # include <assert.h>
15403 #endif
15404
15405 #undef $ac_func
15406
15407 /* Override any GCC internal prototype to avoid an error.
15408    Use char because int might match the return type of a GCC
15409    builtin and then its argument prototype would still apply.  */
15410 #ifdef __cplusplus
15411 extern "C"
15412 #endif
15413 char $ac_func ();
15414 /* The GNU C library defines this for functions which it implements
15415     to always fail with ENOSYS.  Some functions are actually named
15416     something starting with __ and the normal name is an alias.  */
15417 #if defined __stub_$ac_func || defined __stub___$ac_func
15418 choke me
15419 #endif
15420
15421 int
15422 main ()
15423 {
15424 return $ac_func ();
15425   ;
15426   return 0;
15427 }
15428 _ACEOF
15429 rm -f conftest.$ac_objext conftest$ac_exeext
15430 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15437   ac_status=$?
15438   grep -v '^ *+' conftest.er1 >conftest.err
15439   rm -f conftest.er1
15440   cat conftest.err >&5
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); } &&
15443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15444   { (case "(($ac_try" in
15445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446   *) ac_try_echo=$ac_try;;
15447 esac
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449   (eval "$ac_try") 2>&5
15450   ac_status=$?
15451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452   (exit $ac_status); }; } &&
15453          { ac_try='test -s conftest$ac_exeext'
15454   { (case "(($ac_try" in
15455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456   *) ac_try_echo=$ac_try;;
15457 esac
15458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15459   (eval "$ac_try") 2>&5
15460   ac_status=$?
15461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462   (exit $ac_status); }; }; then
15463   eval "$as_ac_var=yes"
15464 else
15465   echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.$ac_ext >&5
15467
15468         eval "$as_ac_var=no"
15469 fi
15470
15471 rm -f core conftest.err conftest.$ac_objext \
15472       conftest$ac_exeext conftest.$ac_ext
15473 fi
15474 ac_res=`eval echo '${'$as_ac_var'}'`
15475                { echo "$as_me:$LINENO: result: $ac_res" >&5
15476 echo "${ECHO_T}$ac_res" >&6; }
15477 if test `eval echo '${'$as_ac_var'}'` = yes; then
15478   cat >>confdefs.h <<_ACEOF
15479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15480 _ACEOF
15481
15482 fi
15483 done
15484
15485
15486
15487
15488
15489 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
15490 do
15491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15495   echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497   cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h.  */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h.  */
15503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15505 #define $ac_func innocuous_$ac_func
15506
15507 /* System header to define __stub macros and hopefully few prototypes,
15508     which can conflict with char $ac_func (); below.
15509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15510     <limits.h> exists even on freestanding compilers.  */
15511
15512 #ifdef __STDC__
15513 # include <limits.h>
15514 #else
15515 # include <assert.h>
15516 #endif
15517
15518 #undef $ac_func
15519
15520 /* Override any GCC internal prototype to avoid an error.
15521    Use char because int might match the return type of a GCC
15522    builtin and then its argument prototype would still apply.  */
15523 #ifdef __cplusplus
15524 extern "C"
15525 #endif
15526 char $ac_func ();
15527 /* The GNU C library defines this for functions which it implements
15528     to always fail with ENOSYS.  Some functions are actually named
15529     something starting with __ and the normal name is an alias.  */
15530 #if defined __stub_$ac_func || defined __stub___$ac_func
15531 choke me
15532 #endif
15533
15534 int
15535 main ()
15536 {
15537 return $ac_func ();
15538   ;
15539   return 0;
15540 }
15541 _ACEOF
15542 rm -f conftest.$ac_objext conftest$ac_exeext
15543 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15550   ac_status=$?
15551   grep -v '^ *+' conftest.er1 >conftest.err
15552   rm -f conftest.er1
15553   cat conftest.err >&5
15554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555   (exit $ac_status); } &&
15556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15557   { (case "(($ac_try" in
15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559   *) ac_try_echo=$ac_try;;
15560 esac
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562   (eval "$ac_try") 2>&5
15563   ac_status=$?
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); }; } &&
15566          { ac_try='test -s conftest$ac_exeext'
15567   { (case "(($ac_try" in
15568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569   *) ac_try_echo=$ac_try;;
15570 esac
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572   (eval "$ac_try") 2>&5
15573   ac_status=$?
15574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575   (exit $ac_status); }; }; then
15576   eval "$as_ac_var=yes"
15577 else
15578   echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15580
15581         eval "$as_ac_var=no"
15582 fi
15583
15584 rm -f core conftest.err conftest.$ac_objext \
15585       conftest$ac_exeext conftest.$ac_ext
15586 fi
15587 ac_res=`eval echo '${'$as_ac_var'}'`
15588                { echo "$as_me:$LINENO: result: $ac_res" >&5
15589 echo "${ECHO_T}$ac_res" >&6; }
15590 if test `eval echo '${'$as_ac_var'}'` = yes; then
15591   cat >>confdefs.h <<_ACEOF
15592 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15593 _ACEOF
15594
15595 fi
15596 done
15597
15598
15599
15600
15601
15602
15603 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
15604 do
15605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15609   echo $ECHO_N "(cached) $ECHO_C" >&6
15610 else
15611   cat >conftest.$ac_ext <<_ACEOF
15612 /* confdefs.h.  */
15613 _ACEOF
15614 cat confdefs.h >>conftest.$ac_ext
15615 cat >>conftest.$ac_ext <<_ACEOF
15616 /* end confdefs.h.  */
15617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15619 #define $ac_func innocuous_$ac_func
15620
15621 /* System header to define __stub macros and hopefully few prototypes,
15622     which can conflict with char $ac_func (); below.
15623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15624     <limits.h> exists even on freestanding compilers.  */
15625
15626 #ifdef __STDC__
15627 # include <limits.h>
15628 #else
15629 # include <assert.h>
15630 #endif
15631
15632 #undef $ac_func
15633
15634 /* Override any GCC internal prototype to avoid an error.
15635    Use char because int might match the return type of a GCC
15636    builtin and then its argument prototype would still apply.  */
15637 #ifdef __cplusplus
15638 extern "C"
15639 #endif
15640 char $ac_func ();
15641 /* The GNU C library defines this for functions which it implements
15642     to always fail with ENOSYS.  Some functions are actually named
15643     something starting with __ and the normal name is an alias.  */
15644 #if defined __stub_$ac_func || defined __stub___$ac_func
15645 choke me
15646 #endif
15647
15648 int
15649 main ()
15650 {
15651 return $ac_func ();
15652   ;
15653   return 0;
15654 }
15655 _ACEOF
15656 rm -f conftest.$ac_objext conftest$ac_exeext
15657 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15664   ac_status=$?
15665   grep -v '^ *+' conftest.er1 >conftest.err
15666   rm -f conftest.er1
15667   cat conftest.err >&5
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); } &&
15670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15671   { (case "(($ac_try" in
15672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673   *) ac_try_echo=$ac_try;;
15674 esac
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676   (eval "$ac_try") 2>&5
15677   ac_status=$?
15678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679   (exit $ac_status); }; } &&
15680          { ac_try='test -s conftest$ac_exeext'
15681   { (case "(($ac_try" in
15682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15683   *) ac_try_echo=$ac_try;;
15684 esac
15685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15686   (eval "$ac_try") 2>&5
15687   ac_status=$?
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); }; }; then
15690   eval "$as_ac_var=yes"
15691 else
15692   echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15694
15695         eval "$as_ac_var=no"
15696 fi
15697
15698 rm -f core conftest.err conftest.$ac_objext \
15699       conftest$ac_exeext conftest.$ac_ext
15700 fi
15701 ac_res=`eval echo '${'$as_ac_var'}'`
15702                { echo "$as_me:$LINENO: result: $ac_res" >&5
15703 echo "${ECHO_T}$ac_res" >&6; }
15704 if test `eval echo '${'$as_ac_var'}'` = yes; then
15705   cat >>confdefs.h <<_ACEOF
15706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15707 _ACEOF
15708
15709 fi
15710 done
15711
15712
15713
15714 for ac_func in futimes futimens
15715 do
15716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15720   echo $ECHO_N "(cached) $ECHO_C" >&6
15721 else
15722   cat >conftest.$ac_ext <<_ACEOF
15723 /* confdefs.h.  */
15724 _ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h.  */
15728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15730 #define $ac_func innocuous_$ac_func
15731
15732 /* System header to define __stub macros and hopefully few prototypes,
15733     which can conflict with char $ac_func (); below.
15734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15735     <limits.h> exists even on freestanding compilers.  */
15736
15737 #ifdef __STDC__
15738 # include <limits.h>
15739 #else
15740 # include <assert.h>
15741 #endif
15742
15743 #undef $ac_func
15744
15745 /* Override any GCC internal prototype to avoid an error.
15746    Use char because int might match the return type of a GCC
15747    builtin and then its argument prototype would still apply.  */
15748 #ifdef __cplusplus
15749 extern "C"
15750 #endif
15751 char $ac_func ();
15752 /* The GNU C library defines this for functions which it implements
15753     to always fail with ENOSYS.  Some functions are actually named
15754     something starting with __ and the normal name is an alias.  */
15755 #if defined __stub_$ac_func || defined __stub___$ac_func
15756 choke me
15757 #endif
15758
15759 int
15760 main ()
15761 {
15762 return $ac_func ();
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext conftest$ac_exeext
15768 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
15775   ac_status=$?
15776   grep -v '^ *+' conftest.er1 >conftest.err
15777   rm -f conftest.er1
15778   cat conftest.err >&5
15779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780   (exit $ac_status); } &&
15781          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15782   { (case "(($ac_try" in
15783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784   *) ac_try_echo=$ac_try;;
15785 esac
15786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15787   (eval "$ac_try") 2>&5
15788   ac_status=$?
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); }; } &&
15791          { ac_try='test -s conftest$ac_exeext'
15792   { (case "(($ac_try" in
15793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794   *) ac_try_echo=$ac_try;;
15795 esac
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797   (eval "$ac_try") 2>&5
15798   ac_status=$?
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); }; }; then
15801   eval "$as_ac_var=yes"
15802 else
15803   echo "$as_me: failed program was:" >&5
15804 sed 's/^/| /' conftest.$ac_ext >&5
15805
15806         eval "$as_ac_var=no"
15807 fi
15808
15809 rm -f core conftest.err conftest.$ac_objext \
15810       conftest$ac_exeext conftest.$ac_ext
15811 fi
15812 ac_res=`eval echo '${'$as_ac_var'}'`
15813                { echo "$as_me:$LINENO: result: $ac_res" >&5
15814 echo "${ECHO_T}$ac_res" >&6; }
15815 if test `eval echo '${'$as_ac_var'}'` = yes; then
15816   cat >>confdefs.h <<_ACEOF
15817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15818 _ACEOF
15819
15820 fi
15821 done
15822
15823 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15824 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15825 if test "${llvm_cv_c_printf_a+set}" = set; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 else
15828   ac_ext=c
15829 ac_cpp='$CPP $CPPFLAGS'
15830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15833
15834  if test "$cross_compiling" = yes; then
15835   llvmac_cv_c_printf_a=no
15836 else
15837   cat >conftest.$ac_ext <<_ACEOF
15838
15839   /* confdefs.h.  */
15840 _ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h.  */
15844
15845 #include <stdio.h>
15846 #include <stdlib.h>
15847
15848 int
15849 main ()
15850 {
15851
15852 volatile double A, B;
15853 char Buffer[100];
15854 A = 1;
15855 A /= 10.0;
15856 sprintf(Buffer, "%a", A);
15857 B = atof(Buffer);
15858 if (A != B)
15859   return (1);
15860 if (A != 0x1.999999999999ap-4)
15861   return (1);
15862 return (0);
15863   ;
15864   return 0;
15865 }
15866 _ACEOF
15867 rm -f conftest$ac_exeext
15868 if { (ac_try="$ac_link"
15869 case "(($ac_try" in
15870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871   *) ac_try_echo=$ac_try;;
15872 esac
15873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874   (eval "$ac_link") 2>&5
15875   ac_status=$?
15876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15878   { (case "(($ac_try" in
15879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880   *) ac_try_echo=$ac_try;;
15881 esac
15882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15883   (eval "$ac_try") 2>&5
15884   ac_status=$?
15885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886   (exit $ac_status); }; }; then
15887   llvm_cv_c_printf_a=yes
15888 else
15889   echo "$as_me: program exited with status $ac_status" >&5
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15892
15893 ( exit $ac_status )
15894 llvmac_cv_c_printf_a=no
15895 fi
15896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15897 fi
15898
15899
15900  ac_ext=c
15901 ac_cpp='$CPP $CPPFLAGS'
15902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15905
15906 fi
15907 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15908 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15909  if test "$llvm_cv_c_printf_a" = "yes"; then
15910
15911 cat >>confdefs.h <<\_ACEOF
15912 #define HAVE_PRINTF_A 1
15913 _ACEOF
15914
15915  fi
15916
15917
15918
15919   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15920 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15921 if test "${ac_cv_func_rand48+set}" = set; then
15922   echo $ECHO_N "(cached) $ECHO_C" >&6
15923 else
15924
15925     ac_ext=cpp
15926 ac_cpp='$CXXCPP $CPPFLAGS'
15927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15930
15931     cat >conftest.$ac_ext <<_ACEOF
15932 /* confdefs.h.  */
15933 _ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h.  */
15937 #include <stdlib.h>
15938 int
15939 main ()
15940 {
15941 srand48(0);lrand48();drand48();
15942   ;
15943   return 0;
15944 }
15945 _ACEOF
15946 rm -f conftest.$ac_objext
15947 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
15954   ac_status=$?
15955   grep -v '^ *+' conftest.er1 >conftest.err
15956   rm -f conftest.er1
15957   cat conftest.err >&5
15958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959   (exit $ac_status); } &&
15960          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15961   { (case "(($ac_try" in
15962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963   *) ac_try_echo=$ac_try;;
15964 esac
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966   (eval "$ac_try") 2>&5
15967   ac_status=$?
15968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969   (exit $ac_status); }; } &&
15970          { ac_try='test -s conftest.$ac_objext'
15971   { (case "(($ac_try" in
15972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973   *) ac_try_echo=$ac_try;;
15974 esac
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976   (eval "$ac_try") 2>&5
15977   ac_status=$?
15978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979   (exit $ac_status); }; }; then
15980   ac_cv_func_rand48=yes
15981 else
15982   echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15984
15985         ac_cv_func_rand48=no
15986 fi
15987
15988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989     ac_ext=c
15990 ac_cpp='$CPP $CPPFLAGS'
15991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15994
15995
15996 fi
15997 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15998 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15999
16000 if test "$ac_cv_func_rand48" = "yes" ; then
16001
16002 cat >>confdefs.h <<\_ACEOF
16003 #define HAVE_RAND48 1
16004 _ACEOF
16005
16006 fi
16007
16008
16009 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
16010 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
16011 if test "${ac_cv_have_decl_arc4random+set}" = set; then
16012   echo $ECHO_N "(cached) $ECHO_C" >&6
16013 else
16014   cat >conftest.$ac_ext <<_ACEOF
16015 /* confdefs.h.  */
16016 _ACEOF
16017 cat confdefs.h >>conftest.$ac_ext
16018 cat >>conftest.$ac_ext <<_ACEOF
16019 /* end confdefs.h.  */
16020 $ac_includes_default
16021 int
16022 main ()
16023 {
16024 #ifndef arc4random
16025   char *p = (char *) arc4random;
16026   return !p;
16027 #endif
16028
16029   ;
16030   return 0;
16031 }
16032 _ACEOF
16033 rm -f conftest.$ac_objext
16034 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16041   ac_status=$?
16042   grep -v '^ *+' conftest.er1 >conftest.err
16043   rm -f conftest.er1
16044   cat conftest.err >&5
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); } &&
16047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16048   { (case "(($ac_try" in
16049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050   *) ac_try_echo=$ac_try;;
16051 esac
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053   (eval "$ac_try") 2>&5
16054   ac_status=$?
16055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056   (exit $ac_status); }; } &&
16057          { ac_try='test -s conftest.$ac_objext'
16058   { (case "(($ac_try" in
16059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16060   *) ac_try_echo=$ac_try;;
16061 esac
16062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16063   (eval "$ac_try") 2>&5
16064   ac_status=$?
16065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066   (exit $ac_status); }; }; then
16067   ac_cv_have_decl_arc4random=yes
16068 else
16069   echo "$as_me: failed program was:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16071
16072         ac_cv_have_decl_arc4random=no
16073 fi
16074
16075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076 fi
16077 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
16078 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
16079 if test $ac_cv_have_decl_arc4random = yes; then
16080
16081 cat >>confdefs.h <<_ACEOF
16082 #define HAVE_DECL_ARC4RANDOM 1
16083 _ACEOF
16084
16085
16086 else
16087   cat >>confdefs.h <<_ACEOF
16088 #define HAVE_DECL_ARC4RANDOM 0
16089 _ACEOF
16090
16091
16092 fi
16093
16094
16095
16096 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
16097 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
16098 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
16099   echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101   cat >conftest.$ac_ext <<_ACEOF
16102 /* confdefs.h.  */
16103 _ACEOF
16104 cat confdefs.h >>conftest.$ac_ext
16105 cat >>conftest.$ac_ext <<_ACEOF
16106 /* end confdefs.h.  */
16107 $ac_includes_default
16108 int
16109 main ()
16110 {
16111 #ifndef strerror_s
16112   char *p = (char *) strerror_s;
16113   return !p;
16114 #endif
16115
16116   ;
16117   return 0;
16118 }
16119 _ACEOF
16120 rm -f conftest.$ac_objext
16121 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16128   ac_status=$?
16129   grep -v '^ *+' conftest.er1 >conftest.err
16130   rm -f conftest.er1
16131   cat conftest.err >&5
16132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133   (exit $ac_status); } &&
16134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16135   { (case "(($ac_try" in
16136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16137   *) ac_try_echo=$ac_try;;
16138 esac
16139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16140   (eval "$ac_try") 2>&5
16141   ac_status=$?
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); }; } &&
16144          { ac_try='test -s conftest.$ac_objext'
16145   { (case "(($ac_try" in
16146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16147   *) ac_try_echo=$ac_try;;
16148 esac
16149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16150   (eval "$ac_try") 2>&5
16151   ac_status=$?
16152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153   (exit $ac_status); }; }; then
16154   ac_cv_have_decl_strerror_s=yes
16155 else
16156   echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159         ac_cv_have_decl_strerror_s=no
16160 fi
16161
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 fi
16164 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
16165 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
16166 if test $ac_cv_have_decl_strerror_s = yes; then
16167
16168 cat >>confdefs.h <<_ACEOF
16169 #define HAVE_DECL_STRERROR_S 1
16170 _ACEOF
16171
16172
16173 else
16174   cat >>confdefs.h <<_ACEOF
16175 #define HAVE_DECL_STRERROR_S 0
16176 _ACEOF
16177
16178
16179 fi
16180
16181
16182
16183 if test "$llvm_cv_os_type" = "MingW" ; then
16184   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
16185 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
16186 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
16187   echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189   ac_check_lib_save_LIBS=$LIBS
16190 LIBS="-lgcc  $LIBS"
16191 cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h.  */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h.  */
16197
16198 /* Override any GCC internal prototype to avoid an error.
16199    Use char because int might match the return type of a GCC
16200    builtin and then its argument prototype would still apply.  */
16201 #ifdef __cplusplus
16202 extern "C"
16203 #endif
16204 char _alloca ();
16205 int
16206 main ()
16207 {
16208 return _alloca ();
16209   ;
16210   return 0;
16211 }
16212 _ACEOF
16213 rm -f conftest.$ac_objext conftest$ac_exeext
16214 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16221   ac_status=$?
16222   grep -v '^ *+' conftest.er1 >conftest.err
16223   rm -f conftest.er1
16224   cat conftest.err >&5
16225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226   (exit $ac_status); } &&
16227          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16228   { (case "(($ac_try" in
16229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230   *) ac_try_echo=$ac_try;;
16231 esac
16232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16233   (eval "$ac_try") 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }; } &&
16237          { ac_try='test -s conftest$ac_exeext'
16238   { (case "(($ac_try" in
16239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240   *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243   (eval "$ac_try") 2>&5
16244   ac_status=$?
16245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246   (exit $ac_status); }; }; then
16247   ac_cv_lib_gcc__alloca=yes
16248 else
16249   echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16251
16252         ac_cv_lib_gcc__alloca=no
16253 fi
16254
16255 rm -f core conftest.err conftest.$ac_objext \
16256       conftest$ac_exeext conftest.$ac_ext
16257 LIBS=$ac_check_lib_save_LIBS
16258 fi
16259 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
16260 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
16261 if test $ac_cv_lib_gcc__alloca = yes; then
16262
16263 cat >>confdefs.h <<\_ACEOF
16264 #define HAVE__ALLOCA 1
16265 _ACEOF
16266
16267 fi
16268
16269   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
16270 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
16271 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
16272   echo $ECHO_N "(cached) $ECHO_C" >&6
16273 else
16274   ac_check_lib_save_LIBS=$LIBS
16275 LIBS="-lgcc  $LIBS"
16276 cat >conftest.$ac_ext <<_ACEOF
16277 /* confdefs.h.  */
16278 _ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h.  */
16282
16283 /* Override any GCC internal prototype to avoid an error.
16284    Use char because int might match the return type of a GCC
16285    builtin and then its argument prototype would still apply.  */
16286 #ifdef __cplusplus
16287 extern "C"
16288 #endif
16289 char __alloca ();
16290 int
16291 main ()
16292 {
16293 return __alloca ();
16294   ;
16295   return 0;
16296 }
16297 _ACEOF
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16306   ac_status=$?
16307   grep -v '^ *+' conftest.er1 >conftest.err
16308   rm -f conftest.er1
16309   cat conftest.err >&5
16310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311   (exit $ac_status); } &&
16312          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16313   { (case "(($ac_try" in
16314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315   *) ac_try_echo=$ac_try;;
16316 esac
16317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16318   (eval "$ac_try") 2>&5
16319   ac_status=$?
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); }; } &&
16322          { ac_try='test -s conftest$ac_exeext'
16323   { (case "(($ac_try" in
16324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325   *) ac_try_echo=$ac_try;;
16326 esac
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328   (eval "$ac_try") 2>&5
16329   ac_status=$?
16330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331   (exit $ac_status); }; }; then
16332   ac_cv_lib_gcc___alloca=yes
16333 else
16334   echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16336
16337         ac_cv_lib_gcc___alloca=no
16338 fi
16339
16340 rm -f core conftest.err conftest.$ac_objext \
16341       conftest$ac_exeext conftest.$ac_ext
16342 LIBS=$ac_check_lib_save_LIBS
16343 fi
16344 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
16345 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
16346 if test $ac_cv_lib_gcc___alloca = yes; then
16347
16348 cat >>confdefs.h <<\_ACEOF
16349 #define HAVE___ALLOCA 1
16350 _ACEOF
16351
16352 fi
16353
16354   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
16355 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
16356 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
16357   echo $ECHO_N "(cached) $ECHO_C" >&6
16358 else
16359   ac_check_lib_save_LIBS=$LIBS
16360 LIBS="-lgcc  $LIBS"
16361 cat >conftest.$ac_ext <<_ACEOF
16362 /* confdefs.h.  */
16363 _ACEOF
16364 cat confdefs.h >>conftest.$ac_ext
16365 cat >>conftest.$ac_ext <<_ACEOF
16366 /* end confdefs.h.  */
16367
16368 /* Override any GCC internal prototype to avoid an error.
16369    Use char because int might match the return type of a GCC
16370    builtin and then its argument prototype would still apply.  */
16371 #ifdef __cplusplus
16372 extern "C"
16373 #endif
16374 char __chkstk ();
16375 int
16376 main ()
16377 {
16378 return __chkstk ();
16379   ;
16380   return 0;
16381 }
16382 _ACEOF
16383 rm -f conftest.$ac_objext conftest$ac_exeext
16384 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16391   ac_status=$?
16392   grep -v '^ *+' conftest.er1 >conftest.err
16393   rm -f conftest.er1
16394   cat conftest.err >&5
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); } &&
16397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16398   { (case "(($ac_try" in
16399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400   *) ac_try_echo=$ac_try;;
16401 esac
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403   (eval "$ac_try") 2>&5
16404   ac_status=$?
16405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406   (exit $ac_status); }; } &&
16407          { ac_try='test -s conftest$ac_exeext'
16408   { (case "(($ac_try" in
16409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410   *) ac_try_echo=$ac_try;;
16411 esac
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413   (eval "$ac_try") 2>&5
16414   ac_status=$?
16415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416   (exit $ac_status); }; }; then
16417   ac_cv_lib_gcc___chkstk=yes
16418 else
16419   echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.$ac_ext >&5
16421
16422         ac_cv_lib_gcc___chkstk=no
16423 fi
16424
16425 rm -f core conftest.err conftest.$ac_objext \
16426       conftest$ac_exeext conftest.$ac_ext
16427 LIBS=$ac_check_lib_save_LIBS
16428 fi
16429 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
16430 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
16431 if test $ac_cv_lib_gcc___chkstk = yes; then
16432
16433 cat >>confdefs.h <<\_ACEOF
16434 #define HAVE___CHKSTK 1
16435 _ACEOF
16436
16437 fi
16438
16439   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
16440 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
16441 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
16442   echo $ECHO_N "(cached) $ECHO_C" >&6
16443 else
16444   ac_check_lib_save_LIBS=$LIBS
16445 LIBS="-lgcc  $LIBS"
16446 cat >conftest.$ac_ext <<_ACEOF
16447 /* confdefs.h.  */
16448 _ACEOF
16449 cat confdefs.h >>conftest.$ac_ext
16450 cat >>conftest.$ac_ext <<_ACEOF
16451 /* end confdefs.h.  */
16452
16453 /* Override any GCC internal prototype to avoid an error.
16454    Use char because int might match the return type of a GCC
16455    builtin and then its argument prototype would still apply.  */
16456 #ifdef __cplusplus
16457 extern "C"
16458 #endif
16459 char ___chkstk ();
16460 int
16461 main ()
16462 {
16463 return ___chkstk ();
16464   ;
16465   return 0;
16466 }
16467 _ACEOF
16468 rm -f conftest.$ac_objext conftest$ac_exeext
16469 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16476   ac_status=$?
16477   grep -v '^ *+' conftest.er1 >conftest.err
16478   rm -f conftest.er1
16479   cat conftest.err >&5
16480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481   (exit $ac_status); } &&
16482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16483   { (case "(($ac_try" in
16484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485   *) ac_try_echo=$ac_try;;
16486 esac
16487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16488   (eval "$ac_try") 2>&5
16489   ac_status=$?
16490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491   (exit $ac_status); }; } &&
16492          { ac_try='test -s conftest$ac_exeext'
16493   { (case "(($ac_try" in
16494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495   *) ac_try_echo=$ac_try;;
16496 esac
16497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498   (eval "$ac_try") 2>&5
16499   ac_status=$?
16500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501   (exit $ac_status); }; }; then
16502   ac_cv_lib_gcc____chkstk=yes
16503 else
16504   echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507         ac_cv_lib_gcc____chkstk=no
16508 fi
16509
16510 rm -f core conftest.err conftest.$ac_objext \
16511       conftest$ac_exeext conftest.$ac_ext
16512 LIBS=$ac_check_lib_save_LIBS
16513 fi
16514 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
16515 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
16516 if test $ac_cv_lib_gcc____chkstk = yes; then
16517
16518 cat >>confdefs.h <<\_ACEOF
16519 #define HAVE____CHKSTK 1
16520 _ACEOF
16521
16522 fi
16523
16524
16525   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
16526 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
16527 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
16528   echo $ECHO_N "(cached) $ECHO_C" >&6
16529 else
16530   ac_check_lib_save_LIBS=$LIBS
16531 LIBS="-lgcc  $LIBS"
16532 cat >conftest.$ac_ext <<_ACEOF
16533 /* confdefs.h.  */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h.  */
16538
16539 /* Override any GCC internal prototype to avoid an error.
16540    Use char because int might match the return type of a GCC
16541    builtin and then its argument prototype would still apply.  */
16542 #ifdef __cplusplus
16543 extern "C"
16544 #endif
16545 char __ashldi3 ();
16546 int
16547 main ()
16548 {
16549 return __ashldi3 ();
16550   ;
16551   return 0;
16552 }
16553 _ACEOF
16554 rm -f conftest.$ac_objext conftest$ac_exeext
16555 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16562   ac_status=$?
16563   grep -v '^ *+' conftest.er1 >conftest.err
16564   rm -f conftest.er1
16565   cat conftest.err >&5
16566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567   (exit $ac_status); } &&
16568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16569   { (case "(($ac_try" in
16570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571   *) ac_try_echo=$ac_try;;
16572 esac
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574   (eval "$ac_try") 2>&5
16575   ac_status=$?
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); }; } &&
16578          { ac_try='test -s conftest$ac_exeext'
16579   { (case "(($ac_try" in
16580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581   *) ac_try_echo=$ac_try;;
16582 esac
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584   (eval "$ac_try") 2>&5
16585   ac_status=$?
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); }; }; then
16588   ac_cv_lib_gcc___ashldi3=yes
16589 else
16590   echo "$as_me: failed program was:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16592
16593         ac_cv_lib_gcc___ashldi3=no
16594 fi
16595
16596 rm -f core conftest.err conftest.$ac_objext \
16597       conftest$ac_exeext conftest.$ac_ext
16598 LIBS=$ac_check_lib_save_LIBS
16599 fi
16600 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
16601 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
16602 if test $ac_cv_lib_gcc___ashldi3 = yes; then
16603
16604 cat >>confdefs.h <<\_ACEOF
16605 #define HAVE___ASHLDI3 1
16606 _ACEOF
16607
16608 fi
16609
16610   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
16611 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
16612 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
16613   echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615   ac_check_lib_save_LIBS=$LIBS
16616 LIBS="-lgcc  $LIBS"
16617 cat >conftest.$ac_ext <<_ACEOF
16618 /* confdefs.h.  */
16619 _ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h.  */
16623
16624 /* Override any GCC internal prototype to avoid an error.
16625    Use char because int might match the return type of a GCC
16626    builtin and then its argument prototype would still apply.  */
16627 #ifdef __cplusplus
16628 extern "C"
16629 #endif
16630 char __ashrdi3 ();
16631 int
16632 main ()
16633 {
16634 return __ashrdi3 ();
16635   ;
16636   return 0;
16637 }
16638 _ACEOF
16639 rm -f conftest.$ac_objext conftest$ac_exeext
16640 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16647   ac_status=$?
16648   grep -v '^ *+' conftest.er1 >conftest.err
16649   rm -f conftest.er1
16650   cat conftest.err >&5
16651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652   (exit $ac_status); } &&
16653          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16654   { (case "(($ac_try" in
16655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656   *) ac_try_echo=$ac_try;;
16657 esac
16658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659   (eval "$ac_try") 2>&5
16660   ac_status=$?
16661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662   (exit $ac_status); }; } &&
16663          { ac_try='test -s conftest$ac_exeext'
16664   { (case "(($ac_try" in
16665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666   *) ac_try_echo=$ac_try;;
16667 esac
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669   (eval "$ac_try") 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); }; }; then
16673   ac_cv_lib_gcc___ashrdi3=yes
16674 else
16675   echo "$as_me: failed program was:" >&5
16676 sed 's/^/| /' conftest.$ac_ext >&5
16677
16678         ac_cv_lib_gcc___ashrdi3=no
16679 fi
16680
16681 rm -f core conftest.err conftest.$ac_objext \
16682       conftest$ac_exeext conftest.$ac_ext
16683 LIBS=$ac_check_lib_save_LIBS
16684 fi
16685 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16686 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16687 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16688
16689 cat >>confdefs.h <<\_ACEOF
16690 #define HAVE___ASHRDI3 1
16691 _ACEOF
16692
16693 fi
16694
16695   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16696 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16697 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16698   echo $ECHO_N "(cached) $ECHO_C" >&6
16699 else
16700   ac_check_lib_save_LIBS=$LIBS
16701 LIBS="-lgcc  $LIBS"
16702 cat >conftest.$ac_ext <<_ACEOF
16703 /* confdefs.h.  */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h.  */
16708
16709 /* Override any GCC internal prototype to avoid an error.
16710    Use char because int might match the return type of a GCC
16711    builtin and then its argument prototype would still apply.  */
16712 #ifdef __cplusplus
16713 extern "C"
16714 #endif
16715 char __divdi3 ();
16716 int
16717 main ()
16718 {
16719 return __divdi3 ();
16720   ;
16721   return 0;
16722 }
16723 _ACEOF
16724 rm -f conftest.$ac_objext conftest$ac_exeext
16725 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16732   ac_status=$?
16733   grep -v '^ *+' conftest.er1 >conftest.err
16734   rm -f conftest.er1
16735   cat conftest.err >&5
16736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737   (exit $ac_status); } &&
16738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16739   { (case "(($ac_try" in
16740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741   *) ac_try_echo=$ac_try;;
16742 esac
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744   (eval "$ac_try") 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); }; } &&
16748          { ac_try='test -s conftest$ac_exeext'
16749   { (case "(($ac_try" in
16750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751   *) ac_try_echo=$ac_try;;
16752 esac
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754   (eval "$ac_try") 2>&5
16755   ac_status=$?
16756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757   (exit $ac_status); }; }; then
16758   ac_cv_lib_gcc___divdi3=yes
16759 else
16760   echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16762
16763         ac_cv_lib_gcc___divdi3=no
16764 fi
16765
16766 rm -f core conftest.err conftest.$ac_objext \
16767       conftest$ac_exeext conftest.$ac_ext
16768 LIBS=$ac_check_lib_save_LIBS
16769 fi
16770 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16771 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16772 if test $ac_cv_lib_gcc___divdi3 = yes; then
16773
16774 cat >>confdefs.h <<\_ACEOF
16775 #define HAVE___DIVDI3 1
16776 _ACEOF
16777
16778 fi
16779
16780   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16781 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16782 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16783   echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785   ac_check_lib_save_LIBS=$LIBS
16786 LIBS="-lgcc  $LIBS"
16787 cat >conftest.$ac_ext <<_ACEOF
16788 /* confdefs.h.  */
16789 _ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h.  */
16793
16794 /* Override any GCC internal prototype to avoid an error.
16795    Use char because int might match the return type of a GCC
16796    builtin and then its argument prototype would still apply.  */
16797 #ifdef __cplusplus
16798 extern "C"
16799 #endif
16800 char __fixdfdi ();
16801 int
16802 main ()
16803 {
16804 return __fixdfdi ();
16805   ;
16806   return 0;
16807 }
16808 _ACEOF
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16817   ac_status=$?
16818   grep -v '^ *+' conftest.er1 >conftest.err
16819   rm -f conftest.er1
16820   cat conftest.err >&5
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); } &&
16823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824   { (case "(($ac_try" in
16825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826   *) ac_try_echo=$ac_try;;
16827 esac
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829   (eval "$ac_try") 2>&5
16830   ac_status=$?
16831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832   (exit $ac_status); }; } &&
16833          { ac_try='test -s conftest$ac_exeext'
16834   { (case "(($ac_try" in
16835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836   *) ac_try_echo=$ac_try;;
16837 esac
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839   (eval "$ac_try") 2>&5
16840   ac_status=$?
16841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842   (exit $ac_status); }; }; then
16843   ac_cv_lib_gcc___fixdfdi=yes
16844 else
16845   echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848         ac_cv_lib_gcc___fixdfdi=no
16849 fi
16850
16851 rm -f core conftest.err conftest.$ac_objext \
16852       conftest$ac_exeext conftest.$ac_ext
16853 LIBS=$ac_check_lib_save_LIBS
16854 fi
16855 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16856 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16857 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16858
16859 cat >>confdefs.h <<\_ACEOF
16860 #define HAVE___FIXDFDI 1
16861 _ACEOF
16862
16863 fi
16864
16865   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16866 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16867 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16868   echo $ECHO_N "(cached) $ECHO_C" >&6
16869 else
16870   ac_check_lib_save_LIBS=$LIBS
16871 LIBS="-lgcc  $LIBS"
16872 cat >conftest.$ac_ext <<_ACEOF
16873 /* confdefs.h.  */
16874 _ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h.  */
16878
16879 /* Override any GCC internal prototype to avoid an error.
16880    Use char because int might match the return type of a GCC
16881    builtin and then its argument prototype would still apply.  */
16882 #ifdef __cplusplus
16883 extern "C"
16884 #endif
16885 char __fixsfdi ();
16886 int
16887 main ()
16888 {
16889 return __fixsfdi ();
16890   ;
16891   return 0;
16892 }
16893 _ACEOF
16894 rm -f conftest.$ac_objext conftest$ac_exeext
16895 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16902   ac_status=$?
16903   grep -v '^ *+' conftest.er1 >conftest.err
16904   rm -f conftest.er1
16905   cat conftest.err >&5
16906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907   (exit $ac_status); } &&
16908          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16909   { (case "(($ac_try" in
16910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911   *) ac_try_echo=$ac_try;;
16912 esac
16913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914   (eval "$ac_try") 2>&5
16915   ac_status=$?
16916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917   (exit $ac_status); }; } &&
16918          { ac_try='test -s conftest$ac_exeext'
16919   { (case "(($ac_try" in
16920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921   *) ac_try_echo=$ac_try;;
16922 esac
16923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16924   (eval "$ac_try") 2>&5
16925   ac_status=$?
16926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); }; }; then
16928   ac_cv_lib_gcc___fixsfdi=yes
16929 else
16930   echo "$as_me: failed program was:" >&5
16931 sed 's/^/| /' conftest.$ac_ext >&5
16932
16933         ac_cv_lib_gcc___fixsfdi=no
16934 fi
16935
16936 rm -f core conftest.err conftest.$ac_objext \
16937       conftest$ac_exeext conftest.$ac_ext
16938 LIBS=$ac_check_lib_save_LIBS
16939 fi
16940 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16941 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16942 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16943
16944 cat >>confdefs.h <<\_ACEOF
16945 #define HAVE___FIXSFDI 1
16946 _ACEOF
16947
16948 fi
16949
16950   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16951 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16952 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16953   echo $ECHO_N "(cached) $ECHO_C" >&6
16954 else
16955   ac_check_lib_save_LIBS=$LIBS
16956 LIBS="-lgcc  $LIBS"
16957 cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h.  */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h.  */
16963
16964 /* Override any GCC internal prototype to avoid an error.
16965    Use char because int might match the return type of a GCC
16966    builtin and then its argument prototype would still apply.  */
16967 #ifdef __cplusplus
16968 extern "C"
16969 #endif
16970 char __floatdidf ();
16971 int
16972 main ()
16973 {
16974 return __floatdidf ();
16975   ;
16976   return 0;
16977 }
16978 _ACEOF
16979 rm -f conftest.$ac_objext conftest$ac_exeext
16980 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
16987   ac_status=$?
16988   grep -v '^ *+' conftest.er1 >conftest.err
16989   rm -f conftest.er1
16990   cat conftest.err >&5
16991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992   (exit $ac_status); } &&
16993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16994   { (case "(($ac_try" in
16995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996   *) ac_try_echo=$ac_try;;
16997 esac
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999   (eval "$ac_try") 2>&5
17000   ac_status=$?
17001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002   (exit $ac_status); }; } &&
17003          { ac_try='test -s conftest$ac_exeext'
17004   { (case "(($ac_try" in
17005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006   *) ac_try_echo=$ac_try;;
17007 esac
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009   (eval "$ac_try") 2>&5
17010   ac_status=$?
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); }; }; then
17013   ac_cv_lib_gcc___floatdidf=yes
17014 else
17015   echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17017
17018         ac_cv_lib_gcc___floatdidf=no
17019 fi
17020
17021 rm -f core conftest.err conftest.$ac_objext \
17022       conftest$ac_exeext conftest.$ac_ext
17023 LIBS=$ac_check_lib_save_LIBS
17024 fi
17025 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
17026 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
17027 if test $ac_cv_lib_gcc___floatdidf = yes; then
17028
17029 cat >>confdefs.h <<\_ACEOF
17030 #define HAVE___FLOATDIDF 1
17031 _ACEOF
17032
17033 fi
17034
17035   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
17036 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
17037 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
17038   echo $ECHO_N "(cached) $ECHO_C" >&6
17039 else
17040   ac_check_lib_save_LIBS=$LIBS
17041 LIBS="-lgcc  $LIBS"
17042 cat >conftest.$ac_ext <<_ACEOF
17043 /* confdefs.h.  */
17044 _ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h.  */
17048
17049 /* Override any GCC internal prototype to avoid an error.
17050    Use char because int might match the return type of a GCC
17051    builtin and then its argument prototype would still apply.  */
17052 #ifdef __cplusplus
17053 extern "C"
17054 #endif
17055 char __lshrdi3 ();
17056 int
17057 main ()
17058 {
17059 return __lshrdi3 ();
17060   ;
17061   return 0;
17062 }
17063 _ACEOF
17064 rm -f conftest.$ac_objext conftest$ac_exeext
17065 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17072   ac_status=$?
17073   grep -v '^ *+' conftest.er1 >conftest.err
17074   rm -f conftest.er1
17075   cat conftest.err >&5
17076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077   (exit $ac_status); } &&
17078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17079   { (case "(($ac_try" in
17080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17081   *) ac_try_echo=$ac_try;;
17082 esac
17083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17084   (eval "$ac_try") 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; } &&
17088          { ac_try='test -s conftest$ac_exeext'
17089   { (case "(($ac_try" in
17090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17091   *) ac_try_echo=$ac_try;;
17092 esac
17093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17094   (eval "$ac_try") 2>&5
17095   ac_status=$?
17096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097   (exit $ac_status); }; }; then
17098   ac_cv_lib_gcc___lshrdi3=yes
17099 else
17100   echo "$as_me: failed program was:" >&5
17101 sed 's/^/| /' conftest.$ac_ext >&5
17102
17103         ac_cv_lib_gcc___lshrdi3=no
17104 fi
17105
17106 rm -f core conftest.err conftest.$ac_objext \
17107       conftest$ac_exeext conftest.$ac_ext
17108 LIBS=$ac_check_lib_save_LIBS
17109 fi
17110 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
17111 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
17112 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
17113
17114 cat >>confdefs.h <<\_ACEOF
17115 #define HAVE___LSHRDI3 1
17116 _ACEOF
17117
17118 fi
17119
17120   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
17121 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
17122 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
17123   echo $ECHO_N "(cached) $ECHO_C" >&6
17124 else
17125   ac_check_lib_save_LIBS=$LIBS
17126 LIBS="-lgcc  $LIBS"
17127 cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h.  */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h.  */
17133
17134 /* Override any GCC internal prototype to avoid an error.
17135    Use char because int might match the return type of a GCC
17136    builtin and then its argument prototype would still apply.  */
17137 #ifdef __cplusplus
17138 extern "C"
17139 #endif
17140 char __moddi3 ();
17141 int
17142 main ()
17143 {
17144 return __moddi3 ();
17145   ;
17146   return 0;
17147 }
17148 _ACEOF
17149 rm -f conftest.$ac_objext conftest$ac_exeext
17150 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17157   ac_status=$?
17158   grep -v '^ *+' conftest.er1 >conftest.err
17159   rm -f conftest.er1
17160   cat conftest.err >&5
17161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162   (exit $ac_status); } &&
17163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17164   { (case "(($ac_try" in
17165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166   *) ac_try_echo=$ac_try;;
17167 esac
17168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17169   (eval "$ac_try") 2>&5
17170   ac_status=$?
17171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); }; } &&
17173          { ac_try='test -s conftest$ac_exeext'
17174   { (case "(($ac_try" in
17175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176   *) ac_try_echo=$ac_try;;
17177 esac
17178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17179   (eval "$ac_try") 2>&5
17180   ac_status=$?
17181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182   (exit $ac_status); }; }; then
17183   ac_cv_lib_gcc___moddi3=yes
17184 else
17185   echo "$as_me: failed program was:" >&5
17186 sed 's/^/| /' conftest.$ac_ext >&5
17187
17188         ac_cv_lib_gcc___moddi3=no
17189 fi
17190
17191 rm -f core conftest.err conftest.$ac_objext \
17192       conftest$ac_exeext conftest.$ac_ext
17193 LIBS=$ac_check_lib_save_LIBS
17194 fi
17195 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
17196 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
17197 if test $ac_cv_lib_gcc___moddi3 = yes; then
17198
17199 cat >>confdefs.h <<\_ACEOF
17200 #define HAVE___MODDI3 1
17201 _ACEOF
17202
17203 fi
17204
17205   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
17206 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
17207 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
17208   echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210   ac_check_lib_save_LIBS=$LIBS
17211 LIBS="-lgcc  $LIBS"
17212 cat >conftest.$ac_ext <<_ACEOF
17213 /* confdefs.h.  */
17214 _ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h.  */
17218
17219 /* Override any GCC internal prototype to avoid an error.
17220    Use char because int might match the return type of a GCC
17221    builtin and then its argument prototype would still apply.  */
17222 #ifdef __cplusplus
17223 extern "C"
17224 #endif
17225 char __udivdi3 ();
17226 int
17227 main ()
17228 {
17229 return __udivdi3 ();
17230   ;
17231   return 0;
17232 }
17233 _ACEOF
17234 rm -f conftest.$ac_objext conftest$ac_exeext
17235 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17242   ac_status=$?
17243   grep -v '^ *+' conftest.er1 >conftest.err
17244   rm -f conftest.er1
17245   cat conftest.err >&5
17246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); } &&
17248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17249   { (case "(($ac_try" in
17250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251   *) ac_try_echo=$ac_try;;
17252 esac
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254   (eval "$ac_try") 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }; } &&
17258          { ac_try='test -s conftest$ac_exeext'
17259   { (case "(($ac_try" in
17260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261   *) ac_try_echo=$ac_try;;
17262 esac
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264   (eval "$ac_try") 2>&5
17265   ac_status=$?
17266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267   (exit $ac_status); }; }; then
17268   ac_cv_lib_gcc___udivdi3=yes
17269 else
17270   echo "$as_me: failed program was:" >&5
17271 sed 's/^/| /' conftest.$ac_ext >&5
17272
17273         ac_cv_lib_gcc___udivdi3=no
17274 fi
17275
17276 rm -f core conftest.err conftest.$ac_objext \
17277       conftest$ac_exeext conftest.$ac_ext
17278 LIBS=$ac_check_lib_save_LIBS
17279 fi
17280 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
17281 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
17282 if test $ac_cv_lib_gcc___udivdi3 = yes; then
17283
17284 cat >>confdefs.h <<\_ACEOF
17285 #define HAVE___UDIVDI3 1
17286 _ACEOF
17287
17288 fi
17289
17290   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
17291 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
17292 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
17293   echo $ECHO_N "(cached) $ECHO_C" >&6
17294 else
17295   ac_check_lib_save_LIBS=$LIBS
17296 LIBS="-lgcc  $LIBS"
17297 cat >conftest.$ac_ext <<_ACEOF
17298 /* confdefs.h.  */
17299 _ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h.  */
17303
17304 /* Override any GCC internal prototype to avoid an error.
17305    Use char because int might match the return type of a GCC
17306    builtin and then its argument prototype would still apply.  */
17307 #ifdef __cplusplus
17308 extern "C"
17309 #endif
17310 char __umoddi3 ();
17311 int
17312 main ()
17313 {
17314 return __umoddi3 ();
17315   ;
17316   return 0;
17317 }
17318 _ACEOF
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17327   ac_status=$?
17328   grep -v '^ *+' conftest.er1 >conftest.err
17329   rm -f conftest.er1
17330   cat conftest.err >&5
17331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332   (exit $ac_status); } &&
17333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17334   { (case "(($ac_try" in
17335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17336   *) ac_try_echo=$ac_try;;
17337 esac
17338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17339   (eval "$ac_try") 2>&5
17340   ac_status=$?
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); }; } &&
17343          { ac_try='test -s conftest$ac_exeext'
17344   { (case "(($ac_try" in
17345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346   *) ac_try_echo=$ac_try;;
17347 esac
17348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17349   (eval "$ac_try") 2>&5
17350   ac_status=$?
17351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352   (exit $ac_status); }; }; then
17353   ac_cv_lib_gcc___umoddi3=yes
17354 else
17355   echo "$as_me: failed program was:" >&5
17356 sed 's/^/| /' conftest.$ac_ext >&5
17357
17358         ac_cv_lib_gcc___umoddi3=no
17359 fi
17360
17361 rm -f core conftest.err conftest.$ac_objext \
17362       conftest$ac_exeext conftest.$ac_ext
17363 LIBS=$ac_check_lib_save_LIBS
17364 fi
17365 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
17366 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
17367 if test $ac_cv_lib_gcc___umoddi3 = yes; then
17368
17369 cat >>confdefs.h <<\_ACEOF
17370 #define HAVE___UMODDI3 1
17371 _ACEOF
17372
17373 fi
17374
17375
17376   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
17377 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
17378 if test "${ac_cv_lib_gcc___main+set}" = set; then
17379   echo $ECHO_N "(cached) $ECHO_C" >&6
17380 else
17381   ac_check_lib_save_LIBS=$LIBS
17382 LIBS="-lgcc  $LIBS"
17383 cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h.  */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h.  */
17389
17390 /* Override any GCC internal prototype to avoid an error.
17391    Use char because int might match the return type of a GCC
17392    builtin and then its argument prototype would still apply.  */
17393 #ifdef __cplusplus
17394 extern "C"
17395 #endif
17396 char __main ();
17397 int
17398 main ()
17399 {
17400 return __main ();
17401   ;
17402   return 0;
17403 }
17404 _ACEOF
17405 rm -f conftest.$ac_objext conftest$ac_exeext
17406 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17413   ac_status=$?
17414   grep -v '^ *+' conftest.er1 >conftest.err
17415   rm -f conftest.er1
17416   cat conftest.err >&5
17417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418   (exit $ac_status); } &&
17419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17420   { (case "(($ac_try" in
17421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422   *) ac_try_echo=$ac_try;;
17423 esac
17424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17425   (eval "$ac_try") 2>&5
17426   ac_status=$?
17427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428   (exit $ac_status); }; } &&
17429          { ac_try='test -s conftest$ac_exeext'
17430   { (case "(($ac_try" in
17431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17432   *) ac_try_echo=$ac_try;;
17433 esac
17434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17435   (eval "$ac_try") 2>&5
17436   ac_status=$?
17437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438   (exit $ac_status); }; }; then
17439   ac_cv_lib_gcc___main=yes
17440 else
17441   echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17443
17444         ac_cv_lib_gcc___main=no
17445 fi
17446
17447 rm -f core conftest.err conftest.$ac_objext \
17448       conftest$ac_exeext conftest.$ac_ext
17449 LIBS=$ac_check_lib_save_LIBS
17450 fi
17451 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
17452 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
17453 if test $ac_cv_lib_gcc___main = yes; then
17454
17455 cat >>confdefs.h <<\_ACEOF
17456 #define HAVE___MAIN 1
17457 _ACEOF
17458
17459 fi
17460
17461   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
17462 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
17463 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
17464   echo $ECHO_N "(cached) $ECHO_C" >&6
17465 else
17466   ac_check_lib_save_LIBS=$LIBS
17467 LIBS="-lgcc  $LIBS"
17468 cat >conftest.$ac_ext <<_ACEOF
17469 /* confdefs.h.  */
17470 _ACEOF
17471 cat confdefs.h >>conftest.$ac_ext
17472 cat >>conftest.$ac_ext <<_ACEOF
17473 /* end confdefs.h.  */
17474
17475 /* Override any GCC internal prototype to avoid an error.
17476    Use char because int might match the return type of a GCC
17477    builtin and then its argument prototype would still apply.  */
17478 #ifdef __cplusplus
17479 extern "C"
17480 #endif
17481 char __cmpdi2 ();
17482 int
17483 main ()
17484 {
17485 return __cmpdi2 ();
17486   ;
17487   return 0;
17488 }
17489 _ACEOF
17490 rm -f conftest.$ac_objext conftest$ac_exeext
17491 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
17498   ac_status=$?
17499   grep -v '^ *+' conftest.er1 >conftest.err
17500   rm -f conftest.er1
17501   cat conftest.err >&5
17502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); } &&
17504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17505   { (case "(($ac_try" in
17506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507   *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510   (eval "$ac_try") 2>&5
17511   ac_status=$?
17512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513   (exit $ac_status); }; } &&
17514          { ac_try='test -s conftest$ac_exeext'
17515   { (case "(($ac_try" in
17516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17517   *) ac_try_echo=$ac_try;;
17518 esac
17519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17520   (eval "$ac_try") 2>&5
17521   ac_status=$?
17522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523   (exit $ac_status); }; }; then
17524   ac_cv_lib_gcc___cmpdi2=yes
17525 else
17526   echo "$as_me: failed program was:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17528
17529         ac_cv_lib_gcc___cmpdi2=no
17530 fi
17531
17532 rm -f core conftest.err conftest.$ac_objext \
17533       conftest$ac_exeext conftest.$ac_ext
17534 LIBS=$ac_check_lib_save_LIBS
17535 fi
17536 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
17537 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
17538 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
17539
17540 cat >>confdefs.h <<\_ACEOF
17541 #define HAVE___CMPDI2 1
17542 _ACEOF
17543
17544 fi
17545
17546 fi
17547
17548 if test "$llvm_cv_os_type" = "MingW" ; then
17549   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
17550 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
17551   cat >conftest.$ac_ext <<_ACEOF
17552
17553   /* confdefs.h.  */
17554 _ACEOF
17555 cat confdefs.h >>conftest.$ac_ext
17556 cat >>conftest.$ac_ext <<_ACEOF
17557 /* end confdefs.h.  */
17558
17559     #include <windows.h>
17560     #include <imagehlp.h>
17561     extern void foo(PENUMLOADED_MODULES_CALLBACK);
17562     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
17563
17564
17565 _ACEOF
17566 rm -f conftest.$ac_objext
17567 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17574   ac_status=$?
17575   grep -v '^ *+' conftest.er1 >conftest.err
17576   rm -f conftest.er1
17577   cat conftest.err >&5
17578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579   (exit $ac_status); } &&
17580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17581   { (case "(($ac_try" in
17582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583   *) ac_try_echo=$ac_try;;
17584 esac
17585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17586   (eval "$ac_try") 2>&5
17587   ac_status=$?
17588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589   (exit $ac_status); }; } &&
17590          { ac_try='test -s conftest.$ac_objext'
17591   { (case "(($ac_try" in
17592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593   *) ac_try_echo=$ac_try;;
17594 esac
17595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17596   (eval "$ac_try") 2>&5
17597   ac_status=$?
17598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599   (exit $ac_status); }; }; then
17600
17601   { echo "$as_me:$LINENO: result: yes" >&5
17602 echo "${ECHO_T}yes" >&6; }
17603   llvm_cv_win32_elmcb_pcstr="PCSTR"
17604
17605 else
17606   echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17608
17609
17610   { echo "$as_me:$LINENO: result: no" >&5
17611 echo "${ECHO_T}no" >&6; }
17612   llvm_cv_win32_elmcb_pcstr="PSTR"
17613
17614 fi
17615
17616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17617
17618 cat >>confdefs.h <<_ACEOF
17619 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
17620 _ACEOF
17621
17622 fi
17623
17624
17625
17626   { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
17627 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
17628 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
17629   echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631
17632     ac_ext=cpp
17633 ac_cpp='$CXXCPP $CPPFLAGS'
17634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17637
17638     cat >conftest.$ac_ext <<_ACEOF
17639 /* confdefs.h.  */
17640 _ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h.  */
17644 #include <math.h>
17645 int
17646 main ()
17647 {
17648 float f; isnan(f);
17649   ;
17650   return 0;
17651 }
17652 _ACEOF
17653 rm -f conftest.$ac_objext
17654 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17661   ac_status=$?
17662   grep -v '^ *+' conftest.er1 >conftest.err
17663   rm -f conftest.er1
17664   cat conftest.err >&5
17665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666   (exit $ac_status); } &&
17667          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17668   { (case "(($ac_try" in
17669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670   *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673   (eval "$ac_try") 2>&5
17674   ac_status=$?
17675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676   (exit $ac_status); }; } &&
17677          { ac_try='test -s conftest.$ac_objext'
17678   { (case "(($ac_try" in
17679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680   *) ac_try_echo=$ac_try;;
17681 esac
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683   (eval "$ac_try") 2>&5
17684   ac_status=$?
17685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686   (exit $ac_status); }; }; then
17687   ac_cv_func_isnan_in_math_h=yes
17688 else
17689   echo "$as_me: failed program was:" >&5
17690 sed 's/^/| /' conftest.$ac_ext >&5
17691
17692         ac_cv_func_isnan_in_math_h=no
17693 fi
17694
17695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17696     ac_ext=c
17697 ac_cpp='$CPP $CPPFLAGS'
17698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17701
17702
17703 fi
17704 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
17705 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
17706
17707
17708 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
17709
17710 cat >>confdefs.h <<\_ACEOF
17711 #define HAVE_ISNAN_IN_MATH_H 1
17712 _ACEOF
17713
17714 fi
17715
17716
17717   { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
17718 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
17719 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
17720   echo $ECHO_N "(cached) $ECHO_C" >&6
17721 else
17722
17723     ac_ext=cpp
17724 ac_cpp='$CXXCPP $CPPFLAGS'
17725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17728
17729     cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h.  */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h.  */
17735 #include <cmath>
17736 int
17737 main ()
17738 {
17739 float f; isnan(f);
17740   ;
17741   return 0;
17742 }
17743 _ACEOF
17744 rm -f conftest.$ac_objext
17745 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17752   ac_status=$?
17753   grep -v '^ *+' conftest.er1 >conftest.err
17754   rm -f conftest.er1
17755   cat conftest.err >&5
17756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757   (exit $ac_status); } &&
17758          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17759   { (case "(($ac_try" in
17760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761   *) ac_try_echo=$ac_try;;
17762 esac
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764   (eval "$ac_try") 2>&5
17765   ac_status=$?
17766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767   (exit $ac_status); }; } &&
17768          { ac_try='test -s conftest.$ac_objext'
17769   { (case "(($ac_try" in
17770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771   *) ac_try_echo=$ac_try;;
17772 esac
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774   (eval "$ac_try") 2>&5
17775   ac_status=$?
17776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777   (exit $ac_status); }; }; then
17778   ac_cv_func_isnan_in_cmath=yes
17779 else
17780   echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17782
17783         ac_cv_func_isnan_in_cmath=no
17784 fi
17785
17786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17787     ac_ext=c
17788 ac_cpp='$CPP $CPPFLAGS'
17789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17792
17793
17794 fi
17795 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
17796 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
17797
17798 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
17799
17800 cat >>confdefs.h <<\_ACEOF
17801 #define HAVE_ISNAN_IN_CMATH 1
17802 _ACEOF
17803
17804 fi
17805
17806
17807   { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
17808 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
17809 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
17810   echo $ECHO_N "(cached) $ECHO_C" >&6
17811 else
17812
17813     ac_ext=cpp
17814 ac_cpp='$CXXCPP $CPPFLAGS'
17815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17818
17819     cat >conftest.$ac_ext <<_ACEOF
17820 /* confdefs.h.  */
17821 _ACEOF
17822 cat confdefs.h >>conftest.$ac_ext
17823 cat >>conftest.$ac_ext <<_ACEOF
17824 /* end confdefs.h.  */
17825 #include <cmath>
17826 int
17827 main ()
17828 {
17829 float f; std::isnan(f);
17830   ;
17831   return 0;
17832 }
17833 _ACEOF
17834 rm -f conftest.$ac_objext
17835 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17842   ac_status=$?
17843   grep -v '^ *+' conftest.er1 >conftest.err
17844   rm -f conftest.er1
17845   cat conftest.err >&5
17846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847   (exit $ac_status); } &&
17848          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17849   { (case "(($ac_try" in
17850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851   *) ac_try_echo=$ac_try;;
17852 esac
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854   (eval "$ac_try") 2>&5
17855   ac_status=$?
17856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17857   (exit $ac_status); }; } &&
17858          { ac_try='test -s conftest.$ac_objext'
17859   { (case "(($ac_try" in
17860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861   *) ac_try_echo=$ac_try;;
17862 esac
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864   (eval "$ac_try") 2>&5
17865   ac_status=$?
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); }; }; then
17868   ac_cv_func_std_isnan_in_cmath=yes
17869 else
17870   echo "$as_me: failed program was:" >&5
17871 sed 's/^/| /' conftest.$ac_ext >&5
17872
17873         ac_cv_func_std_isnan_in_cmath=no
17874 fi
17875
17876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17877     ac_ext=c
17878 ac_cpp='$CPP $CPPFLAGS'
17879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17882
17883
17884 fi
17885 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
17886 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
17887
17888 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
17889
17890 cat >>confdefs.h <<\_ACEOF
17891 #define HAVE_STD_ISNAN_IN_CMATH 1
17892 _ACEOF
17893
17894 fi
17895
17896
17897
17898
17899   { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
17900 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
17901 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
17902   echo $ECHO_N "(cached) $ECHO_C" >&6
17903 else
17904
17905     ac_ext=cpp
17906 ac_cpp='$CXXCPP $CPPFLAGS'
17907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17910
17911     cat >conftest.$ac_ext <<_ACEOF
17912 /* confdefs.h.  */
17913 _ACEOF
17914 cat confdefs.h >>conftest.$ac_ext
17915 cat >>conftest.$ac_ext <<_ACEOF
17916 /* end confdefs.h.  */
17917 #include <math.h>
17918 int
17919 main ()
17920 {
17921 float f; isinf(f);
17922   ;
17923   return 0;
17924 }
17925 _ACEOF
17926 rm -f conftest.$ac_objext
17927 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
17934   ac_status=$?
17935   grep -v '^ *+' conftest.er1 >conftest.err
17936   rm -f conftest.er1
17937   cat conftest.err >&5
17938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939   (exit $ac_status); } &&
17940          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17941   { (case "(($ac_try" in
17942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943   *) ac_try_echo=$ac_try;;
17944 esac
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946   (eval "$ac_try") 2>&5
17947   ac_status=$?
17948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949   (exit $ac_status); }; } &&
17950          { ac_try='test -s conftest.$ac_objext'
17951   { (case "(($ac_try" in
17952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953   *) ac_try_echo=$ac_try;;
17954 esac
17955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17956   (eval "$ac_try") 2>&5
17957   ac_status=$?
17958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959   (exit $ac_status); }; }; then
17960   ac_cv_func_isinf_in_math_h=yes
17961 else
17962   echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17964
17965         ac_cv_func_isinf_in_math_h=no
17966 fi
17967
17968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17969     ac_ext=c
17970 ac_cpp='$CPP $CPPFLAGS'
17971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17974
17975
17976 fi
17977 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
17978 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
17979
17980 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
17981
17982 cat >>confdefs.h <<\_ACEOF
17983 #define HAVE_ISINF_IN_MATH_H 1
17984 _ACEOF
17985
17986 fi
17987
17988
17989   { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
17990 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
17991 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
17992   echo $ECHO_N "(cached) $ECHO_C" >&6
17993 else
17994
17995     ac_ext=cpp
17996 ac_cpp='$CXXCPP $CPPFLAGS'
17997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18000
18001     cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h.  */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h.  */
18007 #include <cmath>
18008 int
18009 main ()
18010 {
18011 float f; isinf(f);
18012   ;
18013   return 0;
18014 }
18015 _ACEOF
18016 rm -f conftest.$ac_objext
18017 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
18024   ac_status=$?
18025   grep -v '^ *+' conftest.er1 >conftest.err
18026   rm -f conftest.er1
18027   cat conftest.err >&5
18028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029   (exit $ac_status); } &&
18030          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18031   { (case "(($ac_try" in
18032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033   *) ac_try_echo=$ac_try;;
18034 esac
18035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18036   (eval "$ac_try") 2>&5
18037   ac_status=$?
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); }; } &&
18040          { ac_try='test -s conftest.$ac_objext'
18041   { (case "(($ac_try" in
18042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043   *) ac_try_echo=$ac_try;;
18044 esac
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046   (eval "$ac_try") 2>&5
18047   ac_status=$?
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); }; }; then
18050   ac_cv_func_isinf_in_cmath=yes
18051 else
18052   echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055         ac_cv_func_isinf_in_cmath=no
18056 fi
18057
18058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18059     ac_ext=c
18060 ac_cpp='$CPP $CPPFLAGS'
18061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18064
18065
18066 fi
18067 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18068 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18069
18070 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18071
18072 cat >>confdefs.h <<\_ACEOF
18073 #define HAVE_ISINF_IN_CMATH 1
18074 _ACEOF
18075
18076 fi
18077
18078
18079   { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18080 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18081 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18082   echo $ECHO_N "(cached) $ECHO_C" >&6
18083 else
18084
18085     ac_ext=cpp
18086 ac_cpp='$CXXCPP $CPPFLAGS'
18087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18090
18091     cat >conftest.$ac_ext <<_ACEOF
18092 /* confdefs.h.  */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h.  */
18097 #include <cmath>
18098 int
18099 main ()
18100 {
18101 float f; std::isinf(f);
18102   ;
18103   return 0;
18104 }
18105 _ACEOF
18106 rm -f conftest.$ac_objext
18107 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
18114   ac_status=$?
18115   grep -v '^ *+' conftest.er1 >conftest.err
18116   rm -f conftest.er1
18117   cat conftest.err >&5
18118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); } &&
18120          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18121   { (case "(($ac_try" in
18122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18123   *) ac_try_echo=$ac_try;;
18124 esac
18125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18126   (eval "$ac_try") 2>&5
18127   ac_status=$?
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); }; } &&
18130          { ac_try='test -s conftest.$ac_objext'
18131   { (case "(($ac_try" in
18132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18133   *) ac_try_echo=$ac_try;;
18134 esac
18135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18136   (eval "$ac_try") 2>&5
18137   ac_status=$?
18138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139   (exit $ac_status); }; }; then
18140   ac_cv_func_std_isinf_in_cmath=yes
18141 else
18142   echo "$as_me: failed program was:" >&5
18143 sed 's/^/| /' conftest.$ac_ext >&5
18144
18145         ac_cv_func_std_isinf_in_cmath=no
18146 fi
18147
18148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18149     ac_ext=c
18150 ac_cpp='$CPP $CPPFLAGS'
18151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18154
18155
18156 fi
18157 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18158 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18159
18160 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18161
18162 cat >>confdefs.h <<\_ACEOF
18163 #define HAVE_STD_ISINF_IN_CMATH 1
18164 _ACEOF
18165
18166 fi
18167
18168
18169   { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18170 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18171 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18172   echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174
18175     ac_ext=cpp
18176 ac_cpp='$CXXCPP $CPPFLAGS'
18177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18180
18181     cat >conftest.$ac_ext <<_ACEOF
18182 /* confdefs.h.  */
18183 _ACEOF
18184 cat confdefs.h >>conftest.$ac_ext
18185 cat >>conftest.$ac_ext <<_ACEOF
18186 /* end confdefs.h.  */
18187 #include <ieeefp.h>
18188 int
18189 main ()
18190 {
18191 float f; finite(f);
18192   ;
18193   return 0;
18194 }
18195 _ACEOF
18196 rm -f conftest.$ac_objext
18197 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
18204   ac_status=$?
18205   grep -v '^ *+' conftest.er1 >conftest.err
18206   rm -f conftest.er1
18207   cat conftest.err >&5
18208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209   (exit $ac_status); } &&
18210          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18211   { (case "(($ac_try" in
18212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213   *) ac_try_echo=$ac_try;;
18214 esac
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216   (eval "$ac_try") 2>&5
18217   ac_status=$?
18218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219   (exit $ac_status); }; } &&
18220          { ac_try='test -s conftest.$ac_objext'
18221   { (case "(($ac_try" in
18222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18223   *) ac_try_echo=$ac_try;;
18224 esac
18225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18226   (eval "$ac_try") 2>&5
18227   ac_status=$?
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); }; }; then
18230   ac_cv_func_finite_in_ieeefp_h=yes
18231 else
18232   echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18234
18235         ac_cv_func_finite_in_ieeefp_h=no
18236 fi
18237
18238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18239     ac_ext=c
18240 ac_cpp='$CPP $CPPFLAGS'
18241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18244
18245
18246 fi
18247 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18248 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18249
18250 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18251
18252 cat >>confdefs.h <<\_ACEOF
18253 #define HAVE_FINITE_IN_IEEEFP_H 1
18254 _ACEOF
18255
18256 fi
18257
18258
18259
18260 if test "$llvm_cv_platform_type" = "Unix" ; then
18261
18262
18263 for ac_header in stdlib.h unistd.h
18264 do
18265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18267   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18270   echo $ECHO_N "(cached) $ECHO_C" >&6
18271 fi
18272 ac_res=`eval echo '${'$as_ac_Header'}'`
18273                { echo "$as_me:$LINENO: result: $ac_res" >&5
18274 echo "${ECHO_T}$ac_res" >&6; }
18275 else
18276   # Is the header compilable?
18277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18279 cat >conftest.$ac_ext <<_ACEOF
18280 /* confdefs.h.  */
18281 _ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h.  */
18285 $ac_includes_default
18286 #include <$ac_header>
18287 _ACEOF
18288 rm -f conftest.$ac_objext
18289 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
18296   ac_status=$?
18297   grep -v '^ *+' conftest.er1 >conftest.err
18298   rm -f conftest.er1
18299   cat conftest.err >&5
18300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301   (exit $ac_status); } &&
18302          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18303   { (case "(($ac_try" in
18304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305   *) ac_try_echo=$ac_try;;
18306 esac
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308   (eval "$ac_try") 2>&5
18309   ac_status=$?
18310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); }; } &&
18312          { ac_try='test -s conftest.$ac_objext'
18313   { (case "(($ac_try" in
18314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315   *) ac_try_echo=$ac_try;;
18316 esac
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318   (eval "$ac_try") 2>&5
18319   ac_status=$?
18320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321   (exit $ac_status); }; }; then
18322   ac_header_compiler=yes
18323 else
18324   echo "$as_me: failed program was:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18326
18327         ac_header_compiler=no
18328 fi
18329
18330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18332 echo "${ECHO_T}$ac_header_compiler" >&6; }
18333
18334 # Is the header present?
18335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18337 cat >conftest.$ac_ext <<_ACEOF
18338 /* confdefs.h.  */
18339 _ACEOF
18340 cat confdefs.h >>conftest.$ac_ext
18341 cat >>conftest.$ac_ext <<_ACEOF
18342 /* end confdefs.h.  */
18343 #include <$ac_header>
18344 _ACEOF
18345 if { (ac_try="$ac_cpp conftest.$ac_ext"
18346 case "(($ac_try" in
18347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348   *) ac_try_echo=$ac_try;;
18349 esac
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18352   ac_status=$?
18353   grep -v '^ *+' conftest.er1 >conftest.err
18354   rm -f conftest.er1
18355   cat conftest.err >&5
18356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); } >/dev/null; then
18358   if test -s conftest.err; then
18359     ac_cpp_err=$ac_c_preproc_warn_flag
18360     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18361   else
18362     ac_cpp_err=
18363   fi
18364 else
18365   ac_cpp_err=yes
18366 fi
18367 if test -z "$ac_cpp_err"; then
18368   ac_header_preproc=yes
18369 else
18370   echo "$as_me: failed program was:" >&5
18371 sed 's/^/| /' conftest.$ac_ext >&5
18372
18373   ac_header_preproc=no
18374 fi
18375
18376 rm -f conftest.err conftest.$ac_ext
18377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18378 echo "${ECHO_T}$ac_header_preproc" >&6; }
18379
18380 # So?  What about this header?
18381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18382   yes:no: )
18383     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18385     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18387     ac_header_preproc=yes
18388     ;;
18389   no:yes:* )
18390     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18392     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18393 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18394     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18396     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18397 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18400     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18402     ( cat <<\_ASBOX
18403 ## ------------------------------------ ##
18404 ## Report this to http://llvm.org/bugs/ ##
18405 ## ------------------------------------ ##
18406 _ASBOX
18407      ) | sed "s/^/$as_me: WARNING:     /" >&2
18408     ;;
18409 esac
18410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18413   echo $ECHO_N "(cached) $ECHO_C" >&6
18414 else
18415   eval "$as_ac_Header=\$ac_header_preproc"
18416 fi
18417 ac_res=`eval echo '${'$as_ac_Header'}'`
18418                { echo "$as_me:$LINENO: result: $ac_res" >&5
18419 echo "${ECHO_T}$ac_res" >&6; }
18420
18421 fi
18422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18423   cat >>confdefs.h <<_ACEOF
18424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18425 _ACEOF
18426
18427 fi
18428
18429 done
18430
18431
18432 for ac_func in getpagesize
18433 do
18434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18438   echo $ECHO_N "(cached) $ECHO_C" >&6
18439 else
18440   cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h.  */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h.  */
18446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18448 #define $ac_func innocuous_$ac_func
18449
18450 /* System header to define __stub macros and hopefully few prototypes,
18451     which can conflict with char $ac_func (); below.
18452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18453     <limits.h> exists even on freestanding compilers.  */
18454
18455 #ifdef __STDC__
18456 # include <limits.h>
18457 #else
18458 # include <assert.h>
18459 #endif
18460
18461 #undef $ac_func
18462
18463 /* Override any GCC internal prototype to avoid an error.
18464    Use char because int might match the return type of a GCC
18465    builtin and then its argument prototype would still apply.  */
18466 #ifdef __cplusplus
18467 extern "C"
18468 #endif
18469 char $ac_func ();
18470 /* The GNU C library defines this for functions which it implements
18471     to always fail with ENOSYS.  Some functions are actually named
18472     something starting with __ and the normal name is an alias.  */
18473 #if defined __stub_$ac_func || defined __stub___$ac_func
18474 choke me
18475 #endif
18476
18477 int
18478 main ()
18479 {
18480 return $ac_func ();
18481   ;
18482   return 0;
18483 }
18484 _ACEOF
18485 rm -f conftest.$ac_objext conftest$ac_exeext
18486 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18493   ac_status=$?
18494   grep -v '^ *+' conftest.er1 >conftest.err
18495   rm -f conftest.er1
18496   cat conftest.err >&5
18497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498   (exit $ac_status); } &&
18499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18500   { (case "(($ac_try" in
18501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18502   *) ac_try_echo=$ac_try;;
18503 esac
18504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18505   (eval "$ac_try") 2>&5
18506   ac_status=$?
18507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508   (exit $ac_status); }; } &&
18509          { ac_try='test -s conftest$ac_exeext'
18510   { (case "(($ac_try" in
18511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512   *) ac_try_echo=$ac_try;;
18513 esac
18514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515   (eval "$ac_try") 2>&5
18516   ac_status=$?
18517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518   (exit $ac_status); }; }; then
18519   eval "$as_ac_var=yes"
18520 else
18521   echo "$as_me: failed program was:" >&5
18522 sed 's/^/| /' conftest.$ac_ext >&5
18523
18524         eval "$as_ac_var=no"
18525 fi
18526
18527 rm -f core conftest.err conftest.$ac_objext \
18528       conftest$ac_exeext conftest.$ac_ext
18529 fi
18530 ac_res=`eval echo '${'$as_ac_var'}'`
18531                { echo "$as_me:$LINENO: result: $ac_res" >&5
18532 echo "${ECHO_T}$ac_res" >&6; }
18533 if test `eval echo '${'$as_ac_var'}'` = yes; then
18534   cat >>confdefs.h <<_ACEOF
18535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18536 _ACEOF
18537
18538 fi
18539 done
18540
18541 { echo "$as_me:$LINENO: checking for working mmap" >&5
18542 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
18543 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
18544   echo $ECHO_N "(cached) $ECHO_C" >&6
18545 else
18546   if test "$cross_compiling" = yes; then
18547   ac_cv_func_mmap_fixed_mapped=no
18548 else
18549   cat >conftest.$ac_ext <<_ACEOF
18550 /* confdefs.h.  */
18551 _ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h.  */
18555 $ac_includes_default
18556 /* malloc might have been renamed as rpl_malloc. */
18557 #undef malloc
18558
18559 /* Thanks to Mike Haertel and Jim Avera for this test.
18560    Here is a matrix of mmap possibilities:
18561         mmap private not fixed
18562         mmap private fixed at somewhere currently unmapped
18563         mmap private fixed at somewhere already mapped
18564         mmap shared not fixed
18565         mmap shared fixed at somewhere currently unmapped
18566         mmap shared fixed at somewhere already mapped
18567    For private mappings, we should verify that changes cannot be read()
18568    back from the file, nor mmap's back from the file at a different
18569    address.  (There have been systems where private was not correctly
18570    implemented like the infamous i386 svr4.0, and systems where the
18571    VM page cache was not coherent with the file system buffer cache
18572    like early versions of FreeBSD and possibly contemporary NetBSD.)
18573    For shared mappings, we should conversely verify that changes get
18574    propagated back to all the places they're supposed to be.
18575
18576    Grep wants private fixed already mapped.
18577    The main things grep needs to know about mmap are:
18578    * does it exist and is it safe to write into the mmap'd area
18579    * how to use it (BSD variants)  */
18580
18581 #include <fcntl.h>
18582 #include <sys/mman.h>
18583
18584 #if !STDC_HEADERS && !HAVE_STDLIB_H
18585 char *malloc ();
18586 #endif
18587
18588 /* This mess was copied from the GNU getpagesize.h.  */
18589 #if !HAVE_GETPAGESIZE
18590 /* Assume that all systems that can run configure have sys/param.h.  */
18591 # if !HAVE_SYS_PARAM_H
18592 #  define HAVE_SYS_PARAM_H 1
18593 # endif
18594
18595 # ifdef _SC_PAGESIZE
18596 #  define getpagesize() sysconf(_SC_PAGESIZE)
18597 # else /* no _SC_PAGESIZE */
18598 #  if HAVE_SYS_PARAM_H
18599 #   include <sys/param.h>
18600 #   ifdef EXEC_PAGESIZE
18601 #    define getpagesize() EXEC_PAGESIZE
18602 #   else /* no EXEC_PAGESIZE */
18603 #    ifdef NBPG
18604 #     define getpagesize() NBPG * CLSIZE
18605 #     ifndef CLSIZE
18606 #      define CLSIZE 1
18607 #     endif /* no CLSIZE */
18608 #    else /* no NBPG */
18609 #     ifdef NBPC
18610 #      define getpagesize() NBPC
18611 #     else /* no NBPC */
18612 #      ifdef PAGESIZE
18613 #       define getpagesize() PAGESIZE
18614 #      endif /* PAGESIZE */
18615 #     endif /* no NBPC */
18616 #    endif /* no NBPG */
18617 #   endif /* no EXEC_PAGESIZE */
18618 #  else /* no HAVE_SYS_PARAM_H */
18619 #   define getpagesize() 8192   /* punt totally */
18620 #  endif /* no HAVE_SYS_PARAM_H */
18621 # endif /* no _SC_PAGESIZE */
18622
18623 #endif /* no HAVE_GETPAGESIZE */
18624
18625 int
18626 main ()
18627 {
18628   char *data, *data2, *data3;
18629   int i, pagesize;
18630   int fd;
18631
18632   pagesize = getpagesize ();
18633
18634   /* First, make a file with some known garbage in it. */
18635   data = (char *) malloc (pagesize);
18636   if (!data)
18637     return 1;
18638   for (i = 0; i < pagesize; ++i)
18639     *(data + i) = rand ();
18640   umask (0);
18641   fd = creat ("conftest.mmap", 0600);
18642   if (fd < 0)
18643     return 1;
18644   if (write (fd, data, pagesize) != pagesize)
18645     return 1;
18646   close (fd);
18647
18648   /* Next, try to mmap the file at a fixed address which already has
18649      something else allocated at it.  If we can, also make sure that
18650      we see the same garbage.  */
18651   fd = open ("conftest.mmap", O_RDWR);
18652   if (fd < 0)
18653     return 1;
18654   data2 = (char *) malloc (2 * pagesize);
18655   if (!data2)
18656     return 1;
18657   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
18658   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18659                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18660     return 1;
18661   for (i = 0; i < pagesize; ++i)
18662     if (*(data + i) != *(data2 + i))
18663       return 1;
18664
18665   /* Finally, make sure that changes to the mapped area do not
18666      percolate back to the file as seen by read().  (This is a bug on
18667      some variants of i386 svr4.0.)  */
18668   for (i = 0; i < pagesize; ++i)
18669     *(data2 + i) = *(data2 + i) + 1;
18670   data3 = (char *) malloc (pagesize);
18671   if (!data3)
18672     return 1;
18673   if (read (fd, data3, pagesize) != pagesize)
18674     return 1;
18675   for (i = 0; i < pagesize; ++i)
18676     if (*(data + i) != *(data3 + i))
18677       return 1;
18678   close (fd);
18679   return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest$ac_exeext
18683 if { (ac_try="$ac_link"
18684 case "(($ac_try" in
18685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686   *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689   (eval "$ac_link") 2>&5
18690   ac_status=$?
18691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18693   { (case "(($ac_try" in
18694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695   *) ac_try_echo=$ac_try;;
18696 esac
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698   (eval "$ac_try") 2>&5
18699   ac_status=$?
18700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701   (exit $ac_status); }; }; then
18702   ac_cv_func_mmap_fixed_mapped=yes
18703 else
18704   echo "$as_me: program exited with status $ac_status" >&5
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18707
18708 ( exit $ac_status )
18709 ac_cv_func_mmap_fixed_mapped=no
18710 fi
18711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18712 fi
18713
18714
18715 fi
18716 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
18717 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
18718 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18719
18720 cat >>confdefs.h <<\_ACEOF
18721 #define HAVE_MMAP 1
18722 _ACEOF
18723
18724 fi
18725 rm -f conftest.mmap
18726
18727   { echo "$as_me:$LINENO: checking for mmap of files" >&5
18728 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
18729 if test "${ac_cv_func_mmap_file+set}" = set; then
18730   echo $ECHO_N "(cached) $ECHO_C" >&6
18731 else
18732    ac_ext=c
18733 ac_cpp='$CPP $CPPFLAGS'
18734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18737
18738   if test "$cross_compiling" = yes; then
18739   ac_cv_func_mmap_file=no
18740 else
18741   cat >conftest.$ac_ext <<_ACEOF
18742
18743     /* confdefs.h.  */
18744 _ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h.  */
18748
18749 #include <sys/types.h>
18750 #include <sys/mman.h>
18751 #include <fcntl.h>
18752
18753 int
18754 main ()
18755 {
18756
18757   int fd;
18758   fd = creat ("foo",0777);
18759   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
18760   unlink ("foo");
18761   return (fd != (int) MAP_FAILED);
18762   ;
18763   return 0;
18764 }
18765 _ACEOF
18766 rm -f conftest$ac_exeext
18767 if { (ac_try="$ac_link"
18768 case "(($ac_try" in
18769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770   *) ac_try_echo=$ac_try;;
18771 esac
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773   (eval "$ac_link") 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18777   { (case "(($ac_try" in
18778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779   *) ac_try_echo=$ac_try;;
18780 esac
18781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782   (eval "$ac_try") 2>&5
18783   ac_status=$?
18784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18785   (exit $ac_status); }; }; then
18786   ac_cv_func_mmap_file=yes
18787 else
18788   echo "$as_me: program exited with status $ac_status" >&5
18789 echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792 ( exit $ac_status )
18793 ac_cv_func_mmap_file=no
18794 fi
18795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18796 fi
18797
18798
18799   ac_ext=c
18800 ac_cpp='$CPP $CPPFLAGS'
18801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18804
18805
18806 fi
18807 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
18808 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
18809 if test "$ac_cv_func_mmap_file" = yes; then
18810
18811 cat >>confdefs.h <<\_ACEOF
18812 #define HAVE_MMAP_FILE
18813 _ACEOF
18814
18815    MMAP_FILE=yes
18816
18817 fi
18818
18819   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
18820 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
18821 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
18822   echo $ECHO_N "(cached) $ECHO_C" >&6
18823 else
18824   if test "$llvm_cv_os_type" = "Interix" ; then
18825    ac_cv_need_dev_zero_for_mmap=yes
18826  else
18827    ac_cv_need_dev_zero_for_mmap=no
18828  fi
18829
18830 fi
18831 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
18832 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
18833 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
18834
18835 cat >>confdefs.h <<\_ACEOF
18836 #define NEED_DEV_ZERO_FOR_MMAP 1
18837 _ACEOF
18838
18839 fi
18840
18841   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
18842   then
18843     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
18844 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
18845   fi
18846   if test "$ac_cv_func_mmap_file" = "no"
18847   then
18848     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
18849 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
18850   fi
18851 fi
18852
18853 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
18854 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
18855 ac_ext=cpp
18856 ac_cpp='$CXXCPP $CPPFLAGS'
18857 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18858 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18859 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18860
18861 cat >conftest.$ac_ext <<_ACEOF
18862
18863   /* confdefs.h.  */
18864 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h.  */
18868
18869     int main() {
18870       volatile unsigned long val = 1;
18871       __sync_synchronize();
18872       __sync_val_compare_and_swap(&val, 1, 0);
18873       __sync_add_and_fetch(&val, 1);
18874       __sync_sub_and_fetch(&val, 1);
18875       return 0;
18876     }
18877
18878
18879 _ACEOF
18880 rm -f conftest.$ac_objext conftest$ac_exeext
18881 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18888   ac_status=$?
18889   grep -v '^ *+' conftest.er1 >conftest.err
18890   rm -f conftest.er1
18891   cat conftest.err >&5
18892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893   (exit $ac_status); } &&
18894          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18895   { (case "(($ac_try" in
18896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897   *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900   (eval "$ac_try") 2>&5
18901   ac_status=$?
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); }; } &&
18904          { ac_try='test -s conftest$ac_exeext'
18905   { (case "(($ac_try" in
18906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907   *) ac_try_echo=$ac_try;;
18908 esac
18909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18910   (eval "$ac_try") 2>&5
18911   ac_status=$?
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); }; }; then
18914
18915   { echo "$as_me:$LINENO: result: yes" >&5
18916 echo "${ECHO_T}yes" >&6; }
18917
18918 cat >>confdefs.h <<\_ACEOF
18919 #define LLVM_HAS_ATOMICS 1
18920 _ACEOF
18921
18922
18923 else
18924   echo "$as_me: failed program was:" >&5
18925 sed 's/^/| /' conftest.$ac_ext >&5
18926
18927
18928   { echo "$as_me:$LINENO: result: no" >&5
18929 echo "${ECHO_T}no" >&6; }
18930
18931 cat >>confdefs.h <<\_ACEOF
18932 #define LLVM_HAS_ATOMICS 0
18933 _ACEOF
18934
18935   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
18936 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
18937
18938 fi
18939
18940 rm -f core conftest.err conftest.$ac_objext \
18941       conftest$ac_exeext conftest.$ac_ext
18942 ac_ext=c
18943 ac_cpp='$CPP $CPPFLAGS'
18944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18947
18948
18949
18950 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
18951   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
18952 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
18953 if test "${llvm_cv_linux_mixed+set}" = set; then
18954   echo $ECHO_N "(cached) $ECHO_C" >&6
18955 else
18956    ac_ext=c
18957 ac_cpp='$CPP $CPPFLAGS'
18958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18961
18962   cat >conftest.$ac_ext <<_ACEOF
18963 /* confdefs.h.  */
18964 _ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h.  */
18968 #ifndef __x86_64__
18969        error: Not x86-64 even if uname says so!
18970       #endif
18971
18972 int
18973 main ()
18974 {
18975
18976   ;
18977   return 0;
18978 }
18979 _ACEOF
18980 rm -f conftest.$ac_objext
18981 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
18988   ac_status=$?
18989   grep -v '^ *+' conftest.er1 >conftest.err
18990   rm -f conftest.er1
18991   cat conftest.err >&5
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); } &&
18994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18995   { (case "(($ac_try" in
18996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997   *) ac_try_echo=$ac_try;;
18998 esac
18999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000   (eval "$ac_try") 2>&5
19001   ac_status=$?
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); }; } &&
19004          { ac_try='test -s conftest.$ac_objext'
19005   { (case "(($ac_try" in
19006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007   *) ac_try_echo=$ac_try;;
19008 esac
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010   (eval "$ac_try") 2>&5
19011   ac_status=$?
19012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013   (exit $ac_status); }; }; then
19014   llvm_cv_linux_mixed=no
19015 else
19016   echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19018
19019         llvm_cv_linux_mixed=yes
19020 fi
19021
19022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19023   ac_ext=c
19024 ac_cpp='$CPP $CPPFLAGS'
19025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19028
19029
19030 fi
19031 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19032 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19033
19034   if test "$llvm_cv_linux_mixed" = "yes"; then
19035     llvm_cv_target_arch="x86"
19036     ARCH="x86"
19037   fi
19038 fi
19039
19040
19041 for ac_func in __dso_handle
19042 do
19043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19047   echo $ECHO_N "(cached) $ECHO_C" >&6
19048 else
19049   cat >conftest.$ac_ext <<_ACEOF
19050 /* confdefs.h.  */
19051 _ACEOF
19052 cat confdefs.h >>conftest.$ac_ext
19053 cat >>conftest.$ac_ext <<_ACEOF
19054 /* end confdefs.h.  */
19055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19057 #define $ac_func innocuous_$ac_func
19058
19059 /* System header to define __stub macros and hopefully few prototypes,
19060     which can conflict with char $ac_func (); below.
19061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19062     <limits.h> exists even on freestanding compilers.  */
19063
19064 #ifdef __STDC__
19065 # include <limits.h>
19066 #else
19067 # include <assert.h>
19068 #endif
19069
19070 #undef $ac_func
19071
19072 /* Override any GCC internal prototype to avoid an error.
19073    Use char because int might match the return type of a GCC
19074    builtin and then its argument prototype would still apply.  */
19075 #ifdef __cplusplus
19076 extern "C"
19077 #endif
19078 char $ac_func ();
19079 /* The GNU C library defines this for functions which it implements
19080     to always fail with ENOSYS.  Some functions are actually named
19081     something starting with __ and the normal name is an alias.  */
19082 #if defined __stub_$ac_func || defined __stub___$ac_func
19083 choke me
19084 #endif
19085
19086 int
19087 main ()
19088 {
19089 return $ac_func ();
19090   ;
19091   return 0;
19092 }
19093 _ACEOF
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
19102   ac_status=$?
19103   grep -v '^ *+' conftest.er1 >conftest.err
19104   rm -f conftest.er1
19105   cat conftest.err >&5
19106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107   (exit $ac_status); } &&
19108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19109   { (case "(($ac_try" in
19110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111   *) ac_try_echo=$ac_try;;
19112 esac
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114   (eval "$ac_try") 2>&5
19115   ac_status=$?
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); }; } &&
19118          { ac_try='test -s conftest$ac_exeext'
19119   { (case "(($ac_try" in
19120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121   *) ac_try_echo=$ac_try;;
19122 esac
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124   (eval "$ac_try") 2>&5
19125   ac_status=$?
19126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127   (exit $ac_status); }; }; then
19128   eval "$as_ac_var=yes"
19129 else
19130   echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19132
19133         eval "$as_ac_var=no"
19134 fi
19135
19136 rm -f core conftest.err conftest.$ac_objext \
19137       conftest$ac_exeext conftest.$ac_ext
19138 fi
19139 ac_res=`eval echo '${'$as_ac_var'}'`
19140                { echo "$as_me:$LINENO: result: $ac_res" >&5
19141 echo "${ECHO_T}$ac_res" >&6; }
19142 if test `eval echo '${'$as_ac_var'}'` = yes; then
19143   cat >>confdefs.h <<_ACEOF
19144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19145 _ACEOF
19146
19147 fi
19148 done
19149
19150
19151 SHLIBEXT=$llvm_shlib_ext
19152
19153
19154 if test "${prefix}" = "NONE" ; then
19155   prefix="/usr/local"
19156 fi
19157 eval LLVM_PREFIX="${prefix}";
19158 eval LLVM_BINDIR="${prefix}/bin";
19159 eval LLVM_DATADIR="${prefix}/share/llvm";
19160 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19161 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19162 eval LLVM_INCLUDEDIR="${prefix}/include";
19163 eval LLVM_INFODIR="${prefix}/info";
19164 eval LLVM_MANDIR="${prefix}/man";
19165 LLVM_CONFIGTIME=`date`
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176 if test "${ENABLE_TIMESTAMPS}" = "0"; then
19177   LLVM_CONFIGTIME="(timestamp not enabled)"
19178 fi
19179
19180
19181 cat >>confdefs.h <<_ACEOF
19182 #define LLVM_PREFIX "$LLVM_PREFIX"
19183 _ACEOF
19184
19185
19186 cat >>confdefs.h <<_ACEOF
19187 #define LLVM_BINDIR "$LLVM_BINDIR"
19188 _ACEOF
19189
19190
19191 cat >>confdefs.h <<_ACEOF
19192 #define LLVM_DATADIR "$LLVM_DATADIR"
19193 _ACEOF
19194
19195
19196 cat >>confdefs.h <<_ACEOF
19197 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19198 _ACEOF
19199
19200
19201 cat >>confdefs.h <<_ACEOF
19202 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19203 _ACEOF
19204
19205
19206 cat >>confdefs.h <<_ACEOF
19207 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19208 _ACEOF
19209
19210
19211 cat >>confdefs.h <<_ACEOF
19212 #define LLVM_INFODIR "$LLVM_INFODIR"
19213 _ACEOF
19214
19215
19216 cat >>confdefs.h <<_ACEOF
19217 #define LLVM_MANDIR "$LLVM_MANDIR"
19218 _ACEOF
19219
19220
19221 cat >>confdefs.h <<_ACEOF
19222 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19223 _ACEOF
19224
19225
19226 cat >>confdefs.h <<_ACEOF
19227 #define LLVM_HOST_TRIPLE "$host"
19228 _ACEOF
19229
19230
19231 cat >>confdefs.h <<_ACEOF
19232 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
19233 _ACEOF
19234
19235
19236 if test "$BINDINGS_TO_BUILD" = auto ; then
19237   BINDINGS_TO_BUILD=""
19238   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19239     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19240   fi
19241 fi
19242 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19243
19244
19245 ALL_BINDINGS=ocaml
19246
19247
19248 binding_prereqs_failed=0
19249 for a_binding in $BINDINGS_TO_BUILD ; do
19250   case "$a_binding" in
19251   ocaml)
19252     if test "x$OCAMLC" = x ; then
19253       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19254 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19255       binding_prereqs_failed=1
19256     fi
19257     if test "x$OCAMLDEP" = x ; then
19258       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19259 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19260       binding_prereqs_failed=1
19261     fi
19262     if test "x$OCAMLOPT" = x ; then
19263       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19264 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19265           fi
19266     if test "x$with_ocaml_libdir" != xauto ; then
19267       OCAML_LIBDIR=$with_ocaml_libdir
19268
19269     else
19270       ocaml_stdlib="`"$OCAMLC" -where`"
19271       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19272       then
19273         # ocaml stdlib is beneath our prefix; use stdlib
19274         OCAML_LIBDIR=$ocaml_stdlib
19275
19276       else
19277         # ocaml stdlib is outside our prefix; use libdir/ocaml
19278         OCAML_LIBDIR=${prefix}/lib/ocaml
19279
19280       fi
19281     fi
19282     ;;
19283   esac
19284 done
19285 if test "$binding_prereqs_failed" = 1 ; then
19286   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19287 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19288    { (exit 1); exit 1; }; }
19289 fi
19290
19291 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19292 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19293 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19294   echo $ECHO_N "(cached) $ECHO_C" >&6
19295 else
19296    ac_ext=cpp
19297 ac_cpp='$CXXCPP $CPPFLAGS'
19298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19301
19302   oldcxxflags="$CXXFLAGS"
19303   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
19304   cat >conftest.$ac_ext <<_ACEOF
19305 /* confdefs.h.  */
19306 _ACEOF
19307 cat confdefs.h >>conftest.$ac_ext
19308 cat >>conftest.$ac_ext <<_ACEOF
19309 /* end confdefs.h.  */
19310 template <typename T> struct X { void __attribute__((noinline)) f() {} };
19311 int
19312 main ()
19313 {
19314 X<int>().f();
19315   ;
19316   return 0;
19317 }
19318 _ACEOF
19319 rm -f conftest.$ac_objext
19320 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19327   ac_status=$?
19328   grep -v '^ *+' conftest.er1 >conftest.err
19329   rm -f conftest.er1
19330   cat conftest.err >&5
19331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332   (exit $ac_status); } &&
19333          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19334   { (case "(($ac_try" in
19335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336   *) ac_try_echo=$ac_try;;
19337 esac
19338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19339   (eval "$ac_try") 2>&5
19340   ac_status=$?
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); }; } &&
19343          { ac_try='test -s conftest.$ac_objext'
19344   { (case "(($ac_try" in
19345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19346   *) ac_try_echo=$ac_try;;
19347 esac
19348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19349   (eval "$ac_try") 2>&5
19350   ac_status=$?
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); }; }; then
19353   llvm_cv_cxx_visibility_inlines_hidden=yes
19354 else
19355   echo "$as_me: failed program was:" >&5
19356 sed 's/^/| /' conftest.$ac_ext >&5
19357
19358         llvm_cv_cxx_visibility_inlines_hidden=no
19359 fi
19360
19361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19362   CXXFLAGS="$oldcxxflags"
19363   ac_ext=c
19364 ac_cpp='$CPP $CPPFLAGS'
19365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19368
19369
19370 fi
19371 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19372 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19373 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19374   ENABLE_VISIBILITY_INLINES_HIDDEN=1
19375
19376 else
19377   ENABLE_VISIBILITY_INLINES_HIDDEN=0
19378
19379 fi
19380
19381
19382 if test "$llvm_cv_link_use_r" = "yes" ; then
19383   RPATH="-Wl,-R"
19384 else
19385   RPATH="-Wl,-rpath"
19386 fi
19387
19388
19389 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19390   RDYNAMIC="-rdynamic"
19391 else
19392   RDYNAMIC=""
19393 fi
19394
19395
19396
19397 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
19398
19399
19400
19401
19402
19403
19404 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19405
19406 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19407
19408 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19409
19410 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19411
19412 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
19413
19414
19415 ac_config_files="$ac_config_files Makefile.config"
19416
19417
19418 ac_config_files="$ac_config_files llvm.spec"
19419
19420
19421 ac_config_files="$ac_config_files docs/doxygen.cfg"
19422
19423
19424 if test "${clang_src_root}" = ""; then
19425   clang_src_root="$srcdir/tools/clang"
19426 fi
19427 if test -f ${clang_src_root}/README.txt; then
19428     configh="include/clang/Config/config.h"
19429   doxy="docs/doxygen.cfg"
19430   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
19431
19432   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
19433
19434 fi
19435
19436 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
19437
19438
19439 test "x$program_prefix" = "xNONE" && program_prefix=""
19440
19441
19442
19443 ac_config_commands="$ac_config_commands setup"
19444
19445 ac_config_commands="$ac_config_commands Makefile"
19446
19447
19448 ac_config_commands="$ac_config_commands Makefile.common"
19449
19450
19451 ac_config_commands="$ac_config_commands examples/Makefile"
19452
19453
19454 ac_config_commands="$ac_config_commands lib/Makefile"
19455
19456
19457 ac_config_commands="$ac_config_commands test/Makefile"
19458
19459
19460 ac_config_commands="$ac_config_commands test/Makefile.tests"
19461
19462
19463 ac_config_commands="$ac_config_commands unittests/Makefile"
19464
19465
19466 ac_config_commands="$ac_config_commands tools/Makefile"
19467
19468
19469 ac_config_commands="$ac_config_commands utils/Makefile"
19470
19471
19472 ac_config_commands="$ac_config_commands projects/Makefile"
19473
19474
19475 ac_config_commands="$ac_config_commands bindings/Makefile"
19476
19477
19478 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
19479
19480
19481
19482 cat >confcache <<\_ACEOF
19483 # This file is a shell script that caches the results of configure
19484 # tests run on this system so they can be shared between configure
19485 # scripts and configure runs, see configure's option --config-cache.
19486 # It is not useful on other systems.  If it contains results you don't
19487 # want to keep, you may remove or edit it.
19488 #
19489 # config.status only pays attention to the cache file if you give it
19490 # the --recheck option to rerun configure.
19491 #
19492 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19493 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19494 # following values.
19495
19496 _ACEOF
19497
19498 # The following way of writing the cache mishandles newlines in values,
19499 # but we know of no workaround that is simple, portable, and efficient.
19500 # So, we kill variables containing newlines.
19501 # Ultrix sh set writes to stderr and can't be redirected directly,
19502 # and sets the high bit in the cache file unless we assign to the vars.
19503 (
19504   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19505     eval ac_val=\$$ac_var
19506     case $ac_val in #(
19507     *${as_nl}*)
19508       case $ac_var in #(
19509       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19510 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19511       esac
19512       case $ac_var in #(
19513       _ | IFS | as_nl) ;; #(
19514       *) $as_unset $ac_var ;;
19515       esac ;;
19516     esac
19517   done
19518
19519   (set) 2>&1 |
19520     case $as_nl`(ac_space=' '; set) 2>&1` in #(
19521     *${as_nl}ac_space=\ *)
19522       # `set' does not quote correctly, so add quotes (double-quote
19523       # substitution turns \\\\ into \\, and sed turns \\ into \).
19524       sed -n \
19525         "s/'/'\\\\''/g;
19526           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19527       ;; #(
19528     *)
19529       # `set' quotes correctly as required by POSIX, so do not add quotes.
19530       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19531       ;;
19532     esac |
19533     sort
19534 ) |
19535   sed '
19536      /^ac_cv_env_/b end
19537      t clear
19538      :clear
19539      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19540      t end
19541      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19542      :end' >>confcache
19543 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19544   if test -w "$cache_file"; then
19545     test "x$cache_file" != "x/dev/null" &&
19546       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19547 echo "$as_me: updating cache $cache_file" >&6;}
19548     cat confcache >$cache_file
19549   else
19550     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19551 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19552   fi
19553 fi
19554 rm -f confcache
19555
19556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19557 # Let make expand exec_prefix.
19558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19559
19560 DEFS=-DHAVE_CONFIG_H
19561
19562 ac_libobjs=
19563 ac_ltlibobjs=
19564 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19565   # 1. Remove the extension, and $U if already installed.
19566   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19567   ac_i=`echo "$ac_i" | sed "$ac_script"`
19568   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19569   #    will be set to the directory where LIBOBJS objects are built.
19570   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19571   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19572 done
19573 LIBOBJS=$ac_libobjs
19574
19575 LTLIBOBJS=$ac_ltlibobjs
19576
19577
19578
19579 : ${CONFIG_STATUS=./config.status}
19580 ac_clean_files_save=$ac_clean_files
19581 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19582 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19583 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19584 cat >$CONFIG_STATUS <<_ACEOF
19585 #! $SHELL
19586 # Generated by $as_me.
19587 # Run this file to recreate the current configuration.
19588 # Compiler output produced by configure, useful for debugging
19589 # configure, is in config.log if it exists.
19590
19591 debug=false
19592 ac_cs_recheck=false
19593 ac_cs_silent=false
19594 SHELL=\${CONFIG_SHELL-$SHELL}
19595 _ACEOF
19596
19597 cat >>$CONFIG_STATUS <<\_ACEOF
19598 ## --------------------- ##
19599 ## M4sh Initialization.  ##
19600 ## --------------------- ##
19601
19602 # Be Bourne compatible
19603 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19604   emulate sh
19605   NULLCMD=:
19606   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19607   # is contrary to our usage.  Disable this feature.
19608   alias -g '${1+"$@"}'='"$@"'
19609   setopt NO_GLOB_SUBST
19610 else
19611   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
19612 fi
19613 BIN_SH=xpg4; export BIN_SH # for Tru64
19614 DUALCASE=1; export DUALCASE # for MKS sh
19615
19616
19617 # PATH needs CR
19618 # Avoid depending upon Character Ranges.
19619 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19620 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19621 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19622 as_cr_digits='0123456789'
19623 as_cr_alnum=$as_cr_Letters$as_cr_digits
19624
19625 # The user is always right.
19626 if test "${PATH_SEPARATOR+set}" != set; then
19627   echo "#! /bin/sh" >conf$$.sh
19628   echo  "exit 0"   >>conf$$.sh
19629   chmod +x conf$$.sh
19630   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19631     PATH_SEPARATOR=';'
19632   else
19633     PATH_SEPARATOR=:
19634   fi
19635   rm -f conf$$.sh
19636 fi
19637
19638 # Support unset when possible.
19639 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19640   as_unset=unset
19641 else
19642   as_unset=false
19643 fi
19644
19645
19646 # IFS
19647 # We need space, tab and new line, in precisely that order.  Quoting is
19648 # there to prevent editors from complaining about space-tab.
19649 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19650 # splitting by setting IFS to empty value.)
19651 as_nl='
19652 '
19653 IFS=" ""        $as_nl"
19654
19655 # Find who we are.  Look in the path if we contain no directory separator.
19656 case $0 in
19657   *[\\/]* ) as_myself=$0 ;;
19658   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19659 for as_dir in $PATH
19660 do
19661   IFS=$as_save_IFS
19662   test -z "$as_dir" && as_dir=.
19663   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19664 done
19665 IFS=$as_save_IFS
19666
19667      ;;
19668 esac
19669 # We did not find ourselves, most probably we were run as `sh COMMAND'
19670 # in which case we are not to be found in the path.
19671 if test "x$as_myself" = x; then
19672   as_myself=$0
19673 fi
19674 if test ! -f "$as_myself"; then
19675   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19676   { (exit 1); exit 1; }
19677 fi
19678
19679 # Work around bugs in pre-3.0 UWIN ksh.
19680 for as_var in ENV MAIL MAILPATH
19681 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19682 done
19683 PS1='$ '
19684 PS2='> '
19685 PS4='+ '
19686
19687 # NLS nuisances.
19688 for as_var in \
19689   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19690   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19691   LC_TELEPHONE LC_TIME
19692 do
19693   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19694     eval $as_var=C; export $as_var
19695   else
19696     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19697   fi
19698 done
19699
19700 # Required to use basename.
19701 if expr a : '\(a\)' >/dev/null 2>&1 &&
19702    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19703   as_expr=expr
19704 else
19705   as_expr=false
19706 fi
19707
19708 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19709   as_basename=basename
19710 else
19711   as_basename=false
19712 fi
19713
19714
19715 # Name of the executable.
19716 as_me=`$as_basename -- "$0" ||
19717 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19718          X"$0" : 'X\(//\)$' \| \
19719          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19720 echo X/"$0" |
19721     sed '/^.*\/\([^/][^/]*\)\/*$/{
19722             s//\1/
19723             q
19724           }
19725           /^X\/\(\/\/\)$/{
19726             s//\1/
19727             q
19728           }
19729           /^X\/\(\/\).*/{
19730             s//\1/
19731             q
19732           }
19733           s/.*/./; q'`
19734
19735 # CDPATH.
19736 $as_unset CDPATH
19737
19738
19739
19740   as_lineno_1=$LINENO
19741   as_lineno_2=$LINENO
19742   test "x$as_lineno_1" != "x$as_lineno_2" &&
19743   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19744
19745   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19746   # uniformly replaced by the line number.  The first 'sed' inserts a
19747   # line-number line after each line using $LINENO; the second 'sed'
19748   # does the real work.  The second script uses 'N' to pair each
19749   # line-number line with the line containing $LINENO, and appends
19750   # trailing '-' during substitution so that $LINENO is not a special
19751   # case at line end.
19752   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19753   # scripts with optimization help from Paolo Bonzini.  Blame Lee
19754   # E. McMahon (1931-1989) for sed's syntax.  :-)
19755   sed -n '
19756     p
19757     /[$]LINENO/=
19758   ' <$as_myself |
19759     sed '
19760       s/[$]LINENO.*/&-/
19761       t lineno
19762       b
19763       :lineno
19764       N
19765       :loop
19766       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19767       t loop
19768       s/-\n.*//
19769     ' >$as_me.lineno &&
19770   chmod +x "$as_me.lineno" ||
19771     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19772    { (exit 1); exit 1; }; }
19773
19774   # Don't try to exec as it changes $[0], causing all sort of problems
19775   # (the dirname of $[0] is not the place where we might find the
19776   # original and so on.  Autoconf is especially sensitive to this).
19777   . "./$as_me.lineno"
19778   # Exit status is that of the last command.
19779   exit
19780 }
19781
19782
19783 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19784   as_dirname=dirname
19785 else
19786   as_dirname=false
19787 fi
19788
19789 ECHO_C= ECHO_N= ECHO_T=
19790 case `echo -n x` in
19791 -n*)
19792   case `echo 'x\c'` in
19793   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19794   *)   ECHO_C='\c';;
19795   esac;;
19796 *)
19797   ECHO_N='-n';;
19798 esac
19799
19800 if expr a : '\(a\)' >/dev/null 2>&1 &&
19801    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19802   as_expr=expr
19803 else
19804   as_expr=false
19805 fi
19806
19807 rm -f conf$$ conf$$.exe conf$$.file
19808 if test -d conf$$.dir; then
19809   rm -f conf$$.dir/conf$$.file
19810 else
19811   rm -f conf$$.dir
19812   mkdir conf$$.dir
19813 fi
19814 echo >conf$$.file
19815 if ln -s conf$$.file conf$$ 2>/dev/null; then
19816   as_ln_s='ln -s'
19817   # ... but there are two gotchas:
19818   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19819   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19820   # In both cases, we have to default to `cp -p'.
19821   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19822     as_ln_s='cp -p'
19823 elif ln conf$$.file conf$$ 2>/dev/null; then
19824   as_ln_s=ln
19825 else
19826   as_ln_s='cp -p'
19827 fi
19828 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19829 rmdir conf$$.dir 2>/dev/null
19830
19831 if mkdir -p . 2>/dev/null; then
19832   as_mkdir_p=:
19833 else
19834   test -d ./-p && rmdir ./-p
19835   as_mkdir_p=false
19836 fi
19837
19838 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
19839 # systems may use methods other than mode bits to determine executability.
19840 cat >conf$$.file <<_ASEOF
19841 #! /bin/sh
19842 exit 0
19843 _ASEOF
19844 chmod +x conf$$.file
19845 if test -x conf$$.file >/dev/null 2>&1; then
19846   as_executable_p="test -x"
19847 else
19848   as_executable_p=:
19849 fi
19850 rm -f conf$$.file
19851
19852 # Sed expression to map a string onto a valid CPP name.
19853 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19854
19855 # Sed expression to map a string onto a valid variable name.
19856 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19857
19858
19859 exec 6>&1
19860
19861 # Save the log message, to keep $[0] and so on meaningful, and to
19862 # report actual input values of CONFIG_FILES etc. instead of their
19863 # values after options handling.
19864 ac_log="
19865 This file was extended by LLVM $as_me 3.5.0svn, which was
19866 generated by GNU Autoconf 2.60.  Invocation command line was
19867
19868   CONFIG_FILES    = $CONFIG_FILES
19869   CONFIG_HEADERS  = $CONFIG_HEADERS
19870   CONFIG_LINKS    = $CONFIG_LINKS
19871   CONFIG_COMMANDS = $CONFIG_COMMANDS
19872   $ $0 $@
19873
19874 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19875 "
19876
19877 _ACEOF
19878
19879 cat >>$CONFIG_STATUS <<_ACEOF
19880 # Files that config.status was made for.
19881 config_files="$ac_config_files"
19882 config_headers="$ac_config_headers"
19883 config_commands="$ac_config_commands"
19884
19885 _ACEOF
19886
19887 cat >>$CONFIG_STATUS <<\_ACEOF
19888 ac_cs_usage="\
19889 \`$as_me' instantiates files from templates according to the
19890 current configuration.
19891
19892 Usage: $0 [OPTIONS] [FILE]...
19893
19894   -h, --help       print this help, then exit
19895   -V, --version    print version number, then exit
19896   -q, --quiet      do not print progress messages
19897   -d, --debug      don't remove temporary files
19898       --recheck    update $as_me by reconfiguring in the same conditions
19899   --file=FILE[:TEMPLATE]
19900                    instantiate the configuration file FILE
19901   --header=FILE[:TEMPLATE]
19902                    instantiate the configuration header FILE
19903
19904 Configuration files:
19905 $config_files
19906
19907 Configuration headers:
19908 $config_headers
19909
19910 Configuration commands:
19911 $config_commands
19912
19913 Report bugs to <bug-autoconf@gnu.org>."
19914
19915 _ACEOF
19916 cat >>$CONFIG_STATUS <<_ACEOF
19917 ac_cs_version="\\
19918 LLVM config.status 3.5.0svn
19919 configured by $0, generated by GNU Autoconf 2.60,
19920   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19921
19922 Copyright (C) 2006 Free Software Foundation, Inc.
19923 This config.status script is free software; the Free Software Foundation
19924 gives unlimited permission to copy, distribute and modify it."
19925
19926 ac_pwd='$ac_pwd'
19927 srcdir='$srcdir'
19928 INSTALL='$INSTALL'
19929 _ACEOF
19930
19931 cat >>$CONFIG_STATUS <<\_ACEOF
19932 # If no file are specified by the user, then we need to provide default
19933 # value.  By we need to know if files were specified by the user.
19934 ac_need_defaults=:
19935 while test $# != 0
19936 do
19937   case $1 in
19938   --*=*)
19939     ac_option=`expr "X$1" : 'X\([^=]*\)='`
19940     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19941     ac_shift=:
19942     ;;
19943   *)
19944     ac_option=$1
19945     ac_optarg=$2
19946     ac_shift=shift
19947     ;;
19948   esac
19949
19950   case $ac_option in
19951   # Handling of the options.
19952   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19953     ac_cs_recheck=: ;;
19954   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19955     echo "$ac_cs_version"; exit ;;
19956   --debug | --debu | --deb | --de | --d | -d )
19957     debug=: ;;
19958   --file | --fil | --fi | --f )
19959     $ac_shift
19960     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19961     ac_need_defaults=false;;
19962   --header | --heade | --head | --hea )
19963     $ac_shift
19964     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19965     ac_need_defaults=false;;
19966   --he | --h)
19967     # Conflict between --help and --header
19968     { echo "$as_me: error: ambiguous option: $1
19969 Try \`$0 --help' for more information." >&2
19970    { (exit 1); exit 1; }; };;
19971   --help | --hel | -h )
19972     echo "$ac_cs_usage"; exit ;;
19973   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19974   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19975     ac_cs_silent=: ;;
19976
19977   # This is an error.
19978   -*) { echo "$as_me: error: unrecognized option: $1
19979 Try \`$0 --help' for more information." >&2
19980    { (exit 1); exit 1; }; } ;;
19981
19982   *) ac_config_targets="$ac_config_targets $1"
19983      ac_need_defaults=false ;;
19984
19985   esac
19986   shift
19987 done
19988
19989 ac_configure_extra_args=
19990
19991 if $ac_cs_silent; then
19992   exec 6>/dev/null
19993   ac_configure_extra_args="$ac_configure_extra_args --silent"
19994 fi
19995
19996 _ACEOF
19997 cat >>$CONFIG_STATUS <<_ACEOF
19998 if \$ac_cs_recheck; then
19999   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20000   CONFIG_SHELL=$SHELL
20001   export CONFIG_SHELL
20002   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20003 fi
20004
20005 _ACEOF
20006 cat >>$CONFIG_STATUS <<\_ACEOF
20007 exec 5>>config.log
20008 {
20009   echo
20010   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20011 ## Running $as_me. ##
20012 _ASBOX
20013   echo "$ac_log"
20014 } >&5
20015
20016 _ACEOF
20017 cat >>$CONFIG_STATUS <<_ACEOF
20018 #
20019 # INIT-COMMANDS
20020 #
20021 llvm_src="${srcdir}"
20022
20023 _ACEOF
20024
20025 cat >>$CONFIG_STATUS <<\_ACEOF
20026
20027 # Handling of arguments.
20028 for ac_config_target in $ac_config_targets
20029 do
20030   case $ac_config_target in
20031     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20032     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
20033     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20034     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20035     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20036     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20037     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
20038     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20039     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20040     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20041     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
20042     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
20043     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
20044     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20045     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20046     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20047     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20048     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20049     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20050     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20051     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20052     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20053     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20054     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20055     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20056     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20057
20058   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20059 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20060    { (exit 1); exit 1; }; };;
20061   esac
20062 done
20063
20064
20065 # If the user did not use the arguments to specify the items to instantiate,
20066 # then the envvar interface is used.  Set only those that are not.
20067 # We use the long form for the default assignment because of an extremely
20068 # bizarre bug on SunOS 4.1.3.
20069 if $ac_need_defaults; then
20070   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20071   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20072   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20073 fi
20074
20075 # Have a temporary directory for convenience.  Make it in the build tree
20076 # simply because there is no reason against having it here, and in addition,
20077 # creating and moving files from /tmp can sometimes cause problems.
20078 # Hook for its removal unless debugging.
20079 # Note that there is a small window in which the directory will not be cleaned:
20080 # after its creation but before its name has been assigned to `$tmp'.
20081 $debug ||
20082 {
20083   tmp=
20084   trap 'exit_status=$?
20085   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20086 ' 0
20087   trap '{ (exit 1); exit 1; }' 1 2 13 15
20088 }
20089 # Create a (secure) tmp directory for tmp files.
20090
20091 {
20092   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20093   test -n "$tmp" && test -d "$tmp"
20094 }  ||
20095 {
20096   tmp=./conf$$-$RANDOM
20097   (umask 077 && mkdir "$tmp")
20098 } ||
20099 {
20100    echo "$me: cannot create a temporary directory in ." >&2
20101    { (exit 1); exit 1; }
20102 }
20103
20104 #
20105 # Set up the sed scripts for CONFIG_FILES section.
20106 #
20107
20108 # No need to generate the scripts if there are no CONFIG_FILES.
20109 # This happens for instance when ./config.status config.h
20110 if test -n "$CONFIG_FILES"; then
20111
20112 _ACEOF
20113
20114
20115
20116 ac_delim='%!_!# '
20117 for ac_last_try in false false false false false :; do
20118   cat >conf$$subs.sed <<_ACEOF
20119 SHELL!$SHELL$ac_delim
20120 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20121 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20122 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20123 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20124 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20125 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20126 exec_prefix!$exec_prefix$ac_delim
20127 prefix!$prefix$ac_delim
20128 program_transform_name!$program_transform_name$ac_delim
20129 bindir!$bindir$ac_delim
20130 sbindir!$sbindir$ac_delim
20131 libexecdir!$libexecdir$ac_delim
20132 datarootdir!$datarootdir$ac_delim
20133 datadir!$datadir$ac_delim
20134 sysconfdir!$sysconfdir$ac_delim
20135 sharedstatedir!$sharedstatedir$ac_delim
20136 localstatedir!$localstatedir$ac_delim
20137 includedir!$includedir$ac_delim
20138 oldincludedir!$oldincludedir$ac_delim
20139 docdir!$docdir$ac_delim
20140 infodir!$infodir$ac_delim
20141 htmldir!$htmldir$ac_delim
20142 dvidir!$dvidir$ac_delim
20143 pdfdir!$pdfdir$ac_delim
20144 psdir!$psdir$ac_delim
20145 libdir!$libdir$ac_delim
20146 localedir!$localedir$ac_delim
20147 mandir!$mandir$ac_delim
20148 DEFS!$DEFS$ac_delim
20149 ECHO_C!$ECHO_C$ac_delim
20150 ECHO_N!$ECHO_N$ac_delim
20151 ECHO_T!$ECHO_T$ac_delim
20152 LIBS!$LIBS$ac_delim
20153 build_alias!$build_alias$ac_delim
20154 host_alias!$host_alias$ac_delim
20155 target_alias!$target_alias$ac_delim
20156 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
20157 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
20158 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
20159 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
20160 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20161 CC!$CC$ac_delim
20162 CFLAGS!$CFLAGS$ac_delim
20163 LDFLAGS!$LDFLAGS$ac_delim
20164 CPPFLAGS!$CPPFLAGS$ac_delim
20165 ac_ct_CC!$ac_ct_CC$ac_delim
20166 EXEEXT!$EXEEXT$ac_delim
20167 OBJEXT!$OBJEXT$ac_delim
20168 CXX!$CXX$ac_delim
20169 CXXFLAGS!$CXXFLAGS$ac_delim
20170 ac_ct_CXX!$ac_ct_CXX$ac_delim
20171 CPP!$CPP$ac_delim
20172 subdirs!$subdirs$ac_delim
20173 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
20174 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
20175 build!$build$ac_delim
20176 build_cpu!$build_cpu$ac_delim
20177 build_vendor!$build_vendor$ac_delim
20178 build_os!$build_os$ac_delim
20179 host!$host$ac_delim
20180 host_cpu!$host_cpu$ac_delim
20181 host_vendor!$host_vendor$ac_delim
20182 host_os!$host_os$ac_delim
20183 target!$target$ac_delim
20184 target_cpu!$target_cpu$ac_delim
20185 target_vendor!$target_vendor$ac_delim
20186 target_os!$target_os$ac_delim
20187 OS!$OS$ac_delim
20188 HOST_OS!$HOST_OS$ac_delim
20189 TARGET_OS!$TARGET_OS$ac_delim
20190 LINKALL!$LINKALL$ac_delim
20191 NOLINKALL!$NOLINKALL$ac_delim
20192 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20193 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20194 ARCH!$ARCH$ac_delim
20195 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
20196 HOST_ARCH!$HOST_ARCH$ac_delim
20197 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20198 BUILD_CC!$BUILD_CC$ac_delim
20199 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20200 BUILD_CXX!$BUILD_CXX$ac_delim
20201 CVSBUILD!$CVSBUILD$ac_delim
20202 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
20203 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
20204 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
20205 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
20206 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
20207 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
20208 ENABLE_CLANG_REWRITER!$ENABLE_CLANG_REWRITER$ac_delim
20209 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20210 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20211 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20212 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
20213 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20214 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20215 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20216 _ACEOF
20217
20218   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20219     break
20220   elif $ac_last_try; then
20221     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20222 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20223    { (exit 1); exit 1; }; }
20224   else
20225     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20226   fi
20227 done
20228
20229 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20230 if test -n "$ac_eof"; then
20231   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20232   ac_eof=`expr $ac_eof + 1`
20233 fi
20234
20235 cat >>$CONFIG_STATUS <<_ACEOF
20236 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20238 _ACEOF
20239 sed '
20240 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20241 s/^/s,@/; s/!/@,|#_!!_#|/
20242 :n
20243 t n
20244 s/'"$ac_delim"'$/,g/; t
20245 s/$/\\/; p
20246 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20247 ' >>$CONFIG_STATUS <conf$$subs.sed
20248 rm -f conf$$subs.sed
20249 cat >>$CONFIG_STATUS <<_ACEOF
20250 CEOF$ac_eof
20251 _ACEOF
20252
20253
20254 ac_delim='%!_!# '
20255 for ac_last_try in false false false false false :; do
20256   cat >conf$$subs.sed <<_ACEOF
20257 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20258 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
20259 JIT!$JIT$ac_delim
20260 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20261 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
20262 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
20263 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20264 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
20265 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
20266 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
20267 ENABLE_PIC!$ENABLE_PIC$ac_delim
20268 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20269 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
20270 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
20271 ALL_TARGETS!$ALL_TARGETS$ac_delim
20272 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20273 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20274 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20275 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20276 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20277 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20278 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20279 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
20280 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
20281 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20282 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
20283 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
20284 ifGNUmake!$ifGNUmake$ac_delim
20285 LN_S!$LN_S$ac_delim
20286 NM!$NM$ac_delim
20287 CMP!$CMP$ac_delim
20288 CP!$CP$ac_delim
20289 DATE!$DATE$ac_delim
20290 FIND!$FIND$ac_delim
20291 GREP!$GREP$ac_delim
20292 MKDIR!$MKDIR$ac_delim
20293 MV!$MV$ac_delim
20294 RANLIB!$RANLIB$ac_delim
20295 AR!$AR$ac_delim
20296 RM!$RM$ac_delim
20297 SED!$SED$ac_delim
20298 TAR!$TAR$ac_delim
20299 BINPWD!$BINPWD$ac_delim
20300 GRAPHVIZ!$GRAPHVIZ$ac_delim
20301 DOT!$DOT$ac_delim
20302 FDP!$FDP$ac_delim
20303 NEATO!$NEATO$ac_delim
20304 TWOPI!$TWOPI$ac_delim
20305 CIRCO!$CIRCO$ac_delim
20306 GV!$GV$ac_delim
20307 DOTTY!$DOTTY$ac_delim
20308 XDOT!$XDOT$ac_delim
20309 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20310 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20311 INSTALL_DATA!$INSTALL_DATA$ac_delim
20312 BZIP2!$BZIP2$ac_delim
20313 CAT!$CAT$ac_delim
20314 DOXYGEN!$DOXYGEN$ac_delim
20315 GROFF!$GROFF$ac_delim
20316 GZIPBIN!$GZIPBIN$ac_delim
20317 PDFROFF!$PDFROFF$ac_delim
20318 ZIP!$ZIP$ac_delim
20319 OCAMLC!$OCAMLC$ac_delim
20320 OCAMLOPT!$OCAMLOPT$ac_delim
20321 OCAMLDEP!$OCAMLDEP$ac_delim
20322 OCAMLDOC!$OCAMLDOC$ac_delim
20323 GAS!$GAS$ac_delim
20324 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
20325 EGREP!$EGREP$ac_delim
20326 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20327 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20328 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
20329 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
20330 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
20331 PYTHON!$PYTHON$ac_delim
20332 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
20333 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
20334 USE_UDIS86!$USE_UDIS86$ac_delim
20335 USE_OPROFILE!$USE_OPROFILE$ac_delim
20336 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
20337 XML2CONFIG!$XML2CONFIG$ac_delim
20338 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
20339 LIBXML2_INC!$LIBXML2_INC$ac_delim
20340 CXXCPP!$CXXCPP$ac_delim
20341 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20342 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
20343 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20344 MMAP_FILE!$MMAP_FILE$ac_delim
20345 SHLIBEXT!$SHLIBEXT$ac_delim
20346 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20347 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20348 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20349 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20350 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20351 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20352 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20353 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20354 _ACEOF
20355
20356   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20357     break
20358   elif $ac_last_try; then
20359     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20360 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20361    { (exit 1); exit 1; }; }
20362   else
20363     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20364   fi
20365 done
20366
20367 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20368 if test -n "$ac_eof"; then
20369   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20370   ac_eof=`expr $ac_eof + 1`
20371 fi
20372
20373 cat >>$CONFIG_STATUS <<_ACEOF
20374 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20375 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20376 _ACEOF
20377 sed '
20378 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20379 s/^/s,@/; s/!/@,|#_!!_#|/
20380 :n
20381 t n
20382 s/'"$ac_delim"'$/,g/; t
20383 s/$/\\/; p
20384 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20385 ' >>$CONFIG_STATUS <conf$$subs.sed
20386 rm -f conf$$subs.sed
20387 cat >>$CONFIG_STATUS <<_ACEOF
20388 CEOF$ac_eof
20389 _ACEOF
20390
20391
20392 ac_delim='%!_!# '
20393 for ac_last_try in false false false false false :; do
20394   cat >conf$$subs.sed <<_ACEOF
20395 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20396 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20397 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20398 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20399 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20400 RPATH!$RPATH$ac_delim
20401 RDYNAMIC!$RDYNAMIC$ac_delim
20402 program_prefix!$program_prefix$ac_delim
20403 LIBOBJS!$LIBOBJS$ac_delim
20404 LTLIBOBJS!$LTLIBOBJS$ac_delim
20405 _ACEOF
20406
20407   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
20408     break
20409   elif $ac_last_try; then
20410     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20411 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20412    { (exit 1); exit 1; }; }
20413   else
20414     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20415   fi
20416 done
20417
20418 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20419 if test -n "$ac_eof"; then
20420   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20421   ac_eof=`expr $ac_eof + 1`
20422 fi
20423
20424 cat >>$CONFIG_STATUS <<_ACEOF
20425 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
20426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20427 _ACEOF
20428 sed '
20429 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20430 s/^/s,@/; s/!/@,|#_!!_#|/
20431 :n
20432 t n
20433 s/'"$ac_delim"'$/,g/; t
20434 s/$/\\/; p
20435 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20436 ' >>$CONFIG_STATUS <conf$$subs.sed
20437 rm -f conf$$subs.sed
20438 cat >>$CONFIG_STATUS <<_ACEOF
20439 :end
20440 s/|#_!!_#|//g
20441 CEOF$ac_eof
20442 _ACEOF
20443
20444
20445 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20446 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20447 # trailing colons and then remove the whole line if VPATH becomes empty
20448 # (actually we leave an empty line to preserve line numbers).
20449 if test "x$srcdir" = x.; then
20450   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20451 s/:*\$(srcdir):*/:/
20452 s/:*\${srcdir}:*/:/
20453 s/:*@srcdir@:*/:/
20454 s/^\([^=]*=[     ]*\):*/\1/
20455 s/:*$//
20456 s/^[^=]*=[       ]*$//
20457 }'
20458 fi
20459
20460 cat >>$CONFIG_STATUS <<\_ACEOF
20461 fi # test -n "$CONFIG_FILES"
20462
20463
20464 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20465 do
20466   case $ac_tag in
20467   :[FHLC]) ac_mode=$ac_tag; continue;;
20468   esac
20469   case $ac_mode$ac_tag in
20470   :[FHL]*:*);;
20471   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20472 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20473    { (exit 1); exit 1; }; };;
20474   :[FH]-) ac_tag=-:-;;
20475   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20476   esac
20477   ac_save_IFS=$IFS
20478   IFS=:
20479   set x $ac_tag
20480   IFS=$ac_save_IFS
20481   shift
20482   ac_file=$1
20483   shift
20484
20485   case $ac_mode in
20486   :L) ac_source=$1;;
20487   :[FH])
20488     ac_file_inputs=
20489     for ac_f
20490     do
20491       case $ac_f in
20492       -) ac_f="$tmp/stdin";;
20493       *) # Look for the file first in the build tree, then in the source tree
20494          # (if the path is not absolute).  The absolute path cannot be DOS-style,
20495          # because $ac_f cannot contain `:'.
20496          test -f "$ac_f" ||
20497            case $ac_f in
20498            [\\/$]*) false;;
20499            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20500            esac ||
20501            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20502 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20503    { (exit 1); exit 1; }; };;
20504       esac
20505       ac_file_inputs="$ac_file_inputs $ac_f"
20506     done
20507
20508     # Let's still pretend it is `configure' which instantiates (i.e., don't
20509     # use $as_me), people would be surprised to read:
20510     #    /* config.h.  Generated by config.status.  */
20511     configure_input="Generated from "`IFS=:
20512           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20513     if test x"$ac_file" != x-; then
20514       configure_input="$ac_file.  $configure_input"
20515       { echo "$as_me:$LINENO: creating $ac_file" >&5
20516 echo "$as_me: creating $ac_file" >&6;}
20517     fi
20518
20519     case $ac_tag in
20520     *:-:* | *:-) cat >"$tmp/stdin";;
20521     esac
20522     ;;
20523   esac
20524
20525   ac_dir=`$as_dirname -- "$ac_file" ||
20526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20527          X"$ac_file" : 'X\(//\)[^/]' \| \
20528          X"$ac_file" : 'X\(//\)$' \| \
20529          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20530 echo X"$ac_file" |
20531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20532             s//\1/
20533             q
20534           }
20535           /^X\(\/\/\)[^/].*/{
20536             s//\1/
20537             q
20538           }
20539           /^X\(\/\/\)$/{
20540             s//\1/
20541             q
20542           }
20543           /^X\(\/\).*/{
20544             s//\1/
20545             q
20546           }
20547           s/.*/./; q'`
20548   { as_dir="$ac_dir"
20549   case $as_dir in #(
20550   -*) as_dir=./$as_dir;;
20551   esac
20552   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20553     as_dirs=
20554     while :; do
20555       case $as_dir in #(
20556       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20557       *) as_qdir=$as_dir;;
20558       esac
20559       as_dirs="'$as_qdir' $as_dirs"
20560       as_dir=`$as_dirname -- "$as_dir" ||
20561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20562          X"$as_dir" : 'X\(//\)[^/]' \| \
20563          X"$as_dir" : 'X\(//\)$' \| \
20564          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20565 echo X"$as_dir" |
20566     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20567             s//\1/
20568             q
20569           }
20570           /^X\(\/\/\)[^/].*/{
20571             s//\1/
20572             q
20573           }
20574           /^X\(\/\/\)$/{
20575             s//\1/
20576             q
20577           }
20578           /^X\(\/\).*/{
20579             s//\1/
20580             q
20581           }
20582           s/.*/./; q'`
20583       test -d "$as_dir" && break
20584     done
20585     test -z "$as_dirs" || eval "mkdir $as_dirs"
20586   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20588    { (exit 1); exit 1; }; }; }
20589   ac_builddir=.
20590
20591 case "$ac_dir" in
20592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20593 *)
20594   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20595   # A ".." for each directory in $ac_dir_suffix.
20596   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20597   case $ac_top_builddir_sub in
20598   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20599   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20600   esac ;;
20601 esac
20602 ac_abs_top_builddir=$ac_pwd
20603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20604 # for backward compatibility:
20605 ac_top_builddir=$ac_top_build_prefix
20606
20607 case $srcdir in
20608   .)  # We are building in place.
20609     ac_srcdir=.
20610     ac_top_srcdir=$ac_top_builddir_sub
20611     ac_abs_top_srcdir=$ac_pwd ;;
20612   [\\/]* | ?:[\\/]* )  # Absolute name.
20613     ac_srcdir=$srcdir$ac_dir_suffix;
20614     ac_top_srcdir=$srcdir
20615     ac_abs_top_srcdir=$srcdir ;;
20616   *) # Relative name.
20617     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20618     ac_top_srcdir=$ac_top_build_prefix$srcdir
20619     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20620 esac
20621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20622
20623
20624   case $ac_mode in
20625   :F)
20626   #
20627   # CONFIG_FILE
20628   #
20629
20630   case $INSTALL in
20631   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20632   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20633   esac
20634 _ACEOF
20635
20636 cat >>$CONFIG_STATUS <<\_ACEOF
20637 # If the template does not know about datarootdir, expand it.
20638 # FIXME: This hack should be removed a few years after 2.60.
20639 ac_datarootdir_hack=; ac_datarootdir_seen=
20640
20641 case `sed -n '/datarootdir/ {
20642   p
20643   q
20644 }
20645 /@datadir@/p
20646 /@docdir@/p
20647 /@infodir@/p
20648 /@localedir@/p
20649 /@mandir@/p
20650 ' $ac_file_inputs` in
20651 *datarootdir*) ac_datarootdir_seen=yes;;
20652 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20653   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20654 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20655 _ACEOF
20656 cat >>$CONFIG_STATUS <<_ACEOF
20657   ac_datarootdir_hack='
20658   s&@datadir@&$datadir&g
20659   s&@docdir@&$docdir&g
20660   s&@infodir@&$infodir&g
20661   s&@localedir@&$localedir&g
20662   s&@mandir@&$mandir&g
20663     s&\\\${datarootdir}&$datarootdir&g' ;;
20664 esac
20665 _ACEOF
20666
20667 # Neutralize VPATH when `$srcdir' = `.'.
20668 # Shell code in configure.ac might set extrasub.
20669 # FIXME: do we really want to maintain this feature?
20670 cat >>$CONFIG_STATUS <<_ACEOF
20671   sed "$ac_vpsub
20672 $extrasub
20673 _ACEOF
20674 cat >>$CONFIG_STATUS <<\_ACEOF
20675 :t
20676 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20677 s&@configure_input@&$configure_input&;t t
20678 s&@top_builddir@&$ac_top_builddir_sub&;t t
20679 s&@srcdir@&$ac_srcdir&;t t
20680 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20681 s&@top_srcdir@&$ac_top_srcdir&;t t
20682 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20683 s&@builddir@&$ac_builddir&;t t
20684 s&@abs_builddir@&$ac_abs_builddir&;t t
20685 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20686 s&@INSTALL@&$ac_INSTALL&;t t
20687 $ac_datarootdir_hack
20688 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
20689
20690 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20691   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20692   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20693   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20694 which seems to be undefined.  Please make sure it is defined." >&5
20695 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20696 which seems to be undefined.  Please make sure it is defined." >&2;}
20697
20698   rm -f "$tmp/stdin"
20699   case $ac_file in
20700   -) cat "$tmp/out"; rm -f "$tmp/out";;
20701   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20702   esac
20703  ;;
20704   :H)
20705   #
20706   # CONFIG_HEADER
20707   #
20708 _ACEOF
20709
20710 # Transform confdefs.h into a sed script `conftest.defines', that
20711 # substitutes the proper values into config.h.in to produce config.h.
20712 rm -f conftest.defines conftest.tail
20713 # First, append a space to every undef/define line, to ease matching.
20714 echo 's/$/ /' >conftest.defines
20715 # Then, protect against being on the right side of a sed subst, or in
20716 # an unquoted here document, in config.status.  If some macros were
20717 # called several times there might be several #defines for the same
20718 # symbol, which is useless.  But do not sort them, since the last
20719 # AC_DEFINE must be honored.
20720 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20721 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20722 # NAME is the cpp macro being defined, VALUE is the value it is being given.
20723 # PARAMS is the parameter list in the macro definition--in most cases, it's
20724 # just an empty string.
20725 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
20726 ac_dB='\\)[      (].*,\\1define\\2'
20727 ac_dC=' '
20728 ac_dD=' ,'
20729
20730 uniq confdefs.h |
20731   sed -n '
20732         t rset
20733         :rset
20734         s/^[     ]*#[    ]*define[       ][      ]*//
20735         t ok
20736         d
20737         :ok
20738         s/[\\&,]/\\&/g
20739         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20740         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20741   ' >>conftest.defines
20742
20743 # Remove the space that was appended to ease matching.
20744 # Then replace #undef with comments.  This is necessary, for
20745 # example, in the case of _POSIX_SOURCE, which is predefined and required
20746 # on some systems where configure will not decide to define it.
20747 # (The regexp can be short, since the line contains either #define or #undef.)
20748 echo 's/ $//
20749 s,^[     #]*u.*,/* & */,' >>conftest.defines
20750
20751 # Break up conftest.defines:
20752 ac_max_sed_lines=50
20753
20754 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20755 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20756 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20757 # et cetera.
20758 ac_in='$ac_file_inputs'
20759 ac_out='"$tmp/out1"'
20760 ac_nxt='"$tmp/out2"'
20761
20762 while :
20763 do
20764   # Write a here document:
20765     cat >>$CONFIG_STATUS <<_ACEOF
20766     # First, check the format of the line:
20767     cat >"\$tmp/defines.sed" <<\\CEOF
20768 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
20769 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
20770 b
20771 :def
20772 _ACEOF
20773   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20774   echo 'CEOF
20775     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20776   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20777   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20778   grep . conftest.tail >/dev/null || break
20779   rm -f conftest.defines
20780   mv conftest.tail conftest.defines
20781 done
20782 rm -f conftest.defines conftest.tail
20783
20784 echo "ac_result=$ac_in" >>$CONFIG_STATUS
20785 cat >>$CONFIG_STATUS <<\_ACEOF
20786   if test x"$ac_file" != x-; then
20787     echo "/* $configure_input  */" >"$tmp/config.h"
20788     cat "$ac_result" >>"$tmp/config.h"
20789     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20790       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20791 echo "$as_me: $ac_file is unchanged" >&6;}
20792     else
20793       rm -f $ac_file
20794       mv "$tmp/config.h" $ac_file
20795     fi
20796   else
20797     echo "/* $configure_input  */"
20798     cat "$ac_result"
20799   fi
20800   rm -f "$tmp/out12"
20801  ;;
20802
20803   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20804 echo "$as_me: executing $ac_file commands" >&6;}
20805  ;;
20806   esac
20807
20808
20809   case $ac_file$ac_mode in
20810     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
20811    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
20812     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
20813    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
20814     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
20815    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
20816     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
20817    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
20818     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
20819    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
20820     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
20821    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
20822     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
20823    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
20824     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
20825    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
20826     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
20827    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
20828     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
20829    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
20830     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
20831    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
20832     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
20833    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
20834
20835   esac
20836 done # for ac_tag
20837
20838
20839 { (exit 0); exit 0; }
20840 _ACEOF
20841 chmod +x $CONFIG_STATUS
20842 ac_clean_files=$ac_clean_files_save
20843
20844
20845 # configure is writing to config.log, and then calls config.status.
20846 # config.status does its own redirection, appending to config.log.
20847 # Unfortunately, on DOS this fails, as config.log is still kept open
20848 # by configure, so config.status won't be able to write to it; its
20849 # output is simply discarded.  So we exec the FD to /dev/null,
20850 # effectively closing config.log, so it can be properly (re)opened and
20851 # appended to by config.status.  When coming back to configure, we
20852 # need to make the FD available again.
20853 if test "$no_create" != yes; then
20854   ac_cs_success=:
20855   ac_config_status_args=
20856   test "$silent" = yes &&
20857     ac_config_status_args="$ac_config_status_args --quiet"
20858   exec 5>/dev/null
20859   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20860   exec 5>>config.log
20861   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20862   # would make configure fail if this is the last instruction.
20863   $ac_cs_success || { (exit 1); exit 1; }
20864 fi
20865
20866 #
20867 # CONFIG_SUBDIRS section.
20868 #
20869 if test "$no_recursion" != yes; then
20870
20871   # Remove --cache-file and --srcdir arguments so they do not pile up.
20872   ac_sub_configure_args=
20873   ac_prev=
20874   eval "set x $ac_configure_args"
20875   shift
20876   for ac_arg
20877   do
20878     if test -n "$ac_prev"; then
20879       ac_prev=
20880       continue
20881     fi
20882     case $ac_arg in
20883     -cache-file | --cache-file | --cache-fil | --cache-fi \
20884     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20885       ac_prev=cache_file ;;
20886     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20887     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
20888     | --c=*)
20889       ;;
20890     --config-cache | -C)
20891       ;;
20892     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20893       ac_prev=srcdir ;;
20894     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20895       ;;
20896     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
20897       ac_prev=prefix ;;
20898     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
20899       ;;
20900     *)
20901       case $ac_arg in
20902       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20903       esac
20904       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
20905     esac
20906   done
20907
20908   # Always prepend --prefix to ensure using the same prefix
20909   # in subdir configurations.
20910   ac_arg="--prefix=$prefix"
20911   case $ac_arg in
20912   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20913   esac
20914   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
20915
20916   ac_popdir=`pwd`
20917   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
20918
20919     # Do not complain, so a configure script can configure whichever
20920     # parts of a large source tree are present.
20921     test -d "$srcdir/$ac_dir" || continue
20922
20923     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20924     echo "$as_me:$LINENO: $ac_msg" >&5
20925     echo "$ac_msg" >&6
20926     { as_dir="$ac_dir"
20927   case $as_dir in #(
20928   -*) as_dir=./$as_dir;;
20929   esac
20930   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20931     as_dirs=
20932     while :; do
20933       case $as_dir in #(
20934       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20935       *) as_qdir=$as_dir;;
20936       esac
20937       as_dirs="'$as_qdir' $as_dirs"
20938       as_dir=`$as_dirname -- "$as_dir" ||
20939 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20940          X"$as_dir" : 'X\(//\)[^/]' \| \
20941          X"$as_dir" : 'X\(//\)$' \| \
20942          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20943 echo X"$as_dir" |
20944     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20945             s//\1/
20946             q
20947           }
20948           /^X\(\/\/\)[^/].*/{
20949             s//\1/
20950             q
20951           }
20952           /^X\(\/\/\)$/{
20953             s//\1/
20954             q
20955           }
20956           /^X\(\/\).*/{
20957             s//\1/
20958             q
20959           }
20960           s/.*/./; q'`
20961       test -d "$as_dir" && break
20962     done
20963     test -z "$as_dirs" || eval "mkdir $as_dirs"
20964   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20965 echo "$as_me: error: cannot create directory $as_dir" >&2;}
20966    { (exit 1); exit 1; }; }; }
20967     ac_builddir=.
20968
20969 case "$ac_dir" in
20970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20971 *)
20972   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20973   # A ".." for each directory in $ac_dir_suffix.
20974   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20975   case $ac_top_builddir_sub in
20976   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20977   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20978   esac ;;
20979 esac
20980 ac_abs_top_builddir=$ac_pwd
20981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20982 # for backward compatibility:
20983 ac_top_builddir=$ac_top_build_prefix
20984
20985 case $srcdir in
20986   .)  # We are building in place.
20987     ac_srcdir=.
20988     ac_top_srcdir=$ac_top_builddir_sub
20989     ac_abs_top_srcdir=$ac_pwd ;;
20990   [\\/]* | ?:[\\/]* )  # Absolute name.
20991     ac_srcdir=$srcdir$ac_dir_suffix;
20992     ac_top_srcdir=$srcdir
20993     ac_abs_top_srcdir=$srcdir ;;
20994   *) # Relative name.
20995     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20996     ac_top_srcdir=$ac_top_build_prefix$srcdir
20997     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20998 esac
20999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21000
21001
21002     cd "$ac_dir"
21003
21004     # Check for guested configure; otherwise get Cygnus style configure.
21005     if test -f "$ac_srcdir/configure.gnu"; then
21006       ac_sub_configure=$ac_srcdir/configure.gnu
21007     elif test -f "$ac_srcdir/configure"; then
21008       ac_sub_configure=$ac_srcdir/configure
21009     elif test -f "$ac_srcdir/configure.in"; then
21010       # This should be Cygnus configure.
21011       ac_sub_configure=$ac_aux_dir/configure
21012     else
21013       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21014 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21015       ac_sub_configure=
21016     fi
21017
21018     # The recursion is here.
21019     if test -n "$ac_sub_configure"; then
21020       # Make the cache file name correct relative to the subdirectory.
21021       case $cache_file in
21022       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21023       *) # Relative name.
21024         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21025       esac
21026
21027       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21028 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21029       # The eval makes quoting arguments work.
21030       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21031            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21032         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21033 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21034    { (exit 1); exit 1; }; }
21035     fi
21036
21037     cd "$ac_popdir"
21038   done
21039 fi
21040