[bpf] enable BPF backend in autoconf build
[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.7.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-2015 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.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_VERSION_MAJOR
643 LLVM_VERSION_MINOR
644 LLVM_VERSION_PATCH
645 LLVM_VERSION_SUFFIX
646 LLVM_COPYRIGHT
647 CC
648 CFLAGS
649 LDFLAGS
650 CPPFLAGS
651 ac_ct_CC
652 EXEEXT
653 OBJEXT
654 CXX
655 CXXFLAGS
656 ac_ct_CXX
657 CPP
658 subdirs
659 ENABLE_POLLY
660 LLVM_HAS_POLLY
661 build
662 build_cpu
663 build_vendor
664 build_os
665 host
666 host_cpu
667 host_vendor
668 host_os
669 target
670 target_cpu
671 target_vendor
672 target_os
673 OS
674 HOST_OS
675 TARGET_OS
676 LINKALL
677 NOLINKALL
678 LLVM_ON_UNIX
679 LLVM_ON_WIN32
680 ARCH
681 LLVM_NATIVE_ARCH
682 HOST_ARCH
683 LLVM_CROSS_COMPILING
684 BUILD_CC
685 BUILD_EXEEXT
686 BUILD_CXX
687 CVSBUILD
688 ENABLE_LIBCPP
689 ENABLE_CXX1Y
690 ENABLE_SPLIT_DWARF
691 ENABLE_CLANG_ARCMT
692 CLANG_PLUGIN_SUPPORT
693 ENABLE_CLANG_STATIC_ANALYZER
694 ENABLE_OPTIMIZED
695 ENABLE_PROFILING
696 DISABLE_ASSERTIONS
697 ENABLE_WERROR
698 ENABLE_EXPENSIVE_CHECKS
699 EXPENSIVE_CHECKS
700 ENABLE_ABI_BREAKING_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 enable_searchengine
710 enable_external_search
711 enable_server_based_search
712 searchengine_url
713 extra_search_mappings
714 QHELPGENERATOR
715 llvm_doxygen_generate_qhp
716 llvm_doxygen_qch_filename
717 llvm_doxygen_qhp_namespace
718 llvm_doxygen_qhelpgenerator_path
719 llvm_doxygen_qhp_cust_filter_name
720 llvm_doxygen_qhp_cust_filter_attrs
721 clang_doxygen_generate_qhp
722 clang_doxygen_qch_filename
723 clang_doxygen_qhp_namespace
724 clang_doxygen_qhelpgenerator_path
725 clang_doxygen_qhp_cust_filter_name
726 clang_doxygen_qhp_cust_filter_attrs
727 LLVM_ENABLE_THREADS
728 ENABLE_PTHREADS
729 LLVM_ENABLE_ZLIB
730 ENABLE_PIC
731 ENABLE_SHARED
732 ENABLE_EMBED_STDCXX
733 ENABLE_TIMESTAMPS
734 ALL_TARGETS
735 TARGETS_TO_BUILD
736 LLVM_ENUM_TARGETS
737 LLVM_ENUM_ASM_PRINTERS
738 LLVM_ENUM_ASM_PARSERS
739 LLVM_ENUM_DISASSEMBLERS
740 OPTIMIZE_OPTION
741 EXTRA_OPTIONS
742 EXTRA_LD_OPTIONS
743 CLANG_SRC_ROOT
744 BINUTILS_INCDIR
745 ENABLE_TERMINFO
746 INTERNAL_PREFIX
747 ifGNUmake
748 LN_S
749 NM
750 CMP
751 CP
752 DATE
753 FIND
754 GREP
755 MKDIR
756 MV
757 RANLIB
758 AR
759 RM
760 SED
761 TAR
762 BINPWD
763 DOT
764 INSTALL_PROGRAM
765 INSTALL_SCRIPT
766 INSTALL_DATA
767 BZIP2
768 CAT
769 DOXYGEN
770 GROFF
771 GZIPBIN
772 PDFROFF
773 ZIP
774 GO
775 OCAMLFIND
776 GAS
777 HAVE_LINK_VERSION_SCRIPT
778 EGREP
779 NO_VARIADIC_MACROS
780 NO_MISSING_FIELD_INITIALIZERS
781 COVERED_SWITCH_DEFAULT
782 NO_MAYBE_UNINITIALIZED
783 NO_UNINITIALIZED
784 NO_COMMENT
785 PYTHON
786 HAVE_DLOPEN
787 HAVE_TERMINFO
788 USE_OPROFILE
789 USE_INTEL_JITEVENTS
790 XML2CONFIG
791 LIBXML2_LIBS
792 LIBXML2_INC
793 HAVE_PTHREAD
794 HAVE_LIBZ
795 HUGE_VAL_SANITY
796 MMAP_FILE
797 SHLIBEXT
798 LLVM_PREFIX
799 LLVM_BINDIR
800 LLVM_DATADIR
801 LLVM_DOCSDIR
802 LLVM_ETCDIR
803 LLVM_INCLUDEDIR
804 LLVM_INFODIR
805 LLVM_MANDIR
806 LLVM_CONFIGTIME
807 BINDINGS_TO_BUILD
808 HAVE_OCAMLOPT
809 HAVE_OCAML_OUNIT
810 OCAML_LIBDIR
811 ENABLE_VISIBILITY_INLINES_HIDDEN
812 RPATH
813 RDYNAMIC
814 program_prefix
815 LIBOBJS
816 LTLIBOBJS'
817 ac_subst_files=''
818       ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CC
822 CFLAGS
823 LDFLAGS
824 CPPFLAGS
825 CXX
826 CXXFLAGS
827 CCC
828 CPP'
829 ac_subdirs_all='projects/test-suite
830 projects/llvm-test
831 projects/poolalloc
832 projects/llvm-poolalloc
833 projects/safecode
834 tools/polly'
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886   # If the previous option needs an argument, assign it.
887   if test -n "$ac_prev"; then
888     eval $ac_prev=\$ac_option
889     ac_prev=
890     continue
891   fi
892
893   case $ac_option in
894   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895   *)    ac_optarg=yes ;;
896   esac
897
898   # Accept the important Cygnus configure options, so we can diagnose typos.
899
900   case $ac_dashdash$ac_option in
901   --)
902     ac_dashdash=yes ;;
903
904   -bindir | --bindir | --bindi | --bind | --bin | --bi)
905     ac_prev=bindir ;;
906   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907     bindir=$ac_optarg ;;
908
909   -build | --build | --buil | --bui | --bu)
910     ac_prev=build_alias ;;
911   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912     build_alias=$ac_optarg ;;
913
914   -cache-file | --cache-file | --cache-fil | --cache-fi \
915   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916     ac_prev=cache_file ;;
917   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919     cache_file=$ac_optarg ;;
920
921   --config-cache | -C)
922     cache_file=config.cache ;;
923
924   -datadir | --datadir | --datadi | --datad)
925     ac_prev=datadir ;;
926   -datadir=* | --datadir=* | --datadi=* | --datad=*)
927     datadir=$ac_optarg ;;
928
929   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930   | --dataroo | --dataro | --datar)
931     ac_prev=datarootdir ;;
932   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934     datarootdir=$ac_optarg ;;
935
936   -disable-* | --disable-*)
937     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941    { (exit 1); exit 1; }; }
942     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943     eval enable_$ac_feature=no ;;
944
945   -docdir | --docdir | --docdi | --doc | --do)
946     ac_prev=docdir ;;
947   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948     docdir=$ac_optarg ;;
949
950   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951     ac_prev=dvidir ;;
952   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953     dvidir=$ac_optarg ;;
954
955   -enable-* | --enable-*)
956     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957     # Reject names that are not valid shell variable names.
958     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960    { (exit 1); exit 1; }; }
961     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962     eval enable_$ac_feature=\$ac_optarg ;;
963
964   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966   | --exec | --exe | --ex)
967     ac_prev=exec_prefix ;;
968   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970   | --exec=* | --exe=* | --ex=*)
971     exec_prefix=$ac_optarg ;;
972
973   -gas | --gas | --ga | --g)
974     # Obsolete; use --with-gas.
975     with_gas=yes ;;
976
977   -help | --help | --hel | --he | -h)
978     ac_init_help=long ;;
979   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980     ac_init_help=recursive ;;
981   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982     ac_init_help=short ;;
983
984   -host | --host | --hos | --ho)
985     ac_prev=host_alias ;;
986   -host=* | --host=* | --hos=* | --ho=*)
987     host_alias=$ac_optarg ;;
988
989   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990     ac_prev=htmldir ;;
991   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992   | --ht=*)
993     htmldir=$ac_optarg ;;
994
995   -includedir | --includedir | --includedi | --included | --include \
996   | --includ | --inclu | --incl | --inc)
997     ac_prev=includedir ;;
998   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999   | --includ=* | --inclu=* | --incl=* | --inc=*)
1000     includedir=$ac_optarg ;;
1001
1002   -infodir | --infodir | --infodi | --infod | --info | --inf)
1003     ac_prev=infodir ;;
1004   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005     infodir=$ac_optarg ;;
1006
1007   -libdir | --libdir | --libdi | --libd)
1008     ac_prev=libdir ;;
1009   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010     libdir=$ac_optarg ;;
1011
1012   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013   | --libexe | --libex | --libe)
1014     ac_prev=libexecdir ;;
1015   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016   | --libexe=* | --libex=* | --libe=*)
1017     libexecdir=$ac_optarg ;;
1018
1019   -localedir | --localedir | --localedi | --localed | --locale)
1020     ac_prev=localedir ;;
1021   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022     localedir=$ac_optarg ;;
1023
1024   -localstatedir | --localstatedir | --localstatedi | --localstated \
1025   | --localstate | --localstat | --localsta | --localst | --locals)
1026     ac_prev=localstatedir ;;
1027   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029     localstatedir=$ac_optarg ;;
1030
1031   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032     ac_prev=mandir ;;
1033   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034     mandir=$ac_optarg ;;
1035
1036   -nfp | --nfp | --nf)
1037     # Obsolete; use --without-fp.
1038     with_fp=no ;;
1039
1040   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041   | --no-cr | --no-c | -n)
1042     no_create=yes ;;
1043
1044   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046     no_recursion=yes ;;
1047
1048   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050   | --oldin | --oldi | --old | --ol | --o)
1051     ac_prev=oldincludedir ;;
1052   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055     oldincludedir=$ac_optarg ;;
1056
1057   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058     ac_prev=prefix ;;
1059   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060     prefix=$ac_optarg ;;
1061
1062   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063   | --program-pre | --program-pr | --program-p)
1064     ac_prev=program_prefix ;;
1065   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067     program_prefix=$ac_optarg ;;
1068
1069   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070   | --program-suf | --program-su | --program-s)
1071     ac_prev=program_suffix ;;
1072   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074     program_suffix=$ac_optarg ;;
1075
1076   -program-transform-name | --program-transform-name \
1077   | --program-transform-nam | --program-transform-na \
1078   | --program-transform-n | --program-transform- \
1079   | --program-transform | --program-transfor \
1080   | --program-transfo | --program-transf \
1081   | --program-trans | --program-tran \
1082   | --progr-tra | --program-tr | --program-t)
1083     ac_prev=program_transform_name ;;
1084   -program-transform-name=* | --program-transform-name=* \
1085   | --program-transform-nam=* | --program-transform-na=* \
1086   | --program-transform-n=* | --program-transform-=* \
1087   | --program-transform=* | --program-transfor=* \
1088   | --program-transfo=* | --program-transf=* \
1089   | --program-trans=* | --program-tran=* \
1090   | --progr-tra=* | --program-tr=* | --program-t=*)
1091     program_transform_name=$ac_optarg ;;
1092
1093   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094     ac_prev=pdfdir ;;
1095   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096     pdfdir=$ac_optarg ;;
1097
1098   -psdir | --psdir | --psdi | --psd | --ps)
1099     ac_prev=psdir ;;
1100   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101     psdir=$ac_optarg ;;
1102
1103   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104   | -silent | --silent | --silen | --sile | --sil)
1105     silent=yes ;;
1106
1107   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108     ac_prev=sbindir ;;
1109   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110   | --sbi=* | --sb=*)
1111     sbindir=$ac_optarg ;;
1112
1113   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115   | --sharedst | --shareds | --shared | --share | --shar \
1116   | --sha | --sh)
1117     ac_prev=sharedstatedir ;;
1118   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121   | --sha=* | --sh=*)
1122     sharedstatedir=$ac_optarg ;;
1123
1124   -site | --site | --sit)
1125     ac_prev=site ;;
1126   -site=* | --site=* | --sit=*)
1127     site=$ac_optarg ;;
1128
1129   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130     ac_prev=srcdir ;;
1131   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132     srcdir=$ac_optarg ;;
1133
1134   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135   | --syscon | --sysco | --sysc | --sys | --sy)
1136     ac_prev=sysconfdir ;;
1137   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139     sysconfdir=$ac_optarg ;;
1140
1141   -target | --target | --targe | --targ | --tar | --ta | --t)
1142     ac_prev=target_alias ;;
1143   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144     target_alias=$ac_optarg ;;
1145
1146   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147     verbose=yes ;;
1148
1149   -version | --version | --versio | --versi | --vers | -V)
1150     ac_init_version=: ;;
1151
1152   -with-* | --with-*)
1153     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156       { echo "$as_me: error: invalid package name: $ac_package" >&2
1157    { (exit 1); exit 1; }; }
1158     ac_package=`echo $ac_package| sed 's/-/_/g'`
1159     eval with_$ac_package=\$ac_optarg ;;
1160
1161   -without-* | --without-*)
1162     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1165       { echo "$as_me: error: invalid package name: $ac_package" >&2
1166    { (exit 1); exit 1; }; }
1167     ac_package=`echo $ac_package | sed 's/-/_/g'`
1168     eval with_$ac_package=no ;;
1169
1170   --x)
1171     # Obsolete; use --with-x.
1172     with_x=yes ;;
1173
1174   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175   | --x-incl | --x-inc | --x-in | --x-i)
1176     ac_prev=x_includes ;;
1177   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179     x_includes=$ac_optarg ;;
1180
1181   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183     ac_prev=x_libraries ;;
1184   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186     x_libraries=$ac_optarg ;;
1187
1188   -*) { echo "$as_me: error: unrecognized option: $ac_option
1189 Try \`$0 --help' for more information." >&2
1190    { (exit 1); exit 1; }; }
1191     ;;
1192
1193   *=*)
1194     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1197       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1198    { (exit 1); exit 1; }; }
1199     eval $ac_envvar=\$ac_optarg
1200     export $ac_envvar ;;
1201
1202   *)
1203     # FIXME: should be removed in autoconf 3.0.
1204     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208     ;;
1209
1210   esac
1211 done
1212
1213 if test -n "$ac_prev"; then
1214   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215   { echo "$as_me: error: missing argument to $ac_option" >&2
1216    { (exit 1); exit 1; }; }
1217 fi
1218
1219 # Be sure to have absolute directory names.
1220 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221                 datadir sysconfdir sharedstatedir localstatedir includedir \
1222                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223                 libdir localedir mandir
1224 do
1225   eval ac_val=\$$ac_var
1226   case $ac_val in
1227     [\\/$]* | ?:[\\/]* )  continue;;
1228     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229   esac
1230   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1231    { (exit 1); exit 1; }; }
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243   if test "x$build_alias" = x; then
1244     cross_compiling=maybe
1245     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246     If a cross compiler is detected then cross compile mode will be used." >&2
1247   elif test "x$build_alias" != "x$host_alias"; then
1248     cross_compiling=yes
1249   fi
1250 fi
1251
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255 test "$silent" = yes && exec 6>/dev/null
1256
1257
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261   { echo "$as_me: error: Working directory cannot be determined" >&2
1262    { (exit 1); exit 1; }; }
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264   { echo "$as_me: error: pwd does not report name of working directory" >&2
1265    { (exit 1); exit 1; }; }
1266
1267
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270   ac_srcdir_defaulted=yes
1271   # Try the directory containing this script, then the parent directory.
1272   ac_confdir=`$as_dirname -- "$0" ||
1273 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274          X"$0" : 'X\(//\)[^/]' \| \
1275          X"$0" : 'X\(//\)$' \| \
1276          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1277 echo X"$0" |
1278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)[^/].*/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\/\)$/{
1287             s//\1/
1288             q
1289           }
1290           /^X\(\/\).*/{
1291             s//\1/
1292             q
1293           }
1294           s/.*/./; q'`
1295   srcdir=$ac_confdir
1296   if test ! -r "$srcdir/$ac_unique_file"; then
1297     srcdir=..
1298   fi
1299 else
1300   ac_srcdir_defaulted=no
1301 fi
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1305    { (exit 1); exit 1; }; }
1306 fi
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 ac_abs_confdir=`(
1309         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1310    { (exit 1); exit 1; }; }
1311         pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314   srcdir=.
1315 fi
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_env_${ac_var}_value=\$${ac_var}
1325   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1328
1329 #
1330 # Report the --help message.
1331 #
1332 if test "$ac_init_help" = "long"; then
1333   # Omit some internal or obsolete options to make the list less imposing.
1334   # This message is too long to be a string in the A/UX 3.1 sh.
1335   cat <<_ACEOF
1336 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1337
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343 Defaults for the options are specified in brackets.
1344
1345 Configuration:
1346   -h, --help              display this help and exit
1347       --help=short        display options specific to this package
1348       --help=recursive    display the short help of all the included packages
1349   -V, --version           display version information and exit
1350   -q, --quiet, --silent   do not print \`checking...' messages
1351       --cache-file=FILE   cache test results in FILE [disabled]
1352   -C, --config-cache      alias for \`--cache-file=config.cache'
1353   -n, --no-create         do not create output files
1354       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356 Installation directories:
1357   --prefix=PREFIX         install architecture-independent files in PREFIX
1358                           [$ac_default_prefix]
1359   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360                           [PREFIX]
1361
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1366
1367 For better control, use the options below.
1368
1369 Fine tuning of the installation directories:
1370   --bindir=DIR           user executables [EPREFIX/bin]
1371   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1372   --libexecdir=DIR       program executables [EPREFIX/libexec]
1373   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1374   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1375   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1376   --libdir=DIR           object code libraries [EPREFIX/lib]
1377   --includedir=DIR       C header files [PREFIX/include]
1378   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1379   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1380   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1381   --infodir=DIR          info documentation [DATAROOTDIR/info]
1382   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1383   --mandir=DIR           man documentation [DATAROOTDIR/man]
1384   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1385   --htmldir=DIR          html documentation [DOCDIR]
1386   --dvidir=DIR           dvi documentation [DOCDIR]
1387   --pdfdir=DIR           pdf documentation [DOCDIR]
1388   --psdir=DIR            ps documentation [DOCDIR]
1389 _ACEOF
1390
1391   cat <<\_ACEOF
1392
1393 System types:
1394   --build=BUILD     configure for building on BUILD [guessed]
1395   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396   --target=TARGET   configure for building compilers for TARGET [HOST]
1397 _ACEOF
1398 fi
1399
1400 if test -n "$ac_init_help"; then
1401   case $ac_init_help in
1402      short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1403    esac
1404   cat <<\_ACEOF
1405
1406 Optional Features:
1407   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409   --enable-polly          Use polly if available (default is YES)
1410   --enable-libcpp         Use libc++ if available (default is NO)
1411   --enable-compiler-version-checks
1412                           Check the version of the host compiler (default is
1413                           YES)
1414   --enable-cxx1y          Use c++1y if available (default is NO)
1415   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1416   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1417   --enable-clang-plugin-support
1418                           Enable plugin support in clang (default is YES)
1419   --enable-clang-static-analyzer
1420                           Enable building of clang Static Analyzer (default is
1421                           YES)
1422   --enable-optimized      Compile with optimizations enabled (default is NO)
1423   --enable-profiling      Compile with profiling enabled (default is NO)
1424   --enable-assertions     Compile with assertion checks enabled (default is
1425                           YES)
1426   --enable-werror         Compile with -Werror enabled (default is NO)
1427   --enable-expensive-checks
1428                           Compile with expensive debug checks enabled (default
1429                           is NO)
1430   --enable-abi-breaking-checks
1431                           Compile with abi-breaking asserts support (default
1432                           is with-asserts)
1433   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1434                           NO)
1435   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1436                           optimization is on and YES if it's off)
1437   --enable-keep-symbols   Do not strip installed executables)
1438   --enable-jit            Enable Just In Time Compiling (default is YES)
1439   --enable-docs           Build documents (default is YES)
1440   --enable-doxygen        Build doxygen documentation (default is NO)
1441   --enable-doxygen-search Enable doxygen search support (default is NO)
1442   --enable-doxygen-external-search
1443                           Enable doxygen exteranl search (default is NO)
1444   --enable-doxygen-qt-help
1445                           Build Qt help files (default is NO)
1446   --enable-threads        Use threads if available (default is YES)
1447   --enable-pthreads       Use pthreads if available (default is YES)
1448   --enable-zlib           Use zlib for compression/decompression if available
1449                           (default is YES)
1450   --enable-pic            Build LLVM with Position Independent Code (default
1451                           is YES)
1452   --enable-shared         Build a shared library and link tools against it
1453                           (default is NO)
1454   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1455                           Win32 DLL (default is NO)
1456   --enable-timestamps     Enable embedding timestamp information in build
1457                           (default is YES)
1458   --enable-backtraces     Enable embedding backtraces on crash (default is
1459                           YES)
1460   --enable-crash-overrides
1461                           Enable crash handling overrides (default is YES)
1462   --enable-targets        Build specific host targets: all or
1463                           target1,target2,... Valid targets are: host, x86,
1464                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465                           hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
1466                           and cpp (default=all)
1467   --enable-experimental-targets
1468                           Build experimental host targets: disable or
1469                           target1,target2,... (default=disable)
1470   --enable-bindings       Build specific language bindings:
1471                           all,auto,none,{binding-name} (default=auto)
1472   --enable-terminfo       Query the terminfo database if available (default is
1473                           YES)
1474   --enable-libedit        Use libedit if available (default is YES)
1475   --enable-libffi         Check for the presence of libffi (default is NO)
1476
1477 Optional Packages:
1478   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480   --with-doxygen-search-engine-url
1481                           Specify the external search engine for doxygen
1482   --with-doxygen-search-mappings
1483                           Specify the extra search mapping for doxygen
1484   --with-optimize-option  Select the compiler options to use for optimized
1485                           builds
1486   --with-extra-options    Specify additional options to compile LLVM with
1487   --with-extra-ld-options Specify additional options to link LLVM with
1488   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1489                           is stdlib)
1490   --with-clang-srcdir     Directory to the out-of-tree Clang source
1491   --with-clang-resource-dir
1492                           Relative directory from the Clang binary for
1493                           resource files
1494   --with-c-include-dirs   Colon separated list of directories clang will
1495                           search for headers
1496   --with-gcc-toolchain    Directory where gcc is installed.
1497   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1498   --with-clang-default-openmp-runtime
1499                           The default OpenMP runtime for Clang.
1500   --with-binutils-include Specify path to binutils/include/ containing
1501                           plugin-api.h file for gold plugin.
1502   --with-bug-report-url   Specify the URL where bug reports should be
1503                           submitted (default=http://llvm.org/bugs/)
1504   --with-internal-prefix  Installation directory for internal files
1505   --with-python           path to python
1506   --with-oprofile=<prefix>
1507                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1508   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1509
1510
1511 Some influential environment variables:
1512   CC          C compiler command
1513   CFLAGS      C compiler flags
1514   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1515               nonstandard directory <lib dir>
1516   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517               you have headers in a nonstandard directory <include dir>
1518   CXX         C++ compiler command
1519   CXXFLAGS    C++ compiler flags
1520   CPP         C preprocessor
1521
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524
1525 Report bugs to <http://llvm.org/bugs/>.
1526 _ACEOF
1527 ac_status=$?
1528 fi
1529
1530 if test "$ac_init_help" = "recursive"; then
1531   # If there are subdirs, report their specific --help.
1532   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533     test -d "$ac_dir" || continue
1534     ac_builddir=.
1535
1536 case "$ac_dir" in
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *)
1539   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540   # A ".." for each directory in $ac_dir_suffix.
1541   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542   case $ac_top_builddir_sub in
1543   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545   esac ;;
1546 esac
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1551
1552 case $srcdir in
1553   .)  # We are building in place.
1554     ac_srcdir=.
1555     ac_top_srcdir=$ac_top_builddir_sub
1556     ac_abs_top_srcdir=$ac_pwd ;;
1557   [\\/]* | ?:[\\/]* )  # Absolute name.
1558     ac_srcdir=$srcdir$ac_dir_suffix;
1559     ac_top_srcdir=$srcdir
1560     ac_abs_top_srcdir=$srcdir ;;
1561   *) # Relative name.
1562     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563     ac_top_srcdir=$ac_top_build_prefix$srcdir
1564     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 esac
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568     cd "$ac_dir" || { ac_status=$?; continue; }
1569     # Check for guested configure.
1570     if test -f "$ac_srcdir/configure.gnu"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573     elif test -f "$ac_srcdir/configure"; then
1574       echo &&
1575       $SHELL "$ac_srcdir/configure" --help=recursive
1576     else
1577       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578     fi || ac_status=$?
1579     cd "$ac_pwd" || { ac_status=$?; break; }
1580   done
1581 fi
1582
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1585   cat <<\_ACEOF
1586 LLVM configure 3.7.0svn
1587 generated by GNU Autoconf 2.60
1588
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1593
1594 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1595 _ACEOF
1596   exit
1597 fi
1598 cat >config.log <<_ACEOF
1599 This file contains any messages produced by compilers while
1600 running configure, to aid debugging if configure makes a mistake.
1601
1602 It was created by LLVM $as_me 3.7.0svn, which was
1603 generated by GNU Autoconf 2.60.  Invocation command line was
1604
1605   $ $0 $@
1606
1607 _ACEOF
1608 exec 5>>config.log
1609 {
1610 cat <<_ASUNAME
1611 ## --------- ##
1612 ## Platform. ##
1613 ## --------- ##
1614
1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1620
1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1623
1624 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1625 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1628 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1629 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1630 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1631
1632 _ASUNAME
1633
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1636 do
1637   IFS=$as_save_IFS
1638   test -z "$as_dir" && as_dir=.
1639   echo "PATH: $as_dir"
1640 done
1641 IFS=$as_save_IFS
1642
1643 } >&5
1644
1645 cat >&5 <<_ACEOF
1646
1647
1648 ## ----------- ##
1649 ## Core tests. ##
1650 ## ----------- ##
1651
1652 _ACEOF
1653
1654
1655 # Keep a trace of the command line.
1656 # Strip out --no-create and --no-recursion so they do not pile up.
1657 # Strip out --silent because we don't want to record it for future runs.
1658 # Also quote any args containing shell meta-characters.
1659 # Make two passes to allow for proper duplicate-argument suppression.
1660 ac_configure_args=
1661 ac_configure_args0=
1662 ac_configure_args1=
1663 ac_must_keep_next=false
1664 for ac_pass in 1 2
1665 do
1666   for ac_arg
1667   do
1668     case $ac_arg in
1669     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671     | -silent | --silent | --silen | --sile | --sil)
1672       continue ;;
1673     *\'*)
1674       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675     esac
1676     case $ac_pass in
1677     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1678     2)
1679       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680       if test $ac_must_keep_next = true; then
1681         ac_must_keep_next=false # Got value, back to normal.
1682       else
1683         case $ac_arg in
1684           *=* | --config-cache | -C | -disable-* | --disable-* \
1685           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687           | -with-* | --with-* | -without-* | --without-* | --x)
1688             case "$ac_configure_args0 " in
1689               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690             esac
1691             ;;
1692           -* ) ac_must_keep_next=true ;;
1693         esac
1694       fi
1695       ac_configure_args="$ac_configure_args '$ac_arg'"
1696       ;;
1697     esac
1698   done
1699 done
1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1702
1703 # When interrupted or exit'd, cleanup temporary files, and complete
1704 # config.log.  We remove comments because anyway the quotes in there
1705 # would cause problems or look ugly.
1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708 trap 'exit_status=$?
1709   # Save into config.log some information that might help in debugging.
1710   {
1711     echo
1712
1713     cat <<\_ASBOX
1714 ## ---------------- ##
1715 ## Cache variables. ##
1716 ## ---------------- ##
1717 _ASBOX
1718     echo
1719     # The following way of writing the cache mishandles newlines in values,
1720 (
1721   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722     eval ac_val=\$$ac_var
1723     case $ac_val in #(
1724     *${as_nl}*)
1725       case $ac_var in #(
1726       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728       esac
1729       case $ac_var in #(
1730       _ | IFS | as_nl) ;; #(
1731       *) $as_unset $ac_var ;;
1732       esac ;;
1733     esac
1734   done
1735   (set) 2>&1 |
1736     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737     *${as_nl}ac_space=\ *)
1738       sed -n \
1739         "s/'\''/'\''\\\\'\'''\''/g;
1740           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741       ;; #(
1742     *)
1743       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1744       ;;
1745     esac |
1746     sort
1747 )
1748     echo
1749
1750     cat <<\_ASBOX
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1754 _ASBOX
1755     echo
1756     for ac_var in $ac_subst_vars
1757     do
1758       eval ac_val=\$$ac_var
1759       case $ac_val in
1760       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761       esac
1762       echo "$ac_var='\''$ac_val'\''"
1763     done | sort
1764     echo
1765
1766     if test -n "$ac_subst_files"; then
1767       cat <<\_ASBOX
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1771 _ASBOX
1772       echo
1773       for ac_var in $ac_subst_files
1774       do
1775         eval ac_val=\$$ac_var
1776         case $ac_val in
1777         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778         esac
1779         echo "$ac_var='\''$ac_val'\''"
1780       done | sort
1781       echo
1782     fi
1783
1784     if test -s confdefs.h; then
1785       cat <<\_ASBOX
1786 ## ----------- ##
1787 ## confdefs.h. ##
1788 ## ----------- ##
1789 _ASBOX
1790       echo
1791       cat confdefs.h
1792       echo
1793     fi
1794     test "$ac_signal" != 0 &&
1795       echo "$as_me: caught signal $ac_signal"
1796     echo "$as_me: exit $exit_status"
1797   } >&5
1798   rm -f core *.core core.conftest.* &&
1799     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800     exit $exit_status
1801 ' 0
1802 for ac_signal in 1 2 13 15; do
1803   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1804 done
1805 ac_signal=0
1806
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest* confdefs.h
1809
1810 # Predefined preprocessor variables.
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1834 _ACEOF
1835
1836
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer explicitly selected file to automatically selected ones.
1839 if test -n "$CONFIG_SITE"; then
1840   set x "$CONFIG_SITE"
1841 elif test "x$prefix" != xNONE; then
1842   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1843 else
1844   set x "$ac_default_prefix/share/config.site" \
1845         "$ac_default_prefix/etc/config.site"
1846 fi
1847 shift
1848 for ac_site_file
1849 do
1850   if test -r "$ac_site_file"; then
1851     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852 echo "$as_me: loading site script $ac_site_file" >&6;}
1853     sed 's/^/| /' "$ac_site_file" >&5
1854     . "$ac_site_file"
1855   fi
1856 done
1857
1858 if test -r "$cache_file"; then
1859   # Some versions of bash will fail to source /dev/null (special
1860   # files actually), so we avoid doing that.
1861   if test -f "$cache_file"; then
1862     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863 echo "$as_me: loading cache $cache_file" >&6;}
1864     case $cache_file in
1865       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866       *)                      . "./$cache_file";;
1867     esac
1868   fi
1869 else
1870   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871 echo "$as_me: creating cache $cache_file" >&6;}
1872   >$cache_file
1873 fi
1874
1875 # Check that the precious variables saved in the cache have kept the same
1876 # value.
1877 ac_cache_corrupted=false
1878 for ac_var in $ac_precious_vars; do
1879   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880   eval ac_new_set=\$ac_env_${ac_var}_set
1881   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882   eval ac_new_val=\$ac_env_${ac_var}_value
1883   case $ac_old_set,$ac_new_set in
1884     set,)
1885       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887       ac_cache_corrupted=: ;;
1888     ,set)
1889       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891       ac_cache_corrupted=: ;;
1892     ,);;
1893     *)
1894       if test "x$ac_old_val" != "x$ac_new_val"; then
1895         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1898 echo "$as_me:   former value:  $ac_old_val" >&2;}
1899         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1900 echo "$as_me:   current value: $ac_new_val" >&2;}
1901         ac_cache_corrupted=:
1902       fi;;
1903   esac
1904   # Pass precious variables to config.status.
1905   if test "$ac_new_set" = set; then
1906     case $ac_new_val in
1907     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908     *) ac_arg=$ac_var=$ac_new_val ;;
1909     esac
1910     case " $ac_configure_args " in
1911       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1912       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1913     esac
1914   fi
1915 done
1916 if $ac_cache_corrupted; then
1917   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921    { (exit 1); exit 1; }; }
1922 fi
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948 ac_ext=c
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953
1954
1955
1956 LLVM_VERSION_MAJOR=3
1957 LLVM_VERSION_MINOR=7
1958 LLVM_VERSION_PATCH=0
1959 LLVM_VERSION_SUFFIX=svn
1960
1961
1962 cat >>confdefs.h <<_ACEOF
1963 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1964 _ACEOF
1965
1966
1967 cat >>confdefs.h <<_ACEOF
1968 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1969 _ACEOF
1970
1971
1972 cat >>confdefs.h <<_ACEOF
1973 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1974 _ACEOF
1975
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1979 _ACEOF
1980
1981
1982
1983
1984
1985
1986
1987 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1988
1989
1990
1991
1992
1993
1994
1995 ac_aux_dir=
1996 for ac_dir in autoconf "$srcdir"/autoconf; do
1997   if test -f "$ac_dir/install-sh"; then
1998     ac_aux_dir=$ac_dir
1999     ac_install_sh="$ac_aux_dir/install-sh -c"
2000     break
2001   elif test -f "$ac_dir/install.sh"; then
2002     ac_aux_dir=$ac_dir
2003     ac_install_sh="$ac_aux_dir/install.sh -c"
2004     break
2005   elif test -f "$ac_dir/shtool"; then
2006     ac_aux_dir=$ac_dir
2007     ac_install_sh="$ac_aux_dir/shtool install -c"
2008     break
2009   fi
2010 done
2011 if test -z "$ac_aux_dir"; then
2012   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2013 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2014    { (exit 1); exit 1; }; }
2015 fi
2016
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2024
2025
2026
2027 if test ${srcdir} != "." ; then
2028   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2029     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2030 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2031    { (exit 1); exit 1; }; }
2032   fi
2033 fi
2034
2035 if test ${srcdir} == "." ; then
2036   { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2037 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2038   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2039 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2040   { echo "$as_me:$LINENO: WARNING: *                                   WARNING                                          *" >&5
2041 echo "$as_me: WARNING: *                                   WARNING                                          *" >&2;}
2042   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2043 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2044   { echo "$as_me:$LINENO: WARNING: *                        In-source builds are deprecated.                            *" >&5
2045 echo "$as_me: WARNING: *                        In-source builds are deprecated.                            *" >&2;}
2046   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2047 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2048   { echo "$as_me:$LINENO: WARNING: *               Please configure from a separate build directory!                    *" >&5
2049 echo "$as_me: WARNING: *               Please configure from a separate build directory!                    *" >&2;}
2050   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2051 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2052   { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2053 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2054 fi
2055
2056 : ${CFLAGS=}
2057 : ${CXXFLAGS=}
2058
2059 ac_ext=c
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 if test -n "$ac_tool_prefix"; then
2065   for ac_prog in clang gcc
2066   do
2067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$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_CC+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test -n "$CC"; then
2075   ac_cv_prog_CC="$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_CC="$ac_tool_prefix$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 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096   { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$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 "$CC" && break
2105   done
2106 fi
2107 if test -z "$CC"; then
2108   ac_ct_CC=$CC
2109   for ac_prog in clang gcc
2110 do
2111   # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   if test -n "$ac_ct_CC"; then
2119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126   for ac_exec_ext in '' $ac_executable_extensions; do
2127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2128     ac_cv_prog_ac_ct_CC="$ac_prog"
2129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130     break 2
2131   fi
2132 done
2133 done
2134 IFS=$as_save_IFS
2135
2136 fi
2137 fi
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2142 else
2143   { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2145 fi
2146
2147
2148   test -n "$ac_ct_CC" && break
2149 done
2150
2151   if test "x$ac_ct_CC" = x; then
2152     CC=""
2153   else
2154     case $cross_compiling:$ac_tool_warned in
2155 yes:)
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet.  If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet.  If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2163 esac
2164     CC=$ac_ct_CC
2165   fi
2166 fi
2167
2168
2169 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&2;}
2173    { (exit 1); exit 1; }; }
2174
2175 # Provide some information about the compiler.
2176 echo "$as_me:$LINENO: checking for C compiler version" >&5
2177 ac_compiler=`set X $ac_compile; echo $2`
2178 { (ac_try="$ac_compiler --version >&5"
2179 case "(($ac_try" in
2180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181   *) ac_try_echo=$ac_try;;
2182 esac
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184   (eval "$ac_compiler --version >&5") 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }
2188 { (ac_try="$ac_compiler -v >&5"
2189 case "(($ac_try" in
2190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191   *) ac_try_echo=$ac_try;;
2192 esac
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194   (eval "$ac_compiler -v >&5") 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); }
2198 { (ac_try="$ac_compiler -V >&5"
2199 case "(($ac_try" in
2200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201   *) ac_try_echo=$ac_try;;
2202 esac
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204   (eval "$ac_compiler -V >&5") 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }
2208
2209 cat >conftest.$ac_ext <<_ACEOF
2210 /* confdefs.h.  */
2211 _ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h.  */
2215
2216 int
2217 main ()
2218 {
2219
2220   ;
2221   return 0;
2222 }
2223 _ACEOF
2224 ac_clean_files_save=$ac_clean_files
2225 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2226 # Try to create an executable without -o first, disregard a.out.
2227 # It will help us diagnose broken compilers, and finding out an intuition
2228 # of exeext.
2229 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2230 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2231 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2232 #
2233 # List of possible output files, starting from the most likely.
2234 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2235 # only as a last resort.  b.out is created by i960 compilers.
2236 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2237 #
2238 # The IRIX 6 linker writes into existing files which may not be
2239 # executable, retaining their permissions.  Remove them first so a
2240 # subsequent execution test works.
2241 ac_rmfiles=
2242 for ac_file in $ac_files
2243 do
2244   case $ac_file in
2245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2246     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2247   esac
2248 done
2249 rm -f $ac_rmfiles
2250
2251 if { (ac_try="$ac_link_default"
2252 case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257   (eval "$ac_link_default") 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; then
2261   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2263 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2264 # so that the user can short-circuit this test for compilers unknown to
2265 # Autoconf.
2266 for ac_file in $ac_files
2267 do
2268   test -f "$ac_file" || continue
2269   case $ac_file in
2270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2271         ;;
2272     [ab].out )
2273         # We found the default executable, but exeext='' is most
2274         # certainly right.
2275         break;;
2276     *.* )
2277         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2278         then :; else
2279            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280         fi
2281         # We set ac_cv_exeext here because the later test for it is not
2282         # safe: cross compilers may not add the suffix if given an `-o'
2283         # argument, so we may need to know it at that point already.
2284         # Even if this section looks crufty: it has the advantage of
2285         # actually working.
2286         break;;
2287     * )
2288         break;;
2289   esac
2290 done
2291 test "$ac_cv_exeext" = no && ac_cv_exeext=
2292
2293 else
2294   echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: C compiler cannot create executables
2300 See \`config.log' for more details." >&2;}
2301    { (exit 77); exit 77; }; }
2302 fi
2303
2304 ac_exeext=$ac_cv_exeext
2305 { echo "$as_me:$LINENO: result: $ac_file" >&5
2306 echo "${ECHO_T}$ac_file" >&6; }
2307
2308 # Check that the compiler produces executables we can run.  If not, either
2309 # the compiler is broken, or we cross compile.
2310 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2311 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2312 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2313 # If not cross compiling, check that we can run a simple program.
2314 if test "$cross_compiling" != yes; then
2315   if { ac_try='./$ac_file'
2316   { (case "(($ac_try" in
2317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318   *) ac_try_echo=$ac_try;;
2319 esac
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321   (eval "$ac_try") 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; }; then
2325     cross_compiling=no
2326   else
2327     if test "$cross_compiling" = maybe; then
2328         cross_compiling=yes
2329     else
2330         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot run C compiled programs.
2334 If you meant to cross compile, use \`--host'.
2335 See \`config.log' for more details." >&2;}
2336    { (exit 1); exit 1; }; }
2337     fi
2338   fi
2339 fi
2340 { echo "$as_me:$LINENO: result: yes" >&5
2341 echo "${ECHO_T}yes" >&6; }
2342
2343 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2344 ac_clean_files=$ac_clean_files_save
2345 # Check that the compiler produces executables we can run.  If not, either
2346 # the compiler is broken, or we cross compile.
2347 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2348 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2349 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2350 echo "${ECHO_T}$cross_compiling" >&6; }
2351
2352 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2353 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2354 if { (ac_try="$ac_link"
2355 case "(($ac_try" in
2356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357   *) ac_try_echo=$ac_try;;
2358 esac
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360   (eval "$ac_link") 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; then
2364   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2365 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2366 # work properly (i.e., refer to `conftest.exe'), while it won't with
2367 # `rm'.
2368 for ac_file in conftest.exe conftest conftest.*; do
2369   test -f "$ac_file" || continue
2370   case $ac_file in
2371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2372     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2373           break;;
2374     * ) break;;
2375   esac
2376 done
2377 else
2378   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382    { (exit 1); exit 1; }; }
2383 fi
2384
2385 rm -f conftest$ac_cv_exeext
2386 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2388
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2391 ac_exeext=$EXEEXT
2392 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2394 if test "${ac_cv_objext+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403
2404 int
2405 main ()
2406 {
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.o conftest.obj
2413 if { (ac_try="$ac_compile"
2414 case "(($ac_try" in
2415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416   *) ac_try_echo=$ac_try;;
2417 esac
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419   (eval "$ac_compile") 2>&5
2420   ac_status=$?
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); }; then
2423   for ac_file in conftest.o conftest.obj conftest.*; do
2424   test -f "$ac_file" || continue;
2425   case $ac_file in
2426     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2427     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2428        break;;
2429   esac
2430 done
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details." >&2;}
2439    { (exit 1); exit 1; }; }
2440 fi
2441
2442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2443 fi
2444 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2445 echo "${ECHO_T}$ac_cv_objext" >&6; }
2446 OBJEXT=$ac_cv_objext
2447 ac_objext=$OBJEXT
2448 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h.  */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459
2460 int
2461 main ()
2462 {
2463 #ifndef __GNUC__
2464        choke me
2465 #endif
2466
2467   ;
2468   return 0;
2469 }
2470 _ACEOF
2471 rm -f conftest.$ac_objext
2472 if { (ac_try="$ac_compile"
2473 case "(($ac_try" in
2474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475   *) ac_try_echo=$ac_try;;
2476 esac
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478   (eval "$ac_compile") 2>conftest.er1
2479   ac_status=$?
2480   grep -v '^ *+' conftest.er1 >conftest.err
2481   rm -f conftest.er1
2482   cat conftest.err >&5
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); } &&
2485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2486   { (case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_try") 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; } &&
2495          { ac_try='test -s conftest.$ac_objext'
2496   { (case "(($ac_try" in
2497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498   *) ac_try_echo=$ac_try;;
2499 esac
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501   (eval "$ac_try") 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; }; then
2505   ac_compiler_gnu=yes
2506 else
2507   echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510         ac_compiler_gnu=no
2511 fi
2512
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2515
2516 fi
2517 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2519 GCC=`test $ac_compiler_gnu = yes && echo yes`
2520 ac_test_CFLAGS=${CFLAGS+set}
2521 ac_save_CFLAGS=$CFLAGS
2522 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2523 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_cc_g+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   ac_save_c_werror_flag=$ac_c_werror_flag
2528    ac_c_werror_flag=yes
2529    ac_cv_prog_cc_g=no
2530    CFLAGS="-g"
2531    cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h.  */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h.  */
2537
2538 int
2539 main ()
2540 {
2541
2542   ;
2543   return 0;
2544 }
2545 _ACEOF
2546 rm -f conftest.$ac_objext
2547 if { (ac_try="$ac_compile"
2548 case "(($ac_try" in
2549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550   *) ac_try_echo=$ac_try;;
2551 esac
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553   (eval "$ac_compile") 2>conftest.er1
2554   ac_status=$?
2555   grep -v '^ *+' conftest.er1 >conftest.err
2556   rm -f conftest.er1
2557   cat conftest.err >&5
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); } &&
2560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2561   { (case "(($ac_try" in
2562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563   *) ac_try_echo=$ac_try;;
2564 esac
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566   (eval "$ac_try") 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; } &&
2570          { ac_try='test -s conftest.$ac_objext'
2571   { (case "(($ac_try" in
2572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573   *) ac_try_echo=$ac_try;;
2574 esac
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576   (eval "$ac_try") 2>&5
2577   ac_status=$?
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); }; }; then
2580   ac_cv_prog_cc_g=yes
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585         CFLAGS=""
2586       cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2592
2593 int
2594 main ()
2595 {
2596
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2603 case "(($ac_try" in
2604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605   *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608   (eval "$ac_compile") 2>conftest.er1
2609   ac_status=$?
2610   grep -v '^ *+' conftest.er1 >conftest.err
2611   rm -f conftest.er1
2612   cat conftest.err >&5
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616   { (case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_try") 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; } &&
2625          { ac_try='test -s conftest.$ac_objext'
2626   { (case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631   (eval "$ac_try") 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   :
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640         ac_c_werror_flag=$ac_save_c_werror_flag
2641          CFLAGS="-g"
2642          cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2659 case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_compile") 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } &&
2671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672   { (case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677   (eval "$ac_try") 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687   (eval "$ac_try") 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }; }; then
2691   ac_cv_prog_cc_g=yes
2692 else
2693   echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696
2697 fi
2698
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 fi
2701
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 fi
2704
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706    ac_c_werror_flag=$ac_save_c_werror_flag
2707 fi
2708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2710 if test "$ac_test_CFLAGS" = set; then
2711   CFLAGS=$ac_save_CFLAGS
2712 elif test $ac_cv_prog_cc_g = yes; then
2713   if test "$GCC" = yes; then
2714     CFLAGS="-g -O2"
2715   else
2716     CFLAGS="-g"
2717   fi
2718 else
2719   if test "$GCC" = yes; then
2720     CFLAGS="-O2"
2721   else
2722     CFLAGS=
2723   fi
2724 fi
2725 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2726 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2727 if test "${ac_cv_prog_cc_c89+set}" = set; then
2728   echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730   ac_cv_prog_cc_c89=no
2731 ac_save_CC=$CC
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738 #include <stdarg.h>
2739 #include <stdio.h>
2740 #include <sys/types.h>
2741 #include <sys/stat.h>
2742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2743 struct buf { int x; };
2744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745 static char *e (p, i)
2746      char **p;
2747      int i;
2748 {
2749   return p[i];
2750 }
2751 static char *f (char * (*g) (char **, int), char **p, ...)
2752 {
2753   char *s;
2754   va_list v;
2755   va_start (v,p);
2756   s = g (p, va_arg (v,int));
2757   va_end (v);
2758   return s;
2759 }
2760
2761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2762    function prototypes and stuff, but not '\xHH' hex character constants.
2763    These don't provoke an error unfortunately, instead are silently treated
2764    as 'x'.  The following induces an error, until -std is added to get
2765    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2766    array size at least.  It's necessary to write '\x00'==0 to get something
2767    that's true only with -std.  */
2768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2769
2770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2771    inside strings and character constants.  */
2772 #define FOO(x) 'x'
2773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2774
2775 int test (int i, double x);
2776 struct s1 {int (*f) (int a);};
2777 struct s2 {int (*f) (double a);};
2778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2779 int argc;
2780 char **argv;
2781 int
2782 main ()
2783 {
2784 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2790         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2791 do
2792   CC="$ac_save_CC $ac_arg"
2793   rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2795 case "(($ac_try" in
2796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797   *) ac_try_echo=$ac_try;;
2798 esac
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800   (eval "$ac_compile") 2>conftest.er1
2801   ac_status=$?
2802   grep -v '^ *+' conftest.er1 >conftest.err
2803   rm -f conftest.er1
2804   cat conftest.err >&5
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); } &&
2807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2808   { (case "(($ac_try" in
2809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810   *) ac_try_echo=$ac_try;;
2811 esac
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813   (eval "$ac_try") 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); }; } &&
2817          { ac_try='test -s conftest.$ac_objext'
2818   { (case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823   (eval "$ac_try") 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; }; then
2827   ac_cv_prog_cc_c89=$ac_arg
2828 else
2829   echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832
2833 fi
2834
2835 rm -f core conftest.err conftest.$ac_objext
2836   test "x$ac_cv_prog_cc_c89" != "xno" && break
2837 done
2838 rm -f conftest.$ac_ext
2839 CC=$ac_save_CC
2840
2841 fi
2842 # AC_CACHE_VAL
2843 case "x$ac_cv_prog_cc_c89" in
2844   x)
2845     { echo "$as_me:$LINENO: result: none needed" >&5
2846 echo "${ECHO_T}none needed" >&6; } ;;
2847   xno)
2848     { echo "$as_me:$LINENO: result: unsupported" >&5
2849 echo "${ECHO_T}unsupported" >&6; } ;;
2850   *)
2851     CC="$CC $ac_cv_prog_cc_c89"
2852     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2853 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2854 esac
2855
2856
2857 ac_ext=c
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862
2863 ac_ext=cpp
2864 ac_cpp='$CXXCPP $CPPFLAGS'
2865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2868 if test -z "$CXX"; then
2869   if test -n "$CCC"; then
2870     CXX=$CCC
2871   else
2872     if test -n "$ac_tool_prefix"; then
2873   for ac_prog in clang++ g++
2874   do
2875     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$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_CXX+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$CXX"; then
2883   ac_cv_prog_CXX="$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_CXX="$ac_tool_prefix$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 CXX=$ac_cv_prog_CXX
2903 if test -n "$CXX"; then
2904   { echo "$as_me:$LINENO: result: $CXX" >&5
2905 echo "${ECHO_T}$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 "$CXX" && break
2913   done
2914 fi
2915 if test -z "$CXX"; then
2916   ac_ct_CXX=$CXX
2917   for ac_prog in clang++ g++
2918 do
2919   # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2924   echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926   if test -n "$ac_ct_CXX"; then
2927   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932   IFS=$as_save_IFS
2933   test -z "$as_dir" && as_dir=.
2934   for ac_exec_ext in '' $ac_executable_extensions; do
2935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2936     ac_cv_prog_ac_ct_CXX="$ac_prog"
2937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938     break 2
2939   fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2947 if test -n "$ac_ct_CXX"; then
2948   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2949 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2950 else
2951   { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2953 fi
2954
2955
2956   test -n "$ac_ct_CXX" && break
2957 done
2958
2959   if test "x$ac_ct_CXX" = x; then
2960     CXX="g++"
2961   else
2962     case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet.  If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet.  If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972     CXX=$ac_ct_CXX
2973   fi
2974 fi
2975
2976   fi
2977 fi
2978 # Provide some information about the compiler.
2979 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2980 ac_compiler=`set X $ac_compile; echo $2`
2981 { (ac_try="$ac_compiler --version >&5"
2982 case "(($ac_try" in
2983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984   *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987   (eval "$ac_compiler --version >&5") 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }
2991 { (ac_try="$ac_compiler -v >&5"
2992 case "(($ac_try" in
2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994   *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997   (eval "$ac_compiler -v >&5") 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }
3001 { (ac_try="$ac_compiler -V >&5"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_compiler -V >&5") 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }
3011
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017   cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h.  */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h.  */
3023
3024 int
3025 main ()
3026 {
3027 #ifndef __GNUC__
3028        choke me
3029 #endif
3030
3031   ;
3032   return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042   (eval "$ac_compile") 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } &&
3049          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3050   { (case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_try") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; } &&
3059          { ac_try='test -s conftest.$ac_objext'
3060   { (case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_try") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; }; then
3069   ac_compiler_gnu=yes
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074         ac_compiler_gnu=no
3075 fi
3076
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3079
3080 fi
3081 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3082 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3083 GXX=`test $ac_compiler_gnu = yes && echo yes`
3084 ac_test_CXXFLAGS=${CXXFLAGS+set}
3085 ac_save_CXXFLAGS=$CXXFLAGS
3086 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3087 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_cxx_g+set}" = set; then
3089   echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3092    ac_cxx_werror_flag=yes
3093    ac_cv_prog_cxx_g=no
3094    CXXFLAGS="-g"
3095    cat >conftest.$ac_ext <<_ACEOF
3096 /* confdefs.h.  */
3097 _ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h.  */
3101
3102 int
3103 main ()
3104 {
3105
3106   ;
3107   return 0;
3108 }
3109 _ACEOF
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3112 case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117   (eval "$ac_compile") 2>conftest.er1
3118   ac_status=$?
3119   grep -v '^ *+' conftest.er1 >conftest.err
3120   rm -f conftest.er1
3121   cat conftest.err >&5
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); } &&
3124          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3125   { (case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_try") 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }; } &&
3134          { ac_try='test -s conftest.$ac_objext'
3135   { (case "(($ac_try" in
3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137   *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140   (eval "$ac_try") 2>&5
3141   ac_status=$?
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); }; }; then
3144   ac_cv_prog_cxx_g=yes
3145 else
3146   echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149         CXXFLAGS=""
3150       cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h.  */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h.  */
3156
3157 int
3158 main ()
3159 {
3160
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compile") 2>conftest.er1
3173   ac_status=$?
3174   grep -v '^ *+' conftest.er1 >conftest.err
3175   rm -f conftest.er1
3176   cat conftest.err >&5
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } &&
3179          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; } &&
3189          { ac_try='test -s conftest.$ac_objext'
3190   { (case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_try") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; }; then
3199   :
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205          CXXFLAGS="-g"
3206          cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212
3213 int
3214 main ()
3215 {
3216
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228   (eval "$ac_compile") 2>conftest.er1
3229   ac_status=$?
3230   grep -v '^ *+' conftest.er1 >conftest.err
3231   rm -f conftest.er1
3232   cat conftest.err >&5
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); } &&
3235          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3236   { (case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_try") 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }; } &&
3245          { ac_try='test -s conftest.$ac_objext'
3246   { (case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   ac_cv_prog_cxx_g=yes
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260
3261 fi
3262
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 fi
3265
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 fi
3268
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3271 fi
3272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3274 if test "$ac_test_CXXFLAGS" = set; then
3275   CXXFLAGS=$ac_save_CXXFLAGS
3276 elif test $ac_cv_prog_cxx_g = yes; then
3277   if test "$GXX" = yes; then
3278     CXXFLAGS="-g -O2"
3279   else
3280     CXXFLAGS="-g"
3281   fi
3282 else
3283   if test "$GXX" = yes; then
3284     CXXFLAGS="-O2"
3285   else
3286     CXXFLAGS=
3287   fi
3288 fi
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295 ac_ext=c
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3302 # On Suns, sometimes $CPP names a directory.
3303 if test -n "$CPP" && test -d "$CPP"; then
3304   CPP=
3305 fi
3306 if test -z "$CPP"; then
3307   if test "${ac_cv_prog_CPP+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310       # Double quotes because CPP needs to be expanded
3311     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3312     do
3313       ac_preproc_ok=false
3314 for ac_c_preproc_warn_flag in '' yes
3315 do
3316   # Use a header file that comes with gcc, so configuring glibc
3317   # with a fresh cross-compiler works.
3318   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319   # <limits.h> exists even on freestanding compilers.
3320   # On the NeXT, cc -E runs the code through the compiler's parser,
3321   # not just through cpp. "Syntax error" is here to catch this case.
3322   cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h.  */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h.  */
3328 #ifdef __STDC__
3329 # include <limits.h>
3330 #else
3331 # include <assert.h>
3332 #endif
3333                      Syntax error
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   :
3359 else
3360   echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363   # Broken: fails on valid input.
3364 continue
3365 fi
3366
3367 rm -f conftest.err conftest.$ac_ext
3368
3369   # OK, works on sane cases.  Now check whether nonexistent headers
3370   # can be detected and how.
3371   cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h.  */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h.  */
3377 #include <ac_nonexistent.h>
3378 _ACEOF
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } >/dev/null; then
3392   if test -s conftest.err; then
3393     ac_cpp_err=$ac_c_preproc_warn_flag
3394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3395   else
3396     ac_cpp_err=
3397   fi
3398 else
3399   ac_cpp_err=yes
3400 fi
3401 if test -z "$ac_cpp_err"; then
3402   # Broken: success on invalid input.
3403 continue
3404 else
3405   echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408   # Passes both tests.
3409 ac_preproc_ok=:
3410 break
3411 fi
3412
3413 rm -f conftest.err conftest.$ac_ext
3414
3415 done
3416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3417 rm -f conftest.err conftest.$ac_ext
3418 if $ac_preproc_ok; then
3419   break
3420 fi
3421
3422     done
3423     ac_cv_prog_CPP=$CPP
3424
3425 fi
3426   CPP=$ac_cv_prog_CPP
3427 else
3428   ac_cv_prog_CPP=$CPP
3429 fi
3430 { echo "$as_me:$LINENO: result: $CPP" >&5
3431 echo "${ECHO_T}$CPP" >&6; }
3432 ac_preproc_ok=false
3433 for ac_c_preproc_warn_flag in '' yes
3434 do
3435   # Use a header file that comes with gcc, so configuring glibc
3436   # with a fresh cross-compiler works.
3437   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438   # <limits.h> exists even on freestanding compilers.
3439   # On the NeXT, cc -E runs the code through the compiler's parser,
3440   # not just through cpp. "Syntax error" is here to catch this case.
3441   cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 #ifdef __STDC__
3448 # include <limits.h>
3449 #else
3450 # include <assert.h>
3451 #endif
3452                      Syntax error
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   :
3478 else
3479   echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482   # Broken: fails on valid input.
3483 continue
3484 fi
3485
3486 rm -f conftest.err conftest.$ac_ext
3487
3488   # OK, works on sane cases.  Now check whether nonexistent headers
3489   # can be detected and how.
3490   cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h.  */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h.  */
3496 #include <ac_nonexistent.h>
3497 _ACEOF
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3505   ac_status=$?
3506   grep -v '^ *+' conftest.er1 >conftest.err
3507   rm -f conftest.er1
3508   cat conftest.err >&5
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } >/dev/null; then
3511   if test -s conftest.err; then
3512     ac_cpp_err=$ac_c_preproc_warn_flag
3513     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3514   else
3515     ac_cpp_err=
3516   fi
3517 else
3518   ac_cpp_err=yes
3519 fi
3520 if test -z "$ac_cpp_err"; then
3521   # Broken: success on invalid input.
3522 continue
3523 else
3524   echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527   # Passes both tests.
3528 ac_preproc_ok=:
3529 break
3530 fi
3531
3532 rm -f conftest.err conftest.$ac_ext
3533
3534 done
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.err conftest.$ac_ext
3537 if $ac_preproc_ok; then
3538   :
3539 else
3540   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&5
3542 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3543 See \`config.log' for more details." >&2;}
3544    { (exit 1); exit 1; }; }
3545 fi
3546
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552
3553
3554 if test "$CXX" = "clang++" ; then
3555   { echo "$as_me:$LINENO: checking whether clang works" >&5
3556 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3557   ac_ext=cpp
3558 ac_cpp='$CXXCPP $CPPFLAGS'
3559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3562
3563
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h.  */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h.  */
3570 #include <limits>
3571 #if __has_include (<cxxabi.h>)
3572 #include <cxxabi.h>
3573 #endif
3574 #if __has_include (<unwind.h>)
3575 #include <unwind.h>
3576 #endif
3577
3578 int
3579 main ()
3580 {
3581
3582   ;
3583   return 0;
3584 }
3585 _ACEOF
3586 rm -f conftest.$ac_objext
3587 if { (ac_try="$ac_compile"
3588 case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593   (eval "$ac_compile") 2>conftest.er1
3594   ac_status=$?
3595   grep -v '^ *+' conftest.er1 >conftest.err
3596   rm -f conftest.er1
3597   cat conftest.err >&5
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } &&
3600          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3601   { (case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606   (eval "$ac_try") 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); }; } &&
3610          { ac_try='test -s conftest.$ac_objext'
3611   { (case "(($ac_try" in
3612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613   *) ac_try_echo=$ac_try;;
3614 esac
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616   (eval "$ac_try") 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; }; then
3620
3621   { echo "$as_me:$LINENO: result: yes" >&5
3622 echo "${ECHO_T}yes" >&6; }
3623
3624 else
3625   echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628
3629   { echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6; }
3631   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5
3632 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;}
3633    { (exit 1); exit 1; }; }
3634
3635 fi
3636
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638   ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
3644 fi
3645
3646 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3647 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3648 ac_ext=cpp
3649 ac_cpp='$CXXCPP $CPPFLAGS'
3650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3653
3654 llvm_cv_cxx_compiler=unknown
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h.  */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h.  */
3661 #if ! __clang__
3662                                     #error
3663                                     #endif
3664
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (ac_try="$ac_compile"
3668 case "(($ac_try" in
3669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670   *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673   (eval "$ac_compile") 2>conftest.er1
3674   ac_status=$?
3675   grep -v '^ *+' conftest.er1 >conftest.err
3676   rm -f conftest.er1
3677   cat conftest.err >&5
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); } &&
3680          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3681   { (case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686   (eval "$ac_try") 2>&5
3687   ac_status=$?
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); }; } &&
3690          { ac_try='test -s conftest.$ac_objext'
3691   { (case "(($ac_try" in
3692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693   *) ac_try_echo=$ac_try;;
3694 esac
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696   (eval "$ac_try") 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; }; then
3700   llvm_cv_cxx_compiler=clang
3701 else
3702   echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705         cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711 #if ! __GNUC__
3712                                                        #error
3713                                                        #endif
3714
3715 _ACEOF
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3718 case "(($ac_try" in
3719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720   *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723   (eval "$ac_compile") 2>conftest.er1
3724   ac_status=$?
3725   grep -v '^ *+' conftest.er1 >conftest.err
3726   rm -f conftest.er1
3727   cat conftest.err >&5
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); } &&
3730          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3731   { (case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736   (eval "$ac_try") 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); }; } &&
3740          { ac_try='test -s conftest.$ac_objext'
3741   { (case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746   (eval "$ac_try") 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); }; }; then
3750   llvm_cv_cxx_compiler=gcc
3751 else
3752   echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3754
3755
3756 fi
3757
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 fi
3760
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
3768 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3769 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3770
3771
3772
3773 if test -d ${srcdir}/projects/test-suite ; then
3774   subdirs="$subdirs projects/test-suite"
3775
3776 fi
3777
3778 if test -d ${srcdir}/projects/llvm-test ; then
3779   subdirs="$subdirs projects/llvm-test"
3780
3781 fi
3782
3783 if test -d ${srcdir}/projects/poolalloc ; then
3784   subdirs="$subdirs projects/poolalloc"
3785
3786 fi
3787
3788 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3789   subdirs="$subdirs projects/llvm-poolalloc"
3790
3791 fi
3792
3793 for i in `ls ${srcdir}/projects`
3794 do
3795   if test -d ${srcdir}/projects/${i} ; then
3796     case ${i} in
3797       safecode)     subdirs="$subdirs projects/safecode"
3798  ;;
3799       compiler-rt)       ;;
3800       test-suite)     ;;
3801       llvm-test)      ;;
3802       poolalloc)      ;;
3803       llvm-poolalloc) ;;
3804       *)
3805         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3806 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3807         ;;
3808     esac
3809   fi
3810 done
3811
3812 # Check whether --enable-polly was given.
3813 if test "${enable_polly+set}" = set; then
3814   enableval=$enable_polly;
3815 else
3816   enableval=default
3817 fi
3818
3819 case "$enableval" in
3820   yes) ENABLE_POLLY=1
3821  ;;
3822   no)  ENABLE_POLLY=0
3823  ;;
3824   default) ENABLE_POLLY=1
3825  ;;
3826   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3827 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3828    { (exit 1); exit 1; }; } ;;
3829 esac
3830
3831
3832 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3833   LLVM_HAS_POLLY=1
3834
3835   subdirs="$subdirs tools/polly"
3836
3837 fi
3838
3839
3840 # Make sure we can run config.sub.
3841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3842   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3843 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3844    { (exit 1); exit 1; }; }
3845
3846 { echo "$as_me:$LINENO: checking build system type" >&5
3847 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3848 if test "${ac_cv_build+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   ac_build_alias=$build_alias
3852 test "x$ac_build_alias" = x &&
3853   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3854 test "x$ac_build_alias" = x &&
3855   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3856 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3857    { (exit 1); exit 1; }; }
3858 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3859   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3860 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3861    { (exit 1); exit 1; }; }
3862
3863 fi
3864 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3865 echo "${ECHO_T}$ac_cv_build" >&6; }
3866 case $ac_cv_build in
3867 *-*-*) ;;
3868 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3869 echo "$as_me: error: invalid value of canonical build" >&2;}
3870    { (exit 1); exit 1; }; };;
3871 esac
3872 build=$ac_cv_build
3873 ac_save_IFS=$IFS; IFS='-'
3874 set x $ac_cv_build
3875 shift
3876 build_cpu=$1
3877 build_vendor=$2
3878 shift; shift
3879 # Remember, the first character of IFS is used to create $*,
3880 # except with old shells:
3881 build_os=$*
3882 IFS=$ac_save_IFS
3883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3884
3885
3886 { echo "$as_me:$LINENO: checking host system type" >&5
3887 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3888 if test "${ac_cv_host+set}" = set; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   if test "x$host_alias" = x; then
3892   ac_cv_host=$ac_cv_build
3893 else
3894   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3895     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3896 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3897    { (exit 1); exit 1; }; }
3898 fi
3899
3900 fi
3901 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3902 echo "${ECHO_T}$ac_cv_host" >&6; }
3903 case $ac_cv_host in
3904 *-*-*) ;;
3905 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3906 echo "$as_me: error: invalid value of canonical host" >&2;}
3907    { (exit 1); exit 1; }; };;
3908 esac
3909 host=$ac_cv_host
3910 ac_save_IFS=$IFS; IFS='-'
3911 set x $ac_cv_host
3912 shift
3913 host_cpu=$1
3914 host_vendor=$2
3915 shift; shift
3916 # Remember, the first character of IFS is used to create $*,
3917 # except with old shells:
3918 host_os=$*
3919 IFS=$ac_save_IFS
3920 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3921
3922
3923 { echo "$as_me:$LINENO: checking target system type" >&5
3924 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3925 if test "${ac_cv_target+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   if test "x$target_alias" = x; then
3929   ac_cv_target=$ac_cv_host
3930 else
3931   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3932     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3933 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3934    { (exit 1); exit 1; }; }
3935 fi
3936
3937 fi
3938 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3939 echo "${ECHO_T}$ac_cv_target" >&6; }
3940 case $ac_cv_target in
3941 *-*-*) ;;
3942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3943 echo "$as_me: error: invalid value of canonical target" >&2;}
3944    { (exit 1); exit 1; }; };;
3945 esac
3946 target=$ac_cv_target
3947 ac_save_IFS=$IFS; IFS='-'
3948 set x $ac_cv_target
3949 shift
3950 target_cpu=$1
3951 target_vendor=$2
3952 shift; shift
3953 # Remember, the first character of IFS is used to create $*,
3954 # except with old shells:
3955 target_os=$*
3956 IFS=$ac_save_IFS
3957 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3958
3959
3960 # The aliases save the names the user supplied, while $host etc.
3961 # will get canonicalized.
3962 test -n "$target_alias" &&
3963   test "$program_prefix$program_suffix$program_transform_name" = \
3964     NONENONEs,x,x, &&
3965   program_prefix=${target_alias}-
3966
3967 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3968 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3969 if test "${llvm_cv_os_type+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   case $host in
3973   *-*-aix*)
3974     llvm_cv_link_all_option="-Wl,--whole-archive"
3975     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3976     llvm_cv_os_type="AIX"
3977     llvm_cv_platform_type="Unix" ;;
3978   *-*-irix*)
3979     llvm_cv_link_all_option="-Wl,--whole-archive"
3980     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3981     llvm_cv_os_type="IRIX"
3982     llvm_cv_platform_type="Unix" ;;
3983   *-*-cygwin*)
3984     llvm_cv_link_all_option="-Wl,--whole-archive"
3985     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3986     llvm_cv_os_type="Cygwin"
3987     llvm_cv_platform_type="Unix" ;;
3988   *-*-darwin*)
3989     llvm_cv_link_all_option="-Wl,-all_load"
3990     llvm_cv_no_link_all_option="-Wl,-noall_load"
3991     llvm_cv_os_type="Darwin"
3992     llvm_cv_platform_type="Unix" ;;
3993   *-*-minix*)
3994     llvm_cv_link_all_option="-Wl,-all_load"
3995     llvm_cv_no_link_all_option="-Wl,-noall_load"
3996     llvm_cv_os_type="Minix"
3997     llvm_cv_platform_type="Unix" ;;
3998   *-*-freebsd*)
3999     llvm_cv_link_all_option="-Wl,--whole-archive"
4000     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4001     llvm_cv_os_type="FreeBSD"
4002     llvm_cv_platform_type="Unix" ;;
4003   *-*-kfreebsd-gnu)
4004     llvm_cv_link_all_option="-Wl,--whole-archive"
4005     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4006     llvm_cv_os_type="GNU/kFreeBSD"
4007     llvm_cv_platform_type="Unix" ;;
4008   *-*-openbsd*)
4009     llvm_cv_link_all_option="-Wl,--whole-archive"
4010     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4011     llvm_cv_os_type="OpenBSD"
4012     llvm_cv_platform_type="Unix" ;;
4013   *-*-netbsd*)
4014     llvm_cv_link_all_option="-Wl,--whole-archive"
4015     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4016     llvm_cv_os_type="NetBSD"
4017     llvm_cv_platform_type="Unix" ;;
4018   *-*-dragonfly*)
4019     llvm_cv_link_all_option="-Wl,--whole-archive"
4020     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4021     llvm_cv_os_type="DragonFly"
4022     llvm_cv_platform_type="Unix" ;;
4023   *-*-bitrig*)
4024     llvm_cv_link_all_option="-Wl,--whole-archive"
4025     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4026     llvm_cv_os_type="Bitrig"
4027     llvm_cv_platform_type="Unix" ;;
4028   *-*-hpux*)
4029     llvm_cv_link_all_option="-Wl,--whole-archive"
4030     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4031     llvm_cv_os_type="HP-UX"
4032     llvm_cv_platform_type="Unix" ;;
4033   *-*-interix*)
4034     llvm_cv_link_all_option="-Wl,--whole-archive"
4035     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4036     llvm_cv_os_type="Interix"
4037     llvm_cv_platform_type="Unix" ;;
4038   *-*-linux*)
4039     llvm_cv_link_all_option="-Wl,--whole-archive"
4040     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4041     llvm_cv_os_type="Linux"
4042     llvm_cv_platform_type="Unix" ;;
4043   *-*-gnu*)
4044     llvm_cv_link_all_option="-Wl,--whole-archive"
4045     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4046     llvm_cv_os_type="GNU"
4047     llvm_cv_platform_type="Unix" ;;
4048   *-*-solaris*)
4049     llvm_cv_link_all_option="-Wl,-z,allextract"
4050     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4051     llvm_cv_os_type="SunOS"
4052     llvm_cv_platform_type="Unix" ;;
4053   *-*-win32*)
4054     llvm_cv_link_all_option="-Wl,--whole-archive"
4055     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4056     llvm_cv_os_type="Win32"
4057     llvm_cv_platform_type="Win32" ;;
4058   *-*-mingw*)
4059     llvm_cv_link_all_option="-Wl,--whole-archive"
4060     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4061     llvm_cv_os_type="MingW"
4062     llvm_cv_platform_type="Win32" ;;
4063   *-*-haiku*)
4064     llvm_cv_link_all_option="-Wl,--whole-archive"
4065     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4066     llvm_cv_os_type="Haiku"
4067     llvm_cv_platform_type="Unix" ;;
4068   *-unknown-eabi*)
4069     llvm_cv_link_all_option="-Wl,--whole-archive"
4070     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4071     llvm_cv_os_type="Freestanding"
4072     llvm_cv_platform_type="Unix" ;;
4073   *-unknown-elf*)
4074     llvm_cv_link_all_option="-Wl,--whole-archive"
4075     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4076     llvm_cv_os_type="Freestanding"
4077     llvm_cv_platform_type="Unix" ;;
4078   *)
4079     llvm_cv_link_all_option=""
4080     llvm_cv_no_link_all_option=""
4081     llvm_cv_os_type="Unknown"
4082     llvm_cv_platform_type="Unknown" ;;
4083 esac
4084 fi
4085 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4086 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4087
4088 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4089 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4090 if test "${llvm_cv_target_os_type+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   case $target in
4094   *-*-aix*)
4095     llvm_cv_target_os_type="AIX" ;;
4096   *-*-irix*)
4097     llvm_cv_target_os_type="IRIX" ;;
4098   *-*-cygwin*)
4099     llvm_cv_target_os_type="Cygwin" ;;
4100   *-*-darwin*)
4101     llvm_cv_target_os_type="Darwin" ;;
4102   *-*-minix*)
4103     llvm_cv_target_os_type="Minix" ;;
4104   *-*-freebsd*)
4105     llvm_cv_target_os_type="FreeBSD" ;;
4106   *-*-kfreebsd-gnu)
4107     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4108   *-*-openbsd*)
4109     llvm_cv_target_os_type="OpenBSD" ;;
4110   *-*-netbsd*)
4111     llvm_cv_target_os_type="NetBSD" ;;
4112   *-*-dragonfly*)
4113     llvm_cv_target_os_type="DragonFly" ;;
4114   *-*-bitrig*)
4115     llvm_cv_target_os_type="Bitrig" ;;
4116   *-*-hpux*)
4117     llvm_cv_target_os_type="HP-UX" ;;
4118   *-*-interix*)
4119     llvm_cv_target_os_type="Interix" ;;
4120   *-*-linux*)
4121     llvm_cv_target_os_type="Linux" ;;
4122   *-*-gnu*)
4123     llvm_cv_target_os_type="GNU" ;;
4124   *-*-solaris*)
4125     llvm_cv_target_os_type="SunOS" ;;
4126   *-*-win32*)
4127     llvm_cv_target_os_type="Win32" ;;
4128   *-*-mingw*)
4129     llvm_cv_target_os_type="MingW" ;;
4130   *-*-haiku*)
4131     llvm_cv_target_os_type="Haiku" ;;
4132   *-*-rtems*)
4133     llvm_cv_target_os_type="RTEMS" ;;
4134   *-*-nacl*)
4135     llvm_cv_target_os_type="NativeClient" ;;
4136   *-unknown-eabi*)
4137     llvm_cv_target_os_type="Freestanding" ;;
4138   *-*-ps4)
4139     llvm_cv_target_os_type="PS4" ;;
4140   *)
4141     llvm_cv_target_os_type="Unknown" ;;
4142 esac
4143 fi
4144 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4145 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4146
4147 if test "$llvm_cv_os_type" = "Unknown" ; then
4148   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4149 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4150    { (exit 1); exit 1; }; }
4151 fi
4152
4153 OS=$llvm_cv_os_type
4154
4155 HOST_OS=$llvm_cv_os_type
4156
4157 TARGET_OS=$llvm_cv_target_os_type
4158
4159
4160 LINKALL=$llvm_cv_link_all_option
4161
4162 NOLINKALL=$llvm_cv_no_link_all_option
4163
4164
4165 case $llvm_cv_platform_type in
4166   Unix)
4167
4168 cat >>confdefs.h <<\_ACEOF
4169 #define LLVM_ON_UNIX 1
4170 _ACEOF
4171
4172     LLVM_ON_UNIX=1
4173
4174     LLVM_ON_WIN32=0
4175
4176     ;;
4177   Win32)
4178
4179 cat >>confdefs.h <<\_ACEOF
4180 #define LLVM_ON_WIN32 1
4181 _ACEOF
4182
4183     LLVM_ON_UNIX=0
4184
4185     LLVM_ON_WIN32=1
4186
4187     ;;
4188 esac
4189
4190 { echo "$as_me:$LINENO: checking target architecture" >&5
4191 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4192 if test "${llvm_cv_target_arch+set}" = set; then
4193   echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195   case $target in
4196   i?86-*)                 llvm_cv_target_arch="x86" ;;
4197   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4198   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4199   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4200   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4201   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4202   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4203   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4204   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4205   xcore-*)                llvm_cv_target_arch="XCore" ;;
4206   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4207   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4208   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4209   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4210   *)                      llvm_cv_target_arch="Unknown" ;;
4211 esac
4212 fi
4213 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4214 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4215
4216 if test "$llvm_cv_target_arch" = "Unknown" ; then
4217   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4218 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4219 fi
4220
4221 case "$llvm_cv_target_arch" in
4222     x86)     LLVM_NATIVE_ARCH="X86" ;;
4223     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4224     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4225 esac
4226
4227 ARCH=$llvm_cv_target_arch
4228
4229 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4230
4231
4232 case $host in
4233   i?86-*)                 host_arch="x86" ;;
4234   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4235   sparc*-*)               host_arch="Sparc" ;;
4236   powerpc*-*)             host_arch="PowerPC" ;;
4237   arm64*-*)               host_arch="AArch64" ;;
4238   arm*-*)                 host_arch="ARM" ;;
4239   aarch64*-*)             host_arch="AArch64" ;;
4240   mips-* | mips64-*)      host_arch="Mips" ;;
4241   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4242   xcore-*)                host_arch="XCore" ;;
4243   msp430-*)               host_arch="MSP430" ;;
4244   hexagon-*)              host_arch="Hexagon" ;;
4245   s390x-*)                host_arch="SystemZ" ;;
4246   *)                      host_arch="Unknown" ;;
4247 esac
4248
4249 if test "$host_arch" = "Unknown" ; then
4250   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4251 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4252 fi
4253
4254 HOST_ARCH=$host_arch
4255
4256
4257 if test "$cross_compiling" = yes; then
4258   LLVM_CROSS_COMPILING=1
4259
4260
4261 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4262 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4263 if test "${ac_cv_build_exeext+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4267   ac_cv_build_exeext=.exe
4268 else
4269   ac_build_prefix=${build_alias}-
4270
4271   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4272 set dummy ${ac_build_prefix}gcc; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4276   echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278   if test -n "$BUILD_CC"; then
4279   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4283 do
4284   IFS=$as_save_IFS
4285   test -z "$as_dir" && as_dir=.
4286   for ac_exec_ext in '' $ac_executable_extensions; do
4287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4288     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290     break 2
4291   fi
4292 done
4293 done
4294 IFS=$as_save_IFS
4295
4296 fi
4297 fi
4298 BUILD_CC=$ac_cv_prog_BUILD_CC
4299 if test -n "$BUILD_CC"; then
4300   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4301 echo "${ECHO_T}$BUILD_CC" >&6; }
4302 else
4303   { echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6; }
4305 fi
4306
4307
4308   if test -z "$BUILD_CC"; then
4309      # Extract the first word of "gcc", so it can be a program name with args.
4310 set dummy gcc; ac_word=$2
4311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4313 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   if test -n "$BUILD_CC"; then
4317   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324   for ac_exec_ext in '' $ac_executable_extensions; do
4325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4326     ac_cv_prog_BUILD_CC="gcc"
4327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334 fi
4335 fi
4336 BUILD_CC=$ac_cv_prog_BUILD_CC
4337 if test -n "$BUILD_CC"; then
4338   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4339 echo "${ECHO_T}$BUILD_CC" >&6; }
4340 else
4341   { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4343 fi
4344
4345
4346      if test -z "$BUILD_CC"; then
4347        # Extract the first word of "cc", so it can be a program name with args.
4348 set dummy cc; ac_word=$2
4349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4351 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   if test -n "$BUILD_CC"; then
4355   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4356 else
4357   ac_prog_rejected=no
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_exec_ext in '' $ac_executable_extensions; do
4364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4365     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4366        ac_prog_rejected=yes
4367        continue
4368      fi
4369     ac_cv_prog_BUILD_CC="cc"
4370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377 if test $ac_prog_rejected = yes; then
4378   # We found a bogon in the path, so make sure we never use it.
4379   set dummy $ac_cv_prog_BUILD_CC
4380   shift
4381   if test $# != 0; then
4382     # We chose a different compiler from the bogus one.
4383     # However, it has the same basename, so the bogon will be chosen
4384     # first if we set BUILD_CC to just the basename; use the full file name.
4385     shift
4386     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4387   fi
4388 fi
4389 fi
4390 fi
4391 BUILD_CC=$ac_cv_prog_BUILD_CC
4392 if test -n "$BUILD_CC"; then
4393   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4394 echo "${ECHO_T}$BUILD_CC" >&6; }
4395 else
4396   { echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6; }
4398 fi
4399
4400
4401      fi
4402   fi
4403   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4404 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4405    { (exit 1); exit 1; }; }
4406   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4407   rm -f conftest*
4408   echo 'int main () { return 0; }' > conftest.$ac_ext
4409   ac_cv_build_exeext=
4410   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4411   (eval $ac_build_link) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; then
4415     for file in conftest.*; do
4416       case $file in
4417       *.c | *.o | *.obj | *.dSYM) ;;
4418       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4419       esac
4420     done
4421   else
4422     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4423 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4424    { (exit 1); exit 1; }; }
4425   fi
4426   rm -f conftest*
4427   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4428 fi
4429 fi
4430
4431 BUILD_EXEEXT=""
4432 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4433 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4434 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4435 ac_build_exeext=$BUILD_EXEEXT
4436
4437   ac_build_prefix=${build_alias}-
4438   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4439 set dummy ${ac_build_prefix}g++; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   if test -n "$BUILD_CXX"; then
4446   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453   for ac_exec_ext in '' $ac_executable_extensions; do
4454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4455     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4466 if test -n "$BUILD_CXX"; then
4467   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4468 echo "${ECHO_T}$BUILD_CXX" >&6; }
4469 else
4470   { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4472 fi
4473
4474
4475   if test -z "$BUILD_CXX"; then
4476      # Extract the first word of "g++", so it can be a program name with args.
4477 set dummy g++; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   if test -n "$BUILD_CXX"; then
4484   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4493     ac_cv_prog_BUILD_CXX="g++"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4500
4501 fi
4502 fi
4503 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4504 if test -n "$BUILD_CXX"; then
4505   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4506 echo "${ECHO_T}$BUILD_CXX" >&6; }
4507 else
4508   { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4510 fi
4511
4512
4513      if test -z "$BUILD_CXX"; then
4514        # Extract the first word of "c++", so it can be a program name with args.
4515 set dummy c++; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   if test -n "$BUILD_CXX"; then
4522   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4523 else
4524   ac_prog_rejected=no
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530   for ac_exec_ext in '' $ac_executable_extensions; do
4531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4532     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4533        ac_prog_rejected=yes
4534        continue
4535      fi
4536     ac_cv_prog_BUILD_CXX="c++"
4537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4543
4544 if test $ac_prog_rejected = yes; then
4545   # We found a bogon in the path, so make sure we never use it.
4546   set dummy $ac_cv_prog_BUILD_CXX
4547   shift
4548   if test $# != 0; then
4549     # We chose a different compiler from the bogus one.
4550     # However, it has the same basename, so the bogon will be chosen
4551     # first if we set BUILD_CXX to just the basename; use the full file name.
4552     shift
4553     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4554   fi
4555 fi
4556 fi
4557 fi
4558 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4559 if test -n "$BUILD_CXX"; then
4560   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4561 echo "${ECHO_T}$BUILD_CXX" >&6; }
4562 else
4563   { echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6; }
4565 fi
4566
4567
4568      fi
4569   fi
4570 else
4571   LLVM_CROSS_COMPILING=0
4572
4573 fi
4574
4575 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4576   cvsbuild="yes"
4577   optimize="no"
4578   CVSBUILD=CVSBUILD=1
4579
4580 else
4581   cvsbuild="no"
4582   optimize="yes"
4583 fi
4584
4585
4586 # Check whether --enable-libcpp was given.
4587 if test "${enable_libcpp+set}" = set; then
4588   enableval=$enable_libcpp;
4589 else
4590   enableval=default
4591 fi
4592
4593 case "$enableval" in
4594   yes) ENABLE_LIBCPP=1
4595  ;;
4596   no)  ENABLE_LIBCPP=0
4597  ;;
4598   default) ENABLE_LIBCPP=0
4599 ;;
4600   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4601 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4602    { (exit 1); exit 1; }; } ;;
4603 esac
4604
4605 # Check whether --enable-compiler-version-checks was given.
4606 if test "${enable_compiler_version_checks+set}" = set; then
4607   enableval=$enable_compiler_version_checks;
4608 else
4609   enableval=default
4610 fi
4611
4612 case "$enableval" in
4613   no)
4614     ;;
4615   yes|default)
4616     ac_ext=cpp
4617 ac_cpp='$CXXCPP $CPPFLAGS'
4618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4621
4622     case "$llvm_cv_cxx_compiler" in
4623     clang)
4624       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4625 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4626       cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h.  */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h.  */
4632
4633 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4634 #error This version of Clang is too old to build LLVM
4635 #endif
4636
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4640 case "(($ac_try" in
4641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642   *) ac_try_echo=$ac_try;;
4643 esac
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645   (eval "$ac_compile") 2>conftest.er1
4646   ac_status=$?
4647   grep -v '^ *+' conftest.er1 >conftest.err
4648   rm -f conftest.er1
4649   cat conftest.err >&5
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); } &&
4652          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4653   { (case "(($ac_try" in
4654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655   *) ac_try_echo=$ac_try;;
4656 esac
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658   (eval "$ac_try") 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); }; } &&
4662          { ac_try='test -s conftest.$ac_objext'
4663   { (case "(($ac_try" in
4664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665   *) ac_try_echo=$ac_try;;
4666 esac
4667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4668   (eval "$ac_try") 2>&5
4669   ac_status=$?
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); }; }; then
4672   { echo "$as_me:$LINENO: result: yes" >&5
4673 echo "${ECHO_T}yes" >&6; }
4674 else
4675   echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678         { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680            { { echo "$as_me:$LINENO: error:
4681 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4682 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4683 bypass these sanity checks." >&5
4684 echo "$as_me: error:
4685 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4686 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4687 bypass these sanity checks." >&2;}
4688    { (exit 1); exit 1; }; }
4689 fi
4690
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692
4693                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4694         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4695 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4696         llvm_cv_old_cxxflags="$CXXFLAGS"
4697         CXXFLAGS="$CXXFLAGS -std=c++0x"
4698         cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h.  */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h.  */
4704
4705 #include <atomic>
4706 std::atomic<float> x(0.0f);
4707 int main() { return (float)x; }
4708
4709 _ACEOF
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (ac_try="$ac_link"
4712 case "(($ac_try" in
4713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714   *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717   (eval "$ac_link") 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } &&
4724          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4725   { (case "(($ac_try" in
4726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727   *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730   (eval "$ac_try") 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }; } &&
4734          { ac_try='test -s conftest$ac_exeext'
4735   { (case "(($ac_try" in
4736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737   *) ac_try_echo=$ac_try;;
4738 esac
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740   (eval "$ac_try") 2>&5
4741   ac_status=$?
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); }; }; then
4744   { echo "$as_me:$LINENO: result: yes" >&5
4745 echo "${ECHO_T}yes" >&6; }
4746 else
4747   echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750         { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4752              { { echo "$as_me:$LINENO: error:
4753 We detected a missing feature in the standard C++ library that was known to be
4754 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4755 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4756 than 4.7. You will need to update your system and ensure Clang uses the newer
4757 standard library.
4758
4759 If this error is incorrect or you need to force things to work, you may pass
4760 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4761 echo "$as_me: error:
4762 We detected a missing feature in the standard C++ library that was known to be
4763 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4764 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4765 than 4.7. You will need to update your system and ensure Clang uses the newer
4766 standard library.
4767
4768 If this error is incorrect or you need to force things to work, you may pass
4769 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4770    { (exit 1); exit 1; }; }
4771 fi
4772
4773 rm -f core conftest.err conftest.$ac_objext \
4774       conftest$ac_exeext conftest.$ac_ext
4775         CXXFLAGS="$llvm_cv_old_cxxflags"
4776       fi
4777       ;;
4778     gcc)
4779       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4780 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4781       cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h.  */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h.  */
4787
4788 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4789 #error This version of GCC is too old to build LLVM
4790 #endif
4791
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4795 case "(($ac_try" in
4796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797   *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800   (eval "$ac_compile") 2>conftest.er1
4801   ac_status=$?
4802   grep -v '^ *+' conftest.er1 >conftest.err
4803   rm -f conftest.er1
4804   cat conftest.err >&5
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); } &&
4807          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4808   { (case "(($ac_try" in
4809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810   *) ac_try_echo=$ac_try;;
4811 esac
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813   (eval "$ac_try") 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; } &&
4817          { ac_try='test -s conftest.$ac_objext'
4818   { (case "(($ac_try" in
4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820   *) ac_try_echo=$ac_try;;
4821 esac
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823   (eval "$ac_try") 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; }; then
4827   { echo "$as_me:$LINENO: result: yes" >&5
4828 echo "${ECHO_T}yes" >&6; }
4829 else
4830   echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833         { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835            { { echo "$as_me:$LINENO: error:
4836 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4837 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4838 bypass these sanity checks." >&5
4839 echo "$as_me: error:
4840 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4841 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4842 bypass these sanity checks." >&2;}
4843    { (exit 1); exit 1; }; }
4844 fi
4845
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847       ;;
4848     unknown)
4849       ;;
4850     esac
4851     ac_ext=c
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856
4857     ;;
4858   *)
4859     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4860 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4861    { (exit 1); exit 1; }; }
4862     ;;
4863 esac
4864
4865 # Check whether --enable-cxx1y was given.
4866 if test "${enable_cxx1y+set}" = set; then
4867   enableval=$enable_cxx1y;
4868 else
4869   enableval=default
4870 fi
4871
4872 case "$enableval" in
4873   yes) ENABLE_CXX1Y=1
4874  ;;
4875   no)  ENABLE_CXX1Y=0
4876  ;;
4877   default) ENABLE_CXX1Y=0
4878 ;;
4879   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4880 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4881    { (exit 1); exit 1; }; } ;;
4882 esac
4883
4884 # Check whether --enable-split-dwarf was given.
4885 if test "${enable_split_dwarf+set}" = set; then
4886   enableval=$enable_split_dwarf;
4887 else
4888   enableval=default
4889 fi
4890
4891 case "$enableval" in
4892   yes) ENABLE_SPLIT_DWARF=1
4893  ;;
4894   no)  ENABLE_SPLIT_DWARF=0
4895  ;;
4896   default) ENABLE_SPLIT_DWARF=0
4897 ;;
4898   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4899 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4900    { (exit 1); exit 1; }; } ;;
4901 esac
4902
4903 clang_arcmt="yes"
4904 # Check whether --enable-clang-arcmt was given.
4905 if test "${enable_clang_arcmt+set}" = set; then
4906   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4907 else
4908   enableval="yes"
4909 fi
4910
4911 case "$enableval" in
4912   yes) ENABLE_CLANG_ARCMT=1
4913  ;;
4914   no)  ENABLE_CLANG_ARCMT=0
4915  ;;
4916   default) ENABLE_CLANG_ARCMT=1
4917 ;;
4918   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4920    { (exit 1); exit 1; }; } ;;
4921 esac
4922
4923 clang_plugin_support="yes"
4924 # Check whether --enable-clang-plugin-support was given.
4925 if test "${enable_clang_plugin_support+set}" = set; then
4926   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4927 else
4928   enableval="yes"
4929 fi
4930
4931 case "$enableval" in
4932   yes) CLANG_PLUGIN_SUPPORT=1
4933  ;;
4934   no)  CLANG_PLUGIN_SUPPORT=0
4935  ;;
4936   default) CLANG_PLUGIN_SUPPORT=1
4937 ;;
4938   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4940    { (exit 1); exit 1; }; } ;;
4941 esac
4942
4943 clang_static_analyzer="yes"
4944 # Check whether --enable-clang-static-analyzer was given.
4945 if test "${enable_clang_static_analyzer+set}" = set; then
4946   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4947 else
4948   enableval="yes"
4949 fi
4950
4951 case "$enableval" in
4952   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4953  ;;
4954   no)
4955     if test ${clang_arcmt} != "no" ; then
4956       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4957 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4958    { (exit 1); exit 1; }; }
4959     fi
4960     ENABLE_CLANG_STATIC_ANALYZER=0
4961
4962     ;;
4963   default) ENABLE_CLANG_STATIC_ANALYZER=1
4964 ;;
4965   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4967    { (exit 1); exit 1; }; } ;;
4968 esac
4969
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972   enableval=$enable_optimized;
4973 else
4974   enableval=$optimize
4975 fi
4976
4977 if test ${enableval} = "no" ; then
4978   ENABLE_OPTIMIZED=
4979
4980 else
4981   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4982
4983 fi
4984
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987   enableval=$enable_profiling;
4988 else
4989   enableval="no"
4990 fi
4991
4992 if test ${enableval} = "no" ; then
4993   ENABLE_PROFILING=
4994
4995 else
4996   ENABLE_PROFILING=ENABLE_PROFILING=1
4997
4998 fi
4999
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002   enableval=$enable_assertions;
5003 else
5004   enableval="yes"
5005 fi
5006
5007 if test ${enableval} = "yes" ; then
5008   DISABLE_ASSERTIONS=
5009
5010   assertions_enabled="yes"
5011 else
5012   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5013
5014   assertions_enabled="no"
5015 fi
5016
5017 # Check whether --enable-werror was given.
5018 if test "${enable_werror+set}" = set; then
5019   enableval=$enable_werror;
5020 else
5021   enableval="no"
5022 fi
5023
5024 case "$enableval" in
5025   yes) ENABLE_WERROR=1
5026  ;;
5027   no)  ENABLE_WERROR=0
5028  ;;
5029   default) ENABLE_WERROR=0
5030 ;;
5031   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5032 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5033    { (exit 1); exit 1; }; } ;;
5034 esac
5035
5036 # Check whether --enable-expensive-checks was given.
5037 if test "${enable_expensive_checks+set}" = set; then
5038   enableval=$enable_expensive_checks;
5039 else
5040   enableval="no"
5041 fi
5042
5043 if test ${enableval} = "yes" ; then
5044   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5045
5046   EXPENSIVE_CHECKS=yes
5047
5048 else
5049   ENABLE_EXPENSIVE_CHECKS=
5050
5051   EXPENSIVE_CHECKS=no
5052
5053 fi
5054
5055 # Check whether --enable-abi-breaking-checks was given.
5056 if test "${enable_abi_breaking_checks+set}" = set; then
5057   enableval=$enable_abi_breaking_checks;
5058 else
5059   enableval="with-asserts"
5060 fi
5061
5062 case "$enableval" in
5063   with-asserts)  if test ${assertions_enabled} = "yes" ; then
5064
5065 cat >>confdefs.h <<\_ACEOF
5066 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5067 _ACEOF
5068
5069                    ENABLE_ABI_BREAKING_CHECKS=1
5070
5071                  else
5072                    ENABLE_ABI_BREAKING_CHECKS=0
5073
5074                  fi ;;
5075   yes)
5076
5077 cat >>confdefs.h <<\_ACEOF
5078 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5079 _ACEOF
5080
5081                  ENABLE_ABI_BREAKING_CHECKS=1
5082
5083                  ;;
5084   no)
5085                  ENABLE_ABI_BREAKING_CHECKS=0
5086
5087                  ;;
5088   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5090    { (exit 1); exit 1; }; }
5091 esac
5092
5093 # Check whether --enable-debug-runtime was given.
5094 if test "${enable_debug_runtime+set}" = set; then
5095   enableval=$enable_debug_runtime;
5096 else
5097   enableval=no
5098 fi
5099
5100 if test ${enableval} = "no" ; then
5101   DEBUG_RUNTIME=
5102
5103 else
5104   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5105
5106 fi
5107
5108 # Check whether --enable-debug-symbols was given.
5109 if test "${enable_debug_symbols+set}" = set; then
5110   enableval=$enable_debug_symbols;
5111 else
5112   enableval=no
5113 fi
5114
5115 if test ${enableval} = "no" ; then
5116   DEBUG_SYMBOLS=
5117
5118 else
5119   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5120
5121 fi
5122
5123 # Check whether --enable-keep-symbols was given.
5124 if test "${enable_keep_symbols+set}" = set; then
5125   enableval=$enable_keep_symbols;
5126 else
5127   enableval=no
5128 fi
5129
5130 if test ${enableval} = "no" ; then
5131   KEEP_SYMBOLS=
5132
5133 else
5134   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5135
5136 fi
5137
5138 # Check whether --enable-jit was given.
5139 if test "${enable_jit+set}" = set; then
5140   enableval=$enable_jit;
5141 else
5142   enableval=default
5143 fi
5144
5145 if test ${enableval} = "no"
5146 then
5147   JIT=
5148
5149 else
5150   case "$llvm_cv_target_arch" in
5151     x86)         TARGET_HAS_JIT=1
5152  ;;
5153     Sparc)       TARGET_HAS_JIT=0
5154  ;;
5155     PowerPC)     TARGET_HAS_JIT=1
5156  ;;
5157     x86_64)      TARGET_HAS_JIT=1
5158  ;;
5159     ARM)         TARGET_HAS_JIT=1
5160  ;;
5161     Mips)        TARGET_HAS_JIT=1
5162  ;;
5163     XCore)       TARGET_HAS_JIT=0
5164  ;;
5165     MSP430)      TARGET_HAS_JIT=0
5166  ;;
5167     Hexagon)     TARGET_HAS_JIT=0
5168  ;;
5169     NVPTX)       TARGET_HAS_JIT=0
5170  ;;
5171     SystemZ)     TARGET_HAS_JIT=1
5172  ;;
5173     *)           TARGET_HAS_JIT=0
5174  ;;
5175   esac
5176 fi
5177
5178 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5179 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5180
5181
5182 # Check whether --enable-docs was given.
5183 if test "${enable_docs+set}" = set; then
5184   enableval=$enable_docs;
5185 else
5186   enableval=default
5187 fi
5188
5189 case "$enableval" in
5190   yes) ENABLE_DOCS=1
5191  ;;
5192   no)  ENABLE_DOCS=0
5193  ;;
5194   default) ENABLE_DOCS=1
5195  ;;
5196   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5197 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5198    { (exit 1); exit 1; }; } ;;
5199 esac
5200
5201 # Check whether --enable-doxygen was given.
5202 if test "${enable_doxygen+set}" = set; then
5203   enableval=$enable_doxygen;
5204 else
5205   enableval=default
5206 fi
5207
5208 case "$enableval" in
5209   yes) ENABLE_DOXYGEN=1
5210  ;;
5211   no|default) ENABLE_DOXYGEN=0
5212  ;;
5213   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5215    { (exit 1); exit 1; }; } ;;
5216 esac
5217
5218 # Check whether --enable-doxygen-search was given.
5219 if test "${enable_doxygen_search+set}" = set; then
5220   enableval=$enable_doxygen_search;
5221 else
5222   enableval=default
5223 fi
5224
5225 ENABLE_DOXYGEN_SEARCH="$enableval"
5226
5227 case "$enableval" in
5228   yes|no|default) ;;
5229   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5231    { (exit 1); exit 1; }; } ;;
5232 esac
5233
5234 # Check whether --enable-doxygen-external-search was given.
5235 if test "${enable_doxygen_external_search+set}" = set; then
5236   enableval=$enable_doxygen_external_search;
5237 else
5238   enableval=default
5239 fi
5240
5241 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5242
5243 case "$enableval" in
5244   yes)
5245             case "$ENABLE_DOXYGEN_SEARCH" in
5246       yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5247       no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5248 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5249    { (exit 1); exit 1; }; } ;;
5250     esac
5251     ;;
5252   no|default) ;;
5253   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5255    { (exit 1); exit 1; }; } ;;
5256 esac
5257
5258
5259 # Check whether --with-doxygen-search-engine-url was given.
5260 if test "${with_doxygen_search_engine_url+set}" = set; then
5261   withval=$with_doxygen_search_engine_url;
5262 fi
5263
5264 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5265
5266
5267 # Check whether --with-doxygen-search-mappings was given.
5268 if test "${with_doxygen_search_mappings+set}" = set; then
5269   withval=$with_doxygen_search_mappings;
5270 fi
5271
5272 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5273
5274 case "$ENABLE_DOXYGEN_SEARCH" in
5275   yes)
5276     if test "$ENABLE_DOXYGEN" = "0" ; then
5277       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5278 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5279    { (exit 1); exit 1; }; }
5280     fi
5281
5282     enable_searchengine=YES
5283
5284
5285     case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5286       yes)
5287         enable_external_search=YES
5288
5289         enable_server_based_search=YES
5290
5291         searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5292
5293         extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5294
5295         ;;
5296
5297       no|default)
5298         enable_external_search=NO
5299
5300         enable_server_based_search=NO
5301
5302
5303
5304         ;;
5305     esac
5306     ;;
5307
5308   no|default)
5309     enable_searchengine=NO
5310
5311
5312     enable_server_based_search=NO
5313
5314     enable_external_search=NO
5315
5316
5317     ;;
5318
5319   *)
5320     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5321 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5322    { (exit 1); exit 1; }; }
5323     ;;
5324 esac
5325
5326 # Check whether --enable-doxygen-qt-help was given.
5327 if test "${enable_doxygen_qt_help+set}" = set; then
5328   enableval=$enable_doxygen_qt_help;
5329 else
5330   enableval=default
5331 fi
5332
5333 case "$enableval" in
5334   yes)
5335     if test "$ENABLE_DOXYGEN" = "0" ; then
5336       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5337 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5338    { (exit 1); exit 1; }; }
5339     fi
5340
5341     # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5342 set dummy qhelpgenerator; ac_word=$2
5343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   case $QHELPGENERATOR in
5349   [\\/]* | ?:[\\/]*)
5350   ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5351   ;;
5352   *)
5353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356   IFS=$as_save_IFS
5357   test -z "$as_dir" && as_dir=.
5358   for ac_exec_ext in '' $ac_executable_extensions; do
5359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5360     ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362     break 2
5363   fi
5364 done
5365 done
5366 IFS=$as_save_IFS
5367
5368   test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5369   ;;
5370 esac
5371 fi
5372 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5373 if test -n "$QHELPGENERATOR"; then
5374   { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5375 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5376 else
5377   { echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6; }
5379 fi
5380
5381
5382
5383         llvm_doxygen_generate_qhp=YES
5384
5385     llvm_doxygen_qch_filename=org.llvm.qch
5386
5387     llvm_doxygen_qhp_namespace=org.llvm
5388
5389     llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5390
5391     llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5392
5393     llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5394
5395
5396         clang_doxygen_generate_qhp=YES
5397
5398     clang_doxygen_qch_filename=org.llvm.clang.qch
5399
5400     clang_doxygen_qhp_namespace=org.llvm.clang
5401
5402     clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5403
5404     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5405
5406     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5407
5408     ;;
5409
5410   no|default)
5411     llvm_doxygen_generate_qhp=NO
5412
5413
5414
5415
5416
5417
5418
5419     clang_doxygen_generate_qhp=NO
5420
5421
5422
5423
5424     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5425
5426     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5427
5428     ;;
5429
5430   *)
5431     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5433    { (exit 1); exit 1; }; } ;;
5434 esac
5435
5436 # Check whether --enable-threads was given.
5437 if test "${enable_threads+set}" = set; then
5438   enableval=$enable_threads;
5439 else
5440   enableval=default
5441 fi
5442
5443 case "$enableval" in
5444   yes) LLVM_ENABLE_THREADS=1
5445  ;;
5446   no)  LLVM_ENABLE_THREADS=0
5447  ;;
5448   default) LLVM_ENABLE_THREADS=1
5449  ;;
5450   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5451 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5452    { (exit 1); exit 1; }; } ;;
5453 esac
5454
5455 cat >>confdefs.h <<_ACEOF
5456 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5457 _ACEOF
5458
5459
5460 # Check whether --enable-pthreads was given.
5461 if test "${enable_pthreads+set}" = set; then
5462   enableval=$enable_pthreads;
5463 else
5464   enableval=default
5465 fi
5466
5467 case "$enableval" in
5468   yes) ENABLE_PTHREADS=1
5469  ;;
5470   no)  ENABLE_PTHREADS=0
5471  ;;
5472   default) ENABLE_PTHREADS=1
5473  ;;
5474   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5475 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5476    { (exit 1); exit 1; }; } ;;
5477 esac
5478
5479 # Check whether --enable-zlib was given.
5480 if test "${enable_zlib+set}" = set; then
5481   enableval=$enable_zlib;
5482 else
5483   enableval=default
5484 fi
5485
5486 case "$enableval" in
5487   yes) LLVM_ENABLE_ZLIB=1
5488  ;;
5489   no)  LLVM_ENABLE_ZLIB=0
5490  ;;
5491   default) LLVM_ENABLE_ZLIB=1
5492  ;;
5493   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5495    { (exit 1); exit 1; }; } ;;
5496 esac
5497
5498 cat >>confdefs.h <<_ACEOF
5499 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5500 _ACEOF
5501
5502
5503 # Check whether --enable-pic was given.
5504 if test "${enable_pic+set}" = set; then
5505   enableval=$enable_pic;
5506 else
5507   enableval=default
5508 fi
5509
5510 case "$enableval" in
5511   yes) ENABLE_PIC=1
5512  ;;
5513   no)  ENABLE_PIC=0
5514  ;;
5515   default) ENABLE_PIC=1
5516  ;;
5517   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5518 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5519    { (exit 1); exit 1; }; } ;;
5520 esac
5521
5522 cat >>confdefs.h <<_ACEOF
5523 #define ENABLE_PIC $ENABLE_PIC
5524 _ACEOF
5525
5526
5527 # Check whether --enable-shared was given.
5528 if test "${enable_shared+set}" = set; then
5529   enableval=$enable_shared;
5530 else
5531   enableval=default
5532 fi
5533
5534 case "$enableval" in
5535   yes) ENABLE_SHARED=1
5536  ;;
5537   no)  ENABLE_SHARED=0
5538  ;;
5539   default) ENABLE_SHARED=0
5540  ;;
5541   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5542 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5543    { (exit 1); exit 1; }; } ;;
5544 esac
5545
5546 # Check whether --enable-embed-stdcxx was given.
5547 if test "${enable_embed_stdcxx+set}" = set; then
5548   enableval=$enable_embed_stdcxx;
5549 else
5550   enableval=default
5551 fi
5552
5553 case "$enableval" in
5554   yes) ENABLE_EMBED_STDCXX=1
5555  ;;
5556   no)  ENABLE_EMBED_STDCXX=0
5557  ;;
5558   default) ENABLE_EMBED_STDCXX=0
5559  ;;
5560   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5561 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5562    { (exit 1); exit 1; }; } ;;
5563 esac
5564
5565 # Check whether --enable-timestamps was given.
5566 if test "${enable_timestamps+set}" = set; then
5567   enableval=$enable_timestamps;
5568 else
5569   enableval=default
5570 fi
5571
5572 case "$enableval" in
5573   yes) ENABLE_TIMESTAMPS=1
5574  ;;
5575   no)  ENABLE_TIMESTAMPS=0
5576  ;;
5577   default) ENABLE_TIMESTAMPS=1
5578  ;;
5579   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5580 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5581    { (exit 1); exit 1; }; } ;;
5582 esac
5583
5584 cat >>confdefs.h <<_ACEOF
5585 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5586 _ACEOF
5587
5588
5589 # Check whether --enable-backtraces was given.
5590 if test "${enable_backtraces+set}" = set; then
5591   enableval=$enable_backtraces; case "$enableval" in
5592     yes) llvm_cv_enable_backtraces="yes" ;;
5593     no)  llvm_cv_enable_backtraces="no"  ;;
5594     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5595 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5596    { (exit 1); exit 1; }; } ;;
5597   esac
5598 else
5599   llvm_cv_enable_backtraces="yes"
5600 fi
5601
5602 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5603
5604 cat >>confdefs.h <<\_ACEOF
5605 #define ENABLE_BACKTRACES 1
5606 _ACEOF
5607
5608 fi
5609
5610 # Check whether --enable-crash-overrides was given.
5611 if test "${enable_crash_overrides+set}" = set; then
5612   enableval=$enable_crash_overrides; case "$enableval" in
5613     yes) llvm_cv_enable_crash_overrides="yes" ;;
5614     no)  llvm_cv_enable_crash_overrides="no"  ;;
5615     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5616 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5617    { (exit 1); exit 1; }; } ;;
5618   esac
5619 else
5620   llvm_cv_enable_crash_overrides="yes"
5621 fi
5622
5623 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5624
5625 cat >>confdefs.h <<\_ACEOF
5626 #define ENABLE_CRASH_OVERRIDES 1
5627 _ACEOF
5628
5629 fi
5630
5631 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600 BPF"
5632 ALL_TARGETS=$ALL_TARGETS
5633
5634
5635 TARGETS_TO_BUILD=""
5636 # Check whether --enable-targets was given.
5637 if test "${enable_targets+set}" = set; then
5638   enableval=$enable_targets;
5639 else
5640   enableval=all
5641 fi
5642
5643 if test "$enableval" = host-only ; then
5644   enableval=host
5645 fi
5646 case "$enableval" in
5647   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5648   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5649       case "$a_target" in
5650         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5651         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5652         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5653         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5654         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5655         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5656         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5657         bpf)      TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5658         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5659         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5660         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5661         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5662         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5663         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5664         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5665         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5666         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5667         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5668         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5669         host) case "$llvm_cv_target_arch" in
5670             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5671             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5672             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5673             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5674             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5675             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5676             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5677             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5678             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5679             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5680             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5681             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5682             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5683 echo "$as_me: error: Can not set target to build" >&2;}
5684    { (exit 1); exit 1; }; } ;;
5685           esac ;;
5686         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5687 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5688    { (exit 1); exit 1; }; } ;;
5689       esac
5690   done
5691   ;;
5692 esac
5693
5694 # Check whether --enable-experimental-targets was given.
5695 if test "${enable_experimental_targets+set}" = set; then
5696   enableval=$enable_experimental_targets;
5697 else
5698   enableval=disable
5699 fi
5700
5701
5702 if test ${enableval} != "disable"
5703 then
5704   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5705 fi
5706
5707 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5708
5709
5710 for a_target in $TARGETS_TO_BUILD; do
5711   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5712
5713 cat >>confdefs.h <<_ACEOF
5714 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5715 _ACEOF
5716
5717     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5718     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5719     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5720     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5721     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5722       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5723     fi
5724     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5725       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5726     fi
5727
5728 cat >>confdefs.h <<_ACEOF
5729 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5730 _ACEOF
5731
5732
5733 cat >>confdefs.h <<_ACEOF
5734 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5735 _ACEOF
5736
5737
5738 cat >>confdefs.h <<_ACEOF
5739 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5740 _ACEOF
5741
5742
5743 cat >>confdefs.h <<_ACEOF
5744 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5745 _ACEOF
5746
5747     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5748
5749 cat >>confdefs.h <<_ACEOF
5750 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5751 _ACEOF
5752
5753     fi
5754     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5755
5756 cat >>confdefs.h <<_ACEOF
5757 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5758 _ACEOF
5759
5760     fi
5761   fi
5762 done
5763
5764 LLVM_ENUM_TARGETS=""
5765 LLVM_ENUM_ASM_PRINTERS=""
5766 LLVM_ENUM_ASM_PARSERS=""
5767 LLVM_ENUM_DISASSEMBLERS=""
5768 for target_to_build in $TARGETS_TO_BUILD; do
5769   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5770   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5771     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5772   fi
5773   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5774     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5775   fi
5776   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5777     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5778   fi
5779 done
5780
5781
5782
5783
5784
5785
5786 # Check whether --with-optimize-option was given.
5787 if test "${with_optimize_option+set}" = set; then
5788   withval=$with_optimize_option;
5789 else
5790   withval=default
5791 fi
5792
5793 { echo "$as_me:$LINENO: checking optimization flags" >&5
5794 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5795 case "$withval" in
5796   default)
5797     case "$llvm_cv_os_type" in
5798     FreeBSD) optimize_option=-O2 ;;
5799     MingW) optimize_option=-O2 ;;
5800     *)     optimize_option=-O3 ;;
5801     esac ;;
5802   *) optimize_option="$withval" ;;
5803 esac
5804 OPTIMIZE_OPTION=$optimize_option
5805
5806 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5807 echo "${ECHO_T}$optimize_option" >&6; }
5808
5809
5810 # Check whether --with-extra-options was given.
5811 if test "${with_extra_options+set}" = set; then
5812   withval=$with_extra_options;
5813 else
5814   withval=default
5815 fi
5816
5817 case "$withval" in
5818   default) EXTRA_OPTIONS= ;;
5819   *) EXTRA_OPTIONS=$withval ;;
5820 esac
5821 EXTRA_OPTIONS=$EXTRA_OPTIONS
5822
5823
5824
5825 # Check whether --with-extra-ld-options was given.
5826 if test "${with_extra_ld_options+set}" = set; then
5827   withval=$with_extra_ld_options;
5828 else
5829   withval=default
5830 fi
5831
5832 case "$withval" in
5833   default) EXTRA_LD_OPTIONS= ;;
5834   *) EXTRA_LD_OPTIONS=$withval ;;
5835 esac
5836 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5837
5838
5839 # Check whether --enable-bindings was given.
5840 if test "${enable_bindings+set}" = set; then
5841   enableval=$enable_bindings;
5842 else
5843   enableval=default
5844 fi
5845
5846 BINDINGS_TO_BUILD=""
5847 case "$enableval" in
5848   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5849   all ) BINDINGS_TO_BUILD="ocaml" ;;
5850   none | no) BINDINGS_TO_BUILD="" ;;
5851   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5852       case "$a_binding" in
5853         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5854         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5855 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5856    { (exit 1); exit 1; }; } ;;
5857       esac
5858   done
5859   ;;
5860 esac
5861
5862
5863 # Check whether --with-ocaml-libdir was given.
5864 if test "${with_ocaml_libdir+set}" = set; then
5865   withval=$with_ocaml_libdir;
5866 else
5867   withval=auto
5868 fi
5869
5870 case "$withval" in
5871   auto) with_ocaml_libdir="$withval" ;;
5872   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5873   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5874 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5875    { (exit 1); exit 1; }; } ;;
5876 esac
5877
5878
5879 # Check whether --with-clang-srcdir was given.
5880 if test "${with_clang_srcdir+set}" = set; then
5881   withval=$with_clang_srcdir;
5882 else
5883   withval="-"
5884 fi
5885
5886 case "$withval" in
5887   -) clang_src_root="" ;;
5888   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5889   *) clang_src_root="$ac_pwd/$withval" ;;
5890 esac
5891 CLANG_SRC_ROOT=$clang_src_root
5892
5893
5894
5895 # Check whether --with-clang-resource-dir was given.
5896 if test "${with_clang_resource_dir+set}" = set; then
5897   withval=$with_clang_resource_dir;
5898 else
5899   withval=""
5900 fi
5901
5902
5903 cat >>confdefs.h <<_ACEOF
5904 #define CLANG_RESOURCE_DIR "$withval"
5905 _ACEOF
5906
5907
5908
5909 # Check whether --with-c-include-dirs was given.
5910 if test "${with_c_include_dirs+set}" = set; then
5911   withval=$with_c_include_dirs;
5912 else
5913   withval=""
5914 fi
5915
5916
5917 cat >>confdefs.h <<_ACEOF
5918 #define C_INCLUDE_DIRS "$withval"
5919 _ACEOF
5920
5921
5922 # Clang normally uses the system c++ headers and libraries. With this option,
5923 # clang will use the ones provided by a gcc installation instead. This option should
5924 # be passed the same value that was used with --prefix when configuring gcc.
5925
5926 # Check whether --with-gcc-toolchain was given.
5927 if test "${with_gcc_toolchain+set}" = set; then
5928   withval=$with_gcc_toolchain;
5929 else
5930   withval=""
5931 fi
5932
5933
5934 cat >>confdefs.h <<_ACEOF
5935 #define GCC_INSTALL_PREFIX "$withval"
5936 _ACEOF
5937
5938
5939
5940 # Check whether --with-default-sysroot was given.
5941 if test "${with_default_sysroot+set}" = set; then
5942   withval=$with_default_sysroot;
5943 else
5944   withval=""
5945 fi
5946
5947
5948 cat >>confdefs.h <<_ACEOF
5949 #define DEFAULT_SYSROOT "$withval"
5950 _ACEOF
5951
5952
5953
5954 # Check whether --with-clang-default-openmp-runtime was given.
5955 if test "${with_clang_default_openmp_runtime+set}" = set; then
5956   withval=$with_clang_default_openmp_runtime;
5957 else
5958   withval="libgomp"
5959 fi
5960
5961
5962 cat >>confdefs.h <<_ACEOF
5963 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5964 _ACEOF
5965
5966
5967
5968 # Check whether --with-binutils-include was given.
5969 if test "${with_binutils_include+set}" = set; then
5970   withval=$with_binutils_include;
5971 else
5972   withval=default
5973 fi
5974
5975 case "$withval" in
5976   default) WITH_BINUTILS_INCDIR=default ;;
5977   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5978   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5979 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5980    { (exit 1); exit 1; }; } ;;
5981 esac
5982 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5983   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5984
5985   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5986      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5987      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5988 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5989    { (exit 1); exit 1; }; };
5990   fi
5991 fi
5992
5993
5994 # Check whether --with-bug-report-url was given.
5995 if test "${with_bug_report_url+set}" = set; then
5996   withval=$with_bug_report_url;
5997 else
5998   withval="http://llvm.org/bugs/"
5999 fi
6000
6001
6002 cat >>confdefs.h <<_ACEOF
6003 #define BUG_REPORT_URL "$withval"
6004 _ACEOF
6005
6006
6007 # Check whether --enable-terminfo was given.
6008 if test "${enable_terminfo+set}" = set; then
6009   enableval=$enable_terminfo; case "$enableval" in
6010     yes) llvm_cv_enable_terminfo="yes" ;;
6011     no)  llvm_cv_enable_terminfo="no"  ;;
6012     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6013 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6014    { (exit 1); exit 1; }; } ;;
6015   esac
6016 else
6017   llvm_cv_enable_terminfo="yes"
6018 fi
6019
6020 case "$llvm_cv_enable_terminfo" in
6021   yes) ENABLE_TERMINFO=1
6022  ;;
6023   no)  ENABLE_TERMINFO=0
6024  ;;
6025 esac
6026
6027 # Check whether --enable-libedit was given.
6028 if test "${enable_libedit+set}" = set; then
6029   enableval=$enable_libedit; case "$enableval" in
6030     yes) llvm_cv_enable_libedit="yes" ;;
6031     no)  llvm_cv_enable_libedit="no"  ;;
6032     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6033 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6034    { (exit 1); exit 1; }; } ;;
6035   esac
6036 else
6037   llvm_cv_enable_libedit="yes"
6038 fi
6039
6040
6041 # Check whether --enable-libffi was given.
6042 if test "${enable_libffi+set}" = set; then
6043   enableval=$enable_libffi; case "$enableval" in
6044     yes) llvm_cv_enable_libffi="yes" ;;
6045     no)  llvm_cv_enable_libffi="no"  ;;
6046     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6047 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6048    { (exit 1); exit 1; }; } ;;
6049   esac
6050 else
6051   llvm_cv_enable_libffi=no
6052 fi
6053
6054
6055
6056 # Check whether --with-internal-prefix was given.
6057 if test "${with_internal_prefix+set}" = set; then
6058   withval=$with_internal_prefix;
6059 else
6060   withval=""
6061 fi
6062
6063 INTERNAL_PREFIX=$withval
6064
6065
6066
6067 { echo "$as_me:$LINENO: checking for GNU make" >&5
6068 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6069 if test "${llvm_cv_gnu_make_command+set}" = set; then
6070   echo $ECHO_N "(cached) $ECHO_C" >&6
6071 else
6072   llvm_cv_gnu_make_command=''
6073  for a in "$MAKE" make gmake gnumake ; do
6074   if test -z "$a" ; then continue ; fi ;
6075   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6076   then
6077    llvm_cv_gnu_make_command=$a ;
6078    break;
6079   fi
6080  done
6081 fi
6082 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6083 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6084  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6085    ifGNUmake='' ;
6086  else
6087    ifGNUmake='#' ;
6088    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6089 echo "${ECHO_T}\"Not found\"" >&6; };
6090  fi
6091
6092
6093 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6094 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6095 LN_S=$as_ln_s
6096 if test "$LN_S" = "ln -s"; then
6097   { echo "$as_me:$LINENO: result: yes" >&5
6098 echo "${ECHO_T}yes" >&6; }
6099 else
6100   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6101 echo "${ECHO_T}no, using $LN_S" >&6; }
6102 fi
6103
6104 # Extract the first word of "nm", so it can be a program name with args.
6105 set dummy nm; ac_word=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_path_NM+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   case $NM in
6112   [\\/]* | ?:[\\/]*)
6113   ac_cv_path_NM="$NM" # Let the user override the test with a path.
6114   ;;
6115   *)
6116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121   for ac_exec_ext in '' $ac_executable_extensions; do
6122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6123     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125     break 2
6126   fi
6127 done
6128 done
6129 IFS=$as_save_IFS
6130
6131   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6132   ;;
6133 esac
6134 fi
6135 NM=$ac_cv_path_NM
6136 if test -n "$NM"; then
6137   { echo "$as_me:$LINENO: result: $NM" >&5
6138 echo "${ECHO_T}$NM" >&6; }
6139 else
6140   { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6142 fi
6143
6144
6145 # Extract the first word of "cmp", so it can be a program name with args.
6146 set dummy cmp; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_path_CMP+set}" = set; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152   case $CMP in
6153   [\\/]* | ?:[\\/]*)
6154   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6155   ;;
6156   *)
6157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162   for ac_exec_ext in '' $ac_executable_extensions; do
6163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6164     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6173   ;;
6174 esac
6175 fi
6176 CMP=$ac_cv_path_CMP
6177 if test -n "$CMP"; then
6178   { echo "$as_me:$LINENO: result: $CMP" >&5
6179 echo "${ECHO_T}$CMP" >&6; }
6180 else
6181   { echo "$as_me:$LINENO: result: no" >&5
6182 echo "${ECHO_T}no" >&6; }
6183 fi
6184
6185
6186 # Extract the first word of "cp", so it can be a program name with args.
6187 set dummy cp; ac_word=$2
6188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6190 if test "${ac_cv_path_CP+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193   case $CP in
6194   [\\/]* | ?:[\\/]*)
6195   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6196   ;;
6197   *)
6198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201   IFS=$as_save_IFS
6202   test -z "$as_dir" && as_dir=.
6203   for ac_exec_ext in '' $ac_executable_extensions; do
6204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6205     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6206     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207     break 2
6208   fi
6209 done
6210 done
6211 IFS=$as_save_IFS
6212
6213   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6214   ;;
6215 esac
6216 fi
6217 CP=$ac_cv_path_CP
6218 if test -n "$CP"; then
6219   { echo "$as_me:$LINENO: result: $CP" >&5
6220 echo "${ECHO_T}$CP" >&6; }
6221 else
6222   { echo "$as_me:$LINENO: result: no" >&5
6223 echo "${ECHO_T}no" >&6; }
6224 fi
6225
6226
6227 # Extract the first word of "date", so it can be a program name with args.
6228 set dummy date; ac_word=$2
6229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231 if test "${ac_cv_path_DATE+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   case $DATE in
6235   [\\/]* | ?:[\\/]*)
6236   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6237   ;;
6238   *)
6239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242   IFS=$as_save_IFS
6243   test -z "$as_dir" && as_dir=.
6244   for ac_exec_ext in '' $ac_executable_extensions; do
6245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6246     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248     break 2
6249   fi
6250 done
6251 done
6252 IFS=$as_save_IFS
6253
6254   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6255   ;;
6256 esac
6257 fi
6258 DATE=$ac_cv_path_DATE
6259 if test -n "$DATE"; then
6260   { echo "$as_me:$LINENO: result: $DATE" >&5
6261 echo "${ECHO_T}$DATE" >&6; }
6262 else
6263   { echo "$as_me:$LINENO: result: no" >&5
6264 echo "${ECHO_T}no" >&6; }
6265 fi
6266
6267
6268 # Extract the first word of "find", so it can be a program name with args.
6269 set dummy find; ac_word=$2
6270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272 if test "${ac_cv_path_FIND+set}" = set; then
6273   echo $ECHO_N "(cached) $ECHO_C" >&6
6274 else
6275   case $FIND in
6276   [\\/]* | ?:[\\/]*)
6277   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6278   ;;
6279   *)
6280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6281 for as_dir in $PATH
6282 do
6283   IFS=$as_save_IFS
6284   test -z "$as_dir" && as_dir=.
6285   for ac_exec_ext in '' $ac_executable_extensions; do
6286   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6287     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6288     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289     break 2
6290   fi
6291 done
6292 done
6293 IFS=$as_save_IFS
6294
6295   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6296   ;;
6297 esac
6298 fi
6299 FIND=$ac_cv_path_FIND
6300 if test -n "$FIND"; then
6301   { echo "$as_me:$LINENO: result: $FIND" >&5
6302 echo "${ECHO_T}$FIND" >&6; }
6303 else
6304   { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6306 fi
6307
6308
6309 # Extract the first word of "grep", so it can be a program name with args.
6310 set dummy grep; ac_word=$2
6311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6313 if test "${ac_cv_path_GREP+set}" = set; then
6314   echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316   case $GREP in
6317   [\\/]* | ?:[\\/]*)
6318   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6319   ;;
6320   *)
6321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322 for as_dir in $PATH
6323 do
6324   IFS=$as_save_IFS
6325   test -z "$as_dir" && as_dir=.
6326   for ac_exec_ext in '' $ac_executable_extensions; do
6327   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6328     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6329     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6330     break 2
6331   fi
6332 done
6333 done
6334 IFS=$as_save_IFS
6335
6336   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6337   ;;
6338 esac
6339 fi
6340 GREP=$ac_cv_path_GREP
6341 if test -n "$GREP"; then
6342   { echo "$as_me:$LINENO: result: $GREP" >&5
6343 echo "${ECHO_T}$GREP" >&6; }
6344 else
6345   { echo "$as_me:$LINENO: result: no" >&5
6346 echo "${ECHO_T}no" >&6; }
6347 fi
6348
6349
6350 # Extract the first word of "mkdir", so it can be a program name with args.
6351 set dummy mkdir; ac_word=$2
6352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6354 if test "${ac_cv_path_MKDIR+set}" = set; then
6355   echo $ECHO_N "(cached) $ECHO_C" >&6
6356 else
6357   case $MKDIR in
6358   [\\/]* | ?:[\\/]*)
6359   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6360   ;;
6361   *)
6362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365   IFS=$as_save_IFS
6366   test -z "$as_dir" && as_dir=.
6367   for ac_exec_ext in '' $ac_executable_extensions; do
6368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6369     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6371     break 2
6372   fi
6373 done
6374 done
6375 IFS=$as_save_IFS
6376
6377   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6378   ;;
6379 esac
6380 fi
6381 MKDIR=$ac_cv_path_MKDIR
6382 if test -n "$MKDIR"; then
6383   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6384 echo "${ECHO_T}$MKDIR" >&6; }
6385 else
6386   { echo "$as_me:$LINENO: result: no" >&5
6387 echo "${ECHO_T}no" >&6; }
6388 fi
6389
6390
6391 # Extract the first word of "mv", so it can be a program name with args.
6392 set dummy mv; ac_word=$2
6393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6395 if test "${ac_cv_path_MV+set}" = set; then
6396   echo $ECHO_N "(cached) $ECHO_C" >&6
6397 else
6398   case $MV in
6399   [\\/]* | ?:[\\/]*)
6400   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6401   ;;
6402   *)
6403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406   IFS=$as_save_IFS
6407   test -z "$as_dir" && as_dir=.
6408   for ac_exec_ext in '' $ac_executable_extensions; do
6409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6410     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6412     break 2
6413   fi
6414 done
6415 done
6416 IFS=$as_save_IFS
6417
6418   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6419   ;;
6420 esac
6421 fi
6422 MV=$ac_cv_path_MV
6423 if test -n "$MV"; then
6424   { echo "$as_me:$LINENO: result: $MV" >&5
6425 echo "${ECHO_T}$MV" >&6; }
6426 else
6427   { echo "$as_me:$LINENO: result: no" >&5
6428 echo "${ECHO_T}no" >&6; }
6429 fi
6430
6431
6432 if test -n "$ac_tool_prefix"; then
6433   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6434 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6437 if test "${ac_cv_prog_RANLIB+set}" = set; then
6438   echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440   if test -n "$RANLIB"; then
6441   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446   IFS=$as_save_IFS
6447   test -z "$as_dir" && as_dir=.
6448   for ac_exec_ext in '' $ac_executable_extensions; do
6449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6450     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6451     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6452     break 2
6453   fi
6454 done
6455 done
6456 IFS=$as_save_IFS
6457
6458 fi
6459 fi
6460 RANLIB=$ac_cv_prog_RANLIB
6461 if test -n "$RANLIB"; then
6462   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6463 echo "${ECHO_T}$RANLIB" >&6; }
6464 else
6465   { echo "$as_me:$LINENO: result: no" >&5
6466 echo "${ECHO_T}no" >&6; }
6467 fi
6468
6469
6470 fi
6471 if test -z "$ac_cv_prog_RANLIB"; then
6472   ac_ct_RANLIB=$RANLIB
6473   # Extract the first word of "ranlib", so it can be a program name with args.
6474 set dummy ranlib; ac_word=$2
6475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6477 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6478   echo $ECHO_N "(cached) $ECHO_C" >&6
6479 else
6480   if test -n "$ac_ct_RANLIB"; then
6481   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486   IFS=$as_save_IFS
6487   test -z "$as_dir" && as_dir=.
6488   for ac_exec_ext in '' $ac_executable_extensions; do
6489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6490     ac_cv_prog_ac_ct_RANLIB="ranlib"
6491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6492     break 2
6493   fi
6494 done
6495 done
6496 IFS=$as_save_IFS
6497
6498 fi
6499 fi
6500 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6501 if test -n "$ac_ct_RANLIB"; then
6502   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6503 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6504 else
6505   { echo "$as_me:$LINENO: result: no" >&5
6506 echo "${ECHO_T}no" >&6; }
6507 fi
6508
6509   if test "x$ac_ct_RANLIB" = x; then
6510     RANLIB=":"
6511   else
6512     case $cross_compiling:$ac_tool_warned in
6513 yes:)
6514 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6515 whose name does not start with the host triplet.  If you think this
6516 configuration is useful to you, please write to autoconf@gnu.org." >&5
6517 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6518 whose name does not start with the host triplet.  If you think this
6519 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6520 ac_tool_warned=yes ;;
6521 esac
6522     RANLIB=$ac_ct_RANLIB
6523   fi
6524 else
6525   RANLIB="$ac_cv_prog_RANLIB"
6526 fi
6527
6528 if test -n "$ac_tool_prefix"; then
6529   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6530 set dummy ${ac_tool_prefix}ar; ac_word=$2
6531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6533 if test "${ac_cv_prog_AR+set}" = set; then
6534   echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536   if test -n "$AR"; then
6537   ac_cv_prog_AR="$AR" # Let the user override the test.
6538 else
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6541 do
6542   IFS=$as_save_IFS
6543   test -z "$as_dir" && as_dir=.
6544   for ac_exec_ext in '' $ac_executable_extensions; do
6545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6546     ac_cv_prog_AR="${ac_tool_prefix}ar"
6547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548     break 2
6549   fi
6550 done
6551 done
6552 IFS=$as_save_IFS
6553
6554 fi
6555 fi
6556 AR=$ac_cv_prog_AR
6557 if test -n "$AR"; then
6558   { echo "$as_me:$LINENO: result: $AR" >&5
6559 echo "${ECHO_T}$AR" >&6; }
6560 else
6561   { echo "$as_me:$LINENO: result: no" >&5
6562 echo "${ECHO_T}no" >&6; }
6563 fi
6564
6565
6566 fi
6567 if test -z "$ac_cv_prog_AR"; then
6568   ac_ct_AR=$AR
6569   # Extract the first word of "ar", so it can be a program name with args.
6570 set dummy ar; ac_word=$2
6571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6573 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6574   echo $ECHO_N "(cached) $ECHO_C" >&6
6575 else
6576   if test -n "$ac_ct_AR"; then
6577   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582   IFS=$as_save_IFS
6583   test -z "$as_dir" && as_dir=.
6584   for ac_exec_ext in '' $ac_executable_extensions; do
6585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6586     ac_cv_prog_ac_ct_AR="ar"
6587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6588     break 2
6589   fi
6590 done
6591 done
6592 IFS=$as_save_IFS
6593
6594 fi
6595 fi
6596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6597 if test -n "$ac_ct_AR"; then
6598   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6599 echo "${ECHO_T}$ac_ct_AR" >&6; }
6600 else
6601   { echo "$as_me:$LINENO: result: no" >&5
6602 echo "${ECHO_T}no" >&6; }
6603 fi
6604
6605   if test "x$ac_ct_AR" = x; then
6606     AR="false"
6607   else
6608     case $cross_compiling:$ac_tool_warned in
6609 yes:)
6610 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6611 whose name does not start with the host triplet.  If you think this
6612 configuration is useful to you, please write to autoconf@gnu.org." >&5
6613 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6614 whose name does not start with the host triplet.  If you think this
6615 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6616 ac_tool_warned=yes ;;
6617 esac
6618     AR=$ac_ct_AR
6619   fi
6620 else
6621   AR="$ac_cv_prog_AR"
6622 fi
6623
6624 # Extract the first word of "rm", so it can be a program name with args.
6625 set dummy rm; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_path_RM+set}" = set; then
6629   echo $ECHO_N "(cached) $ECHO_C" >&6
6630 else
6631   case $RM in
6632   [\\/]* | ?:[\\/]*)
6633   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6634   ;;
6635   *)
6636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 for as_dir in $PATH
6638 do
6639   IFS=$as_save_IFS
6640   test -z "$as_dir" && as_dir=.
6641   for ac_exec_ext in '' $ac_executable_extensions; do
6642   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6643     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6645     break 2
6646   fi
6647 done
6648 done
6649 IFS=$as_save_IFS
6650
6651   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6652   ;;
6653 esac
6654 fi
6655 RM=$ac_cv_path_RM
6656 if test -n "$RM"; then
6657   { echo "$as_me:$LINENO: result: $RM" >&5
6658 echo "${ECHO_T}$RM" >&6; }
6659 else
6660   { echo "$as_me:$LINENO: result: no" >&5
6661 echo "${ECHO_T}no" >&6; }
6662 fi
6663
6664
6665 # Extract the first word of "sed", so it can be a program name with args.
6666 set dummy sed; ac_word=$2
6667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6669 if test "${ac_cv_path_SED+set}" = set; then
6670   echo $ECHO_N "(cached) $ECHO_C" >&6
6671 else
6672   case $SED in
6673   [\\/]* | ?:[\\/]*)
6674   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6675   ;;
6676   *)
6677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6679 do
6680   IFS=$as_save_IFS
6681   test -z "$as_dir" && as_dir=.
6682   for ac_exec_ext in '' $ac_executable_extensions; do
6683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6684     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686     break 2
6687   fi
6688 done
6689 done
6690 IFS=$as_save_IFS
6691
6692   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6693   ;;
6694 esac
6695 fi
6696 SED=$ac_cv_path_SED
6697 if test -n "$SED"; then
6698   { echo "$as_me:$LINENO: result: $SED" >&5
6699 echo "${ECHO_T}$SED" >&6; }
6700 else
6701   { echo "$as_me:$LINENO: result: no" >&5
6702 echo "${ECHO_T}no" >&6; }
6703 fi
6704
6705
6706 # Extract the first word of "tar", so it can be a program name with args.
6707 set dummy tar; ac_word=$2
6708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6710 if test "${ac_cv_path_TAR+set}" = set; then
6711   echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713   case $TAR in
6714   [\\/]* | ?:[\\/]*)
6715   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6716   ;;
6717   *)
6718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721   IFS=$as_save_IFS
6722   test -z "$as_dir" && as_dir=.
6723   for ac_exec_ext in '' $ac_executable_extensions; do
6724   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6725     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6726     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6727     break 2
6728   fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6734   ;;
6735 esac
6736 fi
6737 TAR=$ac_cv_path_TAR
6738 if test -n "$TAR"; then
6739   { echo "$as_me:$LINENO: result: $TAR" >&5
6740 echo "${ECHO_T}$TAR" >&6; }
6741 else
6742   { echo "$as_me:$LINENO: result: no" >&5
6743 echo "${ECHO_T}no" >&6; }
6744 fi
6745
6746
6747 # Extract the first word of "pwd", so it can be a program name with args.
6748 set dummy pwd; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_path_BINPWD+set}" = set; then
6752   echo $ECHO_N "(cached) $ECHO_C" >&6
6753 else
6754   case $BINPWD in
6755   [\\/]* | ?:[\\/]*)
6756   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6757   ;;
6758   *)
6759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 for as_dir in $PATH
6761 do
6762   IFS=$as_save_IFS
6763   test -z "$as_dir" && as_dir=.
6764   for ac_exec_ext in '' $ac_executable_extensions; do
6765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6766     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6768     break 2
6769   fi
6770 done
6771 done
6772 IFS=$as_save_IFS
6773
6774   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6775   ;;
6776 esac
6777 fi
6778 BINPWD=$ac_cv_path_BINPWD
6779 if test -n "$BINPWD"; then
6780   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6781 echo "${ECHO_T}$BINPWD" >&6; }
6782 else
6783   { echo "$as_me:$LINENO: result: no" >&5
6784 echo "${ECHO_T}no" >&6; }
6785 fi
6786
6787
6788
6789 # Extract the first word of "dot", so it can be a program name with args.
6790 set dummy dot; ac_word=$2
6791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6793 if test "${ac_cv_path_DOT+set}" = set; then
6794   echo $ECHO_N "(cached) $ECHO_C" >&6
6795 else
6796   case $DOT in
6797   [\\/]* | ?:[\\/]*)
6798   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6799   ;;
6800   *)
6801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804   IFS=$as_save_IFS
6805   test -z "$as_dir" && as_dir=.
6806   for ac_exec_ext in '' $ac_executable_extensions; do
6807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6808     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810     break 2
6811   fi
6812 done
6813 done
6814 IFS=$as_save_IFS
6815
6816   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6817   ;;
6818 esac
6819 fi
6820 DOT=$ac_cv_path_DOT
6821 if test -n "$DOT"; then
6822   { echo "$as_me:$LINENO: result: $DOT" >&5
6823 echo "${ECHO_T}$DOT" >&6; }
6824 else
6825   { echo "$as_me:$LINENO: result: no" >&5
6826 echo "${ECHO_T}no" >&6; }
6827 fi
6828
6829
6830 if test "$DOT" != "echo dot" ; then
6831
6832 cat >>confdefs.h <<\_ACEOF
6833 #define HAVE_DOT 1
6834 _ACEOF
6835
6836     if test "$llvm_cv_os_type" = "MingW" ; then
6837     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6838   fi
6839
6840 cat >>confdefs.h <<_ACEOF
6841 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6842 _ACEOF
6843
6844 fi
6845
6846 # Find a good install program.  We prefer a C program (faster),
6847 # so one script is as good as another.  But avoid the broken or
6848 # incompatible versions:
6849 # SysV /etc/install, /usr/sbin/install
6850 # SunOS /usr/etc/install
6851 # IRIX /sbin/install
6852 # AIX /bin/install
6853 # AmigaOS /C/install, which installs bootblocks on floppy discs
6854 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6855 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6856 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6857 # OS/2's system install, which has a completely different semantic
6858 # ./install, which can be erroneously created by make from ./install.sh.
6859 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6860 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6861 if test -z "$INSTALL"; then
6862 if test "${ac_cv_path_install+set}" = set; then
6863   echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6867 do
6868   IFS=$as_save_IFS
6869   test -z "$as_dir" && as_dir=.
6870   # Account for people who put trailing slashes in PATH elements.
6871 case $as_dir/ in
6872   ./ | .// | /cC/* | \
6873   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6874   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6875   /usr/ucb/* ) ;;
6876   *)
6877     # OSF1 and SCO ODT 3.0 have their own names for install.
6878     # Don't use installbsd from OSF since it installs stuff as root
6879     # by default.
6880     for ac_prog in ginstall scoinst install; do
6881       for ac_exec_ext in '' $ac_executable_extensions; do
6882         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6883           if test $ac_prog = install &&
6884             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6885             # AIX install.  It has an incompatible calling convention.
6886             :
6887           elif test $ac_prog = install &&
6888             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6889             # program-specific install script used by HP pwplus--don't use.
6890             :
6891           else
6892             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6893             break 3
6894           fi
6895         fi
6896       done
6897     done
6898     ;;
6899 esac
6900 done
6901 IFS=$as_save_IFS
6902
6903
6904 fi
6905   if test "${ac_cv_path_install+set}" = set; then
6906     INSTALL=$ac_cv_path_install
6907   else
6908     # As a last resort, use the slow shell script.  Don't cache a
6909     # value for INSTALL within a source directory, because that will
6910     # break other packages using the cache if that directory is
6911     # removed, or if the value is a relative name.
6912     INSTALL=$ac_install_sh
6913   fi
6914 fi
6915 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6916 echo "${ECHO_T}$INSTALL" >&6; }
6917
6918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6919 # It thinks the first close brace ends the variable substitution.
6920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6921
6922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6923
6924 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6925
6926 case "$INSTALL" in
6927  [\\/$]* | ?:[\\/]* ) ;;
6928  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6929 esac
6930
6931 # Extract the first word of "bzip2", so it can be a program name with args.
6932 set dummy bzip2; ac_word=$2
6933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6935 if test "${ac_cv_path_BZIP2+set}" = set; then
6936   echo $ECHO_N "(cached) $ECHO_C" >&6
6937 else
6938   case $BZIP2 in
6939   [\\/]* | ?:[\\/]*)
6940   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6941   ;;
6942   *)
6943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946   IFS=$as_save_IFS
6947   test -z "$as_dir" && as_dir=.
6948   for ac_exec_ext in '' $ac_executable_extensions; do
6949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6950     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6952     break 2
6953   fi
6954 done
6955 done
6956 IFS=$as_save_IFS
6957
6958   ;;
6959 esac
6960 fi
6961 BZIP2=$ac_cv_path_BZIP2
6962 if test -n "$BZIP2"; then
6963   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6964 echo "${ECHO_T}$BZIP2" >&6; }
6965 else
6966   { echo "$as_me:$LINENO: result: no" >&5
6967 echo "${ECHO_T}no" >&6; }
6968 fi
6969
6970
6971 # Extract the first word of "cat", so it can be a program name with args.
6972 set dummy cat; ac_word=$2
6973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6975 if test "${ac_cv_path_CAT+set}" = set; then
6976   echo $ECHO_N "(cached) $ECHO_C" >&6
6977 else
6978   case $CAT in
6979   [\\/]* | ?:[\\/]*)
6980   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6981   ;;
6982   *)
6983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986   IFS=$as_save_IFS
6987   test -z "$as_dir" && as_dir=.
6988   for ac_exec_ext in '' $ac_executable_extensions; do
6989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6990     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992     break 2
6993   fi
6994 done
6995 done
6996 IFS=$as_save_IFS
6997
6998   ;;
6999 esac
7000 fi
7001 CAT=$ac_cv_path_CAT
7002 if test -n "$CAT"; then
7003   { echo "$as_me:$LINENO: result: $CAT" >&5
7004 echo "${ECHO_T}$CAT" >&6; }
7005 else
7006   { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7008 fi
7009
7010
7011 # Extract the first word of "doxygen", so it can be a program name with args.
7012 set dummy doxygen; ac_word=$2
7013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7015 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   case $DOXYGEN in
7019   [\\/]* | ?:[\\/]*)
7020   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7021   ;;
7022   *)
7023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026   IFS=$as_save_IFS
7027   test -z "$as_dir" && as_dir=.
7028   for ac_exec_ext in '' $ac_executable_extensions; do
7029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7030     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7032     break 2
7033   fi
7034 done
7035 done
7036 IFS=$as_save_IFS
7037
7038   ;;
7039 esac
7040 fi
7041 DOXYGEN=$ac_cv_path_DOXYGEN
7042 if test -n "$DOXYGEN"; then
7043   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7044 echo "${ECHO_T}$DOXYGEN" >&6; }
7045 else
7046   { echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6; }
7048 fi
7049
7050
7051 # Extract the first word of "groff", so it can be a program name with args.
7052 set dummy groff; ac_word=$2
7053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7055 if test "${ac_cv_path_GROFF+set}" = set; then
7056   echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058   case $GROFF in
7059   [\\/]* | ?:[\\/]*)
7060   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7061   ;;
7062   *)
7063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 for as_dir in $PATH
7065 do
7066   IFS=$as_save_IFS
7067   test -z "$as_dir" && as_dir=.
7068   for ac_exec_ext in '' $ac_executable_extensions; do
7069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7070     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7071     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072     break 2
7073   fi
7074 done
7075 done
7076 IFS=$as_save_IFS
7077
7078   ;;
7079 esac
7080 fi
7081 GROFF=$ac_cv_path_GROFF
7082 if test -n "$GROFF"; then
7083   { echo "$as_me:$LINENO: result: $GROFF" >&5
7084 echo "${ECHO_T}$GROFF" >&6; }
7085 else
7086   { echo "$as_me:$LINENO: result: no" >&5
7087 echo "${ECHO_T}no" >&6; }
7088 fi
7089
7090
7091 # Extract the first word of "gzip", so it can be a program name with args.
7092 set dummy gzip; ac_word=$2
7093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7095 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7096   echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098   case $GZIPBIN in
7099   [\\/]* | ?:[\\/]*)
7100   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7101   ;;
7102   *)
7103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106   IFS=$as_save_IFS
7107   test -z "$as_dir" && as_dir=.
7108   for ac_exec_ext in '' $ac_executable_extensions; do
7109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7110     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112     break 2
7113   fi
7114 done
7115 done
7116 IFS=$as_save_IFS
7117
7118   ;;
7119 esac
7120 fi
7121 GZIPBIN=$ac_cv_path_GZIPBIN
7122 if test -n "$GZIPBIN"; then
7123   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7124 echo "${ECHO_T}$GZIPBIN" >&6; }
7125 else
7126   { echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6; }
7128 fi
7129
7130
7131 # Extract the first word of "pdfroff", so it can be a program name with args.
7132 set dummy pdfroff; ac_word=$2
7133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135 if test "${ac_cv_path_PDFROFF+set}" = set; then
7136   echo $ECHO_N "(cached) $ECHO_C" >&6
7137 else
7138   case $PDFROFF in
7139   [\\/]* | ?:[\\/]*)
7140   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7141   ;;
7142   *)
7143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146   IFS=$as_save_IFS
7147   test -z "$as_dir" && as_dir=.
7148   for ac_exec_ext in '' $ac_executable_extensions; do
7149   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152     break 2
7153   fi
7154 done
7155 done
7156 IFS=$as_save_IFS
7157
7158   ;;
7159 esac
7160 fi
7161 PDFROFF=$ac_cv_path_PDFROFF
7162 if test -n "$PDFROFF"; then
7163   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7164 echo "${ECHO_T}$PDFROFF" >&6; }
7165 else
7166   { echo "$as_me:$LINENO: result: no" >&5
7167 echo "${ECHO_T}no" >&6; }
7168 fi
7169
7170
7171 # Extract the first word of "zip", so it can be a program name with args.
7172 set dummy zip; ac_word=$2
7173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7175 if test "${ac_cv_path_ZIP+set}" = set; then
7176   echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178   case $ZIP in
7179   [\\/]* | ?:[\\/]*)
7180   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7181   ;;
7182   *)
7183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186   IFS=$as_save_IFS
7187   test -z "$as_dir" && as_dir=.
7188   for ac_exec_ext in '' $ac_executable_extensions; do
7189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7190     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192     break 2
7193   fi
7194 done
7195 done
7196 IFS=$as_save_IFS
7197
7198   ;;
7199 esac
7200 fi
7201 ZIP=$ac_cv_path_ZIP
7202 if test -n "$ZIP"; then
7203   { echo "$as_me:$LINENO: result: $ZIP" >&5
7204 echo "${ECHO_T}$ZIP" >&6; }
7205 else
7206   { echo "$as_me:$LINENO: result: no" >&5
7207 echo "${ECHO_T}no" >&6; }
7208 fi
7209
7210
7211 # Extract the first word of "go", so it can be a program name with args.
7212 set dummy go; ac_word=$2
7213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7215 if test "${ac_cv_path_GO+set}" = set; then
7216   echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218   case $GO in
7219   [\\/]* | ?:[\\/]*)
7220   ac_cv_path_GO="$GO" # Let the user override the test with a path.
7221   ;;
7222   *)
7223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   test -z "$as_dir" && as_dir=.
7228   for ac_exec_ext in '' $ac_executable_extensions; do
7229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7230     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232     break 2
7233   fi
7234 done
7235 done
7236 IFS=$as_save_IFS
7237
7238   ;;
7239 esac
7240 fi
7241 GO=$ac_cv_path_GO
7242 if test -n "$GO"; then
7243   { echo "$as_me:$LINENO: result: $GO" >&5
7244 echo "${ECHO_T}$GO" >&6; }
7245 else
7246   { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7248 fi
7249
7250
7251 for ac_prog in ocamlfind
7252 do
7253   # Extract the first word of "$ac_prog", so it can be a program name with args.
7254 set dummy $ac_prog; ac_word=$2
7255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7257 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7258   echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260   case $OCAMLFIND in
7261   [\\/]* | ?:[\\/]*)
7262   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7263   ;;
7264   *)
7265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268   IFS=$as_save_IFS
7269   test -z "$as_dir" && as_dir=.
7270   for ac_exec_ext in '' $ac_executable_extensions; do
7271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7272     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7274     break 2
7275   fi
7276 done
7277 done
7278 IFS=$as_save_IFS
7279
7280   ;;
7281 esac
7282 fi
7283 OCAMLFIND=$ac_cv_path_OCAMLFIND
7284 if test -n "$OCAMLFIND"; then
7285   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7286 echo "${ECHO_T}$OCAMLFIND" >&6; }
7287 else
7288   { echo "$as_me:$LINENO: result: no" >&5
7289 echo "${ECHO_T}no" >&6; }
7290 fi
7291
7292
7293   test -n "$OCAMLFIND" && break
7294 done
7295
7296 for ac_prog in gas as
7297 do
7298   # Extract the first word of "$ac_prog", so it can be a program name with args.
7299 set dummy $ac_prog; ac_word=$2
7300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7302 if test "${ac_cv_path_GAS+set}" = set; then
7303   echo $ECHO_N "(cached) $ECHO_C" >&6
7304 else
7305   case $GAS in
7306   [\\/]* | ?:[\\/]*)
7307   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7308   ;;
7309   *)
7310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7312 do
7313   IFS=$as_save_IFS
7314   test -z "$as_dir" && as_dir=.
7315   for ac_exec_ext in '' $ac_executable_extensions; do
7316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7317     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319     break 2
7320   fi
7321 done
7322 done
7323 IFS=$as_save_IFS
7324
7325   ;;
7326 esac
7327 fi
7328 GAS=$ac_cv_path_GAS
7329 if test -n "$GAS"; then
7330   { echo "$as_me:$LINENO: result: $GAS" >&5
7331 echo "${ECHO_T}$GAS" >&6; }
7332 else
7333   { echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6; }
7335 fi
7336
7337
7338   test -n "$GAS" && break
7339 done
7340
7341
7342 { echo "$as_me:$LINENO: checking for linker version" >&5
7343 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7344 if test "${llvm_cv_link_version+set}" = set; then
7345   echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347
7348    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7349
7350    # Check for ld64.
7351    if (echo "$version_string" | grep -q "ld64"); then
7352      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7353    else
7354      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7355    fi
7356
7357 fi
7358 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7359 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7360
7361 cat >>confdefs.h <<_ACEOF
7362 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7363 _ACEOF
7364
7365
7366
7367
7368 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7369 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7370 if test "${llvm_cv_link_use_r+set}" = set; then
7371   echo $ECHO_N "(cached) $ECHO_C" >&6
7372 else
7373    ac_ext=c
7374 ac_cpp='$CPP $CPPFLAGS'
7375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7378
7379   oldcflags="$CFLAGS"
7380   CFLAGS="$CFLAGS -Wl,-R."
7381   cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h.  */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h.  */
7387
7388 int
7389 main ()
7390 {
7391
7392   ;
7393   return 0;
7394 }
7395 _ACEOF
7396 rm -f conftest.$ac_objext conftest$ac_exeext
7397 if { (ac_try="$ac_link"
7398 case "(($ac_try" in
7399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400   *) ac_try_echo=$ac_try;;
7401 esac
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403   (eval "$ac_link") 2>conftest.er1
7404   ac_status=$?
7405   grep -v '^ *+' conftest.er1 >conftest.err
7406   rm -f conftest.er1
7407   cat conftest.err >&5
7408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409   (exit $ac_status); } &&
7410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7411   { (case "(($ac_try" in
7412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413   *) ac_try_echo=$ac_try;;
7414 esac
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416   (eval "$ac_try") 2>&5
7417   ac_status=$?
7418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419   (exit $ac_status); }; } &&
7420          { ac_try='test -s conftest$ac_exeext'
7421   { (case "(($ac_try" in
7422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423   *) ac_try_echo=$ac_try;;
7424 esac
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426   (eval "$ac_try") 2>&5
7427   ac_status=$?
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); }; }; then
7430   llvm_cv_link_use_r=yes
7431 else
7432   echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7434
7435         llvm_cv_link_use_r=no
7436 fi
7437
7438 rm -f core conftest.err conftest.$ac_objext \
7439       conftest$ac_exeext conftest.$ac_ext
7440   CFLAGS="$oldcflags"
7441   ac_ext=c
7442 ac_cpp='$CPP $CPPFLAGS'
7443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7446
7447
7448 fi
7449 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7450 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7451 if test "$llvm_cv_link_use_r" = yes ; then
7452
7453 cat >>confdefs.h <<\_ACEOF
7454 #define HAVE_LINK_R 1
7455 _ACEOF
7456
7457   fi
7458
7459
7460 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7461 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7462 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7463   echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465    ac_ext=c
7466 ac_cpp='$CPP $CPPFLAGS'
7467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7470
7471   oldcflags="$CFLAGS"
7472   CFLAGS="$CFLAGS -rdynamic"
7473   cat >conftest.$ac_ext <<_ACEOF
7474 /* confdefs.h.  */
7475 _ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h.  */
7479
7480 int
7481 main ()
7482 {
7483
7484   ;
7485   return 0;
7486 }
7487 _ACEOF
7488 rm -f conftest.$ac_objext conftest$ac_exeext
7489 if { (ac_try="$ac_link"
7490 case "(($ac_try" in
7491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492   *) ac_try_echo=$ac_try;;
7493 esac
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495   (eval "$ac_link") 2>conftest.er1
7496   ac_status=$?
7497   grep -v '^ *+' conftest.er1 >conftest.err
7498   rm -f conftest.er1
7499   cat conftest.err >&5
7500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501   (exit $ac_status); } &&
7502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7503   { (case "(($ac_try" in
7504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505   *) ac_try_echo=$ac_try;;
7506 esac
7507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508   (eval "$ac_try") 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); }; } &&
7512          { ac_try='test -s conftest$ac_exeext'
7513   { (case "(($ac_try" in
7514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515   *) ac_try_echo=$ac_try;;
7516 esac
7517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518   (eval "$ac_try") 2>&5
7519   ac_status=$?
7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521   (exit $ac_status); }; }; then
7522   llvm_cv_link_use_export_dynamic=yes
7523 else
7524   echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7526
7527         llvm_cv_link_use_export_dynamic=no
7528 fi
7529
7530 rm -f core conftest.err conftest.$ac_objext \
7531       conftest$ac_exeext conftest.$ac_ext
7532   CFLAGS="$oldcflags"
7533   ac_ext=c
7534 ac_cpp='$CPP $CPPFLAGS'
7535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7538
7539
7540 fi
7541 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7542 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7543 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7544
7545 cat >>confdefs.h <<\_ACEOF
7546 #define HAVE_LINK_EXPORT_DYNAMIC 1
7547 _ACEOF
7548
7549   fi
7550
7551
7552 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7553 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7554 if test "${llvm_cv_link_use_version_script+set}" = set; then
7555   echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7557    ac_ext=c
7558 ac_cpp='$CPP $CPPFLAGS'
7559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7562
7563   oldcflags="$CFLAGS"
7564
7565   # The following code is from the autoconf manual,
7566   # "11.13: Limitations of Usual Tools".
7567   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7568   # Use mktemp if possible; otherwise fall back on mkdir,
7569   # with $RANDOM to make collisions less likely.
7570   : ${TMPDIR=/tmp}
7571   {
7572     tmp=`
7573       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7574     ` &&
7575     test -n "$tmp" && test -d "$tmp"
7576   } || {
7577     tmp=$TMPDIR/foo$$-$RANDOM
7578     (umask 077 && mkdir "$tmp")
7579   } || exit $?
7580
7581   echo "{" > "$tmp/export.map"
7582   echo "  global: main;" >> "$tmp/export.map"
7583   echo "  local: *;" >> "$tmp/export.map"
7584   echo "};" >> "$tmp/export.map"
7585
7586   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7587   cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h.  */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h.  */
7593
7594 int
7595 main ()
7596 {
7597
7598   ;
7599   return 0;
7600 }
7601 _ACEOF
7602 rm -f conftest.$ac_objext conftest$ac_exeext
7603 if { (ac_try="$ac_link"
7604 case "(($ac_try" in
7605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7606   *) ac_try_echo=$ac_try;;
7607 esac
7608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7609   (eval "$ac_link") 2>conftest.er1
7610   ac_status=$?
7611   grep -v '^ *+' conftest.er1 >conftest.err
7612   rm -f conftest.er1
7613   cat conftest.err >&5
7614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615   (exit $ac_status); } &&
7616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7617   { (case "(($ac_try" in
7618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619   *) ac_try_echo=$ac_try;;
7620 esac
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622   (eval "$ac_try") 2>&5
7623   ac_status=$?
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); }; } &&
7626          { ac_try='test -s conftest$ac_exeext'
7627   { (case "(($ac_try" in
7628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629   *) ac_try_echo=$ac_try;;
7630 esac
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632   (eval "$ac_try") 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); }; }; then
7636   llvm_cv_link_use_version_script=yes
7637 else
7638   echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7640
7641         llvm_cv_link_use_version_script=no
7642 fi
7643
7644 rm -f core conftest.err conftest.$ac_objext \
7645       conftest$ac_exeext conftest.$ac_ext
7646   rm "$tmp/export.map"
7647   rmdir "$tmp"
7648   CFLAGS="$oldcflags"
7649   ac_ext=c
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654
7655
7656 fi
7657 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7658 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7659 if test "$llvm_cv_link_use_version_script" = yes ; then
7660   HAVE_LINK_VERSION_SCRIPT=1
7661
7662   fi
7663
7664
7665
7666 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7667 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_GREP+set}" = set; then
7669   echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671   # Extract the first word of "grep ggrep" to use in msg output
7672 if test -z "$GREP"; then
7673 set dummy grep ggrep; ac_prog_name=$2
7674 if test "${ac_cv_path_GREP+set}" = set; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   ac_path_GREP_found=false
7678 # Loop through the user's path and test for each of PROGNAME-LIST
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684   for ac_prog in grep ggrep; do
7685   for ac_exec_ext in '' $ac_executable_extensions; do
7686     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7687     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7688     # Check for GNU ac_path_GREP and select it if it is found.
7689   # Check for GNU $ac_path_GREP
7690 case `"$ac_path_GREP" --version 2>&1` in
7691 *GNU*)
7692   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7693 *)
7694   ac_count=0
7695   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7696   while :
7697   do
7698     cat "conftest.in" "conftest.in" >"conftest.tmp"
7699     mv "conftest.tmp" "conftest.in"
7700     cp "conftest.in" "conftest.nl"
7701     echo 'GREP' >> "conftest.nl"
7702     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7703     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7704     ac_count=`expr $ac_count + 1`
7705     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7706       # Best one so far, save it but keep looking for a better one
7707       ac_cv_path_GREP="$ac_path_GREP"
7708       ac_path_GREP_max=$ac_count
7709     fi
7710     # 10*(2^10) chars as input seems more than enough
7711     test $ac_count -gt 10 && break
7712   done
7713   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7714 esac
7715
7716
7717     $ac_path_GREP_found && break 3
7718   done
7719 done
7720
7721 done
7722 IFS=$as_save_IFS
7723
7724
7725 fi
7726
7727 GREP="$ac_cv_path_GREP"
7728 if test -z "$GREP"; then
7729   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7730 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7731    { (exit 1); exit 1; }; }
7732 fi
7733
7734 else
7735   ac_cv_path_GREP=$GREP
7736 fi
7737
7738
7739 fi
7740 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7741 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7742  GREP="$ac_cv_path_GREP"
7743
7744
7745 { echo "$as_me:$LINENO: checking for egrep" >&5
7746 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7747 if test "${ac_cv_path_EGREP+set}" = set; then
7748   echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7751    then ac_cv_path_EGREP="$GREP -E"
7752    else
7753      # Extract the first word of "egrep" to use in msg output
7754 if test -z "$EGREP"; then
7755 set dummy egrep; ac_prog_name=$2
7756 if test "${ac_cv_path_EGREP+set}" = set; then
7757   echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759   ac_path_EGREP_found=false
7760 # Loop through the user's path and test for each of PROGNAME-LIST
7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7763 do
7764   IFS=$as_save_IFS
7765   test -z "$as_dir" && as_dir=.
7766   for ac_prog in egrep; do
7767   for ac_exec_ext in '' $ac_executable_extensions; do
7768     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7769     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7770     # Check for GNU ac_path_EGREP and select it if it is found.
7771   # Check for GNU $ac_path_EGREP
7772 case `"$ac_path_EGREP" --version 2>&1` in
7773 *GNU*)
7774   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7775 *)
7776   ac_count=0
7777   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7778   while :
7779   do
7780     cat "conftest.in" "conftest.in" >"conftest.tmp"
7781     mv "conftest.tmp" "conftest.in"
7782     cp "conftest.in" "conftest.nl"
7783     echo 'EGREP' >> "conftest.nl"
7784     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7785     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7786     ac_count=`expr $ac_count + 1`
7787     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7788       # Best one so far, save it but keep looking for a better one
7789       ac_cv_path_EGREP="$ac_path_EGREP"
7790       ac_path_EGREP_max=$ac_count
7791     fi
7792     # 10*(2^10) chars as input seems more than enough
7793     test $ac_count -gt 10 && break
7794   done
7795   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7796 esac
7797
7798
7799     $ac_path_EGREP_found && break 3
7800   done
7801 done
7802
7803 done
7804 IFS=$as_save_IFS
7805
7806
7807 fi
7808
7809 EGREP="$ac_cv_path_EGREP"
7810 if test -z "$EGREP"; then
7811   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7812 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7813    { (exit 1); exit 1; }; }
7814 fi
7815
7816 else
7817   ac_cv_path_EGREP=$EGREP
7818 fi
7819
7820
7821    fi
7822 fi
7823 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7824 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7825  EGREP="$ac_cv_path_EGREP"
7826
7827
7828 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7830 if test "${ac_cv_header_stdc+set}" = set; then
7831   echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833   cat >conftest.$ac_ext <<_ACEOF
7834 /* confdefs.h.  */
7835 _ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h.  */
7839 #include <stdlib.h>
7840 #include <stdarg.h>
7841 #include <string.h>
7842 #include <float.h>
7843
7844 int
7845 main ()
7846 {
7847
7848   ;
7849   return 0;
7850 }
7851 _ACEOF
7852 rm -f conftest.$ac_objext
7853 if { (ac_try="$ac_compile"
7854 case "(($ac_try" in
7855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856   *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859   (eval "$ac_compile") 2>conftest.er1
7860   ac_status=$?
7861   grep -v '^ *+' conftest.er1 >conftest.err
7862   rm -f conftest.er1
7863   cat conftest.err >&5
7864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865   (exit $ac_status); } &&
7866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7867   { (case "(($ac_try" in
7868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869   *) ac_try_echo=$ac_try;;
7870 esac
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872   (eval "$ac_try") 2>&5
7873   ac_status=$?
7874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875   (exit $ac_status); }; } &&
7876          { ac_try='test -s conftest.$ac_objext'
7877   { (case "(($ac_try" in
7878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879   *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882   (eval "$ac_try") 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }; }; then
7886   ac_cv_header_stdc=yes
7887 else
7888   echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7890
7891         ac_cv_header_stdc=no
7892 fi
7893
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895
7896 if test $ac_cv_header_stdc = yes; then
7897   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7898   cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h.  */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h.  */
7904 #include <string.h>
7905
7906 _ACEOF
7907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7908   $EGREP "memchr" >/dev/null 2>&1; then
7909   :
7910 else
7911   ac_cv_header_stdc=no
7912 fi
7913 rm -f conftest*
7914
7915 fi
7916
7917 if test $ac_cv_header_stdc = yes; then
7918   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7919   cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h.  */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h.  */
7925 #include <stdlib.h>
7926
7927 _ACEOF
7928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7929   $EGREP "free" >/dev/null 2>&1; then
7930   :
7931 else
7932   ac_cv_header_stdc=no
7933 fi
7934 rm -f conftest*
7935
7936 fi
7937
7938 if test $ac_cv_header_stdc = yes; then
7939   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7940   if test "$cross_compiling" = yes; then
7941   :
7942 else
7943   cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h.  */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h.  */
7949 #include <ctype.h>
7950 #include <stdlib.h>
7951 #if ((' ' & 0x0FF) == 0x020)
7952 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7953 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7954 #else
7955 # define ISLOWER(c) \
7956                    (('a' <= (c) && (c) <= 'i') \
7957                      || ('j' <= (c) && (c) <= 'r') \
7958                      || ('s' <= (c) && (c) <= 'z'))
7959 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7960 #endif
7961
7962 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7963 int
7964 main ()
7965 {
7966   int i;
7967   for (i = 0; i < 256; i++)
7968     if (XOR (islower (i), ISLOWER (i))
7969         || toupper (i) != TOUPPER (i))
7970       return 2;
7971   return 0;
7972 }
7973 _ACEOF
7974 rm -f conftest$ac_exeext
7975 if { (ac_try="$ac_link"
7976 case "(($ac_try" in
7977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978   *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981   (eval "$ac_link") 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7985   { (case "(($ac_try" in
7986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987   *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990   (eval "$ac_try") 2>&5
7991   ac_status=$?
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); }; }; then
7994   :
7995 else
7996   echo "$as_me: program exited with status $ac_status" >&5
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000 ( exit $ac_status )
8001 ac_cv_header_stdc=no
8002 fi
8003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8004 fi
8005
8006
8007 fi
8008 fi
8009 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8010 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8011 if test $ac_cv_header_stdc = yes; then
8012
8013 cat >>confdefs.h <<\_ACEOF
8014 #define STDC_HEADERS 1
8015 _ACEOF
8016
8017 fi
8018
8019 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8030                   inttypes.h stdint.h unistd.h
8031 do
8032 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8036   echo $ECHO_N "(cached) $ECHO_C" >&6
8037 else
8038   cat >conftest.$ac_ext <<_ACEOF
8039 /* confdefs.h.  */
8040 _ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h.  */
8044 $ac_includes_default
8045
8046 #include <$ac_header>
8047 _ACEOF
8048 rm -f conftest.$ac_objext
8049 if { (ac_try="$ac_compile"
8050 case "(($ac_try" in
8051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052   *) ac_try_echo=$ac_try;;
8053 esac
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055   (eval "$ac_compile") 2>conftest.er1
8056   ac_status=$?
8057   grep -v '^ *+' conftest.er1 >conftest.err
8058   rm -f conftest.er1
8059   cat conftest.err >&5
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); } &&
8062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8063   { (case "(($ac_try" in
8064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065   *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068   (eval "$ac_try") 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; } &&
8072          { ac_try='test -s conftest.$ac_objext'
8073   { (case "(($ac_try" in
8074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075   *) ac_try_echo=$ac_try;;
8076 esac
8077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078   (eval "$ac_try") 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); }; }; then
8082   eval "$as_ac_Header=yes"
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087         eval "$as_ac_Header=no"
8088 fi
8089
8090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8091 fi
8092 ac_res=`eval echo '${'$as_ac_Header'}'`
8093                { echo "$as_me:$LINENO: result: $ac_res" >&5
8094 echo "${ECHO_T}$ac_res" >&6; }
8095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8096   cat >>confdefs.h <<_ACEOF
8097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8098 _ACEOF
8099
8100 fi
8101
8102 done
8103
8104
8105
8106 for ac_header in errno.h
8107 do
8108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8110   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8113   echo $ECHO_N "(cached) $ECHO_C" >&6
8114 fi
8115 ac_res=`eval echo '${'$as_ac_Header'}'`
8116                { echo "$as_me:$LINENO: result: $ac_res" >&5
8117 echo "${ECHO_T}$ac_res" >&6; }
8118 else
8119   # Is the header compilable?
8120 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8121 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h.  */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h.  */
8128 $ac_includes_default
8129 #include <$ac_header>
8130 _ACEOF
8131 rm -f conftest.$ac_objext
8132 if { (ac_try="$ac_compile"
8133 case "(($ac_try" in
8134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135   *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138   (eval "$ac_compile") 2>conftest.er1
8139   ac_status=$?
8140   grep -v '^ *+' conftest.er1 >conftest.err
8141   rm -f conftest.er1
8142   cat conftest.err >&5
8143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144   (exit $ac_status); } &&
8145          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8155          { ac_try='test -s conftest.$ac_objext'
8156   { (case "(($ac_try" in
8157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158   *) ac_try_echo=$ac_try;;
8159 esac
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161   (eval "$ac_try") 2>&5
8162   ac_status=$?
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); }; }; then
8165   ac_header_compiler=yes
8166 else
8167   echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8169
8170         ac_header_compiler=no
8171 fi
8172
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8175 echo "${ECHO_T}$ac_header_compiler" >&6; }
8176
8177 # Is the header present?
8178 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8179 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8180 cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h.  */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h.  */
8186 #include <$ac_header>
8187 _ACEOF
8188 if { (ac_try="$ac_cpp conftest.$ac_ext"
8189 case "(($ac_try" in
8190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191   *) ac_try_echo=$ac_try;;
8192 esac
8193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8195   ac_status=$?
8196   grep -v '^ *+' conftest.er1 >conftest.err
8197   rm -f conftest.er1
8198   cat conftest.err >&5
8199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200   (exit $ac_status); } >/dev/null; then
8201   if test -s conftest.err; then
8202     ac_cpp_err=$ac_c_preproc_warn_flag
8203     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8204   else
8205     ac_cpp_err=
8206   fi
8207 else
8208   ac_cpp_err=yes
8209 fi
8210 if test -z "$ac_cpp_err"; then
8211   ac_header_preproc=yes
8212 else
8213   echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216   ac_header_preproc=no
8217 fi
8218
8219 rm -f conftest.err conftest.$ac_ext
8220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8221 echo "${ECHO_T}$ac_header_preproc" >&6; }
8222
8223 # So?  What about this header?
8224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8225   yes:no: )
8226     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8227 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8228     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8229 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8230     ac_header_preproc=yes
8231     ;;
8232   no:yes:* )
8233     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8234 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8235     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8236 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8237     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8238 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8239     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8240 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8241     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8242 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8243     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8244 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8245     ( cat <<\_ASBOX
8246 ## ------------------------------------ ##
8247 ## Report this to http://llvm.org/bugs/ ##
8248 ## ------------------------------------ ##
8249 _ASBOX
8250      ) | sed "s/^/$as_me: WARNING:     /" >&2
8251     ;;
8252 esac
8253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8256   echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258   eval "$as_ac_Header=\$ac_header_preproc"
8259 fi
8260 ac_res=`eval echo '${'$as_ac_Header'}'`
8261                { echo "$as_me:$LINENO: result: $ac_res" >&5
8262 echo "${ECHO_T}$ac_res" >&6; }
8263
8264 fi
8265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8266   cat >>confdefs.h <<_ACEOF
8267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8268 _ACEOF
8269
8270 fi
8271
8272 done
8273
8274
8275 case "$llvm_cv_os_type" in
8276   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8277   Darwin) llvm_shlib_ext=.dylib ;;
8278   *) llvm_shlib_ext=.so ;;
8279 esac
8280
8281
8282 cat >>confdefs.h <<_ACEOF
8283 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8284 _ACEOF
8285
8286
8287 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8288 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8289
8290 ICC=no
8291 IXX=no
8292 case $CC in
8293   icc*|icpc*)
8294     ICC=yes
8295     IXX=yes
8296     ;;
8297    *)
8298     ;;
8299 esac
8300
8301 if test "$GCC" != "yes" && test "$ICC" != "yes"
8302 then
8303   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8304 echo "$as_me: error: gcc|icc required but not found" >&2;}
8305    { (exit 1); exit 1; }; }
8306 fi
8307
8308 if test "$GXX" != "yes" && test "$IXX" != "yes"
8309 then
8310   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8311 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8312    { (exit 1); exit 1; }; }
8313 fi
8314
8315 if test "$GCC" = "yes"
8316 then
8317   cat >conftest.$ac_ext <<_ACEOF
8318
8319   /* confdefs.h.  */
8320 _ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h.  */
8324
8325     #if !defined(__GNUC__) || __GNUC__ < 3
8326     #error Unsupported GCC version
8327     #endif
8328
8329
8330 _ACEOF
8331 rm -f conftest.$ac_objext
8332 if { (ac_try="$ac_compile"
8333 case "(($ac_try" in
8334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335   *) ac_try_echo=$ac_try;;
8336 esac
8337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8338   (eval "$ac_compile") 2>conftest.er1
8339   ac_status=$?
8340   grep -v '^ *+' conftest.er1 >conftest.err
8341   rm -f conftest.er1
8342   cat conftest.err >&5
8343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344   (exit $ac_status); } &&
8345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8346   { (case "(($ac_try" in
8347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8348   *) ac_try_echo=$ac_try;;
8349 esac
8350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8351   (eval "$ac_try") 2>&5
8352   ac_status=$?
8353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8354   (exit $ac_status); }; } &&
8355          { ac_try='test -s conftest.$ac_objext'
8356   { (case "(($ac_try" in
8357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8358   *) ac_try_echo=$ac_try;;
8359 esac
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361   (eval "$ac_try") 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; }; then
8365   :
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8371 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8372    { (exit 1); exit 1; }; }
8373 fi
8374
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 fi
8377
8378 if test -z "$llvm_cv_gnu_make_command"
8379 then
8380   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8381 echo "$as_me: error: GNU Make required but not found" >&2;}
8382    { (exit 1); exit 1; }; }
8383 fi
8384
8385 { echo "$as_me:$LINENO: result: ok" >&5
8386 echo "${ECHO_T}ok" >&6; }
8387
8388 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8389 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8390 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8391
8392 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8393
8394 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8395
8396
8397 NO_UNINITIALIZED=
8398 NO_MAYBE_UNINITIALIZED=
8399 if test "$GXX" = "yes"
8400 then
8401   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8402
8403         if test -z "$NO_MAYBE_UNINITIALIZED"
8404   then
8405     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8406
8407   fi
8408 fi
8409
8410 no_comment=
8411 llvm_cv_old_cxxflags="$CXXFLAGS"
8412 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8413 cat >conftest.$ac_ext <<_ACEOF
8414
8415   /* confdefs.h.  */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h.  */
8420 // Comment \o\
8421 // Another comment
8422 int main() { return 0; }
8423
8424
8425 _ACEOF
8426 rm -f conftest.$ac_objext
8427 if { (ac_try="$ac_compile"
8428 case "(($ac_try" in
8429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430   *) ac_try_echo=$ac_try;;
8431 esac
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433   (eval "$ac_compile") 2>conftest.er1
8434   ac_status=$?
8435   grep -v '^ *+' conftest.er1 >conftest.err
8436   rm -f conftest.er1
8437   cat conftest.err >&5
8438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439   (exit $ac_status); } &&
8440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8441   { (case "(($ac_try" in
8442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443   *) ac_try_echo=$ac_try;;
8444 esac
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446   (eval "$ac_try") 2>&5
8447   ac_status=$?
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); }; } &&
8450          { ac_try='test -s conftest.$ac_objext'
8451   { (case "(($ac_try" in
8452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453   *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456   (eval "$ac_try") 2>&5
8457   ac_status=$?
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); }; }; then
8460
8461   no_comment=-Wno-comment
8462
8463 else
8464   echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8466
8467
8468 fi
8469
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471 NO_COMMENT=$no_comment
8472
8473 CXXFLAGS="$llvm_cv_old_cxxflags"
8474
8475 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8476 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8477
8478
8479 # Check whether --with-python was given.
8480 if test "${with_python+set}" = set; then
8481   withval=$with_python; PYTHON="$withval"
8482 fi
8483
8484
8485 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8486   { echo "$as_me:$LINENO: checking for python" >&5
8487 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8488   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8489 echo "${ECHO_T}user defined: $with_python" >&6; }
8490 else
8491   if test -n "$PYTHON" ; then
8492     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8493 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8494   fi
8495
8496   # Extract the first word of "python python2 python27", so it can be a program name with args.
8497 set dummy python python2 python27; ac_word=$2
8498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8500 if test "${ac_cv_path_PYTHON+set}" = set; then
8501   echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503   case $PYTHON in
8504   [\\/]* | ?:[\\/]*)
8505   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8506   ;;
8507   *)
8508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8510 do
8511   IFS=$as_save_IFS
8512   test -z "$as_dir" && as_dir=.
8513   for ac_exec_ext in '' $ac_executable_extensions; do
8514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8515     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8517     break 2
8518   fi
8519 done
8520 done
8521 IFS=$as_save_IFS
8522
8523   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8524 echo "${ECHO_T}not found" >&6; }
8525                 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8526 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8527    { (exit 1); exit 1; }; }"
8528   ;;
8529 esac
8530 fi
8531 PYTHON=$ac_cv_path_PYTHON
8532 if test -n "$PYTHON"; then
8533   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8534 echo "${ECHO_T}$PYTHON" >&6; }
8535 else
8536   { echo "$as_me:$LINENO: result: no" >&5
8537 echo "${ECHO_T}no" >&6; }
8538 fi
8539
8540
8541 fi
8542
8543 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8544 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8545 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8546 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8547 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8548 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8549 if test "$ac_python_version_major" -gt "2" || \
8550    (test "$ac_python_version_major" -eq "2" && \
8551     test "$ac_python_version_minor" -ge "7") ; then
8552   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8553 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8554 else
8555   { echo "$as_me:$LINENO: result: not found" >&5
8556 echo "${ECHO_T}not found" >&6; }
8557   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8558 See \`config.log' for more details." >&5
8559 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8560 See \`config.log' for more details." >&2;}
8561    { (exit 1); exit 1; }; }
8562 fi
8563
8564
8565
8566 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8567 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8568 if test "${ac_cv_lib_m_sin+set}" = set; then
8569   echo $ECHO_N "(cached) $ECHO_C" >&6
8570 else
8571   ac_check_lib_save_LIBS=$LIBS
8572 LIBS="-lm  $LIBS"
8573 cat >conftest.$ac_ext <<_ACEOF
8574 /* confdefs.h.  */
8575 _ACEOF
8576 cat confdefs.h >>conftest.$ac_ext
8577 cat >>conftest.$ac_ext <<_ACEOF
8578 /* end confdefs.h.  */
8579
8580 /* Override any GCC internal prototype to avoid an error.
8581    Use char because int might match the return type of a GCC
8582    builtin and then its argument prototype would still apply.  */
8583 #ifdef __cplusplus
8584 extern "C"
8585 #endif
8586 char sin ();
8587 int
8588 main ()
8589 {
8590 return sin ();
8591   ;
8592   return 0;
8593 }
8594 _ACEOF
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (ac_try="$ac_link"
8597 case "(($ac_try" in
8598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599   *) ac_try_echo=$ac_try;;
8600 esac
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602   (eval "$ac_link") 2>conftest.er1
8603   ac_status=$?
8604   grep -v '^ *+' conftest.er1 >conftest.err
8605   rm -f conftest.er1
8606   cat conftest.err >&5
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } &&
8609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8610   { (case "(($ac_try" in
8611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612   *) ac_try_echo=$ac_try;;
8613 esac
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615   (eval "$ac_try") 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; } &&
8619          { ac_try='test -s conftest$ac_exeext'
8620   { (case "(($ac_try" in
8621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622   *) ac_try_echo=$ac_try;;
8623 esac
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625   (eval "$ac_try") 2>&5
8626   ac_status=$?
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); }; }; then
8629   ac_cv_lib_m_sin=yes
8630 else
8631   echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8633
8634         ac_cv_lib_m_sin=no
8635 fi
8636
8637 rm -f core conftest.err conftest.$ac_objext \
8638       conftest$ac_exeext conftest.$ac_ext
8639 LIBS=$ac_check_lib_save_LIBS
8640 fi
8641 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8642 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8643 if test $ac_cv_lib_m_sin = yes; then
8644   cat >>confdefs.h <<_ACEOF
8645 #define HAVE_LIBM 1
8646 _ACEOF
8647
8648   LIBS="-lm $LIBS"
8649
8650 fi
8651
8652 if test "$llvm_cv_os_type" = "MingW" ; then
8653
8654 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8655 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8656 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659   ac_check_lib_save_LIBS=$LIBS
8660 LIBS="-limagehlp  $LIBS"
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h.  */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h.  */
8667
8668
8669 int
8670 main ()
8671 {
8672 return main ();
8673   ;
8674   return 0;
8675 }
8676 _ACEOF
8677 rm -f conftest.$ac_objext conftest$ac_exeext
8678 if { (ac_try="$ac_link"
8679 case "(($ac_try" in
8680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8681   *) ac_try_echo=$ac_try;;
8682 esac
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684   (eval "$ac_link") 2>conftest.er1
8685   ac_status=$?
8686   grep -v '^ *+' conftest.er1 >conftest.err
8687   rm -f conftest.er1
8688   cat conftest.err >&5
8689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690   (exit $ac_status); } &&
8691          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8692   { (case "(($ac_try" in
8693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8694   *) ac_try_echo=$ac_try;;
8695 esac
8696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8697   (eval "$ac_try") 2>&5
8698   ac_status=$?
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); }; } &&
8701          { ac_try='test -s conftest$ac_exeext'
8702   { (case "(($ac_try" in
8703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704   *) ac_try_echo=$ac_try;;
8705 esac
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707   (eval "$ac_try") 2>&5
8708   ac_status=$?
8709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710   (exit $ac_status); }; }; then
8711   ac_cv_lib_imagehlp_main=yes
8712 else
8713   echo "$as_me: failed program was:" >&5
8714 sed 's/^/| /' conftest.$ac_ext >&5
8715
8716         ac_cv_lib_imagehlp_main=no
8717 fi
8718
8719 rm -f core conftest.err conftest.$ac_objext \
8720       conftest$ac_exeext conftest.$ac_ext
8721 LIBS=$ac_check_lib_save_LIBS
8722 fi
8723 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8724 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8725 if test $ac_cv_lib_imagehlp_main = yes; then
8726   cat >>confdefs.h <<_ACEOF
8727 #define HAVE_LIBIMAGEHLP 1
8728 _ACEOF
8729
8730   LIBS="-limagehlp $LIBS"
8731
8732 fi
8733
8734
8735 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8736 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8737 if test "${ac_cv_lib_psapi_main+set}" = set; then
8738   echo $ECHO_N "(cached) $ECHO_C" >&6
8739 else
8740   ac_check_lib_save_LIBS=$LIBS
8741 LIBS="-lpsapi  $LIBS"
8742 cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h.  */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h.  */
8748
8749
8750 int
8751 main ()
8752 {
8753 return main ();
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (ac_try="$ac_link"
8760 case "(($ac_try" in
8761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762   *) ac_try_echo=$ac_try;;
8763 esac
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765   (eval "$ac_link") 2>conftest.er1
8766   ac_status=$?
8767   grep -v '^ *+' conftest.er1 >conftest.err
8768   rm -f conftest.er1
8769   cat conftest.err >&5
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); } &&
8772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8773   { (case "(($ac_try" in
8774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775   *) ac_try_echo=$ac_try;;
8776 esac
8777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778   (eval "$ac_try") 2>&5
8779   ac_status=$?
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); }; } &&
8782          { ac_try='test -s conftest$ac_exeext'
8783   { (case "(($ac_try" in
8784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785   *) ac_try_echo=$ac_try;;
8786 esac
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788   (eval "$ac_try") 2>&5
8789   ac_status=$?
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); }; }; then
8792   ac_cv_lib_psapi_main=yes
8793 else
8794   echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8796
8797         ac_cv_lib_psapi_main=no
8798 fi
8799
8800 rm -f core conftest.err conftest.$ac_objext \
8801       conftest$ac_exeext conftest.$ac_ext
8802 LIBS=$ac_check_lib_save_LIBS
8803 fi
8804 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8805 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8806 if test $ac_cv_lib_psapi_main = yes; then
8807   cat >>confdefs.h <<_ACEOF
8808 #define HAVE_LIBPSAPI 1
8809 _ACEOF
8810
8811   LIBS="-lpsapi $LIBS"
8812
8813 fi
8814
8815
8816 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8817 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8818 if test "${ac_cv_lib_shell32_main+set}" = set; then
8819   echo $ECHO_N "(cached) $ECHO_C" >&6
8820 else
8821   ac_check_lib_save_LIBS=$LIBS
8822 LIBS="-lshell32  $LIBS"
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h.  */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h.  */
8829
8830
8831 int
8832 main ()
8833 {
8834 return main ();
8835   ;
8836   return 0;
8837 }
8838 _ACEOF
8839 rm -f conftest.$ac_objext conftest$ac_exeext
8840 if { (ac_try="$ac_link"
8841 case "(($ac_try" in
8842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843   *) ac_try_echo=$ac_try;;
8844 esac
8845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8846   (eval "$ac_link") 2>conftest.er1
8847   ac_status=$?
8848   grep -v '^ *+' conftest.er1 >conftest.err
8849   rm -f conftest.er1
8850   cat conftest.err >&5
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); } &&
8853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8854   { (case "(($ac_try" in
8855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856   *) ac_try_echo=$ac_try;;
8857 esac
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859   (eval "$ac_try") 2>&5
8860   ac_status=$?
8861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862   (exit $ac_status); }; } &&
8863          { ac_try='test -s conftest$ac_exeext'
8864   { (case "(($ac_try" in
8865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866   *) ac_try_echo=$ac_try;;
8867 esac
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869   (eval "$ac_try") 2>&5
8870   ac_status=$?
8871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872   (exit $ac_status); }; }; then
8873   ac_cv_lib_shell32_main=yes
8874 else
8875   echo "$as_me: failed program was:" >&5
8876 sed 's/^/| /' conftest.$ac_ext >&5
8877
8878         ac_cv_lib_shell32_main=no
8879 fi
8880
8881 rm -f core conftest.err conftest.$ac_objext \
8882       conftest$ac_exeext conftest.$ac_ext
8883 LIBS=$ac_check_lib_save_LIBS
8884 fi
8885 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8886 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8887 if test $ac_cv_lib_shell32_main = yes; then
8888   cat >>confdefs.h <<_ACEOF
8889 #define HAVE_LIBSHELL32 1
8890 _ACEOF
8891
8892   LIBS="-lshell32 $LIBS"
8893
8894 fi
8895
8896 fi
8897
8898 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8899 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8900 if test "${ac_cv_search_dlopen+set}" = set; then
8901   echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903   ac_func_search_save_LIBS=$LIBS
8904 cat >conftest.$ac_ext <<_ACEOF
8905 /* confdefs.h.  */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h.  */
8910
8911 /* Override any GCC internal prototype to avoid an error.
8912    Use char because int might match the return type of a GCC
8913    builtin and then its argument prototype would still apply.  */
8914 #ifdef __cplusplus
8915 extern "C"
8916 #endif
8917 char dlopen ();
8918 int
8919 main ()
8920 {
8921 return dlopen ();
8922   ;
8923   return 0;
8924 }
8925 _ACEOF
8926 for ac_lib in '' dl; do
8927   if test -z "$ac_lib"; then
8928     ac_res="none required"
8929   else
8930     ac_res=-l$ac_lib
8931     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8932   fi
8933   rm -f conftest.$ac_objext conftest$ac_exeext
8934 if { (ac_try="$ac_link"
8935 case "(($ac_try" in
8936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937   *) ac_try_echo=$ac_try;;
8938 esac
8939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940   (eval "$ac_link") 2>conftest.er1
8941   ac_status=$?
8942   grep -v '^ *+' conftest.er1 >conftest.err
8943   rm -f conftest.er1
8944   cat conftest.err >&5
8945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946   (exit $ac_status); } &&
8947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8948   { (case "(($ac_try" in
8949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950   *) ac_try_echo=$ac_try;;
8951 esac
8952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953   (eval "$ac_try") 2>&5
8954   ac_status=$?
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); }; } &&
8957          { ac_try='test -s conftest$ac_exeext'
8958   { (case "(($ac_try" in
8959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8960   *) ac_try_echo=$ac_try;;
8961 esac
8962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8963   (eval "$ac_try") 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); }; }; then
8967   ac_cv_search_dlopen=$ac_res
8968 else
8969   echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972
8973 fi
8974
8975 rm -f core conftest.err conftest.$ac_objext \
8976       conftest$ac_exeext
8977   if test "${ac_cv_search_dlopen+set}" = set; then
8978   break
8979 fi
8980 done
8981 if test "${ac_cv_search_dlopen+set}" = set; then
8982   :
8983 else
8984   ac_cv_search_dlopen=no
8985 fi
8986 rm conftest.$ac_ext
8987 LIBS=$ac_func_search_save_LIBS
8988 fi
8989 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8990 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8991 ac_res=$ac_cv_search_dlopen
8992 if test "$ac_res" != no; then
8993   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8994
8995
8996 cat >>confdefs.h <<\_ACEOF
8997 #define HAVE_DLOPEN 1
8998 _ACEOF
8999
9000 HAVE_DLOPEN='1'
9001
9002
9003 else
9004   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9005 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9006 fi
9007
9008
9009 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9010 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9011 if test "${ac_cv_search_clock_gettime+set}" = set; then
9012   echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014   ac_func_search_save_LIBS=$LIBS
9015 cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h.  */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h.  */
9021
9022 /* Override any GCC internal prototype to avoid an error.
9023    Use char because int might match the return type of a GCC
9024    builtin and then its argument prototype would still apply.  */
9025 #ifdef __cplusplus
9026 extern "C"
9027 #endif
9028 char clock_gettime ();
9029 int
9030 main ()
9031 {
9032 return clock_gettime ();
9033   ;
9034   return 0;
9035 }
9036 _ACEOF
9037 for ac_lib in '' rt; do
9038   if test -z "$ac_lib"; then
9039     ac_res="none required"
9040   else
9041     ac_res=-l$ac_lib
9042     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9043   fi
9044   rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (ac_try="$ac_link"
9046 case "(($ac_try" in
9047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048   *) ac_try_echo=$ac_try;;
9049 esac
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051   (eval "$ac_link") 2>conftest.er1
9052   ac_status=$?
9053   grep -v '^ *+' conftest.er1 >conftest.err
9054   rm -f conftest.er1
9055   cat conftest.err >&5
9056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057   (exit $ac_status); } &&
9058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9059   { (case "(($ac_try" in
9060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061   *) ac_try_echo=$ac_try;;
9062 esac
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064   (eval "$ac_try") 2>&5
9065   ac_status=$?
9066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067   (exit $ac_status); }; } &&
9068          { ac_try='test -s conftest$ac_exeext'
9069   { (case "(($ac_try" in
9070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071   *) ac_try_echo=$ac_try;;
9072 esac
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074   (eval "$ac_try") 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; }; then
9078   ac_cv_search_clock_gettime=$ac_res
9079 else
9080   echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9082
9083
9084 fi
9085
9086 rm -f core conftest.err conftest.$ac_objext \
9087       conftest$ac_exeext
9088   if test "${ac_cv_search_clock_gettime+set}" = set; then
9089   break
9090 fi
9091 done
9092 if test "${ac_cv_search_clock_gettime+set}" = set; then
9093   :
9094 else
9095   ac_cv_search_clock_gettime=no
9096 fi
9097 rm conftest.$ac_ext
9098 LIBS=$ac_func_search_save_LIBS
9099 fi
9100 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9101 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9102 ac_res=$ac_cv_search_clock_gettime
9103 if test "$ac_res" != no; then
9104   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9105
9106 fi
9107
9108
9109 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9110     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9111 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9112 if test "${ac_cv_search_setupterm+set}" = set; then
9113   echo $ECHO_N "(cached) $ECHO_C" >&6
9114 else
9115   ac_func_search_save_LIBS=$LIBS
9116 cat >conftest.$ac_ext <<_ACEOF
9117 /* confdefs.h.  */
9118 _ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h.  */
9122
9123 /* Override any GCC internal prototype to avoid an error.
9124    Use char because int might match the return type of a GCC
9125    builtin and then its argument prototype would still apply.  */
9126 #ifdef __cplusplus
9127 extern "C"
9128 #endif
9129 char setupterm ();
9130 int
9131 main ()
9132 {
9133 return setupterm ();
9134   ;
9135   return 0;
9136 }
9137 _ACEOF
9138 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9139   if test -z "$ac_lib"; then
9140     ac_res="none required"
9141   else
9142     ac_res=-l$ac_lib
9143     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9144   fi
9145   rm -f conftest.$ac_objext conftest$ac_exeext
9146 if { (ac_try="$ac_link"
9147 case "(($ac_try" in
9148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149   *) ac_try_echo=$ac_try;;
9150 esac
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152   (eval "$ac_link") 2>conftest.er1
9153   ac_status=$?
9154   grep -v '^ *+' conftest.er1 >conftest.err
9155   rm -f conftest.er1
9156   cat conftest.err >&5
9157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158   (exit $ac_status); } &&
9159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9160   { (case "(($ac_try" in
9161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162   *) ac_try_echo=$ac_try;;
9163 esac
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165   (eval "$ac_try") 2>&5
9166   ac_status=$?
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); }; } &&
9169          { ac_try='test -s conftest$ac_exeext'
9170   { (case "(($ac_try" in
9171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172   *) ac_try_echo=$ac_try;;
9173 esac
9174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175   (eval "$ac_try") 2>&5
9176   ac_status=$?
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); }; }; then
9179   ac_cv_search_setupterm=$ac_res
9180 else
9181   echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9183
9184
9185 fi
9186
9187 rm -f core conftest.err conftest.$ac_objext \
9188       conftest$ac_exeext
9189   if test "${ac_cv_search_setupterm+set}" = set; then
9190   break
9191 fi
9192 done
9193 if test "${ac_cv_search_setupterm+set}" = set; then
9194   :
9195 else
9196   ac_cv_search_setupterm=no
9197 fi
9198 rm conftest.$ac_ext
9199 LIBS=$ac_func_search_save_LIBS
9200 fi
9201 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9202 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9203 ac_res=$ac_cv_search_setupterm
9204 if test "$ac_res" != no; then
9205   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9206
9207
9208 cat >>confdefs.h <<\_ACEOF
9209 #define HAVE_TERMINFO 1
9210 _ACEOF
9211
9212 HAVE_TERMINFO='1'
9213
9214
9215 fi
9216
9217 fi
9218
9219 if test "$llvm_cv_enable_libedit" = "yes" ; then
9220   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9221 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9222 if test "${ac_cv_search_el_init+set}" = set; then
9223   echo $ECHO_N "(cached) $ECHO_C" >&6
9224 else
9225   ac_func_search_save_LIBS=$LIBS
9226 cat >conftest.$ac_ext <<_ACEOF
9227 /* confdefs.h.  */
9228 _ACEOF
9229 cat confdefs.h >>conftest.$ac_ext
9230 cat >>conftest.$ac_ext <<_ACEOF
9231 /* end confdefs.h.  */
9232
9233 /* Override any GCC internal prototype to avoid an error.
9234    Use char because int might match the return type of a GCC
9235    builtin and then its argument prototype would still apply.  */
9236 #ifdef __cplusplus
9237 extern "C"
9238 #endif
9239 char el_init ();
9240 int
9241 main ()
9242 {
9243 return el_init ();
9244   ;
9245   return 0;
9246 }
9247 _ACEOF
9248 for ac_lib in '' edit; do
9249   if test -z "$ac_lib"; then
9250     ac_res="none required"
9251   else
9252     ac_res=-l$ac_lib
9253     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9254   fi
9255   rm -f conftest.$ac_objext conftest$ac_exeext
9256 if { (ac_try="$ac_link"
9257 case "(($ac_try" in
9258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259   *) ac_try_echo=$ac_try;;
9260 esac
9261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9262   (eval "$ac_link") 2>conftest.er1
9263   ac_status=$?
9264   grep -v '^ *+' conftest.er1 >conftest.err
9265   rm -f conftest.er1
9266   cat conftest.err >&5
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); } &&
9269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9270   { (case "(($ac_try" in
9271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272   *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275   (eval "$ac_try") 2>&5
9276   ac_status=$?
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); }; } &&
9279          { ac_try='test -s conftest$ac_exeext'
9280   { (case "(($ac_try" in
9281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282   *) ac_try_echo=$ac_try;;
9283 esac
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285   (eval "$ac_try") 2>&5
9286   ac_status=$?
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); }; }; then
9289   ac_cv_search_el_init=$ac_res
9290 else
9291   echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9293
9294
9295 fi
9296
9297 rm -f core conftest.err conftest.$ac_objext \
9298       conftest$ac_exeext
9299   if test "${ac_cv_search_el_init+set}" = set; then
9300   break
9301 fi
9302 done
9303 if test "${ac_cv_search_el_init+set}" = set; then
9304   :
9305 else
9306   ac_cv_search_el_init=no
9307 fi
9308 rm conftest.$ac_ext
9309 LIBS=$ac_func_search_save_LIBS
9310 fi
9311 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9312 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9313 ac_res=$ac_cv_search_el_init
9314 if test "$ac_res" != no; then
9315   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9316
9317 cat >>confdefs.h <<\_ACEOF
9318 #define HAVE_LIBEDIT 1
9319 _ACEOF
9320
9321 fi
9322
9323 fi
9324
9325 if test "$llvm_cv_enable_libffi" = "yes" ; then
9326   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9327 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9328 if test "${ac_cv_search_ffi_call+set}" = set; then
9329   echo $ECHO_N "(cached) $ECHO_C" >&6
9330 else
9331   ac_func_search_save_LIBS=$LIBS
9332 cat >conftest.$ac_ext <<_ACEOF
9333 /* confdefs.h.  */
9334 _ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h.  */
9338
9339 /* Override any GCC internal prototype to avoid an error.
9340    Use char because int might match the return type of a GCC
9341    builtin and then its argument prototype would still apply.  */
9342 #ifdef __cplusplus
9343 extern "C"
9344 #endif
9345 char ffi_call ();
9346 int
9347 main ()
9348 {
9349 return ffi_call ();
9350   ;
9351   return 0;
9352 }
9353 _ACEOF
9354 for ac_lib in '' ffi; do
9355   if test -z "$ac_lib"; then
9356     ac_res="none required"
9357   else
9358     ac_res=-l$ac_lib
9359     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9360   fi
9361   rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9369   ac_status=$?
9370   grep -v '^ *+' conftest.er1 >conftest.err
9371   rm -f conftest.er1
9372   cat conftest.err >&5
9373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374   (exit $ac_status); } &&
9375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9376   { (case "(($ac_try" in
9377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378   *) ac_try_echo=$ac_try;;
9379 esac
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381   (eval "$ac_try") 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; } &&
9385          { ac_try='test -s conftest$ac_exeext'
9386   { (case "(($ac_try" in
9387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388   *) ac_try_echo=$ac_try;;
9389 esac
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391   (eval "$ac_try") 2>&5
9392   ac_status=$?
9393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394   (exit $ac_status); }; }; then
9395   ac_cv_search_ffi_call=$ac_res
9396 else
9397   echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400
9401 fi
9402
9403 rm -f core conftest.err conftest.$ac_objext \
9404       conftest$ac_exeext
9405   if test "${ac_cv_search_ffi_call+set}" = set; then
9406   break
9407 fi
9408 done
9409 if test "${ac_cv_search_ffi_call+set}" = set; then
9410   :
9411 else
9412   ac_cv_search_ffi_call=no
9413 fi
9414 rm conftest.$ac_ext
9415 LIBS=$ac_func_search_save_LIBS
9416 fi
9417 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9418 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9419 ac_res=$ac_cv_search_ffi_call
9420 if test "$ac_res" != no; then
9421   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9422
9423 cat >>confdefs.h <<\_ACEOF
9424 #define HAVE_FFI_CALL 1
9425 _ACEOF
9426
9427 else
9428   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9429 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9430    { (exit 1); exit 1; }; }
9431 fi
9432
9433 fi
9434
9435 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9436 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9437 if test "${ac_cv_search_mallinfo+set}" = set; then
9438   echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440   ac_func_search_save_LIBS=$LIBS
9441 cat >conftest.$ac_ext <<_ACEOF
9442 /* confdefs.h.  */
9443 _ACEOF
9444 cat confdefs.h >>conftest.$ac_ext
9445 cat >>conftest.$ac_ext <<_ACEOF
9446 /* end confdefs.h.  */
9447
9448 /* Override any GCC internal prototype to avoid an error.
9449    Use char because int might match the return type of a GCC
9450    builtin and then its argument prototype would still apply.  */
9451 #ifdef __cplusplus
9452 extern "C"
9453 #endif
9454 char mallinfo ();
9455 int
9456 main ()
9457 {
9458 return mallinfo ();
9459   ;
9460   return 0;
9461 }
9462 _ACEOF
9463 for ac_lib in '' malloc; do
9464   if test -z "$ac_lib"; then
9465     ac_res="none required"
9466   else
9467     ac_res=-l$ac_lib
9468     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9469   fi
9470   rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (ac_try="$ac_link"
9472 case "(($ac_try" in
9473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474   *) ac_try_echo=$ac_try;;
9475 esac
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477   (eval "$ac_link") 2>conftest.er1
9478   ac_status=$?
9479   grep -v '^ *+' conftest.er1 >conftest.err
9480   rm -f conftest.er1
9481   cat conftest.err >&5
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); } &&
9484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9485   { (case "(($ac_try" in
9486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9487   *) ac_try_echo=$ac_try;;
9488 esac
9489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9490   (eval "$ac_try") 2>&5
9491   ac_status=$?
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); }; } &&
9494          { ac_try='test -s conftest$ac_exeext'
9495   { (case "(($ac_try" in
9496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497   *) ac_try_echo=$ac_try;;
9498 esac
9499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500   (eval "$ac_try") 2>&5
9501   ac_status=$?
9502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503   (exit $ac_status); }; }; then
9504   ac_cv_search_mallinfo=$ac_res
9505 else
9506   echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9508
9509
9510 fi
9511
9512 rm -f core conftest.err conftest.$ac_objext \
9513       conftest$ac_exeext
9514   if test "${ac_cv_search_mallinfo+set}" = set; then
9515   break
9516 fi
9517 done
9518 if test "${ac_cv_search_mallinfo+set}" = set; then
9519   :
9520 else
9521   ac_cv_search_mallinfo=no
9522 fi
9523 rm conftest.$ac_ext
9524 LIBS=$ac_func_search_save_LIBS
9525 fi
9526 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9527 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9528 ac_res=$ac_cv_search_mallinfo
9529 if test "$ac_res" != no; then
9530   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9531
9532 cat >>confdefs.h <<\_ACEOF
9533 #define HAVE_MALLINFO 1
9534 _ACEOF
9535
9536 fi
9537
9538
9539 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9540
9541 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9542 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9543 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546   ac_check_lib_save_LIBS=$LIBS
9547 LIBS="-lpthread  $LIBS"
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h.  */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h.  */
9554
9555 /* Override any GCC internal prototype to avoid an error.
9556    Use char because int might match the return type of a GCC
9557    builtin and then its argument prototype would still apply.  */
9558 #ifdef __cplusplus
9559 extern "C"
9560 #endif
9561 char pthread_mutex_init ();
9562 int
9563 main ()
9564 {
9565 return pthread_mutex_init ();
9566   ;
9567   return 0;
9568 }
9569 _ACEOF
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (ac_try="$ac_link"
9572 case "(($ac_try" in
9573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574   *) ac_try_echo=$ac_try;;
9575 esac
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577   (eval "$ac_link") 2>conftest.er1
9578   ac_status=$?
9579   grep -v '^ *+' conftest.er1 >conftest.err
9580   rm -f conftest.er1
9581   cat conftest.err >&5
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } &&
9584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9585   { (case "(($ac_try" in
9586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587   *) ac_try_echo=$ac_try;;
9588 esac
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590   (eval "$ac_try") 2>&5
9591   ac_status=$?
9592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); }; } &&
9594          { ac_try='test -s conftest$ac_exeext'
9595   { (case "(($ac_try" in
9596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597   *) ac_try_echo=$ac_try;;
9598 esac
9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600   (eval "$ac_try") 2>&5
9601   ac_status=$?
9602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603   (exit $ac_status); }; }; then
9604   ac_cv_lib_pthread_pthread_mutex_init=yes
9605 else
9606   echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9608
9609         ac_cv_lib_pthread_pthread_mutex_init=no
9610 fi
9611
9612 rm -f core conftest.err conftest.$ac_objext \
9613       conftest$ac_exeext conftest.$ac_ext
9614 LIBS=$ac_check_lib_save_LIBS
9615 fi
9616 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9617 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9618 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9619   cat >>confdefs.h <<_ACEOF
9620 #define HAVE_LIBPTHREAD 1
9621 _ACEOF
9622
9623   LIBS="-lpthread $LIBS"
9624
9625 fi
9626
9627   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9628 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9629 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9630   echo $ECHO_N "(cached) $ECHO_C" >&6
9631 else
9632   ac_func_search_save_LIBS=$LIBS
9633 cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h.  */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h.  */
9639
9640 /* Override any GCC internal prototype to avoid an error.
9641    Use char because int might match the return type of a GCC
9642    builtin and then its argument prototype would still apply.  */
9643 #ifdef __cplusplus
9644 extern "C"
9645 #endif
9646 char pthread_mutex_lock ();
9647 int
9648 main ()
9649 {
9650 return pthread_mutex_lock ();
9651   ;
9652   return 0;
9653 }
9654 _ACEOF
9655 for ac_lib in '' pthread; do
9656   if test -z "$ac_lib"; then
9657     ac_res="none required"
9658   else
9659     ac_res=-l$ac_lib
9660     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9661   fi
9662   rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (ac_try="$ac_link"
9664 case "(($ac_try" in
9665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666   *) ac_try_echo=$ac_try;;
9667 esac
9668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9669   (eval "$ac_link") 2>conftest.er1
9670   ac_status=$?
9671   grep -v '^ *+' conftest.er1 >conftest.err
9672   rm -f conftest.er1
9673   cat conftest.err >&5
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); } &&
9676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9677   { (case "(($ac_try" in
9678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679   *) ac_try_echo=$ac_try;;
9680 esac
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682   (eval "$ac_try") 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); }; } &&
9686          { ac_try='test -s conftest$ac_exeext'
9687   { (case "(($ac_try" in
9688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689   *) ac_try_echo=$ac_try;;
9690 esac
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692   (eval "$ac_try") 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   ac_cv_search_pthread_mutex_lock=$ac_res
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701
9702 fi
9703
9704 rm -f core conftest.err conftest.$ac_objext \
9705       conftest$ac_exeext
9706   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9707   break
9708 fi
9709 done
9710 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9711   :
9712 else
9713   ac_cv_search_pthread_mutex_lock=no
9714 fi
9715 rm conftest.$ac_ext
9716 LIBS=$ac_func_search_save_LIBS
9717 fi
9718 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9719 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9720 ac_res=$ac_cv_search_pthread_mutex_lock
9721 if test "$ac_res" != no; then
9722   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9723
9724 cat >>confdefs.h <<\_ACEOF
9725 #define HAVE_PTHREAD_MUTEX_LOCK 1
9726 _ACEOF
9727
9728 fi
9729
9730   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9731 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9732 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9733   echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735   ac_func_search_save_LIBS=$LIBS
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h.  */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h.  */
9742
9743 /* Override any GCC internal prototype to avoid an error.
9744    Use char because int might match the return type of a GCC
9745    builtin and then its argument prototype would still apply.  */
9746 #ifdef __cplusplus
9747 extern "C"
9748 #endif
9749 char pthread_rwlock_init ();
9750 int
9751 main ()
9752 {
9753 return pthread_rwlock_init ();
9754   ;
9755   return 0;
9756 }
9757 _ACEOF
9758 for ac_lib in '' pthread; do
9759   if test -z "$ac_lib"; then
9760     ac_res="none required"
9761   else
9762     ac_res=-l$ac_lib
9763     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9764   fi
9765   rm -f conftest.$ac_objext conftest$ac_exeext
9766 if { (ac_try="$ac_link"
9767 case "(($ac_try" in
9768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769   *) ac_try_echo=$ac_try;;
9770 esac
9771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9772   (eval "$ac_link") 2>conftest.er1
9773   ac_status=$?
9774   grep -v '^ *+' conftest.er1 >conftest.err
9775   rm -f conftest.er1
9776   cat conftest.err >&5
9777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778   (exit $ac_status); } &&
9779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9780   { (case "(($ac_try" in
9781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782   *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785   (eval "$ac_try") 2>&5
9786   ac_status=$?
9787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788   (exit $ac_status); }; } &&
9789          { ac_try='test -s conftest$ac_exeext'
9790   { (case "(($ac_try" in
9791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9792   *) ac_try_echo=$ac_try;;
9793 esac
9794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9795   (eval "$ac_try") 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; }; then
9799   ac_cv_search_pthread_rwlock_init=$ac_res
9800 else
9801   echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804
9805 fi
9806
9807 rm -f core conftest.err conftest.$ac_objext \
9808       conftest$ac_exeext
9809   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9810   break
9811 fi
9812 done
9813 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9814   :
9815 else
9816   ac_cv_search_pthread_rwlock_init=no
9817 fi
9818 rm conftest.$ac_ext
9819 LIBS=$ac_func_search_save_LIBS
9820 fi
9821 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9822 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9823 ac_res=$ac_cv_search_pthread_rwlock_init
9824 if test "$ac_res" != no; then
9825   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9826
9827 cat >>confdefs.h <<\_ACEOF
9828 #define HAVE_PTHREAD_RWLOCK_INIT 1
9829 _ACEOF
9830
9831 fi
9832
9833   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9834 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9835 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9836   echo $ECHO_N "(cached) $ECHO_C" >&6
9837 else
9838   ac_func_search_save_LIBS=$LIBS
9839 cat >conftest.$ac_ext <<_ACEOF
9840 /* confdefs.h.  */
9841 _ACEOF
9842 cat confdefs.h >>conftest.$ac_ext
9843 cat >>conftest.$ac_ext <<_ACEOF
9844 /* end confdefs.h.  */
9845
9846 /* Override any GCC internal prototype to avoid an error.
9847    Use char because int might match the return type of a GCC
9848    builtin and then its argument prototype would still apply.  */
9849 #ifdef __cplusplus
9850 extern "C"
9851 #endif
9852 char pthread_getspecific ();
9853 int
9854 main ()
9855 {
9856 return pthread_getspecific ();
9857   ;
9858   return 0;
9859 }
9860 _ACEOF
9861 for ac_lib in '' pthread; do
9862   if test -z "$ac_lib"; then
9863     ac_res="none required"
9864   else
9865     ac_res=-l$ac_lib
9866     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9867   fi
9868   rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (ac_try="$ac_link"
9870 case "(($ac_try" in
9871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872   *) ac_try_echo=$ac_try;;
9873 esac
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875   (eval "$ac_link") 2>conftest.er1
9876   ac_status=$?
9877   grep -v '^ *+' conftest.er1 >conftest.err
9878   rm -f conftest.er1
9879   cat conftest.err >&5
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } &&
9882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9883   { (case "(($ac_try" in
9884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885   *) ac_try_echo=$ac_try;;
9886 esac
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888   (eval "$ac_try") 2>&5
9889   ac_status=$?
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); }; } &&
9892          { ac_try='test -s conftest$ac_exeext'
9893   { (case "(($ac_try" in
9894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895   *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898   (eval "$ac_try") 2>&5
9899   ac_status=$?
9900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901   (exit $ac_status); }; }; then
9902   ac_cv_search_pthread_getspecific=$ac_res
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907
9908 fi
9909
9910 rm -f core conftest.err conftest.$ac_objext \
9911       conftest$ac_exeext
9912   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9913   break
9914 fi
9915 done
9916 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9917   :
9918 else
9919   ac_cv_search_pthread_getspecific=no
9920 fi
9921 rm conftest.$ac_ext
9922 LIBS=$ac_func_search_save_LIBS
9923 fi
9924 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9925 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9926 ac_res=$ac_cv_search_pthread_getspecific
9927 if test "$ac_res" != no; then
9928   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9929
9930 cat >>confdefs.h <<\_ACEOF
9931 #define HAVE_PTHREAD_GETSPECIFIC 1
9932 _ACEOF
9933
9934 fi
9935
9936 fi
9937
9938 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9939
9940 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9941 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9942 if test "${ac_cv_lib_z_compress2+set}" = set; then
9943   echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945   ac_check_lib_save_LIBS=$LIBS
9946 LIBS="-lz  $LIBS"
9947 cat >conftest.$ac_ext <<_ACEOF
9948 /* confdefs.h.  */
9949 _ACEOF
9950 cat confdefs.h >>conftest.$ac_ext
9951 cat >>conftest.$ac_ext <<_ACEOF
9952 /* end confdefs.h.  */
9953
9954 /* Override any GCC internal prototype to avoid an error.
9955    Use char because int might match the return type of a GCC
9956    builtin and then its argument prototype would still apply.  */
9957 #ifdef __cplusplus
9958 extern "C"
9959 #endif
9960 char compress2 ();
9961 int
9962 main ()
9963 {
9964 return compress2 ();
9965   ;
9966   return 0;
9967 }
9968 _ACEOF
9969 rm -f conftest.$ac_objext conftest$ac_exeext
9970 if { (ac_try="$ac_link"
9971 case "(($ac_try" in
9972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973   *) ac_try_echo=$ac_try;;
9974 esac
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976   (eval "$ac_link") 2>conftest.er1
9977   ac_status=$?
9978   grep -v '^ *+' conftest.er1 >conftest.err
9979   rm -f conftest.er1
9980   cat conftest.err >&5
9981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982   (exit $ac_status); } &&
9983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9984   { (case "(($ac_try" in
9985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986   *) ac_try_echo=$ac_try;;
9987 esac
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989   (eval "$ac_try") 2>&5
9990   ac_status=$?
9991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992   (exit $ac_status); }; } &&
9993          { ac_try='test -s conftest$ac_exeext'
9994   { (case "(($ac_try" in
9995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9996   *) ac_try_echo=$ac_try;;
9997 esac
9998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9999   (eval "$ac_try") 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; }; then
10003   ac_cv_lib_z_compress2=yes
10004 else
10005   echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10007
10008         ac_cv_lib_z_compress2=no
10009 fi
10010
10011 rm -f core conftest.err conftest.$ac_objext \
10012       conftest$ac_exeext conftest.$ac_ext
10013 LIBS=$ac_check_lib_save_LIBS
10014 fi
10015 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10016 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10017 if test $ac_cv_lib_z_compress2 = yes; then
10018   cat >>confdefs.h <<_ACEOF
10019 #define HAVE_LIBZ 1
10020 _ACEOF
10021
10022   LIBS="-lz $LIBS"
10023
10024 fi
10025
10026 fi
10027
10028
10029 # Check whether --with-oprofile was given.
10030 if test "${with_oprofile+set}" = set; then
10031   withval=$with_oprofile;
10032       USE_OPROFILE=1
10033
10034       case "$withval" in
10035         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10036         no) llvm_cv_oppath=
10037             USE_OPROFILE=0
10038  ;;
10039         *) llvm_cv_oppath="${withval}/lib/oprofile"
10040            CPPFLAGS="-I${withval}/include";;
10041       esac
10042       case $llvm_cv_os_type in
10043         Linux)
10044           if test -n "$llvm_cv_oppath" ; then
10045             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10046                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10047 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10048 if test "${ac_cv_search_bfd_init+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   ac_func_search_save_LIBS=$LIBS
10052 cat >conftest.$ac_ext <<_ACEOF
10053 /* confdefs.h.  */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h.  */
10058
10059 /* Override any GCC internal prototype to avoid an error.
10060    Use char because int might match the return type of a GCC
10061    builtin and then its argument prototype would still apply.  */
10062 #ifdef __cplusplus
10063 extern "C"
10064 #endif
10065 char bfd_init ();
10066 int
10067 main ()
10068 {
10069 return bfd_init ();
10070   ;
10071   return 0;
10072 }
10073 _ACEOF
10074 for ac_lib in '' bfd; do
10075   if test -z "$ac_lib"; then
10076     ac_res="none required"
10077   else
10078     ac_res=-l$ac_lib
10079     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10080   fi
10081   rm -f conftest.$ac_objext conftest$ac_exeext
10082 if { (ac_try="$ac_link"
10083 case "(($ac_try" in
10084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085   *) ac_try_echo=$ac_try;;
10086 esac
10087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088   (eval "$ac_link") 2>conftest.er1
10089   ac_status=$?
10090   grep -v '^ *+' conftest.er1 >conftest.err
10091   rm -f conftest.er1
10092   cat conftest.err >&5
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); } &&
10095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10105          { ac_try='test -s conftest$ac_exeext'
10106   { (case "(($ac_try" in
10107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108   *) ac_try_echo=$ac_try;;
10109 esac
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111   (eval "$ac_try") 2>&5
10112   ac_status=$?
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); }; }; then
10115   ac_cv_search_bfd_init=$ac_res
10116 else
10117   echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10119
10120
10121 fi
10122
10123 rm -f core conftest.err conftest.$ac_objext \
10124       conftest$ac_exeext
10125   if test "${ac_cv_search_bfd_init+set}" = set; then
10126   break
10127 fi
10128 done
10129 if test "${ac_cv_search_bfd_init+set}" = set; then
10130   :
10131 else
10132   ac_cv_search_bfd_init=no
10133 fi
10134 rm conftest.$ac_ext
10135 LIBS=$ac_func_search_save_LIBS
10136 fi
10137 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10138 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10139 ac_res=$ac_cv_search_bfd_init
10140 if test "$ac_res" != no; then
10141   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10142
10143 fi
10144
10145             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10146 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10147 if test "${ac_cv_search_op_open_agent+set}" = set; then
10148   echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150   ac_func_search_save_LIBS=$LIBS
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h.  */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h.  */
10157
10158 /* Override any GCC internal prototype to avoid an error.
10159    Use char because int might match the return type of a GCC
10160    builtin and then its argument prototype would still apply.  */
10161 #ifdef __cplusplus
10162 extern "C"
10163 #endif
10164 char op_open_agent ();
10165 int
10166 main ()
10167 {
10168 return op_open_agent ();
10169   ;
10170   return 0;
10171 }
10172 _ACEOF
10173 for ac_lib in '' opagent; do
10174   if test -z "$ac_lib"; then
10175     ac_res="none required"
10176   else
10177     ac_res=-l$ac_lib
10178     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10179   fi
10180   rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184   *) ac_try_echo=$ac_try;;
10185 esac
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187   (eval "$ac_link") 2>conftest.er1
10188   ac_status=$?
10189   grep -v '^ *+' conftest.er1 >conftest.err
10190   rm -f conftest.er1
10191   cat conftest.err >&5
10192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } &&
10194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10195   { (case "(($ac_try" in
10196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10197   *) ac_try_echo=$ac_try;;
10198 esac
10199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10200   (eval "$ac_try") 2>&5
10201   ac_status=$?
10202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203   (exit $ac_status); }; } &&
10204          { ac_try='test -s conftest$ac_exeext'
10205   { (case "(($ac_try" in
10206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207   *) ac_try_echo=$ac_try;;
10208 esac
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210   (eval "$ac_try") 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; }; then
10214   ac_cv_search_op_open_agent=$ac_res
10215 else
10216   echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10218
10219
10220 fi
10221
10222 rm -f core conftest.err conftest.$ac_objext \
10223       conftest$ac_exeext
10224   if test "${ac_cv_search_op_open_agent+set}" = set; then
10225   break
10226 fi
10227 done
10228 if test "${ac_cv_search_op_open_agent+set}" = set; then
10229   :
10230 else
10231   ac_cv_search_op_open_agent=no
10232 fi
10233 rm conftest.$ac_ext
10234 LIBS=$ac_func_search_save_LIBS
10235 fi
10236 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10237 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10238 ac_res=$ac_cv_search_op_open_agent
10239 if test "$ac_res" != no; then
10240   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10241
10242 else
10243
10244               echo "Error! You need to have libopagent around."
10245               exit 1
10246
10247 fi
10248
10249             if test "${ac_cv_header_opagent_h+set}" = set; then
10250   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10251 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10252 if test "${ac_cv_header_opagent_h+set}" = set; then
10253   echo $ECHO_N "(cached) $ECHO_C" >&6
10254 fi
10255 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10256 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10257 else
10258   # Is the header compilable?
10259 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10260 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10261 cat >conftest.$ac_ext <<_ACEOF
10262 /* confdefs.h.  */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h.  */
10267 $ac_includes_default
10268 #include <opagent.h>
10269 _ACEOF
10270 rm -f conftest.$ac_objext
10271 if { (ac_try="$ac_compile"
10272 case "(($ac_try" in
10273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10274   *) ac_try_echo=$ac_try;;
10275 esac
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277   (eval "$ac_compile") 2>conftest.er1
10278   ac_status=$?
10279   grep -v '^ *+' conftest.er1 >conftest.err
10280   rm -f conftest.er1
10281   cat conftest.err >&5
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); } &&
10284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10285   { (case "(($ac_try" in
10286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287   *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290   (eval "$ac_try") 2>&5
10291   ac_status=$?
10292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); }; } &&
10294          { ac_try='test -s conftest.$ac_objext'
10295   { (case "(($ac_try" in
10296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297   *) ac_try_echo=$ac_try;;
10298 esac
10299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300   (eval "$ac_try") 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); }; }; then
10304   ac_header_compiler=yes
10305 else
10306   echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10308
10309         ac_header_compiler=no
10310 fi
10311
10312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10314 echo "${ECHO_T}$ac_header_compiler" >&6; }
10315
10316 # Is the header present?
10317 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10318 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10319 cat >conftest.$ac_ext <<_ACEOF
10320 /* confdefs.h.  */
10321 _ACEOF
10322 cat confdefs.h >>conftest.$ac_ext
10323 cat >>conftest.$ac_ext <<_ACEOF
10324 /* end confdefs.h.  */
10325 #include <opagent.h>
10326 _ACEOF
10327 if { (ac_try="$ac_cpp conftest.$ac_ext"
10328 case "(($ac_try" in
10329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330   *) ac_try_echo=$ac_try;;
10331 esac
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10334   ac_status=$?
10335   grep -v '^ *+' conftest.er1 >conftest.err
10336   rm -f conftest.er1
10337   cat conftest.err >&5
10338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339   (exit $ac_status); } >/dev/null; then
10340   if test -s conftest.err; then
10341     ac_cpp_err=$ac_c_preproc_warn_flag
10342     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10343   else
10344     ac_cpp_err=
10345   fi
10346 else
10347   ac_cpp_err=yes
10348 fi
10349 if test -z "$ac_cpp_err"; then
10350   ac_header_preproc=yes
10351 else
10352   echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355   ac_header_preproc=no
10356 fi
10357
10358 rm -f conftest.err conftest.$ac_ext
10359 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10360 echo "${ECHO_T}$ac_header_preproc" >&6; }
10361
10362 # So?  What about this header?
10363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10364   yes:no: )
10365     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10366 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10367     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10368 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10369     ac_header_preproc=yes
10370     ;;
10371   no:yes:* )
10372     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10373 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10374     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10375 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10376     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10377 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10378     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10379 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10380     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10381 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10382     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10383 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10384     ( cat <<\_ASBOX
10385 ## ------------------------------------ ##
10386 ## Report this to http://llvm.org/bugs/ ##
10387 ## ------------------------------------ ##
10388 _ASBOX
10389      ) | sed "s/^/$as_me: WARNING:     /" >&2
10390     ;;
10391 esac
10392 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10393 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10394 if test "${ac_cv_header_opagent_h+set}" = set; then
10395   echo $ECHO_N "(cached) $ECHO_C" >&6
10396 else
10397   ac_cv_header_opagent_h=$ac_header_preproc
10398 fi
10399 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10400 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10401
10402 fi
10403 if test $ac_cv_header_opagent_h = yes; then
10404   :
10405 else
10406
10407               echo "Error! You need to have opagent.h around."
10408               exit 1
10409
10410 fi
10411
10412
10413           fi ;;
10414         *)
10415           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10416 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10417    { (exit 1); exit 1; }; } ;;
10418       esac
10419
10420 else
10421
10422       USE_OPROFILE=0
10423
10424
10425 fi
10426
10427
10428 cat >>confdefs.h <<_ACEOF
10429 #define LLVM_USE_OPROFILE $USE_OPROFILE
10430 _ACEOF
10431
10432
10433
10434 # Check whether --with-intel-jitevents was given.
10435 if test "${with_intel_jitevents+set}" = set; then
10436   withval=$with_intel_jitevents;
10437        case "$withval" in
10438           yes) USE_INTEL_JITEVENTS=1
10439 ;;
10440           no)  USE_INTEL_JITEVENTS=0
10441 ;;
10442           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10443 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10444    { (exit 1); exit 1; }; };;
10445        esac
10446
10447       case $llvm_cv_os_type in
10448         Linux|Win32|Cygwin|MingW) ;;
10449         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10450 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10451    { (exit 1); exit 1; }; };;
10452       esac
10453
10454       case "$llvm_cv_target_arch" in
10455         x86|x86_64) ;;
10456         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10457 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10458    { (exit 1); exit 1; }; };;
10459       esac
10460
10461 else
10462
10463       USE_INTEL_JITEVENTS=0
10464
10465
10466 fi
10467
10468
10469 cat >>confdefs.h <<_ACEOF
10470 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10471 _ACEOF
10472
10473
10474 for ac_prog in xml2-config
10475 do
10476   # Extract the first word of "$ac_prog", so it can be a program name with args.
10477 set dummy $ac_prog; ac_word=$2
10478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10480 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10481   echo $ECHO_N "(cached) $ECHO_C" >&6
10482 else
10483   if test -n "$XML2CONFIG"; then
10484   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10485 else
10486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10487 for as_dir in $PATH
10488 do
10489   IFS=$as_save_IFS
10490   test -z "$as_dir" && as_dir=.
10491   for ac_exec_ext in '' $ac_executable_extensions; do
10492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10493     ac_cv_prog_XML2CONFIG="$ac_prog"
10494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10495     break 2
10496   fi
10497 done
10498 done
10499 IFS=$as_save_IFS
10500
10501 fi
10502 fi
10503 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10504 if test -n "$XML2CONFIG"; then
10505   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10506 echo "${ECHO_T}$XML2CONFIG" >&6; }
10507 else
10508   { echo "$as_me:$LINENO: result: no" >&5
10509 echo "${ECHO_T}no" >&6; }
10510 fi
10511
10512
10513   test -n "$XML2CONFIG" && break
10514 done
10515
10516
10517 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10518 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10519 if test "x$XML2CONFIG" = "x"; then
10520  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10521 echo "${ECHO_T}xml2-config not found" >&6; }
10522 else
10523  LIBXML2_INC=`$XML2CONFIG --cflags`
10524  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10525 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10526  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10527 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10528 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10529   echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531   ac_check_lib_save_LIBS=$LIBS
10532 LIBS="-lxml2  $LIBS"
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h.  */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h.  */
10539
10540 /* Override any GCC internal prototype to avoid an error.
10541    Use char because int might match the return type of a GCC
10542    builtin and then its argument prototype would still apply.  */
10543 #ifdef __cplusplus
10544 extern "C"
10545 #endif
10546 char xmlReadFile ();
10547 int
10548 main ()
10549 {
10550 return xmlReadFile ();
10551   ;
10552   return 0;
10553 }
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (ac_try="$ac_link"
10557 case "(($ac_try" in
10558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559   *) ac_try_echo=$ac_try;;
10560 esac
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562   (eval "$ac_link") 2>conftest.er1
10563   ac_status=$?
10564   grep -v '^ *+' conftest.er1 >conftest.err
10565   rm -f conftest.er1
10566   cat conftest.err >&5
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } &&
10569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10570   { (case "(($ac_try" in
10571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572   *) ac_try_echo=$ac_try;;
10573 esac
10574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10575   (eval "$ac_try") 2>&5
10576   ac_status=$?
10577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578   (exit $ac_status); }; } &&
10579          { ac_try='test -s conftest$ac_exeext'
10580   { (case "(($ac_try" in
10581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582   *) ac_try_echo=$ac_try;;
10583 esac
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585   (eval "$ac_try") 2>&5
10586   ac_status=$?
10587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588   (exit $ac_status); }; }; then
10589   ac_cv_lib_xml2_xmlReadFile=yes
10590 else
10591   echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10593
10594         ac_cv_lib_xml2_xmlReadFile=no
10595 fi
10596
10597 rm -f core conftest.err conftest.$ac_objext \
10598       conftest$ac_exeext conftest.$ac_ext
10599 LIBS=$ac_check_lib_save_LIBS
10600 fi
10601 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10602 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10603 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10604
10605 cat >>confdefs.h <<\_ACEOF
10606 #define CLANG_HAVE_LIBXML 1
10607 _ACEOF
10608
10609                                 LIBXML2_LIBS="-lxml2"
10610 fi
10611
10612 fi
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622 ac_header_dirent=no
10623 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10624   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10625 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10626 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10628   echo $ECHO_N "(cached) $ECHO_C" >&6
10629 else
10630   cat >conftest.$ac_ext <<_ACEOF
10631 /* confdefs.h.  */
10632 _ACEOF
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h.  */
10636 #include <sys/types.h>
10637 #include <$ac_hdr>
10638
10639 int
10640 main ()
10641 {
10642 if ((DIR *) 0)
10643 return 0;
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 rm -f conftest.$ac_objext
10649 if { (ac_try="$ac_compile"
10650 case "(($ac_try" in
10651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652   *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655   (eval "$ac_compile") 2>conftest.er1
10656   ac_status=$?
10657   grep -v '^ *+' conftest.er1 >conftest.err
10658   rm -f conftest.er1
10659   cat conftest.err >&5
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); } &&
10662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10663   { (case "(($ac_try" in
10664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665   *) ac_try_echo=$ac_try;;
10666 esac
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668   (eval "$ac_try") 2>&5
10669   ac_status=$?
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); }; } &&
10672          { ac_try='test -s conftest.$ac_objext'
10673   { (case "(($ac_try" in
10674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675   *) ac_try_echo=$ac_try;;
10676 esac
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678   (eval "$ac_try") 2>&5
10679   ac_status=$?
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); }; }; then
10682   eval "$as_ac_Header=yes"
10683 else
10684   echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687         eval "$as_ac_Header=no"
10688 fi
10689
10690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10691 fi
10692 ac_res=`eval echo '${'$as_ac_Header'}'`
10693                { echo "$as_me:$LINENO: result: $ac_res" >&5
10694 echo "${ECHO_T}$ac_res" >&6; }
10695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10696   cat >>confdefs.h <<_ACEOF
10697 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10698 _ACEOF
10699
10700 ac_header_dirent=$ac_hdr; break
10701 fi
10702
10703 done
10704 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10705 if test $ac_header_dirent = dirent.h; then
10706   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10707 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10708 if test "${ac_cv_search_opendir+set}" = set; then
10709   echo $ECHO_N "(cached) $ECHO_C" >&6
10710 else
10711   ac_func_search_save_LIBS=$LIBS
10712 cat >conftest.$ac_ext <<_ACEOF
10713 /* confdefs.h.  */
10714 _ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h.  */
10718
10719 /* Override any GCC internal prototype to avoid an error.
10720    Use char because int might match the return type of a GCC
10721    builtin and then its argument prototype would still apply.  */
10722 #ifdef __cplusplus
10723 extern "C"
10724 #endif
10725 char opendir ();
10726 int
10727 main ()
10728 {
10729 return opendir ();
10730   ;
10731   return 0;
10732 }
10733 _ACEOF
10734 for ac_lib in '' dir; do
10735   if test -z "$ac_lib"; then
10736     ac_res="none required"
10737   else
10738     ac_res=-l$ac_lib
10739     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10740   fi
10741   rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745   *) ac_try_echo=$ac_try;;
10746 esac
10747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748   (eval "$ac_link") 2>conftest.er1
10749   ac_status=$?
10750   grep -v '^ *+' conftest.er1 >conftest.err
10751   rm -f conftest.er1
10752   cat conftest.err >&5
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); } &&
10755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10756   { (case "(($ac_try" in
10757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758   *) ac_try_echo=$ac_try;;
10759 esac
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761   (eval "$ac_try") 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); }; } &&
10765          { ac_try='test -s conftest$ac_exeext'
10766   { (case "(($ac_try" in
10767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10768   *) ac_try_echo=$ac_try;;
10769 esac
10770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10771   (eval "$ac_try") 2>&5
10772   ac_status=$?
10773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774   (exit $ac_status); }; }; then
10775   ac_cv_search_opendir=$ac_res
10776 else
10777   echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10779
10780
10781 fi
10782
10783 rm -f core conftest.err conftest.$ac_objext \
10784       conftest$ac_exeext
10785   if test "${ac_cv_search_opendir+set}" = set; then
10786   break
10787 fi
10788 done
10789 if test "${ac_cv_search_opendir+set}" = set; then
10790   :
10791 else
10792   ac_cv_search_opendir=no
10793 fi
10794 rm conftest.$ac_ext
10795 LIBS=$ac_func_search_save_LIBS
10796 fi
10797 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10798 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10799 ac_res=$ac_cv_search_opendir
10800 if test "$ac_res" != no; then
10801   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10802
10803 fi
10804
10805 else
10806   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10808 if test "${ac_cv_search_opendir+set}" = set; then
10809   echo $ECHO_N "(cached) $ECHO_C" >&6
10810 else
10811   ac_func_search_save_LIBS=$LIBS
10812 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h.  */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h.  */
10818
10819 /* Override any GCC internal prototype to avoid an error.
10820    Use char because int might match the return type of a GCC
10821    builtin and then its argument prototype would still apply.  */
10822 #ifdef __cplusplus
10823 extern "C"
10824 #endif
10825 char opendir ();
10826 int
10827 main ()
10828 {
10829 return opendir ();
10830   ;
10831   return 0;
10832 }
10833 _ACEOF
10834 for ac_lib in '' x; do
10835   if test -z "$ac_lib"; then
10836     ac_res="none required"
10837   else
10838     ac_res=-l$ac_lib
10839     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10840   fi
10841   rm -f conftest.$ac_objext conftest$ac_exeext
10842 if { (ac_try="$ac_link"
10843 case "(($ac_try" in
10844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845   *) ac_try_echo=$ac_try;;
10846 esac
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848   (eval "$ac_link") 2>conftest.er1
10849   ac_status=$?
10850   grep -v '^ *+' conftest.er1 >conftest.err
10851   rm -f conftest.er1
10852   cat conftest.err >&5
10853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854   (exit $ac_status); } &&
10855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10856   { (case "(($ac_try" in
10857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10858   *) ac_try_echo=$ac_try;;
10859 esac
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861   (eval "$ac_try") 2>&5
10862   ac_status=$?
10863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864   (exit $ac_status); }; } &&
10865          { ac_try='test -s conftest$ac_exeext'
10866   { (case "(($ac_try" in
10867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868   *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871   (eval "$ac_try") 2>&5
10872   ac_status=$?
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); }; }; then
10875   ac_cv_search_opendir=$ac_res
10876 else
10877   echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10879
10880
10881 fi
10882
10883 rm -f core conftest.err conftest.$ac_objext \
10884       conftest$ac_exeext
10885   if test "${ac_cv_search_opendir+set}" = set; then
10886   break
10887 fi
10888 done
10889 if test "${ac_cv_search_opendir+set}" = set; then
10890   :
10891 else
10892   ac_cv_search_opendir=no
10893 fi
10894 rm conftest.$ac_ext
10895 LIBS=$ac_func_search_save_LIBS
10896 fi
10897 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10898 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10899 ac_res=$ac_cv_search_opendir
10900 if test "$ac_res" != no; then
10901   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10902
10903 fi
10904
10905 fi
10906
10907 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10908 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10909 if test "${ac_cv_header_mmap_anon+set}" = set; then
10910   echo $ECHO_N "(cached) $ECHO_C" >&6
10911 else
10912    ac_ext=c
10913 ac_cpp='$CPP $CPPFLAGS'
10914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10917
10918   cat >conftest.$ac_ext <<_ACEOF
10919 /* confdefs.h.  */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h.  */
10924 #include <sys/mman.h>
10925 #include <unistd.h>
10926 #include <fcntl.h>
10927 int
10928 main ()
10929 {
10930 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10931   ;
10932   return 0;
10933 }
10934 _ACEOF
10935 rm -f conftest.$ac_objext
10936 if { (ac_try="$ac_compile"
10937 case "(($ac_try" in
10938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939   *) ac_try_echo=$ac_try;;
10940 esac
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942   (eval "$ac_compile") 2>conftest.er1
10943   ac_status=$?
10944   grep -v '^ *+' conftest.er1 >conftest.err
10945   rm -f conftest.er1
10946   cat conftest.err >&5
10947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948   (exit $ac_status); } &&
10949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950   { (case "(($ac_try" in
10951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952   *) ac_try_echo=$ac_try;;
10953 esac
10954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955   (eval "$ac_try") 2>&5
10956   ac_status=$?
10957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); }; } &&
10959          { ac_try='test -s conftest.$ac_objext'
10960   { (case "(($ac_try" in
10961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962   *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965   (eval "$ac_try") 2>&5
10966   ac_status=$?
10967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968   (exit $ac_status); }; }; then
10969   ac_cv_header_mmap_anon=yes
10970 else
10971   echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10973
10974         ac_cv_header_mmap_anon=no
10975 fi
10976
10977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10978   ac_ext=c
10979 ac_cpp='$CPP $CPPFLAGS'
10980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10983
10984
10985 fi
10986 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10987 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10988 if test "$ac_cv_header_mmap_anon" = yes; then
10989
10990 cat >>confdefs.h <<\_ACEOF
10991 #define HAVE_MMAP_ANONYMOUS 1
10992 _ACEOF
10993
10994 fi
10995
10996 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10997 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10998 if test "${ac_cv_header_stat_broken+set}" = set; then
10999   echo $ECHO_N "(cached) $ECHO_C" >&6
11000 else
11001   cat >conftest.$ac_ext <<_ACEOF
11002 /* confdefs.h.  */
11003 _ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h.  */
11007 #include <sys/types.h>
11008 #include <sys/stat.h>
11009
11010 #if defined S_ISBLK && defined S_IFDIR
11011 # if S_ISBLK (S_IFDIR)
11012 You lose.
11013 # endif
11014 #endif
11015
11016 #if defined S_ISBLK && defined S_IFCHR
11017 # if S_ISBLK (S_IFCHR)
11018 You lose.
11019 # endif
11020 #endif
11021
11022 #if defined S_ISLNK && defined S_IFREG
11023 # if S_ISLNK (S_IFREG)
11024 You lose.
11025 # endif
11026 #endif
11027
11028 #if defined S_ISSOCK && defined S_IFREG
11029 # if S_ISSOCK (S_IFREG)
11030 You lose.
11031 # endif
11032 #endif
11033
11034 _ACEOF
11035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11036   $EGREP "You lose" >/dev/null 2>&1; then
11037   ac_cv_header_stat_broken=yes
11038 else
11039   ac_cv_header_stat_broken=no
11040 fi
11041 rm -f conftest*
11042
11043 fi
11044 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11045 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11046 if test $ac_cv_header_stat_broken = yes; then
11047
11048 cat >>confdefs.h <<\_ACEOF
11049 #define STAT_MACROS_BROKEN 1
11050 _ACEOF
11051
11052 fi
11053
11054 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11055 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11056 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11057   echo $ECHO_N "(cached) $ECHO_C" >&6
11058 else
11059   cat >conftest.$ac_ext <<_ACEOF
11060 /* confdefs.h.  */
11061 _ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h.  */
11065 #include <sys/types.h>
11066 #include <sys/wait.h>
11067 #ifndef WEXITSTATUS
11068 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11069 #endif
11070 #ifndef WIFEXITED
11071 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11072 #endif
11073
11074 int
11075 main ()
11076 {
11077   int s;
11078   wait (&s);
11079   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11080   ;
11081   return 0;
11082 }
11083 _ACEOF
11084 rm -f conftest.$ac_objext
11085 if { (ac_try="$ac_compile"
11086 case "(($ac_try" in
11087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088   *) ac_try_echo=$ac_try;;
11089 esac
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091   (eval "$ac_compile") 2>conftest.er1
11092   ac_status=$?
11093   grep -v '^ *+' conftest.er1 >conftest.err
11094   rm -f conftest.er1
11095   cat conftest.err >&5
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); } &&
11098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11099   { (case "(($ac_try" in
11100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101   *) ac_try_echo=$ac_try;;
11102 esac
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104   (eval "$ac_try") 2>&5
11105   ac_status=$?
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); }; } &&
11108          { ac_try='test -s conftest.$ac_objext'
11109   { (case "(($ac_try" in
11110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111   *) ac_try_echo=$ac_try;;
11112 esac
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114   (eval "$ac_try") 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); }; }; then
11118   ac_cv_header_sys_wait_h=yes
11119 else
11120   echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11122
11123         ac_cv_header_sys_wait_h=no
11124 fi
11125
11126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11127 fi
11128 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11129 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11130 if test $ac_cv_header_sys_wait_h = yes; then
11131
11132 cat >>confdefs.h <<\_ACEOF
11133 #define HAVE_SYS_WAIT_H 1
11134 _ACEOF
11135
11136 fi
11137
11138 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11139 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11140 if test "${ac_cv_header_time+set}" = set; then
11141   echo $ECHO_N "(cached) $ECHO_C" >&6
11142 else
11143   cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h.  */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h.  */
11149 #include <sys/types.h>
11150 #include <sys/time.h>
11151 #include <time.h>
11152
11153 int
11154 main ()
11155 {
11156 if ((struct tm *) 0)
11157 return 0;
11158   ;
11159   return 0;
11160 }
11161 _ACEOF
11162 rm -f conftest.$ac_objext
11163 if { (ac_try="$ac_compile"
11164 case "(($ac_try" in
11165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11166   *) ac_try_echo=$ac_try;;
11167 esac
11168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11169   (eval "$ac_compile") 2>conftest.er1
11170   ac_status=$?
11171   grep -v '^ *+' conftest.er1 >conftest.err
11172   rm -f conftest.er1
11173   cat conftest.err >&5
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); } &&
11176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11177   { (case "(($ac_try" in
11178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11179   *) ac_try_echo=$ac_try;;
11180 esac
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182   (eval "$ac_try") 2>&5
11183   ac_status=$?
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); }; } &&
11186          { ac_try='test -s conftest.$ac_objext'
11187   { (case "(($ac_try" in
11188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11189   *) ac_try_echo=$ac_try;;
11190 esac
11191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11192   (eval "$ac_try") 2>&5
11193   ac_status=$?
11194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195   (exit $ac_status); }; }; then
11196   ac_cv_header_time=yes
11197 else
11198   echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201         ac_cv_header_time=no
11202 fi
11203
11204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11205 fi
11206 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11207 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11208 if test $ac_cv_header_time = yes; then
11209
11210 cat >>confdefs.h <<\_ACEOF
11211 #define TIME_WITH_SYS_TIME 1
11212 _ACEOF
11213
11214 fi
11215
11216
11217 ac_ext=cpp
11218 ac_cpp='$CXXCPP $CPPFLAGS'
11219 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11220 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11221 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11222
11223
11224 for ac_header in cxxabi.h
11225 do
11226 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11230   echo $ECHO_N "(cached) $ECHO_C" >&6
11231 else
11232   cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h.  */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h.  */
11238 #include <stddef.h>
11239
11240
11241 #include <$ac_header>
11242 _ACEOF
11243 rm -f conftest.$ac_objext
11244 if { (ac_try="$ac_compile"
11245 case "(($ac_try" in
11246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11247   *) ac_try_echo=$ac_try;;
11248 esac
11249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11250   (eval "$ac_compile") 2>conftest.er1
11251   ac_status=$?
11252   grep -v '^ *+' conftest.er1 >conftest.err
11253   rm -f conftest.er1
11254   cat conftest.err >&5
11255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256   (exit $ac_status); } &&
11257          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11258   { (case "(($ac_try" in
11259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260   *) ac_try_echo=$ac_try;;
11261 esac
11262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11263   (eval "$ac_try") 2>&5
11264   ac_status=$?
11265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266   (exit $ac_status); }; } &&
11267          { ac_try='test -s conftest.$ac_objext'
11268   { (case "(($ac_try" in
11269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270   *) ac_try_echo=$ac_try;;
11271 esac
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273   (eval "$ac_try") 2>&5
11274   ac_status=$?
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); }; }; then
11277   eval "$as_ac_Header=yes"
11278 else
11279   echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11281
11282         eval "$as_ac_Header=no"
11283 fi
11284
11285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11286 fi
11287 ac_res=`eval echo '${'$as_ac_Header'}'`
11288                { echo "$as_me:$LINENO: result: $ac_res" >&5
11289 echo "${ECHO_T}$ac_res" >&6; }
11290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11291   cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11293 _ACEOF
11294
11295 fi
11296
11297 done
11298
11299 ac_ext=c
11300 ac_cpp='$CPP $CPPFLAGS'
11301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11304
11305
11306
11307
11308
11309
11310
11311 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11312 do
11313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318   echo $ECHO_N "(cached) $ECHO_C" >&6
11319 fi
11320 ac_res=`eval echo '${'$as_ac_Header'}'`
11321                { echo "$as_me:$LINENO: result: $ac_res" >&5
11322 echo "${ECHO_T}$ac_res" >&6; }
11323 else
11324   # Is the header compilable?
11325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h.  */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h.  */
11333 $ac_includes_default
11334 #include <$ac_header>
11335 _ACEOF
11336 rm -f conftest.$ac_objext
11337 if { (ac_try="$ac_compile"
11338 case "(($ac_try" in
11339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340   *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343   (eval "$ac_compile") 2>conftest.er1
11344   ac_status=$?
11345   grep -v '^ *+' conftest.er1 >conftest.err
11346   rm -f conftest.er1
11347   cat conftest.err >&5
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); } &&
11350          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11351   { (case "(($ac_try" in
11352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11353   *) ac_try_echo=$ac_try;;
11354 esac
11355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11356   (eval "$ac_try") 2>&5
11357   ac_status=$?
11358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359   (exit $ac_status); }; } &&
11360          { ac_try='test -s conftest.$ac_objext'
11361   { (case "(($ac_try" in
11362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11363   *) ac_try_echo=$ac_try;;
11364 esac
11365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11366   (eval "$ac_try") 2>&5
11367   ac_status=$?
11368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369   (exit $ac_status); }; }; then
11370   ac_header_compiler=yes
11371 else
11372   echo "$as_me: failed program was:" >&5
11373 sed 's/^/| /' conftest.$ac_ext >&5
11374
11375         ac_header_compiler=no
11376 fi
11377
11378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11380 echo "${ECHO_T}$ac_header_compiler" >&6; }
11381
11382 # Is the header present?
11383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11385 cat >conftest.$ac_ext <<_ACEOF
11386 /* confdefs.h.  */
11387 _ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h.  */
11391 #include <$ac_header>
11392 _ACEOF
11393 if { (ac_try="$ac_cpp conftest.$ac_ext"
11394 case "(($ac_try" in
11395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396   *) ac_try_echo=$ac_try;;
11397 esac
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11400   ac_status=$?
11401   grep -v '^ *+' conftest.er1 >conftest.err
11402   rm -f conftest.er1
11403   cat conftest.err >&5
11404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405   (exit $ac_status); } >/dev/null; then
11406   if test -s conftest.err; then
11407     ac_cpp_err=$ac_c_preproc_warn_flag
11408     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11409   else
11410     ac_cpp_err=
11411   fi
11412 else
11413   ac_cpp_err=yes
11414 fi
11415 if test -z "$ac_cpp_err"; then
11416   ac_header_preproc=yes
11417 else
11418   echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11420
11421   ac_header_preproc=no
11422 fi
11423
11424 rm -f conftest.err conftest.$ac_ext
11425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11426 echo "${ECHO_T}$ac_header_preproc" >&6; }
11427
11428 # So?  What about this header?
11429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11430   yes:no: )
11431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11435     ac_header_preproc=yes
11436     ;;
11437   no:yes:* )
11438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11450     ( cat <<\_ASBOX
11451 ## ------------------------------------ ##
11452 ## Report this to http://llvm.org/bugs/ ##
11453 ## ------------------------------------ ##
11454 _ASBOX
11455      ) | sed "s/^/$as_me: WARNING:     /" >&2
11456     ;;
11457 esac
11458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11461   echo $ECHO_N "(cached) $ECHO_C" >&6
11462 else
11463   eval "$as_ac_Header=\$ac_header_preproc"
11464 fi
11465 ac_res=`eval echo '${'$as_ac_Header'}'`
11466                { echo "$as_me:$LINENO: result: $ac_res" >&5
11467 echo "${ECHO_T}$ac_res" >&6; }
11468
11469 fi
11470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11471   cat >>confdefs.h <<_ACEOF
11472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11473 _ACEOF
11474
11475 fi
11476
11477 done
11478
11479
11480
11481
11482
11483
11484
11485 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11486 do
11487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11489   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492   echo $ECHO_N "(cached) $ECHO_C" >&6
11493 fi
11494 ac_res=`eval echo '${'$as_ac_Header'}'`
11495                { echo "$as_me:$LINENO: result: $ac_res" >&5
11496 echo "${ECHO_T}$ac_res" >&6; }
11497 else
11498   # Is the header compilable?
11499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11501 cat >conftest.$ac_ext <<_ACEOF
11502 /* confdefs.h.  */
11503 _ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h.  */
11507 $ac_includes_default
11508 #include <$ac_header>
11509 _ACEOF
11510 rm -f conftest.$ac_objext
11511 if { (ac_try="$ac_compile"
11512 case "(($ac_try" in
11513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514   *) ac_try_echo=$ac_try;;
11515 esac
11516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517   (eval "$ac_compile") 2>conftest.er1
11518   ac_status=$?
11519   grep -v '^ *+' conftest.er1 >conftest.err
11520   rm -f conftest.er1
11521   cat conftest.err >&5
11522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); } &&
11524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11525   { (case "(($ac_try" in
11526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527   *) ac_try_echo=$ac_try;;
11528 esac
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530   (eval "$ac_try") 2>&5
11531   ac_status=$?
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   (exit $ac_status); }; } &&
11534          { ac_try='test -s conftest.$ac_objext'
11535   { (case "(($ac_try" in
11536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537   *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540   (eval "$ac_try") 2>&5
11541   ac_status=$?
11542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); }; }; then
11544   ac_header_compiler=yes
11545 else
11546   echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11548
11549         ac_header_compiler=no
11550 fi
11551
11552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11554 echo "${ECHO_T}$ac_header_compiler" >&6; }
11555
11556 # Is the header present?
11557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11559 cat >conftest.$ac_ext <<_ACEOF
11560 /* confdefs.h.  */
11561 _ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h.  */
11565 #include <$ac_header>
11566 _ACEOF
11567 if { (ac_try="$ac_cpp conftest.$ac_ext"
11568 case "(($ac_try" in
11569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570   *) ac_try_echo=$ac_try;;
11571 esac
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11574   ac_status=$?
11575   grep -v '^ *+' conftest.er1 >conftest.err
11576   rm -f conftest.er1
11577   cat conftest.err >&5
11578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); } >/dev/null; then
11580   if test -s conftest.err; then
11581     ac_cpp_err=$ac_c_preproc_warn_flag
11582     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11583   else
11584     ac_cpp_err=
11585   fi
11586 else
11587   ac_cpp_err=yes
11588 fi
11589 if test -z "$ac_cpp_err"; then
11590   ac_header_preproc=yes
11591 else
11592   echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11594
11595   ac_header_preproc=no
11596 fi
11597
11598 rm -f conftest.err conftest.$ac_ext
11599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11600 echo "${ECHO_T}$ac_header_preproc" >&6; }
11601
11602 # So?  What about this header?
11603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11604   yes:no: )
11605     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11607     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11609     ac_header_preproc=yes
11610     ;;
11611   no:yes:* )
11612     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11614     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11615 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11616     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11618     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11619 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11620     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11622     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11624     ( cat <<\_ASBOX
11625 ## ------------------------------------ ##
11626 ## Report this to http://llvm.org/bugs/ ##
11627 ## ------------------------------------ ##
11628 _ASBOX
11629      ) | sed "s/^/$as_me: WARNING:     /" >&2
11630     ;;
11631 esac
11632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11635   echo $ECHO_N "(cached) $ECHO_C" >&6
11636 else
11637   eval "$as_ac_Header=\$ac_header_preproc"
11638 fi
11639 ac_res=`eval echo '${'$as_ac_Header'}'`
11640                { echo "$as_me:$LINENO: result: $ac_res" >&5
11641 echo "${ECHO_T}$ac_res" >&6; }
11642
11643 fi
11644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11645   cat >>confdefs.h <<_ACEOF
11646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11647 _ACEOF
11648
11649 fi
11650
11651 done
11652
11653
11654 for ac_header in utime.h
11655 do
11656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11658   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11661   echo $ECHO_N "(cached) $ECHO_C" >&6
11662 fi
11663 ac_res=`eval echo '${'$as_ac_Header'}'`
11664                { echo "$as_me:$LINENO: result: $ac_res" >&5
11665 echo "${ECHO_T}$ac_res" >&6; }
11666 else
11667   # Is the header compilable?
11668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11670 cat >conftest.$ac_ext <<_ACEOF
11671 /* confdefs.h.  */
11672 _ACEOF
11673 cat confdefs.h >>conftest.$ac_ext
11674 cat >>conftest.$ac_ext <<_ACEOF
11675 /* end confdefs.h.  */
11676 $ac_includes_default
11677 #include <$ac_header>
11678 _ACEOF
11679 rm -f conftest.$ac_objext
11680 if { (ac_try="$ac_compile"
11681 case "(($ac_try" in
11682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683   *) ac_try_echo=$ac_try;;
11684 esac
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686   (eval "$ac_compile") 2>conftest.er1
11687   ac_status=$?
11688   grep -v '^ *+' conftest.er1 >conftest.err
11689   rm -f conftest.er1
11690   cat conftest.err >&5
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); } &&
11693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11694   { (case "(($ac_try" in
11695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696   *) ac_try_echo=$ac_try;;
11697 esac
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699   (eval "$ac_try") 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; } &&
11703          { ac_try='test -s conftest.$ac_objext'
11704   { (case "(($ac_try" in
11705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706   *) ac_try_echo=$ac_try;;
11707 esac
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709   (eval "$ac_try") 2>&5
11710   ac_status=$?
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); }; }; then
11713   ac_header_compiler=yes
11714 else
11715   echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11717
11718         ac_header_compiler=no
11719 fi
11720
11721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11723 echo "${ECHO_T}$ac_header_compiler" >&6; }
11724
11725 # Is the header present?
11726 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11727 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11728 cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h.  */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h.  */
11734 #include <$ac_header>
11735 _ACEOF
11736 if { (ac_try="$ac_cpp conftest.$ac_ext"
11737 case "(($ac_try" in
11738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739   *) ac_try_echo=$ac_try;;
11740 esac
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11743   ac_status=$?
11744   grep -v '^ *+' conftest.er1 >conftest.err
11745   rm -f conftest.er1
11746   cat conftest.err >&5
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } >/dev/null; then
11749   if test -s conftest.err; then
11750     ac_cpp_err=$ac_c_preproc_warn_flag
11751     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11752   else
11753     ac_cpp_err=
11754   fi
11755 else
11756   ac_cpp_err=yes
11757 fi
11758 if test -z "$ac_cpp_err"; then
11759   ac_header_preproc=yes
11760 else
11761   echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11763
11764   ac_header_preproc=no
11765 fi
11766
11767 rm -f conftest.err conftest.$ac_ext
11768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11769 echo "${ECHO_T}$ac_header_preproc" >&6; }
11770
11771 # So?  What about this header?
11772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11773   yes:no: )
11774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11778     ac_header_preproc=yes
11779     ;;
11780   no:yes:* )
11781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11793     ( cat <<\_ASBOX
11794 ## ------------------------------------ ##
11795 ## Report this to http://llvm.org/bugs/ ##
11796 ## ------------------------------------ ##
11797 _ASBOX
11798      ) | sed "s/^/$as_me: WARNING:     /" >&2
11799     ;;
11800 esac
11801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11804   echo $ECHO_N "(cached) $ECHO_C" >&6
11805 else
11806   eval "$as_ac_Header=\$ac_header_preproc"
11807 fi
11808 ac_res=`eval echo '${'$as_ac_Header'}'`
11809                { echo "$as_me:$LINENO: result: $ac_res" >&5
11810 echo "${ECHO_T}$ac_res" >&6; }
11811
11812 fi
11813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11814   cat >>confdefs.h <<_ACEOF
11815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11816 _ACEOF
11817
11818 fi
11819
11820 done
11821
11822
11823
11824
11825
11826
11827 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11828 do
11829 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11831   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11834   echo $ECHO_N "(cached) $ECHO_C" >&6
11835 fi
11836 ac_res=`eval echo '${'$as_ac_Header'}'`
11837                { echo "$as_me:$LINENO: result: $ac_res" >&5
11838 echo "${ECHO_T}$ac_res" >&6; }
11839 else
11840   # Is the header compilable?
11841 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11843 cat >conftest.$ac_ext <<_ACEOF
11844 /* confdefs.h.  */
11845 _ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h.  */
11849 $ac_includes_default
11850 #include <$ac_header>
11851 _ACEOF
11852 rm -f conftest.$ac_objext
11853 if { (ac_try="$ac_compile"
11854 case "(($ac_try" in
11855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856   *) ac_try_echo=$ac_try;;
11857 esac
11858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11859   (eval "$ac_compile") 2>conftest.er1
11860   ac_status=$?
11861   grep -v '^ *+' conftest.er1 >conftest.err
11862   rm -f conftest.er1
11863   cat conftest.err >&5
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); } &&
11866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11867   { (case "(($ac_try" in
11868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11869   *) ac_try_echo=$ac_try;;
11870 esac
11871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11872   (eval "$ac_try") 2>&5
11873   ac_status=$?
11874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875   (exit $ac_status); }; } &&
11876          { ac_try='test -s conftest.$ac_objext'
11877   { (case "(($ac_try" in
11878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879   *) ac_try_echo=$ac_try;;
11880 esac
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882   (eval "$ac_try") 2>&5
11883   ac_status=$?
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); }; }; then
11886   ac_header_compiler=yes
11887 else
11888   echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11890
11891         ac_header_compiler=no
11892 fi
11893
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11896 echo "${ECHO_T}$ac_header_compiler" >&6; }
11897
11898 # Is the header present?
11899 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11901 cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h.  */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h.  */
11907 #include <$ac_header>
11908 _ACEOF
11909 if { (ac_try="$ac_cpp conftest.$ac_ext"
11910 case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11916   ac_status=$?
11917   grep -v '^ *+' conftest.er1 >conftest.err
11918   rm -f conftest.er1
11919   cat conftest.err >&5
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } >/dev/null; then
11922   if test -s conftest.err; then
11923     ac_cpp_err=$ac_c_preproc_warn_flag
11924     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11925   else
11926     ac_cpp_err=
11927   fi
11928 else
11929   ac_cpp_err=yes
11930 fi
11931 if test -z "$ac_cpp_err"; then
11932   ac_header_preproc=yes
11933 else
11934   echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11936
11937   ac_header_preproc=no
11938 fi
11939
11940 rm -f conftest.err conftest.$ac_ext
11941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11942 echo "${ECHO_T}$ac_header_preproc" >&6; }
11943
11944 # So?  What about this header?
11945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11946   yes:no: )
11947     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11951     ac_header_preproc=yes
11952     ;;
11953   no:yes:* )
11954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11956     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11957 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11958     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11960     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11961 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11964     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11966     ( cat <<\_ASBOX
11967 ## ------------------------------------ ##
11968 ## Report this to http://llvm.org/bugs/ ##
11969 ## ------------------------------------ ##
11970 _ASBOX
11971      ) | sed "s/^/$as_me: WARNING:     /" >&2
11972     ;;
11973 esac
11974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11977   echo $ECHO_N "(cached) $ECHO_C" >&6
11978 else
11979   eval "$as_ac_Header=\$ac_header_preproc"
11980 fi
11981 ac_res=`eval echo '${'$as_ac_Header'}'`
11982                { echo "$as_me:$LINENO: result: $ac_res" >&5
11983 echo "${ECHO_T}$ac_res" >&6; }
11984
11985 fi
11986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11987   cat >>confdefs.h <<_ACEOF
11988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11989 _ACEOF
11990
11991 fi
11992
11993 done
11994
11995
11996
11997
11998 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11999 do
12000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12002   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12005   echo $ECHO_N "(cached) $ECHO_C" >&6
12006 fi
12007 ac_res=`eval echo '${'$as_ac_Header'}'`
12008                { echo "$as_me:$LINENO: result: $ac_res" >&5
12009 echo "${ECHO_T}$ac_res" >&6; }
12010 else
12011   # Is the header compilable?
12012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12014 cat >conftest.$ac_ext <<_ACEOF
12015 /* confdefs.h.  */
12016 _ACEOF
12017 cat confdefs.h >>conftest.$ac_ext
12018 cat >>conftest.$ac_ext <<_ACEOF
12019 /* end confdefs.h.  */
12020 $ac_includes_default
12021 #include <$ac_header>
12022 _ACEOF
12023 rm -f conftest.$ac_objext
12024 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12031   ac_status=$?
12032   grep -v '^ *+' conftest.er1 >conftest.err
12033   rm -f conftest.er1
12034   cat conftest.err >&5
12035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036   (exit $ac_status); } &&
12037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12038   { (case "(($ac_try" in
12039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040   *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043   (eval "$ac_try") 2>&5
12044   ac_status=$?
12045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046   (exit $ac_status); }; } &&
12047          { ac_try='test -s conftest.$ac_objext'
12048   { (case "(($ac_try" in
12049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050   *) ac_try_echo=$ac_try;;
12051 esac
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053   (eval "$ac_try") 2>&5
12054   ac_status=$?
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); }; }; then
12057   ac_header_compiler=yes
12058 else
12059   echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12061
12062         ac_header_compiler=no
12063 fi
12064
12065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12067 echo "${ECHO_T}$ac_header_compiler" >&6; }
12068
12069 # Is the header present?
12070 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12071 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12072 cat >conftest.$ac_ext <<_ACEOF
12073 /* confdefs.h.  */
12074 _ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h.  */
12078 #include <$ac_header>
12079 _ACEOF
12080 if { (ac_try="$ac_cpp conftest.$ac_ext"
12081 case "(($ac_try" in
12082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083   *) ac_try_echo=$ac_try;;
12084 esac
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12087   ac_status=$?
12088   grep -v '^ *+' conftest.er1 >conftest.err
12089   rm -f conftest.er1
12090   cat conftest.err >&5
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); } >/dev/null; then
12093   if test -s conftest.err; then
12094     ac_cpp_err=$ac_c_preproc_warn_flag
12095     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12096   else
12097     ac_cpp_err=
12098   fi
12099 else
12100   ac_cpp_err=yes
12101 fi
12102 if test -z "$ac_cpp_err"; then
12103   ac_header_preproc=yes
12104 else
12105   echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108   ac_header_preproc=no
12109 fi
12110
12111 rm -f conftest.err conftest.$ac_ext
12112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12113 echo "${ECHO_T}$ac_header_preproc" >&6; }
12114
12115 # So?  What about this header?
12116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12117   yes:no: )
12118     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12122     ac_header_preproc=yes
12123     ;;
12124   no:yes:* )
12125     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12127     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12128 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12129     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12131     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12132 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12135     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12137     ( cat <<\_ASBOX
12138 ## ------------------------------------ ##
12139 ## Report this to http://llvm.org/bugs/ ##
12140 ## ------------------------------------ ##
12141 _ASBOX
12142      ) | sed "s/^/$as_me: WARNING:     /" >&2
12143     ;;
12144 esac
12145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12148   echo $ECHO_N "(cached) $ECHO_C" >&6
12149 else
12150   eval "$as_ac_Header=\$ac_header_preproc"
12151 fi
12152 ac_res=`eval echo '${'$as_ac_Header'}'`
12153                { echo "$as_me:$LINENO: result: $ac_res" >&5
12154 echo "${ECHO_T}$ac_res" >&6; }
12155
12156 fi
12157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12158   cat >>confdefs.h <<_ACEOF
12159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12160 _ACEOF
12161
12162 fi
12163
12164 done
12165
12166
12167 for ac_header in valgrind/valgrind.h
12168 do
12169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12171   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12174   echo $ECHO_N "(cached) $ECHO_C" >&6
12175 fi
12176 ac_res=`eval echo '${'$as_ac_Header'}'`
12177                { echo "$as_me:$LINENO: result: $ac_res" >&5
12178 echo "${ECHO_T}$ac_res" >&6; }
12179 else
12180   # Is the header compilable?
12181 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12182 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12183 cat >conftest.$ac_ext <<_ACEOF
12184 /* confdefs.h.  */
12185 _ACEOF
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h.  */
12189 $ac_includes_default
12190 #include <$ac_header>
12191 _ACEOF
12192 rm -f conftest.$ac_objext
12193 if { (ac_try="$ac_compile"
12194 case "(($ac_try" in
12195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196   *) ac_try_echo=$ac_try;;
12197 esac
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199   (eval "$ac_compile") 2>conftest.er1
12200   ac_status=$?
12201   grep -v '^ *+' conftest.er1 >conftest.err
12202   rm -f conftest.er1
12203   cat conftest.err >&5
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); } &&
12206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12207   { (case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212   (eval "$ac_try") 2>&5
12213   ac_status=$?
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); }; } &&
12216          { ac_try='test -s conftest.$ac_objext'
12217   { (case "(($ac_try" in
12218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12219   *) ac_try_echo=$ac_try;;
12220 esac
12221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12222   (eval "$ac_try") 2>&5
12223   ac_status=$?
12224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225   (exit $ac_status); }; }; then
12226   ac_header_compiler=yes
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231         ac_header_compiler=no
12232 fi
12233
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12236 echo "${ECHO_T}$ac_header_compiler" >&6; }
12237
12238 # Is the header present?
12239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12241 cat >conftest.$ac_ext <<_ACEOF
12242 /* confdefs.h.  */
12243 _ACEOF
12244 cat confdefs.h >>conftest.$ac_ext
12245 cat >>conftest.$ac_ext <<_ACEOF
12246 /* end confdefs.h.  */
12247 #include <$ac_header>
12248 _ACEOF
12249 if { (ac_try="$ac_cpp conftest.$ac_ext"
12250 case "(($ac_try" in
12251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252   *) ac_try_echo=$ac_try;;
12253 esac
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12256   ac_status=$?
12257   grep -v '^ *+' conftest.er1 >conftest.err
12258   rm -f conftest.er1
12259   cat conftest.err >&5
12260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261   (exit $ac_status); } >/dev/null; then
12262   if test -s conftest.err; then
12263     ac_cpp_err=$ac_c_preproc_warn_flag
12264     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12265   else
12266     ac_cpp_err=
12267   fi
12268 else
12269   ac_cpp_err=yes
12270 fi
12271 if test -z "$ac_cpp_err"; then
12272   ac_header_preproc=yes
12273 else
12274   echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12276
12277   ac_header_preproc=no
12278 fi
12279
12280 rm -f conftest.err conftest.$ac_ext
12281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12282 echo "${ECHO_T}$ac_header_preproc" >&6; }
12283
12284 # So?  What about this header?
12285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12286   yes:no: )
12287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12291     ac_header_preproc=yes
12292     ;;
12293   no:yes:* )
12294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12306     ( cat <<\_ASBOX
12307 ## ------------------------------------ ##
12308 ## Report this to http://llvm.org/bugs/ ##
12309 ## ------------------------------------ ##
12310 _ASBOX
12311      ) | sed "s/^/$as_me: WARNING:     /" >&2
12312     ;;
12313 esac
12314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12317   echo $ECHO_N "(cached) $ECHO_C" >&6
12318 else
12319   eval "$as_ac_Header=\$ac_header_preproc"
12320 fi
12321 ac_res=`eval echo '${'$as_ac_Header'}'`
12322                { echo "$as_me:$LINENO: result: $ac_res" >&5
12323 echo "${ECHO_T}$ac_res" >&6; }
12324
12325 fi
12326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12327   cat >>confdefs.h <<_ACEOF
12328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12329 _ACEOF
12330
12331 fi
12332
12333 done
12334
12335
12336 for ac_header in fenv.h
12337 do
12338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12340   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12343   echo $ECHO_N "(cached) $ECHO_C" >&6
12344 fi
12345 ac_res=`eval echo '${'$as_ac_Header'}'`
12346                { echo "$as_me:$LINENO: result: $ac_res" >&5
12347 echo "${ECHO_T}$ac_res" >&6; }
12348 else
12349   # Is the header compilable?
12350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12352 cat >conftest.$ac_ext <<_ACEOF
12353 /* confdefs.h.  */
12354 _ACEOF
12355 cat confdefs.h >>conftest.$ac_ext
12356 cat >>conftest.$ac_ext <<_ACEOF
12357 /* end confdefs.h.  */
12358 $ac_includes_default
12359 #include <$ac_header>
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (ac_try="$ac_compile"
12363 case "(($ac_try" in
12364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365   *) ac_try_echo=$ac_try;;
12366 esac
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368   (eval "$ac_compile") 2>conftest.er1
12369   ac_status=$?
12370   grep -v '^ *+' conftest.er1 >conftest.err
12371   rm -f conftest.er1
12372   cat conftest.err >&5
12373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374   (exit $ac_status); } &&
12375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12376   { (case "(($ac_try" in
12377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378   *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381   (eval "$ac_try") 2>&5
12382   ac_status=$?
12383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384   (exit $ac_status); }; } &&
12385          { ac_try='test -s conftest.$ac_objext'
12386   { (case "(($ac_try" in
12387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388   *) ac_try_echo=$ac_try;;
12389 esac
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391   (eval "$ac_try") 2>&5
12392   ac_status=$?
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); }; }; then
12395   ac_header_compiler=yes
12396 else
12397   echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12399
12400         ac_header_compiler=no
12401 fi
12402
12403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12405 echo "${ECHO_T}$ac_header_compiler" >&6; }
12406
12407 # Is the header present?
12408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12410 cat >conftest.$ac_ext <<_ACEOF
12411 /* confdefs.h.  */
12412 _ACEOF
12413 cat confdefs.h >>conftest.$ac_ext
12414 cat >>conftest.$ac_ext <<_ACEOF
12415 /* end confdefs.h.  */
12416 #include <$ac_header>
12417 _ACEOF
12418 if { (ac_try="$ac_cpp conftest.$ac_ext"
12419 case "(($ac_try" in
12420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421   *) ac_try_echo=$ac_try;;
12422 esac
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12425   ac_status=$?
12426   grep -v '^ *+' conftest.er1 >conftest.err
12427   rm -f conftest.er1
12428   cat conftest.err >&5
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); } >/dev/null; then
12431   if test -s conftest.err; then
12432     ac_cpp_err=$ac_c_preproc_warn_flag
12433     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12434   else
12435     ac_cpp_err=
12436   fi
12437 else
12438   ac_cpp_err=yes
12439 fi
12440 if test -z "$ac_cpp_err"; then
12441   ac_header_preproc=yes
12442 else
12443   echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446   ac_header_preproc=no
12447 fi
12448
12449 rm -f conftest.err conftest.$ac_ext
12450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12451 echo "${ECHO_T}$ac_header_preproc" >&6; }
12452
12453 # So?  What about this header?
12454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12455   yes:no: )
12456     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12460     ac_header_preproc=yes
12461     ;;
12462   no:yes:* )
12463     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12465     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12466 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12467     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12469     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12470 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12473     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12475     ( cat <<\_ASBOX
12476 ## ------------------------------------ ##
12477 ## Report this to http://llvm.org/bugs/ ##
12478 ## ------------------------------------ ##
12479 _ASBOX
12480      ) | sed "s/^/$as_me: WARNING:     /" >&2
12481     ;;
12482 esac
12483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12486   echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488   eval "$as_ac_Header=\$ac_header_preproc"
12489 fi
12490 ac_res=`eval echo '${'$as_ac_Header'}'`
12491                { echo "$as_me:$LINENO: result: $ac_res" >&5
12492 echo "${ECHO_T}$ac_res" >&6; }
12493
12494 fi
12495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12496   cat >>confdefs.h <<_ACEOF
12497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12498 _ACEOF
12499
12500 fi
12501
12502 done
12503
12504 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12505 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12506 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12507   echo $ECHO_N "(cached) $ECHO_C" >&6
12508 else
12509   cat >conftest.$ac_ext <<_ACEOF
12510 /* confdefs.h.  */
12511 _ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h.  */
12515 #include <fenv.h>
12516
12517 int
12518 main ()
12519 {
12520 #ifndef FE_ALL_EXCEPT
12521   char *p = (char *) FE_ALL_EXCEPT;
12522   return !p;
12523 #endif
12524
12525   ;
12526   return 0;
12527 }
12528 _ACEOF
12529 rm -f conftest.$ac_objext
12530 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12537   ac_status=$?
12538   grep -v '^ *+' conftest.er1 >conftest.err
12539   rm -f conftest.er1
12540   cat conftest.err >&5
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); } &&
12543          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12544   { (case "(($ac_try" in
12545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546   *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549   (eval "$ac_try") 2>&5
12550   ac_status=$?
12551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552   (exit $ac_status); }; } &&
12553          { ac_try='test -s conftest.$ac_objext'
12554   { (case "(($ac_try" in
12555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556   *) ac_try_echo=$ac_try;;
12557 esac
12558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559   (eval "$ac_try") 2>&5
12560   ac_status=$?
12561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562   (exit $ac_status); }; }; then
12563   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12564 else
12565   echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12567
12568         ac_cv_have_decl_FE_ALL_EXCEPT=no
12569 fi
12570
12571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12572 fi
12573 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12574 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12575 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12576
12577 cat >>confdefs.h <<_ACEOF
12578 #define HAVE_DECL_FE_ALL_EXCEPT 1
12579 _ACEOF
12580
12581
12582 else
12583   cat >>confdefs.h <<_ACEOF
12584 #define HAVE_DECL_FE_ALL_EXCEPT 0
12585 _ACEOF
12586
12587
12588 fi
12589 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12590 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12591 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12592   echo $ECHO_N "(cached) $ECHO_C" >&6
12593 else
12594   cat >conftest.$ac_ext <<_ACEOF
12595 /* confdefs.h.  */
12596 _ACEOF
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h.  */
12600 #include <fenv.h>
12601
12602 int
12603 main ()
12604 {
12605 #ifndef FE_INEXACT
12606   char *p = (char *) FE_INEXACT;
12607   return !p;
12608 #endif
12609
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 rm -f conftest.$ac_objext
12615 if { (ac_try="$ac_compile"
12616 case "(($ac_try" in
12617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618   *) ac_try_echo=$ac_try;;
12619 esac
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621   (eval "$ac_compile") 2>conftest.er1
12622   ac_status=$?
12623   grep -v '^ *+' conftest.er1 >conftest.err
12624   rm -f conftest.er1
12625   cat conftest.err >&5
12626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627   (exit $ac_status); } &&
12628          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12629   { (case "(($ac_try" in
12630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631   *) ac_try_echo=$ac_try;;
12632 esac
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634   (eval "$ac_try") 2>&5
12635   ac_status=$?
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); }; } &&
12638          { ac_try='test -s conftest.$ac_objext'
12639   { (case "(($ac_try" in
12640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641   *) ac_try_echo=$ac_try;;
12642 esac
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644   (eval "$ac_try") 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; }; then
12648   ac_cv_have_decl_FE_INEXACT=yes
12649 else
12650   echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12652
12653         ac_cv_have_decl_FE_INEXACT=no
12654 fi
12655
12656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12657 fi
12658 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12659 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12660 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12661
12662 cat >>confdefs.h <<_ACEOF
12663 #define HAVE_DECL_FE_INEXACT 1
12664 _ACEOF
12665
12666
12667 else
12668   cat >>confdefs.h <<_ACEOF
12669 #define HAVE_DECL_FE_INEXACT 0
12670 _ACEOF
12671
12672
12673 fi
12674
12675
12676 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12677
12678 for ac_header in pthread.h
12679 do
12680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12682   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12685   echo $ECHO_N "(cached) $ECHO_C" >&6
12686 fi
12687 ac_res=`eval echo '${'$as_ac_Header'}'`
12688                { echo "$as_me:$LINENO: result: $ac_res" >&5
12689 echo "${ECHO_T}$ac_res" >&6; }
12690 else
12691   # Is the header compilable?
12692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12694 cat >conftest.$ac_ext <<_ACEOF
12695 /* confdefs.h.  */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h.  */
12700 $ac_includes_default
12701 #include <$ac_header>
12702 _ACEOF
12703 rm -f conftest.$ac_objext
12704 if { (ac_try="$ac_compile"
12705 case "(($ac_try" in
12706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707   *) ac_try_echo=$ac_try;;
12708 esac
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710   (eval "$ac_compile") 2>conftest.er1
12711   ac_status=$?
12712   grep -v '^ *+' conftest.er1 >conftest.err
12713   rm -f conftest.er1
12714   cat conftest.err >&5
12715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716   (exit $ac_status); } &&
12717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12718   { (case "(($ac_try" in
12719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12720   *) ac_try_echo=$ac_try;;
12721 esac
12722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12723   (eval "$ac_try") 2>&5
12724   ac_status=$?
12725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726   (exit $ac_status); }; } &&
12727          { ac_try='test -s conftest.$ac_objext'
12728   { (case "(($ac_try" in
12729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12730   *) ac_try_echo=$ac_try;;
12731 esac
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733   (eval "$ac_try") 2>&5
12734   ac_status=$?
12735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736   (exit $ac_status); }; }; then
12737   ac_header_compiler=yes
12738 else
12739   echo "$as_me: failed program was:" >&5
12740 sed 's/^/| /' conftest.$ac_ext >&5
12741
12742         ac_header_compiler=no
12743 fi
12744
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12747 echo "${ECHO_T}$ac_header_compiler" >&6; }
12748
12749 # Is the header present?
12750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h.  */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h.  */
12758 #include <$ac_header>
12759 _ACEOF
12760 if { (ac_try="$ac_cpp conftest.$ac_ext"
12761 case "(($ac_try" in
12762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12763   *) ac_try_echo=$ac_try;;
12764 esac
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12767   ac_status=$?
12768   grep -v '^ *+' conftest.er1 >conftest.err
12769   rm -f conftest.er1
12770   cat conftest.err >&5
12771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772   (exit $ac_status); } >/dev/null; then
12773   if test -s conftest.err; then
12774     ac_cpp_err=$ac_c_preproc_warn_flag
12775     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12776   else
12777     ac_cpp_err=
12778   fi
12779 else
12780   ac_cpp_err=yes
12781 fi
12782 if test -z "$ac_cpp_err"; then
12783   ac_header_preproc=yes
12784 else
12785   echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12787
12788   ac_header_preproc=no
12789 fi
12790
12791 rm -f conftest.err conftest.$ac_ext
12792 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12793 echo "${ECHO_T}$ac_header_preproc" >&6; }
12794
12795 # So?  What about this header?
12796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12797   yes:no: )
12798     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12799 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12800     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12801 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12802     ac_header_preproc=yes
12803     ;;
12804   no:yes:* )
12805     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12806 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12807     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12808 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12809     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12810 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12811     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12812 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12814 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12815     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12816 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12817     ( cat <<\_ASBOX
12818 ## ------------------------------------ ##
12819 ## Report this to http://llvm.org/bugs/ ##
12820 ## ------------------------------------ ##
12821 _ASBOX
12822      ) | sed "s/^/$as_me: WARNING:     /" >&2
12823     ;;
12824 esac
12825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12828   echo $ECHO_N "(cached) $ECHO_C" >&6
12829 else
12830   eval "$as_ac_Header=\$ac_header_preproc"
12831 fi
12832 ac_res=`eval echo '${'$as_ac_Header'}'`
12833                { echo "$as_me:$LINENO: result: $ac_res" >&5
12834 echo "${ECHO_T}$ac_res" >&6; }
12835
12836 fi
12837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12838   cat >>confdefs.h <<_ACEOF
12839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12840 _ACEOF
12841  HAVE_PTHREAD=1
12842
12843 else
12844   HAVE_PTHREAD=0
12845
12846 fi
12847
12848 done
12849
12850 else
12851   HAVE_PTHREAD=0
12852
12853 fi
12854 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12855
12856 for ac_header in zlib.h
12857 do
12858 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12860   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12863   echo $ECHO_N "(cached) $ECHO_C" >&6
12864 fi
12865 ac_res=`eval echo '${'$as_ac_Header'}'`
12866                { echo "$as_me:$LINENO: result: $ac_res" >&5
12867 echo "${ECHO_T}$ac_res" >&6; }
12868 else
12869   # Is the header compilable?
12870 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12872 cat >conftest.$ac_ext <<_ACEOF
12873 /* confdefs.h.  */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h.  */
12878 $ac_includes_default
12879 #include <$ac_header>
12880 _ACEOF
12881 rm -f conftest.$ac_objext
12882 if { (ac_try="$ac_compile"
12883 case "(($ac_try" in
12884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885   *) ac_try_echo=$ac_try;;
12886 esac
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888   (eval "$ac_compile") 2>conftest.er1
12889   ac_status=$?
12890   grep -v '^ *+' conftest.er1 >conftest.err
12891   rm -f conftest.er1
12892   cat conftest.err >&5
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); } &&
12895          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12896   { (case "(($ac_try" in
12897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898   *) ac_try_echo=$ac_try;;
12899 esac
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901   (eval "$ac_try") 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); }; } &&
12905          { ac_try='test -s conftest.$ac_objext'
12906   { (case "(($ac_try" in
12907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908   *) ac_try_echo=$ac_try;;
12909 esac
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911   (eval "$ac_try") 2>&5
12912   ac_status=$?
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); }; }; then
12915   ac_header_compiler=yes
12916 else
12917   echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920         ac_header_compiler=no
12921 fi
12922
12923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12925 echo "${ECHO_T}$ac_header_compiler" >&6; }
12926
12927 # Is the header present?
12928 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12929 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12930 cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h.  */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h.  */
12936 #include <$ac_header>
12937 _ACEOF
12938 if { (ac_try="$ac_cpp conftest.$ac_ext"
12939 case "(($ac_try" in
12940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12941   *) ac_try_echo=$ac_try;;
12942 esac
12943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12944   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12945   ac_status=$?
12946   grep -v '^ *+' conftest.er1 >conftest.err
12947   rm -f conftest.er1
12948   cat conftest.err >&5
12949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950   (exit $ac_status); } >/dev/null; then
12951   if test -s conftest.err; then
12952     ac_cpp_err=$ac_c_preproc_warn_flag
12953     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12954   else
12955     ac_cpp_err=
12956   fi
12957 else
12958   ac_cpp_err=yes
12959 fi
12960 if test -z "$ac_cpp_err"; then
12961   ac_header_preproc=yes
12962 else
12963   echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12965
12966   ac_header_preproc=no
12967 fi
12968
12969 rm -f conftest.err conftest.$ac_ext
12970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12971 echo "${ECHO_T}$ac_header_preproc" >&6; }
12972
12973 # So?  What about this header?
12974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12975   yes:no: )
12976     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12978     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12980     ac_header_preproc=yes
12981     ;;
12982   no:yes:* )
12983     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12985     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12986 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12987     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12989     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12990 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12991     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12993     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12995     ( cat <<\_ASBOX
12996 ## ------------------------------------ ##
12997 ## Report this to http://llvm.org/bugs/ ##
12998 ## ------------------------------------ ##
12999 _ASBOX
13000      ) | sed "s/^/$as_me: WARNING:     /" >&2
13001     ;;
13002 esac
13003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13006   echo $ECHO_N "(cached) $ECHO_C" >&6
13007 else
13008   eval "$as_ac_Header=\$ac_header_preproc"
13009 fi
13010 ac_res=`eval echo '${'$as_ac_Header'}'`
13011                { echo "$as_me:$LINENO: result: $ac_res" >&5
13012 echo "${ECHO_T}$ac_res" >&6; }
13013
13014 fi
13015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13016   cat >>confdefs.h <<_ACEOF
13017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13018 _ACEOF
13019  HAVE_LIBZ=1
13020
13021 else
13022   HAVE_LIBZ=0
13023
13024 fi
13025
13026 done
13027
13028 else
13029   HAVE_LIBZ=0
13030
13031 fi
13032
13033 if test "$llvm_cv_enable_libffi" = "yes" ; then
13034
13035
13036 for ac_header in ffi.h ffi/ffi.h
13037 do
13038 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13040   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13043   echo $ECHO_N "(cached) $ECHO_C" >&6
13044 fi
13045 ac_res=`eval echo '${'$as_ac_Header'}'`
13046                { echo "$as_me:$LINENO: result: $ac_res" >&5
13047 echo "${ECHO_T}$ac_res" >&6; }
13048 else
13049   # Is the header compilable?
13050 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13051 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13052 cat >conftest.$ac_ext <<_ACEOF
13053 /* confdefs.h.  */
13054 _ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h.  */
13058 $ac_includes_default
13059 #include <$ac_header>
13060 _ACEOF
13061 rm -f conftest.$ac_objext
13062 if { (ac_try="$ac_compile"
13063 case "(($ac_try" in
13064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065   *) ac_try_echo=$ac_try;;
13066 esac
13067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068   (eval "$ac_compile") 2>conftest.er1
13069   ac_status=$?
13070   grep -v '^ *+' conftest.er1 >conftest.err
13071   rm -f conftest.er1
13072   cat conftest.err >&5
13073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074   (exit $ac_status); } &&
13075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13076   { (case "(($ac_try" in
13077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13078   *) ac_try_echo=$ac_try;;
13079 esac
13080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13081   (eval "$ac_try") 2>&5
13082   ac_status=$?
13083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084   (exit $ac_status); }; } &&
13085          { ac_try='test -s conftest.$ac_objext'
13086   { (case "(($ac_try" in
13087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13088   *) ac_try_echo=$ac_try;;
13089 esac
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091   (eval "$ac_try") 2>&5
13092   ac_status=$?
13093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094   (exit $ac_status); }; }; then
13095   ac_header_compiler=yes
13096 else
13097   echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13099
13100         ac_header_compiler=no
13101 fi
13102
13103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13105 echo "${ECHO_T}$ac_header_compiler" >&6; }
13106
13107 # Is the header present?
13108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13110 cat >conftest.$ac_ext <<_ACEOF
13111 /* confdefs.h.  */
13112 _ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h.  */
13116 #include <$ac_header>
13117 _ACEOF
13118 if { (ac_try="$ac_cpp conftest.$ac_ext"
13119 case "(($ac_try" in
13120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121   *) ac_try_echo=$ac_try;;
13122 esac
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13125   ac_status=$?
13126   grep -v '^ *+' conftest.er1 >conftest.err
13127   rm -f conftest.er1
13128   cat conftest.err >&5
13129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13130   (exit $ac_status); } >/dev/null; then
13131   if test -s conftest.err; then
13132     ac_cpp_err=$ac_c_preproc_warn_flag
13133     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13134   else
13135     ac_cpp_err=
13136   fi
13137 else
13138   ac_cpp_err=yes
13139 fi
13140 if test -z "$ac_cpp_err"; then
13141   ac_header_preproc=yes
13142 else
13143   echo "$as_me: failed program was:" >&5
13144 sed 's/^/| /' conftest.$ac_ext >&5
13145
13146   ac_header_preproc=no
13147 fi
13148
13149 rm -f conftest.err conftest.$ac_ext
13150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13151 echo "${ECHO_T}$ac_header_preproc" >&6; }
13152
13153 # So?  What about this header?
13154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13155   yes:no: )
13156     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13157 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13158     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13160     ac_header_preproc=yes
13161     ;;
13162   no:yes:* )
13163     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13164 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13165     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13166 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13167     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13168 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13169     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13170 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13171     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13173     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13174 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13175     ( cat <<\_ASBOX
13176 ## ------------------------------------ ##
13177 ## Report this to http://llvm.org/bugs/ ##
13178 ## ------------------------------------ ##
13179 _ASBOX
13180      ) | sed "s/^/$as_me: WARNING:     /" >&2
13181     ;;
13182 esac
13183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13186   echo $ECHO_N "(cached) $ECHO_C" >&6
13187 else
13188   eval "$as_ac_Header=\$ac_header_preproc"
13189 fi
13190 ac_res=`eval echo '${'$as_ac_Header'}'`
13191                { echo "$as_me:$LINENO: result: $ac_res" >&5
13192 echo "${ECHO_T}$ac_res" >&6; }
13193
13194 fi
13195 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13196   cat >>confdefs.h <<_ACEOF
13197 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13198 _ACEOF
13199
13200 fi
13201
13202 done
13203
13204 fi
13205
13206
13207 for ac_header in CrashReporterClient.h
13208 do
13209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13211   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13214   echo $ECHO_N "(cached) $ECHO_C" >&6
13215 fi
13216 ac_res=`eval echo '${'$as_ac_Header'}'`
13217                { echo "$as_me:$LINENO: result: $ac_res" >&5
13218 echo "${ECHO_T}$ac_res" >&6; }
13219 else
13220   # Is the header compilable?
13221 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13222 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13223 cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h.  */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h.  */
13229 $ac_includes_default
13230 #include <$ac_header>
13231 _ACEOF
13232 rm -f conftest.$ac_objext
13233 if { (ac_try="$ac_compile"
13234 case "(($ac_try" in
13235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236   *) ac_try_echo=$ac_try;;
13237 esac
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239   (eval "$ac_compile") 2>conftest.er1
13240   ac_status=$?
13241   grep -v '^ *+' conftest.er1 >conftest.err
13242   rm -f conftest.er1
13243   cat conftest.err >&5
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } &&
13246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13247   { (case "(($ac_try" in
13248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249   *) ac_try_echo=$ac_try;;
13250 esac
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252   (eval "$ac_try") 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); }; } &&
13256          { ac_try='test -s conftest.$ac_objext'
13257   { (case "(($ac_try" in
13258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259   *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262   (eval "$ac_try") 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); }; }; then
13266   ac_header_compiler=yes
13267 else
13268   echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13270
13271         ac_header_compiler=no
13272 fi
13273
13274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13276 echo "${ECHO_T}$ac_header_compiler" >&6; }
13277
13278 # Is the header present?
13279 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13280 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13281 cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h.  */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h.  */
13287 #include <$ac_header>
13288 _ACEOF
13289 if { (ac_try="$ac_cpp conftest.$ac_ext"
13290 case "(($ac_try" in
13291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13292   *) ac_try_echo=$ac_try;;
13293 esac
13294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13295   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13296   ac_status=$?
13297   grep -v '^ *+' conftest.er1 >conftest.err
13298   rm -f conftest.er1
13299   cat conftest.err >&5
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); } >/dev/null; then
13302   if test -s conftest.err; then
13303     ac_cpp_err=$ac_c_preproc_warn_flag
13304     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13305   else
13306     ac_cpp_err=
13307   fi
13308 else
13309   ac_cpp_err=yes
13310 fi
13311 if test -z "$ac_cpp_err"; then
13312   ac_header_preproc=yes
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317   ac_header_preproc=no
13318 fi
13319
13320 rm -f conftest.err conftest.$ac_ext
13321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13322 echo "${ECHO_T}$ac_header_preproc" >&6; }
13323
13324 # So?  What about this header?
13325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13326   yes:no: )
13327     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13331     ac_header_preproc=yes
13332     ;;
13333   no:yes:* )
13334     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13336     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13337 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13338     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13340     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13341 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13344     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13346     ( cat <<\_ASBOX
13347 ## ------------------------------------ ##
13348 ## Report this to http://llvm.org/bugs/ ##
13349 ## ------------------------------------ ##
13350 _ASBOX
13351      ) | sed "s/^/$as_me: WARNING:     /" >&2
13352     ;;
13353 esac
13354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13357   echo $ECHO_N "(cached) $ECHO_C" >&6
13358 else
13359   eval "$as_ac_Header=\$ac_header_preproc"
13360 fi
13361 ac_res=`eval echo '${'$as_ac_Header'}'`
13362                { echo "$as_me:$LINENO: result: $ac_res" >&5
13363 echo "${ECHO_T}$ac_res" >&6; }
13364
13365 fi
13366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13367   cat >>confdefs.h <<_ACEOF
13368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13369 _ACEOF
13370
13371 fi
13372
13373 done
13374
13375
13376 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13377 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13378 cat >conftest.$ac_ext <<_ACEOF
13379
13380   /* confdefs.h.  */
13381 _ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h.  */
13385
13386     extern const char *__crashreporter_info__;
13387     int main() {
13388       __crashreporter_info__ = "test";
13389       return 0;
13390     }
13391
13392
13393 _ACEOF
13394 rm -f conftest.$ac_objext conftest$ac_exeext
13395 if { (ac_try="$ac_link"
13396 case "(($ac_try" in
13397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398   *) ac_try_echo=$ac_try;;
13399 esac
13400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13401   (eval "$ac_link") 2>conftest.er1
13402   ac_status=$?
13403   grep -v '^ *+' conftest.er1 >conftest.err
13404   rm -f conftest.er1
13405   cat conftest.err >&5
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); } &&
13408          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13409   { (case "(($ac_try" in
13410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411   *) ac_try_echo=$ac_try;;
13412 esac
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414   (eval "$ac_try") 2>&5
13415   ac_status=$?
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); }; } &&
13418          { ac_try='test -s conftest$ac_exeext'
13419   { (case "(($ac_try" in
13420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13421   *) ac_try_echo=$ac_try;;
13422 esac
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424   (eval "$ac_try") 2>&5
13425   ac_status=$?
13426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427   (exit $ac_status); }; }; then
13428
13429   { echo "$as_me:$LINENO: result: yes" >&5
13430 echo "${ECHO_T}yes" >&6; }
13431
13432 cat >>confdefs.h <<\_ACEOF
13433 #define HAVE_CRASHREPORTER_INFO 1
13434 _ACEOF
13435
13436
13437 else
13438   echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13440
13441
13442   { echo "$as_me:$LINENO: result: no" >&5
13443 echo "${ECHO_T}no" >&6; }
13444
13445 cat >>confdefs.h <<\_ACEOF
13446 #define HAVE_CRASHREPORTER_INFO 0
13447 _ACEOF
13448
13449
13450 fi
13451
13452 rm -f core conftest.err conftest.$ac_objext \
13453       conftest$ac_exeext conftest.$ac_ext
13454
13455
13456
13457   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13458 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13459 if test "${ac_cv_huge_val_sanity+set}" = set; then
13460   echo $ECHO_N "(cached) $ECHO_C" >&6
13461 else
13462
13463     ac_ext=cpp
13464 ac_cpp='$CXXCPP $CPPFLAGS'
13465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13468
13469     ac_save_CXXFLAGS=$CXXFLAGS
13470     CXXFLAGS="$CXXFLAGS -pedantic"
13471     if test "$cross_compiling" = yes; then
13472   ac_cv_huge_val_sanity=yes
13473 else
13474   cat >conftest.$ac_ext <<_ACEOF
13475 /* confdefs.h.  */
13476 _ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h.  */
13480 #include <math.h>
13481 int
13482 main ()
13483 {
13484 double x = HUGE_VAL; return x != x;
13485   ;
13486   return 0;
13487 }
13488 _ACEOF
13489 rm -f conftest$ac_exeext
13490 if { (ac_try="$ac_link"
13491 case "(($ac_try" in
13492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493   *) ac_try_echo=$ac_try;;
13494 esac
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496   (eval "$ac_link") 2>&5
13497   ac_status=$?
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13500   { (case "(($ac_try" in
13501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502   *) ac_try_echo=$ac_try;;
13503 esac
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505   (eval "$ac_try") 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; }; then
13509   ac_cv_huge_val_sanity=yes
13510 else
13511   echo "$as_me: program exited with status $ac_status" >&5
13512 echo "$as_me: failed program was:" >&5
13513 sed 's/^/| /' conftest.$ac_ext >&5
13514
13515 ( exit $ac_status )
13516 ac_cv_huge_val_sanity=no
13517 fi
13518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13519 fi
13520
13521
13522     CXXFLAGS=$ac_save_CXXFLAGS
13523     ac_ext=c
13524 ac_cpp='$CPP $CPPFLAGS'
13525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13528
13529
13530 fi
13531 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13532 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13533   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13534
13535
13536 { echo "$as_me:$LINENO: checking for pid_t" >&5
13537 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13538 if test "${ac_cv_type_pid_t+set}" = set; then
13539   echo $ECHO_N "(cached) $ECHO_C" >&6
13540 else
13541   cat >conftest.$ac_ext <<_ACEOF
13542 /* confdefs.h.  */
13543 _ACEOF
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h.  */
13547 $ac_includes_default
13548 typedef pid_t ac__type_new_;
13549 int
13550 main ()
13551 {
13552 if ((ac__type_new_ *) 0)
13553   return 0;
13554 if (sizeof (ac__type_new_))
13555   return 0;
13556   ;
13557   return 0;
13558 }
13559 _ACEOF
13560 rm -f conftest.$ac_objext
13561 if { (ac_try="$ac_compile"
13562 case "(($ac_try" in
13563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13564   *) ac_try_echo=$ac_try;;
13565 esac
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567   (eval "$ac_compile") 2>conftest.er1
13568   ac_status=$?
13569   grep -v '^ *+' conftest.er1 >conftest.err
13570   rm -f conftest.er1
13571   cat conftest.err >&5
13572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573   (exit $ac_status); } &&
13574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13575   { (case "(($ac_try" in
13576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577   *) ac_try_echo=$ac_try;;
13578 esac
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580   (eval "$ac_try") 2>&5
13581   ac_status=$?
13582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583   (exit $ac_status); }; } &&
13584          { ac_try='test -s conftest.$ac_objext'
13585   { (case "(($ac_try" in
13586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587   *) ac_try_echo=$ac_try;;
13588 esac
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590   (eval "$ac_try") 2>&5
13591   ac_status=$?
13592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593   (exit $ac_status); }; }; then
13594   ac_cv_type_pid_t=yes
13595 else
13596   echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13598
13599         ac_cv_type_pid_t=no
13600 fi
13601
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 fi
13604 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13605 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13606 if test $ac_cv_type_pid_t = yes; then
13607   :
13608 else
13609
13610 cat >>confdefs.h <<_ACEOF
13611 #define pid_t int
13612 _ACEOF
13613
13614 fi
13615
13616 { echo "$as_me:$LINENO: checking for size_t" >&5
13617 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13618 if test "${ac_cv_type_size_t+set}" = set; then
13619   echo $ECHO_N "(cached) $ECHO_C" >&6
13620 else
13621   cat >conftest.$ac_ext <<_ACEOF
13622 /* confdefs.h.  */
13623 _ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h.  */
13627 $ac_includes_default
13628 typedef size_t ac__type_new_;
13629 int
13630 main ()
13631 {
13632 if ((ac__type_new_ *) 0)
13633   return 0;
13634 if (sizeof (ac__type_new_))
13635   return 0;
13636   ;
13637   return 0;
13638 }
13639 _ACEOF
13640 rm -f conftest.$ac_objext
13641 if { (ac_try="$ac_compile"
13642 case "(($ac_try" in
13643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644   *) ac_try_echo=$ac_try;;
13645 esac
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647   (eval "$ac_compile") 2>conftest.er1
13648   ac_status=$?
13649   grep -v '^ *+' conftest.er1 >conftest.err
13650   rm -f conftest.er1
13651   cat conftest.err >&5
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); } &&
13654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13655   { (case "(($ac_try" in
13656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13657   *) ac_try_echo=$ac_try;;
13658 esac
13659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13660   (eval "$ac_try") 2>&5
13661   ac_status=$?
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); }; } &&
13664          { ac_try='test -s conftest.$ac_objext'
13665   { (case "(($ac_try" in
13666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667   *) ac_try_echo=$ac_try;;
13668 esac
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670   (eval "$ac_try") 2>&5
13671   ac_status=$?
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); }; }; then
13674   ac_cv_type_size_t=yes
13675 else
13676   echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13678
13679         ac_cv_type_size_t=no
13680 fi
13681
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13683 fi
13684 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13685 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13686 if test $ac_cv_type_size_t = yes; then
13687   :
13688 else
13689
13690 cat >>confdefs.h <<_ACEOF
13691 #define size_t unsigned int
13692 _ACEOF
13693
13694 fi
13695
13696
13697 cat >>confdefs.h <<_ACEOF
13698 #define RETSIGTYPE void
13699 _ACEOF
13700
13701 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13702 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13703 if test "${ac_cv_struct_tm+set}" = set; then
13704   echo $ECHO_N "(cached) $ECHO_C" >&6
13705 else
13706   cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h.  */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h.  */
13712 #include <sys/types.h>
13713 #include <time.h>
13714
13715 int
13716 main ()
13717 {
13718 struct tm *tp; tp->tm_sec;
13719   ;
13720   return 0;
13721 }
13722 _ACEOF
13723 rm -f conftest.$ac_objext
13724 if { (ac_try="$ac_compile"
13725 case "(($ac_try" in
13726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13727   *) ac_try_echo=$ac_try;;
13728 esac
13729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13730   (eval "$ac_compile") 2>conftest.er1
13731   ac_status=$?
13732   grep -v '^ *+' conftest.er1 >conftest.err
13733   rm -f conftest.er1
13734   cat conftest.err >&5
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); } &&
13737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13738   { (case "(($ac_try" in
13739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740   *) ac_try_echo=$ac_try;;
13741 esac
13742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743   (eval "$ac_try") 2>&5
13744   ac_status=$?
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); }; } &&
13747          { ac_try='test -s conftest.$ac_objext'
13748   { (case "(($ac_try" in
13749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750   *) ac_try_echo=$ac_try;;
13751 esac
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753   (eval "$ac_try") 2>&5
13754   ac_status=$?
13755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756   (exit $ac_status); }; }; then
13757   ac_cv_struct_tm=time.h
13758 else
13759   echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13761
13762         ac_cv_struct_tm=sys/time.h
13763 fi
13764
13765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766 fi
13767 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13768 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13769 if test $ac_cv_struct_tm = sys/time.h; then
13770
13771 cat >>confdefs.h <<\_ACEOF
13772 #define TM_IN_SYS_TIME 1
13773 _ACEOF
13774
13775 fi
13776
13777 { echo "$as_me:$LINENO: checking for int64_t" >&5
13778 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13779 if test "${ac_cv_type_int64_t+set}" = set; then
13780   echo $ECHO_N "(cached) $ECHO_C" >&6
13781 else
13782   cat >conftest.$ac_ext <<_ACEOF
13783 /* confdefs.h.  */
13784 _ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h.  */
13788 $ac_includes_default
13789 typedef int64_t ac__type_new_;
13790 int
13791 main ()
13792 {
13793 if ((ac__type_new_ *) 0)
13794   return 0;
13795 if (sizeof (ac__type_new_))
13796   return 0;
13797   ;
13798   return 0;
13799 }
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (ac_try="$ac_compile"
13803 case "(($ac_try" in
13804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805   *) ac_try_echo=$ac_try;;
13806 esac
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808   (eval "$ac_compile") 2>conftest.er1
13809   ac_status=$?
13810   grep -v '^ *+' conftest.er1 >conftest.err
13811   rm -f conftest.er1
13812   cat conftest.err >&5
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); } &&
13815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13816   { (case "(($ac_try" in
13817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818   *) ac_try_echo=$ac_try;;
13819 esac
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821   (eval "$ac_try") 2>&5
13822   ac_status=$?
13823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824   (exit $ac_status); }; } &&
13825          { ac_try='test -s conftest.$ac_objext'
13826   { (case "(($ac_try" in
13827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828   *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831   (eval "$ac_try") 2>&5
13832   ac_status=$?
13833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834   (exit $ac_status); }; }; then
13835   ac_cv_type_int64_t=yes
13836 else
13837   echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13839
13840         ac_cv_type_int64_t=no
13841 fi
13842
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844 fi
13845 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13846 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13847 if test $ac_cv_type_int64_t = yes; then
13848
13849 cat >>confdefs.h <<_ACEOF
13850 #define HAVE_INT64_T 1
13851 _ACEOF
13852
13853
13854 else
13855   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13856 echo "$as_me: error: Type int64_t required but not found" >&2;}
13857    { (exit 1); exit 1; }; }
13858 fi
13859
13860 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13861 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13862 if test "${ac_cv_type_uint64_t+set}" = set; then
13863   echo $ECHO_N "(cached) $ECHO_C" >&6
13864 else
13865   cat >conftest.$ac_ext <<_ACEOF
13866 /* confdefs.h.  */
13867 _ACEOF
13868 cat confdefs.h >>conftest.$ac_ext
13869 cat >>conftest.$ac_ext <<_ACEOF
13870 /* end confdefs.h.  */
13871 $ac_includes_default
13872 typedef uint64_t ac__type_new_;
13873 int
13874 main ()
13875 {
13876 if ((ac__type_new_ *) 0)
13877   return 0;
13878 if (sizeof (ac__type_new_))
13879   return 0;
13880   ;
13881   return 0;
13882 }
13883 _ACEOF
13884 rm -f conftest.$ac_objext
13885 if { (ac_try="$ac_compile"
13886 case "(($ac_try" in
13887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888   *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891   (eval "$ac_compile") 2>conftest.er1
13892   ac_status=$?
13893   grep -v '^ *+' conftest.er1 >conftest.err
13894   rm -f conftest.er1
13895   cat conftest.err >&5
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); } &&
13898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13899   { (case "(($ac_try" in
13900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901   *) ac_try_echo=$ac_try;;
13902 esac
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904   (eval "$ac_try") 2>&5
13905   ac_status=$?
13906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); }; } &&
13908          { ac_try='test -s conftest.$ac_objext'
13909   { (case "(($ac_try" in
13910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13911   *) ac_try_echo=$ac_try;;
13912 esac
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914   (eval "$ac_try") 2>&5
13915   ac_status=$?
13916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917   (exit $ac_status); }; }; then
13918   ac_cv_type_uint64_t=yes
13919 else
13920   echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13922
13923         ac_cv_type_uint64_t=no
13924 fi
13925
13926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13927 fi
13928 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13929 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13930 if test $ac_cv_type_uint64_t = yes; then
13931
13932 cat >>confdefs.h <<_ACEOF
13933 #define HAVE_UINT64_T 1
13934 _ACEOF
13935
13936
13937 else
13938   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13939 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13940 if test "${ac_cv_type_u_int64_t+set}" = set; then
13941   echo $ECHO_N "(cached) $ECHO_C" >&6
13942 else
13943   cat >conftest.$ac_ext <<_ACEOF
13944 /* confdefs.h.  */
13945 _ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h.  */
13949 $ac_includes_default
13950 typedef u_int64_t ac__type_new_;
13951 int
13952 main ()
13953 {
13954 if ((ac__type_new_ *) 0)
13955   return 0;
13956 if (sizeof (ac__type_new_))
13957   return 0;
13958   ;
13959   return 0;
13960 }
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (ac_try="$ac_compile"
13964 case "(($ac_try" in
13965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966   *) ac_try_echo=$ac_try;;
13967 esac
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969   (eval "$ac_compile") 2>conftest.er1
13970   ac_status=$?
13971   grep -v '^ *+' conftest.er1 >conftest.err
13972   rm -f conftest.er1
13973   cat conftest.err >&5
13974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975   (exit $ac_status); } &&
13976          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13977   { (case "(($ac_try" in
13978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979   *) ac_try_echo=$ac_try;;
13980 esac
13981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13982   (eval "$ac_try") 2>&5
13983   ac_status=$?
13984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985   (exit $ac_status); }; } &&
13986          { ac_try='test -s conftest.$ac_objext'
13987   { (case "(($ac_try" in
13988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989   *) ac_try_echo=$ac_try;;
13990 esac
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992   (eval "$ac_try") 2>&5
13993   ac_status=$?
13994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995   (exit $ac_status); }; }; then
13996   ac_cv_type_u_int64_t=yes
13997 else
13998   echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14000
14001         ac_cv_type_u_int64_t=no
14002 fi
14003
14004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14005 fi
14006 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14007 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14008 if test $ac_cv_type_u_int64_t = yes; then
14009
14010 cat >>confdefs.h <<_ACEOF
14011 #define HAVE_U_INT64_T 1
14012 _ACEOF
14013
14014
14015 else
14016   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14017 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14018    { (exit 1); exit 1; }; }
14019 fi
14020
14021 fi
14022
14023
14024
14025
14026
14027 for ac_func in backtrace getcwd
14028 do
14029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14033   echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035   cat >conftest.$ac_ext <<_ACEOF
14036 /* confdefs.h.  */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h.  */
14041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14043 #define $ac_func innocuous_$ac_func
14044
14045 /* System header to define __stub macros and hopefully few prototypes,
14046     which can conflict with char $ac_func (); below.
14047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14048     <limits.h> exists even on freestanding compilers.  */
14049
14050 #ifdef __STDC__
14051 # include <limits.h>
14052 #else
14053 # include <assert.h>
14054 #endif
14055
14056 #undef $ac_func
14057
14058 /* Override any GCC internal prototype to avoid an error.
14059    Use char because int might match the return type of a GCC
14060    builtin and then its argument prototype would still apply.  */
14061 #ifdef __cplusplus
14062 extern "C"
14063 #endif
14064 char $ac_func ();
14065 /* The GNU C library defines this for functions which it implements
14066     to always fail with ENOSYS.  Some functions are actually named
14067     something starting with __ and the normal name is an alias.  */
14068 #if defined __stub_$ac_func || defined __stub___$ac_func
14069 choke me
14070 #endif
14071
14072 int
14073 main ()
14074 {
14075 return $ac_func ();
14076   ;
14077   return 0;
14078 }
14079 _ACEOF
14080 rm -f conftest.$ac_objext conftest$ac_exeext
14081 if { (ac_try="$ac_link"
14082 case "(($ac_try" in
14083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084   *) ac_try_echo=$ac_try;;
14085 esac
14086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087   (eval "$ac_link") 2>conftest.er1
14088   ac_status=$?
14089   grep -v '^ *+' conftest.er1 >conftest.err
14090   rm -f conftest.er1
14091   cat conftest.err >&5
14092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093   (exit $ac_status); } &&
14094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14095   { (case "(($ac_try" in
14096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14097   *) ac_try_echo=$ac_try;;
14098 esac
14099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14100   (eval "$ac_try") 2>&5
14101   ac_status=$?
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); }; } &&
14104          { ac_try='test -s conftest$ac_exeext'
14105   { (case "(($ac_try" in
14106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14107   *) ac_try_echo=$ac_try;;
14108 esac
14109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14110   (eval "$ac_try") 2>&5
14111   ac_status=$?
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); }; }; then
14114   eval "$as_ac_var=yes"
14115 else
14116   echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14118
14119         eval "$as_ac_var=no"
14120 fi
14121
14122 rm -f core conftest.err conftest.$ac_objext \
14123       conftest$ac_exeext conftest.$ac_ext
14124 fi
14125 ac_res=`eval echo '${'$as_ac_var'}'`
14126                { echo "$as_me:$LINENO: result: $ac_res" >&5
14127 echo "${ECHO_T}$ac_res" >&6; }
14128 if test `eval echo '${'$as_ac_var'}'` = yes; then
14129   cat >>confdefs.h <<_ACEOF
14130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14131 _ACEOF
14132
14133 fi
14134 done
14135
14136
14137
14138
14139
14140
14141 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14142 do
14143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14147   echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149   cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h.  */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h.  */
14155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14157 #define $ac_func innocuous_$ac_func
14158
14159 /* System header to define __stub macros and hopefully few prototypes,
14160     which can conflict with char $ac_func (); below.
14161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14162     <limits.h> exists even on freestanding compilers.  */
14163
14164 #ifdef __STDC__
14165 # include <limits.h>
14166 #else
14167 # include <assert.h>
14168 #endif
14169
14170 #undef $ac_func
14171
14172 /* Override any GCC internal prototype to avoid an error.
14173    Use char because int might match the return type of a GCC
14174    builtin and then its argument prototype would still apply.  */
14175 #ifdef __cplusplus
14176 extern "C"
14177 #endif
14178 char $ac_func ();
14179 /* The GNU C library defines this for functions which it implements
14180     to always fail with ENOSYS.  Some functions are actually named
14181     something starting with __ and the normal name is an alias.  */
14182 #if defined __stub_$ac_func || defined __stub___$ac_func
14183 choke me
14184 #endif
14185
14186 int
14187 main ()
14188 {
14189 return $ac_func ();
14190   ;
14191   return 0;
14192 }
14193 _ACEOF
14194 rm -f conftest.$ac_objext conftest$ac_exeext
14195 if { (ac_try="$ac_link"
14196 case "(($ac_try" in
14197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198   *) ac_try_echo=$ac_try;;
14199 esac
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201   (eval "$ac_link") 2>conftest.er1
14202   ac_status=$?
14203   grep -v '^ *+' conftest.er1 >conftest.err
14204   rm -f conftest.er1
14205   cat conftest.err >&5
14206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207   (exit $ac_status); } &&
14208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14209   { (case "(($ac_try" in
14210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211   *) ac_try_echo=$ac_try;;
14212 esac
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214   (eval "$ac_try") 2>&5
14215   ac_status=$?
14216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217   (exit $ac_status); }; } &&
14218          { ac_try='test -s conftest$ac_exeext'
14219   { (case "(($ac_try" in
14220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221   *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224   (eval "$ac_try") 2>&5
14225   ac_status=$?
14226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227   (exit $ac_status); }; }; then
14228   eval "$as_ac_var=yes"
14229 else
14230   echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14232
14233         eval "$as_ac_var=no"
14234 fi
14235
14236 rm -f core conftest.err conftest.$ac_objext \
14237       conftest$ac_exeext conftest.$ac_ext
14238 fi
14239 ac_res=`eval echo '${'$as_ac_var'}'`
14240                { echo "$as_me:$LINENO: result: $ac_res" >&5
14241 echo "${ECHO_T}$ac_res" >&6; }
14242 if test `eval echo '${'$as_ac_var'}'` = yes; then
14243   cat >>confdefs.h <<_ACEOF
14244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14245 _ACEOF
14246
14247 fi
14248 done
14249
14250
14251
14252
14253 for ac_func in isatty mkdtemp mkstemp
14254 do
14255 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14256 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14257 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14259   echo $ECHO_N "(cached) $ECHO_C" >&6
14260 else
14261   cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h.  */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h.  */
14267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14269 #define $ac_func innocuous_$ac_func
14270
14271 /* System header to define __stub macros and hopefully few prototypes,
14272     which can conflict with char $ac_func (); below.
14273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14274     <limits.h> exists even on freestanding compilers.  */
14275
14276 #ifdef __STDC__
14277 # include <limits.h>
14278 #else
14279 # include <assert.h>
14280 #endif
14281
14282 #undef $ac_func
14283
14284 /* Override any GCC internal prototype to avoid an error.
14285    Use char because int might match the return type of a GCC
14286    builtin and then its argument prototype would still apply.  */
14287 #ifdef __cplusplus
14288 extern "C"
14289 #endif
14290 char $ac_func ();
14291 /* The GNU C library defines this for functions which it implements
14292     to always fail with ENOSYS.  Some functions are actually named
14293     something starting with __ and the normal name is an alias.  */
14294 #if defined __stub_$ac_func || defined __stub___$ac_func
14295 choke me
14296 #endif
14297
14298 int
14299 main ()
14300 {
14301 return $ac_func ();
14302   ;
14303   return 0;
14304 }
14305 _ACEOF
14306 rm -f conftest.$ac_objext conftest$ac_exeext
14307 if { (ac_try="$ac_link"
14308 case "(($ac_try" in
14309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310   *) ac_try_echo=$ac_try;;
14311 esac
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313   (eval "$ac_link") 2>conftest.er1
14314   ac_status=$?
14315   grep -v '^ *+' conftest.er1 >conftest.err
14316   rm -f conftest.er1
14317   cat conftest.err >&5
14318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319   (exit $ac_status); } &&
14320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14321   { (case "(($ac_try" in
14322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323   *) ac_try_echo=$ac_try;;
14324 esac
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326   (eval "$ac_try") 2>&5
14327   ac_status=$?
14328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329   (exit $ac_status); }; } &&
14330          { ac_try='test -s conftest$ac_exeext'
14331   { (case "(($ac_try" in
14332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333   *) ac_try_echo=$ac_try;;
14334 esac
14335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14336   (eval "$ac_try") 2>&5
14337   ac_status=$?
14338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339   (exit $ac_status); }; }; then
14340   eval "$as_ac_var=yes"
14341 else
14342   echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14344
14345         eval "$as_ac_var=no"
14346 fi
14347
14348 rm -f core conftest.err conftest.$ac_objext \
14349       conftest$ac_exeext conftest.$ac_ext
14350 fi
14351 ac_res=`eval echo '${'$as_ac_var'}'`
14352                { echo "$as_me:$LINENO: result: $ac_res" >&5
14353 echo "${ECHO_T}$ac_res" >&6; }
14354 if test `eval echo '${'$as_ac_var'}'` = yes; then
14355   cat >>confdefs.h <<_ACEOF
14356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14357 _ACEOF
14358
14359 fi
14360 done
14361
14362
14363
14364
14365
14366
14367
14368 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14369 do
14370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14374   echo $ECHO_N "(cached) $ECHO_C" >&6
14375 else
14376   cat >conftest.$ac_ext <<_ACEOF
14377 /* confdefs.h.  */
14378 _ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h.  */
14382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14384 #define $ac_func innocuous_$ac_func
14385
14386 /* System header to define __stub macros and hopefully few prototypes,
14387     which can conflict with char $ac_func (); below.
14388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14389     <limits.h> exists even on freestanding compilers.  */
14390
14391 #ifdef __STDC__
14392 # include <limits.h>
14393 #else
14394 # include <assert.h>
14395 #endif
14396
14397 #undef $ac_func
14398
14399 /* Override any GCC internal prototype to avoid an error.
14400    Use char because int might match the return type of a GCC
14401    builtin and then its argument prototype would still apply.  */
14402 #ifdef __cplusplus
14403 extern "C"
14404 #endif
14405 char $ac_func ();
14406 /* The GNU C library defines this for functions which it implements
14407     to always fail with ENOSYS.  Some functions are actually named
14408     something starting with __ and the normal name is an alias.  */
14409 #if defined __stub_$ac_func || defined __stub___$ac_func
14410 choke me
14411 #endif
14412
14413 int
14414 main ()
14415 {
14416 return $ac_func ();
14417   ;
14418   return 0;
14419 }
14420 _ACEOF
14421 rm -f conftest.$ac_objext conftest$ac_exeext
14422 if { (ac_try="$ac_link"
14423 case "(($ac_try" in
14424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425   *) ac_try_echo=$ac_try;;
14426 esac
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428   (eval "$ac_link") 2>conftest.er1
14429   ac_status=$?
14430   grep -v '^ *+' conftest.er1 >conftest.err
14431   rm -f conftest.er1
14432   cat conftest.err >&5
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); } &&
14435          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14436   { (case "(($ac_try" in
14437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438   *) ac_try_echo=$ac_try;;
14439 esac
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441   (eval "$ac_try") 2>&5
14442   ac_status=$?
14443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444   (exit $ac_status); }; } &&
14445          { ac_try='test -s conftest$ac_exeext'
14446   { (case "(($ac_try" in
14447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448   *) ac_try_echo=$ac_try;;
14449 esac
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451   (eval "$ac_try") 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; }; then
14455   eval "$as_ac_var=yes"
14456 else
14457   echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460         eval "$as_ac_var=no"
14461 fi
14462
14463 rm -f core conftest.err conftest.$ac_objext \
14464       conftest$ac_exeext conftest.$ac_ext
14465 fi
14466 ac_res=`eval echo '${'$as_ac_var'}'`
14467                { echo "$as_me:$LINENO: result: $ac_res" >&5
14468 echo "${ECHO_T}$ac_res" >&6; }
14469 if test `eval echo '${'$as_ac_var'}'` = yes; then
14470   cat >>confdefs.h <<_ACEOF
14471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14472 _ACEOF
14473
14474 fi
14475 done
14476
14477
14478
14479
14480 for ac_func in strerror strerror_r setenv
14481 do
14482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14486   echo $ECHO_N "(cached) $ECHO_C" >&6
14487 else
14488   cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h.  */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h.  */
14494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14495    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14496 #define $ac_func innocuous_$ac_func
14497
14498 /* System header to define __stub macros and hopefully few prototypes,
14499     which can conflict with char $ac_func (); below.
14500     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14501     <limits.h> exists even on freestanding compilers.  */
14502
14503 #ifdef __STDC__
14504 # include <limits.h>
14505 #else
14506 # include <assert.h>
14507 #endif
14508
14509 #undef $ac_func
14510
14511 /* Override any GCC internal prototype to avoid an error.
14512    Use char because int might match the return type of a GCC
14513    builtin and then its argument prototype would still apply.  */
14514 #ifdef __cplusplus
14515 extern "C"
14516 #endif
14517 char $ac_func ();
14518 /* The GNU C library defines this for functions which it implements
14519     to always fail with ENOSYS.  Some functions are actually named
14520     something starting with __ and the normal name is an alias.  */
14521 #if defined __stub_$ac_func || defined __stub___$ac_func
14522 choke me
14523 #endif
14524
14525 int
14526 main ()
14527 {
14528 return $ac_func ();
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 rm -f conftest.$ac_objext conftest$ac_exeext
14534 if { (ac_try="$ac_link"
14535 case "(($ac_try" in
14536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537   *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540   (eval "$ac_link") 2>conftest.er1
14541   ac_status=$?
14542   grep -v '^ *+' conftest.er1 >conftest.err
14543   rm -f conftest.er1
14544   cat conftest.err >&5
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); } &&
14547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14548   { (case "(($ac_try" in
14549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550   *) ac_try_echo=$ac_try;;
14551 esac
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553   (eval "$ac_try") 2>&5
14554   ac_status=$?
14555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556   (exit $ac_status); }; } &&
14557          { ac_try='test -s conftest$ac_exeext'
14558   { (case "(($ac_try" in
14559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14560   *) ac_try_echo=$ac_try;;
14561 esac
14562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14563   (eval "$ac_try") 2>&5
14564   ac_status=$?
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); }; }; then
14567   eval "$as_ac_var=yes"
14568 else
14569   echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572         eval "$as_ac_var=no"
14573 fi
14574
14575 rm -f core conftest.err conftest.$ac_objext \
14576       conftest$ac_exeext conftest.$ac_ext
14577 fi
14578 ac_res=`eval echo '${'$as_ac_var'}'`
14579                { echo "$as_me:$LINENO: result: $ac_res" >&5
14580 echo "${ECHO_T}$ac_res" >&6; }
14581 if test `eval echo '${'$as_ac_var'}'` = yes; then
14582   cat >>confdefs.h <<_ACEOF
14583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14584 _ACEOF
14585
14586 fi
14587 done
14588
14589
14590
14591
14592
14593 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14594 do
14595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14599   echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601   cat >conftest.$ac_ext <<_ACEOF
14602 /* confdefs.h.  */
14603 _ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h.  */
14607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14609 #define $ac_func innocuous_$ac_func
14610
14611 /* System header to define __stub macros and hopefully few prototypes,
14612     which can conflict with char $ac_func (); below.
14613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14614     <limits.h> exists even on freestanding compilers.  */
14615
14616 #ifdef __STDC__
14617 # include <limits.h>
14618 #else
14619 # include <assert.h>
14620 #endif
14621
14622 #undef $ac_func
14623
14624 /* Override any GCC internal prototype to avoid an error.
14625    Use char because int might match the return type of a GCC
14626    builtin and then its argument prototype would still apply.  */
14627 #ifdef __cplusplus
14628 extern "C"
14629 #endif
14630 char $ac_func ();
14631 /* The GNU C library defines this for functions which it implements
14632     to always fail with ENOSYS.  Some functions are actually named
14633     something starting with __ and the normal name is an alias.  */
14634 #if defined __stub_$ac_func || defined __stub___$ac_func
14635 choke me
14636 #endif
14637
14638 int
14639 main ()
14640 {
14641 return $ac_func ();
14642   ;
14643   return 0;
14644 }
14645 _ACEOF
14646 rm -f conftest.$ac_objext conftest$ac_exeext
14647 if { (ac_try="$ac_link"
14648 case "(($ac_try" in
14649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14650   *) ac_try_echo=$ac_try;;
14651 esac
14652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14653   (eval "$ac_link") 2>conftest.er1
14654   ac_status=$?
14655   grep -v '^ *+' conftest.er1 >conftest.err
14656   rm -f conftest.er1
14657   cat conftest.err >&5
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); } &&
14660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14661   { (case "(($ac_try" in
14662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663   *) ac_try_echo=$ac_try;;
14664 esac
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666   (eval "$ac_try") 2>&5
14667   ac_status=$?
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); }; } &&
14670          { ac_try='test -s conftest$ac_exeext'
14671   { (case "(($ac_try" in
14672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673   *) ac_try_echo=$ac_try;;
14674 esac
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676   (eval "$ac_try") 2>&5
14677   ac_status=$?
14678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); }; }; then
14680   eval "$as_ac_var=yes"
14681 else
14682   echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14684
14685         eval "$as_ac_var=no"
14686 fi
14687
14688 rm -f core conftest.err conftest.$ac_objext \
14689       conftest$ac_exeext conftest.$ac_ext
14690 fi
14691 ac_res=`eval echo '${'$as_ac_var'}'`
14692                { echo "$as_me:$LINENO: result: $ac_res" >&5
14693 echo "${ECHO_T}$ac_res" >&6; }
14694 if test `eval echo '${'$as_ac_var'}'` = yes; then
14695   cat >>confdefs.h <<_ACEOF
14696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14697 _ACEOF
14698
14699 fi
14700 done
14701
14702
14703
14704
14705
14706
14707 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14708 do
14709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14713   echo $ECHO_N "(cached) $ECHO_C" >&6
14714 else
14715   cat >conftest.$ac_ext <<_ACEOF
14716 /* confdefs.h.  */
14717 _ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h.  */
14721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14723 #define $ac_func innocuous_$ac_func
14724
14725 /* System header to define __stub macros and hopefully few prototypes,
14726     which can conflict with char $ac_func (); below.
14727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14728     <limits.h> exists even on freestanding compilers.  */
14729
14730 #ifdef __STDC__
14731 # include <limits.h>
14732 #else
14733 # include <assert.h>
14734 #endif
14735
14736 #undef $ac_func
14737
14738 /* Override any GCC internal prototype to avoid an error.
14739    Use char because int might match the return type of a GCC
14740    builtin and then its argument prototype would still apply.  */
14741 #ifdef __cplusplus
14742 extern "C"
14743 #endif
14744 char $ac_func ();
14745 /* The GNU C library defines this for functions which it implements
14746     to always fail with ENOSYS.  Some functions are actually named
14747     something starting with __ and the normal name is an alias.  */
14748 #if defined __stub_$ac_func || defined __stub___$ac_func
14749 choke me
14750 #endif
14751
14752 int
14753 main ()
14754 {
14755 return $ac_func ();
14756   ;
14757   return 0;
14758 }
14759 _ACEOF
14760 rm -f conftest.$ac_objext conftest$ac_exeext
14761 if { (ac_try="$ac_link"
14762 case "(($ac_try" in
14763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764   *) ac_try_echo=$ac_try;;
14765 esac
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767   (eval "$ac_link") 2>conftest.er1
14768   ac_status=$?
14769   grep -v '^ *+' conftest.er1 >conftest.err
14770   rm -f conftest.er1
14771   cat conftest.err >&5
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); } &&
14774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14775   { (case "(($ac_try" in
14776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777   *) ac_try_echo=$ac_try;;
14778 esac
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780   (eval "$ac_try") 2>&5
14781   ac_status=$?
14782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783   (exit $ac_status); }; } &&
14784          { ac_try='test -s conftest$ac_exeext'
14785   { (case "(($ac_try" in
14786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787   *) ac_try_echo=$ac_try;;
14788 esac
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790   (eval "$ac_try") 2>&5
14791   ac_status=$?
14792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793   (exit $ac_status); }; }; then
14794   eval "$as_ac_var=yes"
14795 else
14796   echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14798
14799         eval "$as_ac_var=no"
14800 fi
14801
14802 rm -f core conftest.err conftest.$ac_objext \
14803       conftest$ac_exeext conftest.$ac_ext
14804 fi
14805 ac_res=`eval echo '${'$as_ac_var'}'`
14806                { echo "$as_me:$LINENO: result: $ac_res" >&5
14807 echo "${ECHO_T}$ac_res" >&6; }
14808 if test `eval echo '${'$as_ac_var'}'` = yes; then
14809   cat >>confdefs.h <<_ACEOF
14810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14811 _ACEOF
14812
14813 fi
14814 done
14815
14816
14817
14818 for ac_func in futimes futimens
14819 do
14820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14824   echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826   cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h.  */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h.  */
14832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14834 #define $ac_func innocuous_$ac_func
14835
14836 /* System header to define __stub macros and hopefully few prototypes,
14837     which can conflict with char $ac_func (); below.
14838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14839     <limits.h> exists even on freestanding compilers.  */
14840
14841 #ifdef __STDC__
14842 # include <limits.h>
14843 #else
14844 # include <assert.h>
14845 #endif
14846
14847 #undef $ac_func
14848
14849 /* Override any GCC internal prototype to avoid an error.
14850    Use char because int might match the return type of a GCC
14851    builtin and then its argument prototype would still apply.  */
14852 #ifdef __cplusplus
14853 extern "C"
14854 #endif
14855 char $ac_func ();
14856 /* The GNU C library defines this for functions which it implements
14857     to always fail with ENOSYS.  Some functions are actually named
14858     something starting with __ and the normal name is an alias.  */
14859 #if defined __stub_$ac_func || defined __stub___$ac_func
14860 choke me
14861 #endif
14862
14863 int
14864 main ()
14865 {
14866 return $ac_func ();
14867   ;
14868   return 0;
14869 }
14870 _ACEOF
14871 rm -f conftest.$ac_objext conftest$ac_exeext
14872 if { (ac_try="$ac_link"
14873 case "(($ac_try" in
14874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875   *) ac_try_echo=$ac_try;;
14876 esac
14877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14878   (eval "$ac_link") 2>conftest.er1
14879   ac_status=$?
14880   grep -v '^ *+' conftest.er1 >conftest.err
14881   rm -f conftest.er1
14882   cat conftest.err >&5
14883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884   (exit $ac_status); } &&
14885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14886   { (case "(($ac_try" in
14887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14888   *) ac_try_echo=$ac_try;;
14889 esac
14890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14891   (eval "$ac_try") 2>&5
14892   ac_status=$?
14893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894   (exit $ac_status); }; } &&
14895          { ac_try='test -s conftest$ac_exeext'
14896   { (case "(($ac_try" in
14897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898   *) ac_try_echo=$ac_try;;
14899 esac
14900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14901   (eval "$ac_try") 2>&5
14902   ac_status=$?
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); }; }; then
14905   eval "$as_ac_var=yes"
14906 else
14907   echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14909
14910         eval "$as_ac_var=no"
14911 fi
14912
14913 rm -f core conftest.err conftest.$ac_objext \
14914       conftest$ac_exeext conftest.$ac_ext
14915 fi
14916 ac_res=`eval echo '${'$as_ac_var'}'`
14917                { echo "$as_me:$LINENO: result: $ac_res" >&5
14918 echo "${ECHO_T}$ac_res" >&6; }
14919 if test `eval echo '${'$as_ac_var'}'` = yes; then
14920   cat >>confdefs.h <<_ACEOF
14921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14922 _ACEOF
14923
14924 fi
14925 done
14926
14927 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14928 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14929 if test "${llvm_cv_c_printf_a+set}" = set; then
14930   echo $ECHO_N "(cached) $ECHO_C" >&6
14931 else
14932   ac_ext=c
14933 ac_cpp='$CPP $CPPFLAGS'
14934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14937
14938  if test "$cross_compiling" = yes; then
14939   llvmac_cv_c_printf_a=no
14940 else
14941   cat >conftest.$ac_ext <<_ACEOF
14942
14943   /* confdefs.h.  */
14944 _ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h.  */
14948
14949 #include <stdio.h>
14950 #include <stdlib.h>
14951
14952 int
14953 main ()
14954 {
14955
14956 volatile double A, B;
14957 char Buffer[100];
14958 A = 1;
14959 A /= 10.0;
14960 sprintf(Buffer, "%a", A);
14961 B = atof(Buffer);
14962 if (A != B)
14963   return (1);
14964 if (A != 0x1.999999999999ap-4)
14965   return (1);
14966 return (0);
14967   ;
14968   return 0;
14969 }
14970 _ACEOF
14971 rm -f conftest$ac_exeext
14972 if { (ac_try="$ac_link"
14973 case "(($ac_try" in
14974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14975   *) ac_try_echo=$ac_try;;
14976 esac
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978   (eval "$ac_link") 2>&5
14979   ac_status=$?
14980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14982   { (case "(($ac_try" in
14983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984   *) ac_try_echo=$ac_try;;
14985 esac
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987   (eval "$ac_try") 2>&5
14988   ac_status=$?
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); }; }; then
14991   llvm_cv_c_printf_a=yes
14992 else
14993   echo "$as_me: program exited with status $ac_status" >&5
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997 ( exit $ac_status )
14998 llvmac_cv_c_printf_a=no
14999 fi
15000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15001 fi
15002
15003
15004  ac_ext=c
15005 ac_cpp='$CPP $CPPFLAGS'
15006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15009
15010 fi
15011 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15012 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15013  if test "$llvm_cv_c_printf_a" = "yes"; then
15014
15015 cat >>confdefs.h <<\_ACEOF
15016 #define HAVE_PRINTF_A 1
15017 _ACEOF
15018
15019  fi
15020
15021
15022
15023   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15024 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15025 if test "${ac_cv_func_rand48+set}" = set; then
15026   echo $ECHO_N "(cached) $ECHO_C" >&6
15027 else
15028
15029     ac_ext=cpp
15030 ac_cpp='$CXXCPP $CPPFLAGS'
15031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15034
15035     cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h.  */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h.  */
15041 #include <stdlib.h>
15042 int
15043 main ()
15044 {
15045 srand48(0);lrand48();drand48();
15046   ;
15047   return 0;
15048 }
15049 _ACEOF
15050 rm -f conftest.$ac_objext
15051 if { (ac_try="$ac_compile"
15052 case "(($ac_try" in
15053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054   *) ac_try_echo=$ac_try;;
15055 esac
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057   (eval "$ac_compile") 2>conftest.er1
15058   ac_status=$?
15059   grep -v '^ *+' conftest.er1 >conftest.err
15060   rm -f conftest.er1
15061   cat conftest.err >&5
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); } &&
15064          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15065   { (case "(($ac_try" in
15066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067   *) ac_try_echo=$ac_try;;
15068 esac
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070   (eval "$ac_try") 2>&5
15071   ac_status=$?
15072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073   (exit $ac_status); }; } &&
15074          { ac_try='test -s conftest.$ac_objext'
15075   { (case "(($ac_try" in
15076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077   *) ac_try_echo=$ac_try;;
15078 esac
15079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080   (eval "$ac_try") 2>&5
15081   ac_status=$?
15082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083   (exit $ac_status); }; }; then
15084   ac_cv_func_rand48=yes
15085 else
15086   echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15088
15089         ac_cv_func_rand48=no
15090 fi
15091
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15093     ac_ext=c
15094 ac_cpp='$CPP $CPPFLAGS'
15095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15098
15099
15100 fi
15101 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15102 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15103
15104 if test "$ac_cv_func_rand48" = "yes" ; then
15105
15106 cat >>confdefs.h <<\_ACEOF
15107 #define HAVE_RAND48 1
15108 _ACEOF
15109
15110 fi
15111
15112
15113 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15114 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15115 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15116   echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118   cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h.  */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h.  */
15124 $ac_includes_default
15125 int
15126 main ()
15127 {
15128 #ifndef arc4random
15129   char *p = (char *) arc4random;
15130   return !p;
15131 #endif
15132
15133   ;
15134   return 0;
15135 }
15136 _ACEOF
15137 rm -f conftest.$ac_objext
15138 if { (ac_try="$ac_compile"
15139 case "(($ac_try" in
15140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141   *) ac_try_echo=$ac_try;;
15142 esac
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144   (eval "$ac_compile") 2>conftest.er1
15145   ac_status=$?
15146   grep -v '^ *+' conftest.er1 >conftest.err
15147   rm -f conftest.er1
15148   cat conftest.err >&5
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); } &&
15151          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15152   { (case "(($ac_try" in
15153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154   *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157   (eval "$ac_try") 2>&5
15158   ac_status=$?
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); }; } &&
15161          { ac_try='test -s conftest.$ac_objext'
15162   { (case "(($ac_try" in
15163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164   *) ac_try_echo=$ac_try;;
15165 esac
15166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15167   (eval "$ac_try") 2>&5
15168   ac_status=$?
15169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170   (exit $ac_status); }; }; then
15171   ac_cv_have_decl_arc4random=yes
15172 else
15173   echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15175
15176         ac_cv_have_decl_arc4random=no
15177 fi
15178
15179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15180 fi
15181 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15182 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15183 if test $ac_cv_have_decl_arc4random = yes; then
15184
15185 cat >>confdefs.h <<_ACEOF
15186 #define HAVE_DECL_ARC4RANDOM 1
15187 _ACEOF
15188
15189
15190 else
15191   cat >>confdefs.h <<_ACEOF
15192 #define HAVE_DECL_ARC4RANDOM 0
15193 _ACEOF
15194
15195
15196 fi
15197
15198
15199
15200 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15201 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15202 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15203   echo $ECHO_N "(cached) $ECHO_C" >&6
15204 else
15205   cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h.  */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h.  */
15211 $ac_includes_default
15212 int
15213 main ()
15214 {
15215 #ifndef strerror_s
15216   char *p = (char *) strerror_s;
15217   return !p;
15218 #endif
15219
15220   ;
15221   return 0;
15222 }
15223 _ACEOF
15224 rm -f conftest.$ac_objext
15225 if { (ac_try="$ac_compile"
15226 case "(($ac_try" in
15227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228   *) ac_try_echo=$ac_try;;
15229 esac
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231   (eval "$ac_compile") 2>conftest.er1
15232   ac_status=$?
15233   grep -v '^ *+' conftest.er1 >conftest.err
15234   rm -f conftest.er1
15235   cat conftest.err >&5
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); } &&
15238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15239   { (case "(($ac_try" in
15240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241   *) ac_try_echo=$ac_try;;
15242 esac
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244   (eval "$ac_try") 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); }; } &&
15248          { ac_try='test -s conftest.$ac_objext'
15249   { (case "(($ac_try" in
15250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251   *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254   (eval "$ac_try") 2>&5
15255   ac_status=$?
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); }; }; then
15258   ac_cv_have_decl_strerror_s=yes
15259 else
15260   echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263         ac_cv_have_decl_strerror_s=no
15264 fi
15265
15266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15267 fi
15268 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15269 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15270 if test $ac_cv_have_decl_strerror_s = yes; then
15271
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_DECL_STRERROR_S 1
15274 _ACEOF
15275
15276
15277 else
15278   cat >>confdefs.h <<_ACEOF
15279 #define HAVE_DECL_STRERROR_S 0
15280 _ACEOF
15281
15282
15283 fi
15284
15285
15286
15287 if test "$llvm_cv_os_type" = "MingW" ; then
15288   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15289 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15290 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15291   echo $ECHO_N "(cached) $ECHO_C" >&6
15292 else
15293   ac_check_lib_save_LIBS=$LIBS
15294 LIBS="-lgcc  $LIBS"
15295 cat >conftest.$ac_ext <<_ACEOF
15296 /* confdefs.h.  */
15297 _ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h.  */
15301
15302 /* Override any GCC internal prototype to avoid an error.
15303    Use char because int might match the return type of a GCC
15304    builtin and then its argument prototype would still apply.  */
15305 #ifdef __cplusplus
15306 extern "C"
15307 #endif
15308 char _alloca ();
15309 int
15310 main ()
15311 {
15312 return _alloca ();
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   ac_cv_lib_gcc__alloca=yes
15352 else
15353   echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.$ac_ext >&5
15355
15356         ac_cv_lib_gcc__alloca=no
15357 fi
15358
15359 rm -f core conftest.err conftest.$ac_objext \
15360       conftest$ac_exeext conftest.$ac_ext
15361 LIBS=$ac_check_lib_save_LIBS
15362 fi
15363 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15364 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15365 if test $ac_cv_lib_gcc__alloca = yes; then
15366
15367 cat >>confdefs.h <<\_ACEOF
15368 #define HAVE__ALLOCA 1
15369 _ACEOF
15370
15371 fi
15372
15373   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15374 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15375 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15376   echo $ECHO_N "(cached) $ECHO_C" >&6
15377 else
15378   ac_check_lib_save_LIBS=$LIBS
15379 LIBS="-lgcc  $LIBS"
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h.  */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h.  */
15386
15387 /* Override any GCC internal prototype to avoid an error.
15388    Use char because int might match the return type of a GCC
15389    builtin and then its argument prototype would still apply.  */
15390 #ifdef __cplusplus
15391 extern "C"
15392 #endif
15393 char __alloca ();
15394 int
15395 main ()
15396 {
15397 return __alloca ();
15398   ;
15399   return 0;
15400 }
15401 _ACEOF
15402 rm -f conftest.$ac_objext conftest$ac_exeext
15403 if { (ac_try="$ac_link"
15404 case "(($ac_try" in
15405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406   *) ac_try_echo=$ac_try;;
15407 esac
15408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15409   (eval "$ac_link") 2>conftest.er1
15410   ac_status=$?
15411   grep -v '^ *+' conftest.er1 >conftest.err
15412   rm -f conftest.er1
15413   cat conftest.err >&5
15414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415   (exit $ac_status); } &&
15416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15417   { (case "(($ac_try" in
15418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419   *) ac_try_echo=$ac_try;;
15420 esac
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422   (eval "$ac_try") 2>&5
15423   ac_status=$?
15424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425   (exit $ac_status); }; } &&
15426          { ac_try='test -s conftest$ac_exeext'
15427   { (case "(($ac_try" in
15428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429   *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432   (eval "$ac_try") 2>&5
15433   ac_status=$?
15434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); }; }; then
15436   ac_cv_lib_gcc___alloca=yes
15437 else
15438   echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15440
15441         ac_cv_lib_gcc___alloca=no
15442 fi
15443
15444 rm -f core conftest.err conftest.$ac_objext \
15445       conftest$ac_exeext conftest.$ac_ext
15446 LIBS=$ac_check_lib_save_LIBS
15447 fi
15448 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15449 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15450 if test $ac_cv_lib_gcc___alloca = yes; then
15451
15452 cat >>confdefs.h <<\_ACEOF
15453 #define HAVE___ALLOCA 1
15454 _ACEOF
15455
15456 fi
15457
15458   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15459 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15460 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15461   echo $ECHO_N "(cached) $ECHO_C" >&6
15462 else
15463   ac_check_lib_save_LIBS=$LIBS
15464 LIBS="-lgcc  $LIBS"
15465 cat >conftest.$ac_ext <<_ACEOF
15466 /* confdefs.h.  */
15467 _ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h.  */
15471
15472 /* Override any GCC internal prototype to avoid an error.
15473    Use char because int might match the return type of a GCC
15474    builtin and then its argument prototype would still apply.  */
15475 #ifdef __cplusplus
15476 extern "C"
15477 #endif
15478 char __chkstk ();
15479 int
15480 main ()
15481 {
15482 return __chkstk ();
15483   ;
15484   return 0;
15485 }
15486 _ACEOF
15487 rm -f conftest.$ac_objext conftest$ac_exeext
15488 if { (ac_try="$ac_link"
15489 case "(($ac_try" in
15490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491   *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494   (eval "$ac_link") 2>conftest.er1
15495   ac_status=$?
15496   grep -v '^ *+' conftest.er1 >conftest.err
15497   rm -f conftest.er1
15498   cat conftest.err >&5
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); } &&
15501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15502   { (case "(($ac_try" in
15503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504   *) ac_try_echo=$ac_try;;
15505 esac
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507   (eval "$ac_try") 2>&5
15508   ac_status=$?
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); }; } &&
15511          { ac_try='test -s conftest$ac_exeext'
15512   { (case "(($ac_try" in
15513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15514   *) ac_try_echo=$ac_try;;
15515 esac
15516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15517   (eval "$ac_try") 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }; }; then
15521   ac_cv_lib_gcc___chkstk=yes
15522 else
15523   echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15525
15526         ac_cv_lib_gcc___chkstk=no
15527 fi
15528
15529 rm -f core conftest.err conftest.$ac_objext \
15530       conftest$ac_exeext conftest.$ac_ext
15531 LIBS=$ac_check_lib_save_LIBS
15532 fi
15533 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15534 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15535 if test $ac_cv_lib_gcc___chkstk = yes; then
15536
15537 cat >>confdefs.h <<\_ACEOF
15538 #define HAVE___CHKSTK 1
15539 _ACEOF
15540
15541 fi
15542
15543   { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15544 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15545 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15546   echo $ECHO_N "(cached) $ECHO_C" >&6
15547 else
15548   ac_check_lib_save_LIBS=$LIBS
15549 LIBS="-lgcc  $LIBS"
15550 cat >conftest.$ac_ext <<_ACEOF
15551 /* confdefs.h.  */
15552 _ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h.  */
15556
15557 /* Override any GCC internal prototype to avoid an error.
15558    Use char because int might match the return type of a GCC
15559    builtin and then its argument prototype would still apply.  */
15560 #ifdef __cplusplus
15561 extern "C"
15562 #endif
15563 char __chkstk_ms ();
15564 int
15565 main ()
15566 {
15567 return __chkstk_ms ();
15568   ;
15569   return 0;
15570 }
15571 _ACEOF
15572 rm -f conftest.$ac_objext conftest$ac_exeext
15573 if { (ac_try="$ac_link"
15574 case "(($ac_try" in
15575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576   *) ac_try_echo=$ac_try;;
15577 esac
15578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579   (eval "$ac_link") 2>conftest.er1
15580   ac_status=$?
15581   grep -v '^ *+' conftest.er1 >conftest.err
15582   rm -f conftest.er1
15583   cat conftest.err >&5
15584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585   (exit $ac_status); } &&
15586          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15587   { (case "(($ac_try" in
15588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589   *) ac_try_echo=$ac_try;;
15590 esac
15591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15592   (eval "$ac_try") 2>&5
15593   ac_status=$?
15594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15595   (exit $ac_status); }; } &&
15596          { ac_try='test -s conftest$ac_exeext'
15597   { (case "(($ac_try" in
15598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599   *) ac_try_echo=$ac_try;;
15600 esac
15601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15602   (eval "$ac_try") 2>&5
15603   ac_status=$?
15604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); }; }; then
15606   ac_cv_lib_gcc___chkstk_ms=yes
15607 else
15608   echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.$ac_ext >&5
15610
15611         ac_cv_lib_gcc___chkstk_ms=no
15612 fi
15613
15614 rm -f core conftest.err conftest.$ac_objext \
15615       conftest$ac_exeext conftest.$ac_ext
15616 LIBS=$ac_check_lib_save_LIBS
15617 fi
15618 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15619 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15620 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15621
15622 cat >>confdefs.h <<\_ACEOF
15623 #define HAVE___CHKSTK_MS 1
15624 _ACEOF
15625
15626 fi
15627
15628   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15629 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15630 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15631   echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633   ac_check_lib_save_LIBS=$LIBS
15634 LIBS="-lgcc  $LIBS"
15635 cat >conftest.$ac_ext <<_ACEOF
15636 /* confdefs.h.  */
15637 _ACEOF
15638 cat confdefs.h >>conftest.$ac_ext
15639 cat >>conftest.$ac_ext <<_ACEOF
15640 /* end confdefs.h.  */
15641
15642 /* Override any GCC internal prototype to avoid an error.
15643    Use char because int might match the return type of a GCC
15644    builtin and then its argument prototype would still apply.  */
15645 #ifdef __cplusplus
15646 extern "C"
15647 #endif
15648 char ___chkstk ();
15649 int
15650 main ()
15651 {
15652 return ___chkstk ();
15653   ;
15654   return 0;
15655 }
15656 _ACEOF
15657 rm -f conftest.$ac_objext conftest$ac_exeext
15658 if { (ac_try="$ac_link"
15659 case "(($ac_try" in
15660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661   *) ac_try_echo=$ac_try;;
15662 esac
15663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15664   (eval "$ac_link") 2>conftest.er1
15665   ac_status=$?
15666   grep -v '^ *+' conftest.er1 >conftest.err
15667   rm -f conftest.er1
15668   cat conftest.err >&5
15669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670   (exit $ac_status); } &&
15671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15672   { (case "(($ac_try" in
15673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15674   *) ac_try_echo=$ac_try;;
15675 esac
15676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15677   (eval "$ac_try") 2>&5
15678   ac_status=$?
15679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680   (exit $ac_status); }; } &&
15681          { ac_try='test -s conftest$ac_exeext'
15682   { (case "(($ac_try" in
15683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684   *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687   (eval "$ac_try") 2>&5
15688   ac_status=$?
15689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15690   (exit $ac_status); }; }; then
15691   ac_cv_lib_gcc____chkstk=yes
15692 else
15693   echo "$as_me: failed program was:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15695
15696         ac_cv_lib_gcc____chkstk=no
15697 fi
15698
15699 rm -f core conftest.err conftest.$ac_objext \
15700       conftest$ac_exeext conftest.$ac_ext
15701 LIBS=$ac_check_lib_save_LIBS
15702 fi
15703 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15704 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15705 if test $ac_cv_lib_gcc____chkstk = yes; then
15706
15707 cat >>confdefs.h <<\_ACEOF
15708 #define HAVE____CHKSTK 1
15709 _ACEOF
15710
15711 fi
15712
15713   { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15714 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15715 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15716   echo $ECHO_N "(cached) $ECHO_C" >&6
15717 else
15718   ac_check_lib_save_LIBS=$LIBS
15719 LIBS="-lgcc  $LIBS"
15720 cat >conftest.$ac_ext <<_ACEOF
15721 /* confdefs.h.  */
15722 _ACEOF
15723 cat confdefs.h >>conftest.$ac_ext
15724 cat >>conftest.$ac_ext <<_ACEOF
15725 /* end confdefs.h.  */
15726
15727 /* Override any GCC internal prototype to avoid an error.
15728    Use char because int might match the return type of a GCC
15729    builtin and then its argument prototype would still apply.  */
15730 #ifdef __cplusplus
15731 extern "C"
15732 #endif
15733 char ___chkstk_ms ();
15734 int
15735 main ()
15736 {
15737 return ___chkstk_ms ();
15738   ;
15739   return 0;
15740 }
15741 _ACEOF
15742 rm -f conftest.$ac_objext conftest$ac_exeext
15743 if { (ac_try="$ac_link"
15744 case "(($ac_try" in
15745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746   *) ac_try_echo=$ac_try;;
15747 esac
15748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749   (eval "$ac_link") 2>conftest.er1
15750   ac_status=$?
15751   grep -v '^ *+' conftest.er1 >conftest.err
15752   rm -f conftest.er1
15753   cat conftest.err >&5
15754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15755   (exit $ac_status); } &&
15756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15757   { (case "(($ac_try" in
15758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15759   *) ac_try_echo=$ac_try;;
15760 esac
15761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15762   (eval "$ac_try") 2>&5
15763   ac_status=$?
15764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765   (exit $ac_status); }; } &&
15766          { ac_try='test -s conftest$ac_exeext'
15767   { (case "(($ac_try" in
15768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769   *) ac_try_echo=$ac_try;;
15770 esac
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772   (eval "$ac_try") 2>&5
15773   ac_status=$?
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); }; }; then
15776   ac_cv_lib_gcc____chkstk_ms=yes
15777 else
15778   echo "$as_me: failed program was:" >&5
15779 sed 's/^/| /' conftest.$ac_ext >&5
15780
15781         ac_cv_lib_gcc____chkstk_ms=no
15782 fi
15783
15784 rm -f core conftest.err conftest.$ac_objext \
15785       conftest$ac_exeext conftest.$ac_ext
15786 LIBS=$ac_check_lib_save_LIBS
15787 fi
15788 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15789 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15790 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15791
15792 cat >>confdefs.h <<\_ACEOF
15793 #define HAVE____CHKSTK_MS 1
15794 _ACEOF
15795
15796 fi
15797
15798
15799   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15800 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15801 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15802   echo $ECHO_N "(cached) $ECHO_C" >&6
15803 else
15804   ac_check_lib_save_LIBS=$LIBS
15805 LIBS="-lgcc  $LIBS"
15806 cat >conftest.$ac_ext <<_ACEOF
15807 /* confdefs.h.  */
15808 _ACEOF
15809 cat confdefs.h >>conftest.$ac_ext
15810 cat >>conftest.$ac_ext <<_ACEOF
15811 /* end confdefs.h.  */
15812
15813 /* Override any GCC internal prototype to avoid an error.
15814    Use char because int might match the return type of a GCC
15815    builtin and then its argument prototype would still apply.  */
15816 #ifdef __cplusplus
15817 extern "C"
15818 #endif
15819 char __ashldi3 ();
15820 int
15821 main ()
15822 {
15823 return __ashldi3 ();
15824   ;
15825   return 0;
15826 }
15827 _ACEOF
15828 rm -f conftest.$ac_objext conftest$ac_exeext
15829 if { (ac_try="$ac_link"
15830 case "(($ac_try" in
15831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15832   *) ac_try_echo=$ac_try;;
15833 esac
15834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15835   (eval "$ac_link") 2>conftest.er1
15836   ac_status=$?
15837   grep -v '^ *+' conftest.er1 >conftest.err
15838   rm -f conftest.er1
15839   cat conftest.err >&5
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); } &&
15842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15843   { (case "(($ac_try" in
15844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845   *) ac_try_echo=$ac_try;;
15846 esac
15847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15848   (eval "$ac_try") 2>&5
15849   ac_status=$?
15850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851   (exit $ac_status); }; } &&
15852          { ac_try='test -s conftest$ac_exeext'
15853   { (case "(($ac_try" in
15854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15855   *) ac_try_echo=$ac_try;;
15856 esac
15857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15858   (eval "$ac_try") 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); }; }; then
15862   ac_cv_lib_gcc___ashldi3=yes
15863 else
15864   echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15866
15867         ac_cv_lib_gcc___ashldi3=no
15868 fi
15869
15870 rm -f core conftest.err conftest.$ac_objext \
15871       conftest$ac_exeext conftest.$ac_ext
15872 LIBS=$ac_check_lib_save_LIBS
15873 fi
15874 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15875 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15876 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15877
15878 cat >>confdefs.h <<\_ACEOF
15879 #define HAVE___ASHLDI3 1
15880 _ACEOF
15881
15882 fi
15883
15884   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15885 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15886 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15887   echo $ECHO_N "(cached) $ECHO_C" >&6
15888 else
15889   ac_check_lib_save_LIBS=$LIBS
15890 LIBS="-lgcc  $LIBS"
15891 cat >conftest.$ac_ext <<_ACEOF
15892 /* confdefs.h.  */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h.  */
15897
15898 /* Override any GCC internal prototype to avoid an error.
15899    Use char because int might match the return type of a GCC
15900    builtin and then its argument prototype would still apply.  */
15901 #ifdef __cplusplus
15902 extern "C"
15903 #endif
15904 char __ashrdi3 ();
15905 int
15906 main ()
15907 {
15908 return __ashrdi3 ();
15909   ;
15910   return 0;
15911 }
15912 _ACEOF
15913 rm -f conftest.$ac_objext conftest$ac_exeext
15914 if { (ac_try="$ac_link"
15915 case "(($ac_try" in
15916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917   *) ac_try_echo=$ac_try;;
15918 esac
15919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15920   (eval "$ac_link") 2>conftest.er1
15921   ac_status=$?
15922   grep -v '^ *+' conftest.er1 >conftest.err
15923   rm -f conftest.er1
15924   cat conftest.err >&5
15925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15926   (exit $ac_status); } &&
15927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15928   { (case "(($ac_try" in
15929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930   *) ac_try_echo=$ac_try;;
15931 esac
15932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15933   (eval "$ac_try") 2>&5
15934   ac_status=$?
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); }; } &&
15937          { ac_try='test -s conftest$ac_exeext'
15938   { (case "(($ac_try" in
15939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940   *) ac_try_echo=$ac_try;;
15941 esac
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943   (eval "$ac_try") 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); }; }; then
15947   ac_cv_lib_gcc___ashrdi3=yes
15948 else
15949   echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952         ac_cv_lib_gcc___ashrdi3=no
15953 fi
15954
15955 rm -f core conftest.err conftest.$ac_objext \
15956       conftest$ac_exeext conftest.$ac_ext
15957 LIBS=$ac_check_lib_save_LIBS
15958 fi
15959 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15960 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15961 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15962
15963 cat >>confdefs.h <<\_ACEOF
15964 #define HAVE___ASHRDI3 1
15965 _ACEOF
15966
15967 fi
15968
15969   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15970 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15971 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15972   echo $ECHO_N "(cached) $ECHO_C" >&6
15973 else
15974   ac_check_lib_save_LIBS=$LIBS
15975 LIBS="-lgcc  $LIBS"
15976 cat >conftest.$ac_ext <<_ACEOF
15977 /* confdefs.h.  */
15978 _ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h.  */
15982
15983 /* Override any GCC internal prototype to avoid an error.
15984    Use char because int might match the return type of a GCC
15985    builtin and then its argument prototype would still apply.  */
15986 #ifdef __cplusplus
15987 extern "C"
15988 #endif
15989 char __divdi3 ();
15990 int
15991 main ()
15992 {
15993 return __divdi3 ();
15994   ;
15995   return 0;
15996 }
15997 _ACEOF
15998 rm -f conftest.$ac_objext conftest$ac_exeext
15999 if { (ac_try="$ac_link"
16000 case "(($ac_try" in
16001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002   *) ac_try_echo=$ac_try;;
16003 esac
16004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005   (eval "$ac_link") 2>conftest.er1
16006   ac_status=$?
16007   grep -v '^ *+' conftest.er1 >conftest.err
16008   rm -f conftest.er1
16009   cat conftest.err >&5
16010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011   (exit $ac_status); } &&
16012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16013   { (case "(($ac_try" in
16014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015   *) ac_try_echo=$ac_try;;
16016 esac
16017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018   (eval "$ac_try") 2>&5
16019   ac_status=$?
16020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021   (exit $ac_status); }; } &&
16022          { ac_try='test -s conftest$ac_exeext'
16023   { (case "(($ac_try" in
16024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025   *) ac_try_echo=$ac_try;;
16026 esac
16027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028   (eval "$ac_try") 2>&5
16029   ac_status=$?
16030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031   (exit $ac_status); }; }; then
16032   ac_cv_lib_gcc___divdi3=yes
16033 else
16034   echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16036
16037         ac_cv_lib_gcc___divdi3=no
16038 fi
16039
16040 rm -f core conftest.err conftest.$ac_objext \
16041       conftest$ac_exeext conftest.$ac_ext
16042 LIBS=$ac_check_lib_save_LIBS
16043 fi
16044 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16045 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16046 if test $ac_cv_lib_gcc___divdi3 = yes; then
16047
16048 cat >>confdefs.h <<\_ACEOF
16049 #define HAVE___DIVDI3 1
16050 _ACEOF
16051
16052 fi
16053
16054   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16055 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16056 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16057   echo $ECHO_N "(cached) $ECHO_C" >&6
16058 else
16059   ac_check_lib_save_LIBS=$LIBS
16060 LIBS="-lgcc  $LIBS"
16061 cat >conftest.$ac_ext <<_ACEOF
16062 /* confdefs.h.  */
16063 _ACEOF
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h.  */
16067
16068 /* Override any GCC internal prototype to avoid an error.
16069    Use char because int might match the return type of a GCC
16070    builtin and then its argument prototype would still apply.  */
16071 #ifdef __cplusplus
16072 extern "C"
16073 #endif
16074 char __fixdfdi ();
16075 int
16076 main ()
16077 {
16078 return __fixdfdi ();
16079   ;
16080   return 0;
16081 }
16082 _ACEOF
16083 rm -f conftest.$ac_objext conftest$ac_exeext
16084 if { (ac_try="$ac_link"
16085 case "(($ac_try" in
16086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087   *) ac_try_echo=$ac_try;;
16088 esac
16089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16090   (eval "$ac_link") 2>conftest.er1
16091   ac_status=$?
16092   grep -v '^ *+' conftest.er1 >conftest.err
16093   rm -f conftest.er1
16094   cat conftest.err >&5
16095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096   (exit $ac_status); } &&
16097          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16098   { (case "(($ac_try" in
16099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16100   *) ac_try_echo=$ac_try;;
16101 esac
16102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16103   (eval "$ac_try") 2>&5
16104   ac_status=$?
16105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106   (exit $ac_status); }; } &&
16107          { ac_try='test -s conftest$ac_exeext'
16108   { (case "(($ac_try" in
16109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110   *) ac_try_echo=$ac_try;;
16111 esac
16112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113   (eval "$ac_try") 2>&5
16114   ac_status=$?
16115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116   (exit $ac_status); }; }; then
16117   ac_cv_lib_gcc___fixdfdi=yes
16118 else
16119   echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16121
16122         ac_cv_lib_gcc___fixdfdi=no
16123 fi
16124
16125 rm -f core conftest.err conftest.$ac_objext \
16126       conftest$ac_exeext conftest.$ac_ext
16127 LIBS=$ac_check_lib_save_LIBS
16128 fi
16129 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16130 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16131 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16132
16133 cat >>confdefs.h <<\_ACEOF
16134 #define HAVE___FIXDFDI 1
16135 _ACEOF
16136
16137 fi
16138
16139   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16140 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16141 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16142   echo $ECHO_N "(cached) $ECHO_C" >&6
16143 else
16144   ac_check_lib_save_LIBS=$LIBS
16145 LIBS="-lgcc  $LIBS"
16146 cat >conftest.$ac_ext <<_ACEOF
16147 /* confdefs.h.  */
16148 _ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h.  */
16152
16153 /* Override any GCC internal prototype to avoid an error.
16154    Use char because int might match the return type of a GCC
16155    builtin and then its argument prototype would still apply.  */
16156 #ifdef __cplusplus
16157 extern "C"
16158 #endif
16159 char __fixsfdi ();
16160 int
16161 main ()
16162 {
16163 return __fixsfdi ();
16164   ;
16165   return 0;
16166 }
16167 _ACEOF
16168 rm -f conftest.$ac_objext conftest$ac_exeext
16169 if { (ac_try="$ac_link"
16170 case "(($ac_try" in
16171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172   *) ac_try_echo=$ac_try;;
16173 esac
16174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175   (eval "$ac_link") 2>conftest.er1
16176   ac_status=$?
16177   grep -v '^ *+' conftest.er1 >conftest.err
16178   rm -f conftest.er1
16179   cat conftest.err >&5
16180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16181   (exit $ac_status); } &&
16182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16183   { (case "(($ac_try" in
16184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16185   *) ac_try_echo=$ac_try;;
16186 esac
16187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16188   (eval "$ac_try") 2>&5
16189   ac_status=$?
16190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191   (exit $ac_status); }; } &&
16192          { ac_try='test -s conftest$ac_exeext'
16193   { (case "(($ac_try" in
16194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195   *) ac_try_echo=$ac_try;;
16196 esac
16197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16198   (eval "$ac_try") 2>&5
16199   ac_status=$?
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); }; }; then
16202   ac_cv_lib_gcc___fixsfdi=yes
16203 else
16204   echo "$as_me: failed program was:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16206
16207         ac_cv_lib_gcc___fixsfdi=no
16208 fi
16209
16210 rm -f core conftest.err conftest.$ac_objext \
16211       conftest$ac_exeext conftest.$ac_ext
16212 LIBS=$ac_check_lib_save_LIBS
16213 fi
16214 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16215 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16216 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16217
16218 cat >>confdefs.h <<\_ACEOF
16219 #define HAVE___FIXSFDI 1
16220 _ACEOF
16221
16222 fi
16223
16224   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16225 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16226 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16227   echo $ECHO_N "(cached) $ECHO_C" >&6
16228 else
16229   ac_check_lib_save_LIBS=$LIBS
16230 LIBS="-lgcc  $LIBS"
16231 cat >conftest.$ac_ext <<_ACEOF
16232 /* confdefs.h.  */
16233 _ACEOF
16234 cat confdefs.h >>conftest.$ac_ext
16235 cat >>conftest.$ac_ext <<_ACEOF
16236 /* end confdefs.h.  */
16237
16238 /* Override any GCC internal prototype to avoid an error.
16239    Use char because int might match the return type of a GCC
16240    builtin and then its argument prototype would still apply.  */
16241 #ifdef __cplusplus
16242 extern "C"
16243 #endif
16244 char __floatdidf ();
16245 int
16246 main ()
16247 {
16248 return __floatdidf ();
16249   ;
16250   return 0;
16251 }
16252 _ACEOF
16253 rm -f conftest.$ac_objext conftest$ac_exeext
16254 if { (ac_try="$ac_link"
16255 case "(($ac_try" in
16256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257   *) ac_try_echo=$ac_try;;
16258 esac
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260   (eval "$ac_link") 2>conftest.er1
16261   ac_status=$?
16262   grep -v '^ *+' conftest.er1 >conftest.err
16263   rm -f conftest.er1
16264   cat conftest.err >&5
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); } &&
16267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16268   { (case "(($ac_try" in
16269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270   *) ac_try_echo=$ac_try;;
16271 esac
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273   (eval "$ac_try") 2>&5
16274   ac_status=$?
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); }; } &&
16277          { ac_try='test -s conftest$ac_exeext'
16278   { (case "(($ac_try" in
16279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16280   *) ac_try_echo=$ac_try;;
16281 esac
16282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16283   (eval "$ac_try") 2>&5
16284   ac_status=$?
16285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); }; }; then
16287   ac_cv_lib_gcc___floatdidf=yes
16288 else
16289   echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16291
16292         ac_cv_lib_gcc___floatdidf=no
16293 fi
16294
16295 rm -f core conftest.err conftest.$ac_objext \
16296       conftest$ac_exeext conftest.$ac_ext
16297 LIBS=$ac_check_lib_save_LIBS
16298 fi
16299 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16300 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16301 if test $ac_cv_lib_gcc___floatdidf = yes; then
16302
16303 cat >>confdefs.h <<\_ACEOF
16304 #define HAVE___FLOATDIDF 1
16305 _ACEOF
16306
16307 fi
16308
16309   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16310 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16311 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16312   echo $ECHO_N "(cached) $ECHO_C" >&6
16313 else
16314   ac_check_lib_save_LIBS=$LIBS
16315 LIBS="-lgcc  $LIBS"
16316 cat >conftest.$ac_ext <<_ACEOF
16317 /* confdefs.h.  */
16318 _ACEOF
16319 cat confdefs.h >>conftest.$ac_ext
16320 cat >>conftest.$ac_ext <<_ACEOF
16321 /* end confdefs.h.  */
16322
16323 /* Override any GCC internal prototype to avoid an error.
16324    Use char because int might match the return type of a GCC
16325    builtin and then its argument prototype would still apply.  */
16326 #ifdef __cplusplus
16327 extern "C"
16328 #endif
16329 char __lshrdi3 ();
16330 int
16331 main ()
16332 {
16333 return __lshrdi3 ();
16334   ;
16335   return 0;
16336 }
16337 _ACEOF
16338 rm -f conftest.$ac_objext conftest$ac_exeext
16339 if { (ac_try="$ac_link"
16340 case "(($ac_try" in
16341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342   *) ac_try_echo=$ac_try;;
16343 esac
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345   (eval "$ac_link") 2>conftest.er1
16346   ac_status=$?
16347   grep -v '^ *+' conftest.er1 >conftest.err
16348   rm -f conftest.er1
16349   cat conftest.err >&5
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); } &&
16352          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16353   { (case "(($ac_try" in
16354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355   *) ac_try_echo=$ac_try;;
16356 esac
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358   (eval "$ac_try") 2>&5
16359   ac_status=$?
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); }; } &&
16362          { ac_try='test -s conftest$ac_exeext'
16363   { (case "(($ac_try" in
16364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365   *) ac_try_echo=$ac_try;;
16366 esac
16367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16368   (eval "$ac_try") 2>&5
16369   ac_status=$?
16370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); }; }; then
16372   ac_cv_lib_gcc___lshrdi3=yes
16373 else
16374   echo "$as_me: failed program was:" >&5
16375 sed 's/^/| /' conftest.$ac_ext >&5
16376
16377         ac_cv_lib_gcc___lshrdi3=no
16378 fi
16379
16380 rm -f core conftest.err conftest.$ac_objext \
16381       conftest$ac_exeext conftest.$ac_ext
16382 LIBS=$ac_check_lib_save_LIBS
16383 fi
16384 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16385 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16386 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16387
16388 cat >>confdefs.h <<\_ACEOF
16389 #define HAVE___LSHRDI3 1
16390 _ACEOF
16391
16392 fi
16393
16394   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16395 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16396 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16397   echo $ECHO_N "(cached) $ECHO_C" >&6
16398 else
16399   ac_check_lib_save_LIBS=$LIBS
16400 LIBS="-lgcc  $LIBS"
16401 cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h.  */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h.  */
16407
16408 /* Override any GCC internal prototype to avoid an error.
16409    Use char because int might match the return type of a GCC
16410    builtin and then its argument prototype would still apply.  */
16411 #ifdef __cplusplus
16412 extern "C"
16413 #endif
16414 char __moddi3 ();
16415 int
16416 main ()
16417 {
16418 return __moddi3 ();
16419   ;
16420   return 0;
16421 }
16422 _ACEOF
16423 rm -f conftest.$ac_objext conftest$ac_exeext
16424 if { (ac_try="$ac_link"
16425 case "(($ac_try" in
16426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427   *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430   (eval "$ac_link") 2>conftest.er1
16431   ac_status=$?
16432   grep -v '^ *+' conftest.er1 >conftest.err
16433   rm -f conftest.er1
16434   cat conftest.err >&5
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); } &&
16437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16438   { (case "(($ac_try" in
16439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440   *) ac_try_echo=$ac_try;;
16441 esac
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443   (eval "$ac_try") 2>&5
16444   ac_status=$?
16445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446   (exit $ac_status); }; } &&
16447          { ac_try='test -s conftest$ac_exeext'
16448   { (case "(($ac_try" in
16449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450   *) ac_try_echo=$ac_try;;
16451 esac
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453   (eval "$ac_try") 2>&5
16454   ac_status=$?
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); }; }; then
16457   ac_cv_lib_gcc___moddi3=yes
16458 else
16459   echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16461
16462         ac_cv_lib_gcc___moddi3=no
16463 fi
16464
16465 rm -f core conftest.err conftest.$ac_objext \
16466       conftest$ac_exeext conftest.$ac_ext
16467 LIBS=$ac_check_lib_save_LIBS
16468 fi
16469 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16470 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16471 if test $ac_cv_lib_gcc___moddi3 = yes; then
16472
16473 cat >>confdefs.h <<\_ACEOF
16474 #define HAVE___MODDI3 1
16475 _ACEOF
16476
16477 fi
16478
16479   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16480 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16481 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16482   echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484   ac_check_lib_save_LIBS=$LIBS
16485 LIBS="-lgcc  $LIBS"
16486 cat >conftest.$ac_ext <<_ACEOF
16487 /* confdefs.h.  */
16488 _ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h.  */
16492
16493 /* Override any GCC internal prototype to avoid an error.
16494    Use char because int might match the return type of a GCC
16495    builtin and then its argument prototype would still apply.  */
16496 #ifdef __cplusplus
16497 extern "C"
16498 #endif
16499 char __udivdi3 ();
16500 int
16501 main ()
16502 {
16503 return __udivdi3 ();
16504   ;
16505   return 0;
16506 }
16507 _ACEOF
16508 rm -f conftest.$ac_objext conftest$ac_exeext
16509 if { (ac_try="$ac_link"
16510 case "(($ac_try" in
16511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16512   *) ac_try_echo=$ac_try;;
16513 esac
16514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16515   (eval "$ac_link") 2>conftest.er1
16516   ac_status=$?
16517   grep -v '^ *+' conftest.er1 >conftest.err
16518   rm -f conftest.er1
16519   cat conftest.err >&5
16520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16521   (exit $ac_status); } &&
16522          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16523   { (case "(($ac_try" in
16524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525   *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528   (eval "$ac_try") 2>&5
16529   ac_status=$?
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); }; } &&
16532          { ac_try='test -s conftest$ac_exeext'
16533   { (case "(($ac_try" in
16534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16535   *) ac_try_echo=$ac_try;;
16536 esac
16537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16538   (eval "$ac_try") 2>&5
16539   ac_status=$?
16540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16541   (exit $ac_status); }; }; then
16542   ac_cv_lib_gcc___udivdi3=yes
16543 else
16544   echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547         ac_cv_lib_gcc___udivdi3=no
16548 fi
16549
16550 rm -f core conftest.err conftest.$ac_objext \
16551       conftest$ac_exeext conftest.$ac_ext
16552 LIBS=$ac_check_lib_save_LIBS
16553 fi
16554 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16555 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16556 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16557
16558 cat >>confdefs.h <<\_ACEOF
16559 #define HAVE___UDIVDI3 1
16560 _ACEOF
16561
16562 fi
16563
16564   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16565 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16566 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16567   echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569   ac_check_lib_save_LIBS=$LIBS
16570 LIBS="-lgcc  $LIBS"
16571 cat >conftest.$ac_ext <<_ACEOF
16572 /* confdefs.h.  */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h.  */
16577
16578 /* Override any GCC internal prototype to avoid an error.
16579    Use char because int might match the return type of a GCC
16580    builtin and then its argument prototype would still apply.  */
16581 #ifdef __cplusplus
16582 extern "C"
16583 #endif
16584 char __umoddi3 ();
16585 int
16586 main ()
16587 {
16588 return __umoddi3 ();
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 rm -f conftest.$ac_objext conftest$ac_exeext
16594 if { (ac_try="$ac_link"
16595 case "(($ac_try" in
16596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597   *) ac_try_echo=$ac_try;;
16598 esac
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600   (eval "$ac_link") 2>conftest.er1
16601   ac_status=$?
16602   grep -v '^ *+' conftest.er1 >conftest.err
16603   rm -f conftest.er1
16604   cat conftest.err >&5
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); } &&
16607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16608   { (case "(($ac_try" in
16609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610   *) ac_try_echo=$ac_try;;
16611 esac
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613   (eval "$ac_try") 2>&5
16614   ac_status=$?
16615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616   (exit $ac_status); }; } &&
16617          { ac_try='test -s conftest$ac_exeext'
16618   { (case "(($ac_try" in
16619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620   *) ac_try_echo=$ac_try;;
16621 esac
16622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623   (eval "$ac_try") 2>&5
16624   ac_status=$?
16625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626   (exit $ac_status); }; }; then
16627   ac_cv_lib_gcc___umoddi3=yes
16628 else
16629   echo "$as_me: failed program was:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16631
16632         ac_cv_lib_gcc___umoddi3=no
16633 fi
16634
16635 rm -f core conftest.err conftest.$ac_objext \
16636       conftest$ac_exeext conftest.$ac_ext
16637 LIBS=$ac_check_lib_save_LIBS
16638 fi
16639 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16640 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16641 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16642
16643 cat >>confdefs.h <<\_ACEOF
16644 #define HAVE___UMODDI3 1
16645 _ACEOF
16646
16647 fi
16648
16649
16650   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16651 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16652 if test "${ac_cv_lib_gcc___main+set}" = set; then
16653   echo $ECHO_N "(cached) $ECHO_C" >&6
16654 else
16655   ac_check_lib_save_LIBS=$LIBS
16656 LIBS="-lgcc  $LIBS"
16657 cat >conftest.$ac_ext <<_ACEOF
16658 /* confdefs.h.  */
16659 _ACEOF
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h.  */
16663
16664 /* Override any GCC internal prototype to avoid an error.
16665    Use char because int might match the return type of a GCC
16666    builtin and then its argument prototype would still apply.  */
16667 #ifdef __cplusplus
16668 extern "C"
16669 #endif
16670 char __main ();
16671 int
16672 main ()
16673 {
16674 return __main ();
16675   ;
16676   return 0;
16677 }
16678 _ACEOF
16679 rm -f conftest.$ac_objext conftest$ac_exeext
16680 if { (ac_try="$ac_link"
16681 case "(($ac_try" in
16682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683   *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686   (eval "$ac_link") 2>conftest.er1
16687   ac_status=$?
16688   grep -v '^ *+' conftest.er1 >conftest.err
16689   rm -f conftest.er1
16690   cat conftest.err >&5
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); } &&
16693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16694   { (case "(($ac_try" in
16695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696   *) ac_try_echo=$ac_try;;
16697 esac
16698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699   (eval "$ac_try") 2>&5
16700   ac_status=$?
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); }; } &&
16703          { ac_try='test -s conftest$ac_exeext'
16704   { (case "(($ac_try" in
16705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706   *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709   (eval "$ac_try") 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); }; }; then
16713   ac_cv_lib_gcc___main=yes
16714 else
16715   echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16717
16718         ac_cv_lib_gcc___main=no
16719 fi
16720
16721 rm -f core conftest.err conftest.$ac_objext \
16722       conftest$ac_exeext conftest.$ac_ext
16723 LIBS=$ac_check_lib_save_LIBS
16724 fi
16725 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16726 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16727 if test $ac_cv_lib_gcc___main = yes; then
16728
16729 cat >>confdefs.h <<\_ACEOF
16730 #define HAVE___MAIN 1
16731 _ACEOF
16732
16733 fi
16734
16735   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16736 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16737 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16738   echo $ECHO_N "(cached) $ECHO_C" >&6
16739 else
16740   ac_check_lib_save_LIBS=$LIBS
16741 LIBS="-lgcc  $LIBS"
16742 cat >conftest.$ac_ext <<_ACEOF
16743 /* confdefs.h.  */
16744 _ACEOF
16745 cat confdefs.h >>conftest.$ac_ext
16746 cat >>conftest.$ac_ext <<_ACEOF
16747 /* end confdefs.h.  */
16748
16749 /* Override any GCC internal prototype to avoid an error.
16750    Use char because int might match the return type of a GCC
16751    builtin and then its argument prototype would still apply.  */
16752 #ifdef __cplusplus
16753 extern "C"
16754 #endif
16755 char __cmpdi2 ();
16756 int
16757 main ()
16758 {
16759 return __cmpdi2 ();
16760   ;
16761   return 0;
16762 }
16763 _ACEOF
16764 rm -f conftest.$ac_objext conftest$ac_exeext
16765 if { (ac_try="$ac_link"
16766 case "(($ac_try" in
16767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16768   *) ac_try_echo=$ac_try;;
16769 esac
16770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16771   (eval "$ac_link") 2>conftest.er1
16772   ac_status=$?
16773   grep -v '^ *+' conftest.er1 >conftest.err
16774   rm -f conftest.er1
16775   cat conftest.err >&5
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); } &&
16778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16779   { (case "(($ac_try" in
16780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781   *) ac_try_echo=$ac_try;;
16782 esac
16783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16784   (eval "$ac_try") 2>&5
16785   ac_status=$?
16786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); }; } &&
16788          { ac_try='test -s conftest$ac_exeext'
16789   { (case "(($ac_try" in
16790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791   *) ac_try_echo=$ac_try;;
16792 esac
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794   (eval "$ac_try") 2>&5
16795   ac_status=$?
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); }; }; then
16798   ac_cv_lib_gcc___cmpdi2=yes
16799 else
16800   echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803         ac_cv_lib_gcc___cmpdi2=no
16804 fi
16805
16806 rm -f core conftest.err conftest.$ac_objext \
16807       conftest$ac_exeext conftest.$ac_ext
16808 LIBS=$ac_check_lib_save_LIBS
16809 fi
16810 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16811 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16812 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16813
16814 cat >>confdefs.h <<\_ACEOF
16815 #define HAVE___CMPDI2 1
16816 _ACEOF
16817
16818 fi
16819
16820 fi
16821
16822 if test "$llvm_cv_os_type" = "MingW" ; then
16823   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16824 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16825   cat >conftest.$ac_ext <<_ACEOF
16826
16827   /* confdefs.h.  */
16828 _ACEOF
16829 cat confdefs.h >>conftest.$ac_ext
16830 cat >>conftest.$ac_ext <<_ACEOF
16831 /* end confdefs.h.  */
16832
16833     #include <windows.h>
16834     #include <imagehlp.h>
16835     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16836     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16837
16838
16839 _ACEOF
16840 rm -f conftest.$ac_objext
16841 if { (ac_try="$ac_compile"
16842 case "(($ac_try" in
16843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844   *) ac_try_echo=$ac_try;;
16845 esac
16846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847   (eval "$ac_compile") 2>conftest.er1
16848   ac_status=$?
16849   grep -v '^ *+' conftest.er1 >conftest.err
16850   rm -f conftest.er1
16851   cat conftest.err >&5
16852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); } &&
16854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16855   { (case "(($ac_try" in
16856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857   *) ac_try_echo=$ac_try;;
16858 esac
16859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860   (eval "$ac_try") 2>&5
16861   ac_status=$?
16862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863   (exit $ac_status); }; } &&
16864          { ac_try='test -s conftest.$ac_objext'
16865   { (case "(($ac_try" in
16866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867   *) ac_try_echo=$ac_try;;
16868 esac
16869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870   (eval "$ac_try") 2>&5
16871   ac_status=$?
16872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873   (exit $ac_status); }; }; then
16874
16875   { echo "$as_me:$LINENO: result: yes" >&5
16876 echo "${ECHO_T}yes" >&6; }
16877   llvm_cv_win32_elmcb_pcstr="PCSTR"
16878
16879 else
16880   echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16882
16883
16884   { echo "$as_me:$LINENO: result: no" >&5
16885 echo "${ECHO_T}no" >&6; }
16886   llvm_cv_win32_elmcb_pcstr="PSTR"
16887
16888 fi
16889
16890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16891
16892 cat >>confdefs.h <<_ACEOF
16893 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16894 _ACEOF
16895
16896 fi
16897
16898 if test "$llvm_cv_platform_type" = "Unix" ; then
16899
16900
16901 for ac_header in stdlib.h unistd.h
16902 do
16903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16905   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16908   echo $ECHO_N "(cached) $ECHO_C" >&6
16909 fi
16910 ac_res=`eval echo '${'$as_ac_Header'}'`
16911                { echo "$as_me:$LINENO: result: $ac_res" >&5
16912 echo "${ECHO_T}$ac_res" >&6; }
16913 else
16914   # Is the header compilable?
16915 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16917 cat >conftest.$ac_ext <<_ACEOF
16918 /* confdefs.h.  */
16919 _ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h.  */
16923 $ac_includes_default
16924 #include <$ac_header>
16925 _ACEOF
16926 rm -f conftest.$ac_objext
16927 if { (ac_try="$ac_compile"
16928 case "(($ac_try" in
16929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930   *) ac_try_echo=$ac_try;;
16931 esac
16932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16933   (eval "$ac_compile") 2>conftest.er1
16934   ac_status=$?
16935   grep -v '^ *+' conftest.er1 >conftest.err
16936   rm -f conftest.er1
16937   cat conftest.err >&5
16938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939   (exit $ac_status); } &&
16940          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16941   { (case "(($ac_try" in
16942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943   *) ac_try_echo=$ac_try;;
16944 esac
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946   (eval "$ac_try") 2>&5
16947   ac_status=$?
16948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); }; } &&
16950          { ac_try='test -s conftest.$ac_objext'
16951   { (case "(($ac_try" in
16952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953   *) ac_try_echo=$ac_try;;
16954 esac
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956   (eval "$ac_try") 2>&5
16957   ac_status=$?
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); }; }; then
16960   ac_header_compiler=yes
16961 else
16962   echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16964
16965         ac_header_compiler=no
16966 fi
16967
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16970 echo "${ECHO_T}$ac_header_compiler" >&6; }
16971
16972 # Is the header present?
16973 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16975 cat >conftest.$ac_ext <<_ACEOF
16976 /* confdefs.h.  */
16977 _ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h.  */
16981 #include <$ac_header>
16982 _ACEOF
16983 if { (ac_try="$ac_cpp conftest.$ac_ext"
16984 case "(($ac_try" in
16985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986   *) ac_try_echo=$ac_try;;
16987 esac
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16990   ac_status=$?
16991   grep -v '^ *+' conftest.er1 >conftest.err
16992   rm -f conftest.er1
16993   cat conftest.err >&5
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); } >/dev/null; then
16996   if test -s conftest.err; then
16997     ac_cpp_err=$ac_c_preproc_warn_flag
16998     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16999   else
17000     ac_cpp_err=
17001   fi
17002 else
17003   ac_cpp_err=yes
17004 fi
17005 if test -z "$ac_cpp_err"; then
17006   ac_header_preproc=yes
17007 else
17008   echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17010
17011   ac_header_preproc=no
17012 fi
17013
17014 rm -f conftest.err conftest.$ac_ext
17015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17016 echo "${ECHO_T}$ac_header_preproc" >&6; }
17017
17018 # So?  What about this header?
17019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17020   yes:no: )
17021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17025     ac_header_preproc=yes
17026     ;;
17027   no:yes:* )
17028     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17030     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17031 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17032     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17034     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17035 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17038     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17040     ( cat <<\_ASBOX
17041 ## ------------------------------------ ##
17042 ## Report this to http://llvm.org/bugs/ ##
17043 ## ------------------------------------ ##
17044 _ASBOX
17045      ) | sed "s/^/$as_me: WARNING:     /" >&2
17046     ;;
17047 esac
17048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17051   echo $ECHO_N "(cached) $ECHO_C" >&6
17052 else
17053   eval "$as_ac_Header=\$ac_header_preproc"
17054 fi
17055 ac_res=`eval echo '${'$as_ac_Header'}'`
17056                { echo "$as_me:$LINENO: result: $ac_res" >&5
17057 echo "${ECHO_T}$ac_res" >&6; }
17058
17059 fi
17060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17061   cat >>confdefs.h <<_ACEOF
17062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17063 _ACEOF
17064
17065 fi
17066
17067 done
17068
17069
17070 for ac_func in getpagesize
17071 do
17072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17076   echo $ECHO_N "(cached) $ECHO_C" >&6
17077 else
17078   cat >conftest.$ac_ext <<_ACEOF
17079 /* confdefs.h.  */
17080 _ACEOF
17081 cat confdefs.h >>conftest.$ac_ext
17082 cat >>conftest.$ac_ext <<_ACEOF
17083 /* end confdefs.h.  */
17084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17086 #define $ac_func innocuous_$ac_func
17087
17088 /* System header to define __stub macros and hopefully few prototypes,
17089     which can conflict with char $ac_func (); below.
17090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17091     <limits.h> exists even on freestanding compilers.  */
17092
17093 #ifdef __STDC__
17094 # include <limits.h>
17095 #else
17096 # include <assert.h>
17097 #endif
17098
17099 #undef $ac_func
17100
17101 /* Override any GCC internal prototype to avoid an error.
17102    Use char because int might match the return type of a GCC
17103    builtin and then its argument prototype would still apply.  */
17104 #ifdef __cplusplus
17105 extern "C"
17106 #endif
17107 char $ac_func ();
17108 /* The GNU C library defines this for functions which it implements
17109     to always fail with ENOSYS.  Some functions are actually named
17110     something starting with __ and the normal name is an alias.  */
17111 #if defined __stub_$ac_func || defined __stub___$ac_func
17112 choke me
17113 #endif
17114
17115 int
17116 main ()
17117 {
17118 return $ac_func ();
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 rm -f conftest.$ac_objext conftest$ac_exeext
17124 if { (ac_try="$ac_link"
17125 case "(($ac_try" in
17126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17127   *) ac_try_echo=$ac_try;;
17128 esac
17129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17130   (eval "$ac_link") 2>conftest.er1
17131   ac_status=$?
17132   grep -v '^ *+' conftest.er1 >conftest.err
17133   rm -f conftest.er1
17134   cat conftest.err >&5
17135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136   (exit $ac_status); } &&
17137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17138   { (case "(($ac_try" in
17139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140   *) ac_try_echo=$ac_try;;
17141 esac
17142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17143   (eval "$ac_try") 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; } &&
17147          { ac_try='test -s conftest$ac_exeext'
17148   { (case "(($ac_try" in
17149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150   *) ac_try_echo=$ac_try;;
17151 esac
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153   (eval "$ac_try") 2>&5
17154   ac_status=$?
17155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156   (exit $ac_status); }; }; then
17157   eval "$as_ac_var=yes"
17158 else
17159   echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17161
17162         eval "$as_ac_var=no"
17163 fi
17164
17165 rm -f core conftest.err conftest.$ac_objext \
17166       conftest$ac_exeext conftest.$ac_ext
17167 fi
17168 ac_res=`eval echo '${'$as_ac_var'}'`
17169                { echo "$as_me:$LINENO: result: $ac_res" >&5
17170 echo "${ECHO_T}$ac_res" >&6; }
17171 if test `eval echo '${'$as_ac_var'}'` = yes; then
17172   cat >>confdefs.h <<_ACEOF
17173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17174 _ACEOF
17175
17176 fi
17177 done
17178
17179 { echo "$as_me:$LINENO: checking for working mmap" >&5
17180 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17181 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17182   echo $ECHO_N "(cached) $ECHO_C" >&6
17183 else
17184   if test "$cross_compiling" = yes; then
17185   ac_cv_func_mmap_fixed_mapped=no
17186 else
17187   cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h.  */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h.  */
17193 $ac_includes_default
17194 /* malloc might have been renamed as rpl_malloc. */
17195 #undef malloc
17196
17197 /* Thanks to Mike Haertel and Jim Avera for this test.
17198    Here is a matrix of mmap possibilities:
17199         mmap private not fixed
17200         mmap private fixed at somewhere currently unmapped
17201         mmap private fixed at somewhere already mapped
17202         mmap shared not fixed
17203         mmap shared fixed at somewhere currently unmapped
17204         mmap shared fixed at somewhere already mapped
17205    For private mappings, we should verify that changes cannot be read()
17206    back from the file, nor mmap's back from the file at a different
17207    address.  (There have been systems where private was not correctly
17208    implemented like the infamous i386 svr4.0, and systems where the
17209    VM page cache was not coherent with the file system buffer cache
17210    like early versions of FreeBSD and possibly contemporary NetBSD.)
17211    For shared mappings, we should conversely verify that changes get
17212    propagated back to all the places they're supposed to be.
17213
17214    Grep wants private fixed already mapped.
17215    The main things grep needs to know about mmap are:
17216    * does it exist and is it safe to write into the mmap'd area
17217    * how to use it (BSD variants)  */
17218
17219 #include <fcntl.h>
17220 #include <sys/mman.h>
17221
17222 #if !STDC_HEADERS && !HAVE_STDLIB_H
17223 char *malloc ();
17224 #endif
17225
17226 /* This mess was copied from the GNU getpagesize.h.  */
17227 #if !HAVE_GETPAGESIZE
17228 /* Assume that all systems that can run configure have sys/param.h.  */
17229 # if !HAVE_SYS_PARAM_H
17230 #  define HAVE_SYS_PARAM_H 1
17231 # endif
17232
17233 # ifdef _SC_PAGESIZE
17234 #  define getpagesize() sysconf(_SC_PAGESIZE)
17235 # else /* no _SC_PAGESIZE */
17236 #  if HAVE_SYS_PARAM_H
17237 #   include <sys/param.h>
17238 #   ifdef EXEC_PAGESIZE
17239 #    define getpagesize() EXEC_PAGESIZE
17240 #   else /* no EXEC_PAGESIZE */
17241 #    ifdef NBPG
17242 #     define getpagesize() NBPG * CLSIZE
17243 #     ifndef CLSIZE
17244 #      define CLSIZE 1
17245 #     endif /* no CLSIZE */
17246 #    else /* no NBPG */
17247 #     ifdef NBPC
17248 #      define getpagesize() NBPC
17249 #     else /* no NBPC */
17250 #      ifdef PAGESIZE
17251 #       define getpagesize() PAGESIZE
17252 #      endif /* PAGESIZE */
17253 #     endif /* no NBPC */
17254 #    endif /* no NBPG */
17255 #   endif /* no EXEC_PAGESIZE */
17256 #  else /* no HAVE_SYS_PARAM_H */
17257 #   define getpagesize() 8192   /* punt totally */
17258 #  endif /* no HAVE_SYS_PARAM_H */
17259 # endif /* no _SC_PAGESIZE */
17260
17261 #endif /* no HAVE_GETPAGESIZE */
17262
17263 int
17264 main ()
17265 {
17266   char *data, *data2, *data3;
17267   int i, pagesize;
17268   int fd;
17269
17270   pagesize = getpagesize ();
17271
17272   /* First, make a file with some known garbage in it. */
17273   data = (char *) malloc (pagesize);
17274   if (!data)
17275     return 1;
17276   for (i = 0; i < pagesize; ++i)
17277     *(data + i) = rand ();
17278   umask (0);
17279   fd = creat ("conftest.mmap", 0600);
17280   if (fd < 0)
17281     return 1;
17282   if (write (fd, data, pagesize) != pagesize)
17283     return 1;
17284   close (fd);
17285
17286   /* Next, try to mmap the file at a fixed address which already has
17287      something else allocated at it.  If we can, also make sure that
17288      we see the same garbage.  */
17289   fd = open ("conftest.mmap", O_RDWR);
17290   if (fd < 0)
17291     return 1;
17292   data2 = (char *) malloc (2 * pagesize);
17293   if (!data2)
17294     return 1;
17295   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17296   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17297                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17298     return 1;
17299   for (i = 0; i < pagesize; ++i)
17300     if (*(data + i) != *(data2 + i))
17301       return 1;
17302
17303   /* Finally, make sure that changes to the mapped area do not
17304      percolate back to the file as seen by read().  (This is a bug on
17305      some variants of i386 svr4.0.)  */
17306   for (i = 0; i < pagesize; ++i)
17307     *(data2 + i) = *(data2 + i) + 1;
17308   data3 = (char *) malloc (pagesize);
17309   if (!data3)
17310     return 1;
17311   if (read (fd, data3, pagesize) != pagesize)
17312     return 1;
17313   for (i = 0; i < pagesize; ++i)
17314     if (*(data + i) != *(data3 + i))
17315       return 1;
17316   close (fd);
17317   return 0;
17318 }
17319 _ACEOF
17320 rm -f conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324   *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327   (eval "$ac_link") 2>&5
17328   ac_status=$?
17329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17331   { (case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336   (eval "$ac_try") 2>&5
17337   ac_status=$?
17338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339   (exit $ac_status); }; }; then
17340   ac_cv_func_mmap_fixed_mapped=yes
17341 else
17342   echo "$as_me: program exited with status $ac_status" >&5
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17345
17346 ( exit $ac_status )
17347 ac_cv_func_mmap_fixed_mapped=no
17348 fi
17349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17350 fi
17351
17352
17353 fi
17354 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17355 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17356 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17357
17358 cat >>confdefs.h <<\_ACEOF
17359 #define HAVE_MMAP 1
17360 _ACEOF
17361
17362 fi
17363 rm -f conftest.mmap
17364
17365   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17366 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17367 if test "${ac_cv_func_mmap_file+set}" = set; then
17368   echo $ECHO_N "(cached) $ECHO_C" >&6
17369 else
17370    ac_ext=c
17371 ac_cpp='$CPP $CPPFLAGS'
17372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17375
17376   if test "$cross_compiling" = yes; then
17377   ac_cv_func_mmap_file=no
17378 else
17379   cat >conftest.$ac_ext <<_ACEOF
17380
17381     /* confdefs.h.  */
17382 _ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h.  */
17386
17387 #include <sys/types.h>
17388 #include <sys/mman.h>
17389 #include <fcntl.h>
17390
17391 int
17392 main ()
17393 {
17394
17395   int fd;
17396   fd = creat ("foo",0777);
17397   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17398   unlink ("foo");
17399   return (fd != (int) MAP_FAILED);
17400   ;
17401   return 0;
17402 }
17403 _ACEOF
17404 rm -f conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408   *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411   (eval "$ac_link") 2>&5
17412   ac_status=$?
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17415   { (case "(($ac_try" in
17416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17417   *) ac_try_echo=$ac_try;;
17418 esac
17419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17420   (eval "$ac_try") 2>&5
17421   ac_status=$?
17422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423   (exit $ac_status); }; }; then
17424   ac_cv_func_mmap_file=yes
17425 else
17426   echo "$as_me: program exited with status $ac_status" >&5
17427 echo "$as_me: failed program was:" >&5
17428 sed 's/^/| /' conftest.$ac_ext >&5
17429
17430 ( exit $ac_status )
17431 ac_cv_func_mmap_file=no
17432 fi
17433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17434 fi
17435
17436
17437   ac_ext=c
17438 ac_cpp='$CPP $CPPFLAGS'
17439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17442
17443
17444 fi
17445 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17446 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17447 if test "$ac_cv_func_mmap_file" = yes; then
17448
17449 cat >>confdefs.h <<\_ACEOF
17450 #define HAVE_MMAP_FILE
17451 _ACEOF
17452
17453    MMAP_FILE=yes
17454
17455 fi
17456
17457   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17458 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17459 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17460   echo $ECHO_N "(cached) $ECHO_C" >&6
17461 else
17462   if test "$llvm_cv_os_type" = "Interix" ; then
17463    ac_cv_need_dev_zero_for_mmap=yes
17464  else
17465    ac_cv_need_dev_zero_for_mmap=no
17466  fi
17467
17468 fi
17469 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17470 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17471 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17472
17473 cat >>confdefs.h <<\_ACEOF
17474 #define NEED_DEV_ZERO_FOR_MMAP 1
17475 _ACEOF
17476
17477 fi
17478
17479   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17480   then
17481     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17482 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17483   fi
17484   if test "$ac_cv_func_mmap_file" = "no"
17485   then
17486     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17487 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17488   fi
17489 fi
17490
17491 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17492 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17493 ac_ext=cpp
17494 ac_cpp='$CXXCPP $CPPFLAGS'
17495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17498
17499 cat >conftest.$ac_ext <<_ACEOF
17500
17501   /* confdefs.h.  */
17502 _ACEOF
17503 cat confdefs.h >>conftest.$ac_ext
17504 cat >>conftest.$ac_ext <<_ACEOF
17505 /* end confdefs.h.  */
17506
17507     int main() {
17508       volatile unsigned long val = 1;
17509       __sync_synchronize();
17510       __sync_val_compare_and_swap(&val, 1, 0);
17511       __sync_add_and_fetch(&val, 1);
17512       __sync_sub_and_fetch(&val, 1);
17513       return 0;
17514     }
17515
17516
17517 _ACEOF
17518 rm -f conftest.$ac_objext conftest$ac_exeext
17519 if { (ac_try="$ac_link"
17520 case "(($ac_try" in
17521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17522   *) ac_try_echo=$ac_try;;
17523 esac
17524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17525   (eval "$ac_link") 2>conftest.er1
17526   ac_status=$?
17527   grep -v '^ *+' conftest.er1 >conftest.err
17528   rm -f conftest.er1
17529   cat conftest.err >&5
17530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531   (exit $ac_status); } &&
17532          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17533   { (case "(($ac_try" in
17534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535   *) ac_try_echo=$ac_try;;
17536 esac
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538   (eval "$ac_try") 2>&5
17539   ac_status=$?
17540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541   (exit $ac_status); }; } &&
17542          { ac_try='test -s conftest$ac_exeext'
17543   { (case "(($ac_try" in
17544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545   *) ac_try_echo=$ac_try;;
17546 esac
17547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17548   (eval "$ac_try") 2>&5
17549   ac_status=$?
17550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551   (exit $ac_status); }; }; then
17552
17553   { echo "$as_me:$LINENO: result: yes" >&5
17554 echo "${ECHO_T}yes" >&6; }
17555
17556 cat >>confdefs.h <<\_ACEOF
17557 #define LLVM_HAS_ATOMICS 1
17558 _ACEOF
17559
17560
17561 else
17562   echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17564
17565
17566   { echo "$as_me:$LINENO: result: no" >&5
17567 echo "${ECHO_T}no" >&6; }
17568
17569 cat >>confdefs.h <<\_ACEOF
17570 #define LLVM_HAS_ATOMICS 0
17571 _ACEOF
17572
17573   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17574 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17575
17576 fi
17577
17578 rm -f core conftest.err conftest.$ac_objext \
17579       conftest$ac_exeext conftest.$ac_ext
17580 ac_ext=c
17581 ac_cpp='$CPP $CPPFLAGS'
17582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17585
17586
17587
17588 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17589   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17590 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17591 if test "${llvm_cv_linux_mixed+set}" = set; then
17592   echo $ECHO_N "(cached) $ECHO_C" >&6
17593 else
17594    ac_ext=c
17595 ac_cpp='$CPP $CPPFLAGS'
17596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17599
17600   cat >conftest.$ac_ext <<_ACEOF
17601 /* confdefs.h.  */
17602 _ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h.  */
17606 #ifndef __x86_64__
17607        error: Not x86-64 even if uname says so!
17608       #endif
17609
17610 int
17611 main ()
17612 {
17613
17614   ;
17615   return 0;
17616 }
17617 _ACEOF
17618 rm -f conftest.$ac_objext
17619 if { (ac_try="$ac_compile"
17620 case "(($ac_try" in
17621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622   *) ac_try_echo=$ac_try;;
17623 esac
17624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625   (eval "$ac_compile") 2>conftest.er1
17626   ac_status=$?
17627   grep -v '^ *+' conftest.er1 >conftest.err
17628   rm -f conftest.er1
17629   cat conftest.err >&5
17630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631   (exit $ac_status); } &&
17632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17633   { (case "(($ac_try" in
17634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635   *) ac_try_echo=$ac_try;;
17636 esac
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638   (eval "$ac_try") 2>&5
17639   ac_status=$?
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); }; } &&
17642          { ac_try='test -s conftest.$ac_objext'
17643   { (case "(($ac_try" in
17644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645   *) ac_try_echo=$ac_try;;
17646 esac
17647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648   (eval "$ac_try") 2>&5
17649   ac_status=$?
17650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651   (exit $ac_status); }; }; then
17652   llvm_cv_linux_mixed=no
17653 else
17654   echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17656
17657         llvm_cv_linux_mixed=yes
17658 fi
17659
17660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17661   ac_ext=c
17662 ac_cpp='$CPP $CPPFLAGS'
17663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17666
17667
17668 fi
17669 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17670 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17671
17672   if test "$llvm_cv_linux_mixed" = "yes"; then
17673     llvm_cv_target_arch="x86"
17674     ARCH="x86"
17675   fi
17676 fi
17677
17678
17679 for ac_func in __dso_handle
17680 do
17681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17685   echo $ECHO_N "(cached) $ECHO_C" >&6
17686 else
17687   cat >conftest.$ac_ext <<_ACEOF
17688 /* confdefs.h.  */
17689 _ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h.  */
17693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17695 #define $ac_func innocuous_$ac_func
17696
17697 /* System header to define __stub macros and hopefully few prototypes,
17698     which can conflict with char $ac_func (); below.
17699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17700     <limits.h> exists even on freestanding compilers.  */
17701
17702 #ifdef __STDC__
17703 # include <limits.h>
17704 #else
17705 # include <assert.h>
17706 #endif
17707
17708 #undef $ac_func
17709
17710 /* Override any GCC internal prototype to avoid an error.
17711    Use char because int might match the return type of a GCC
17712    builtin and then its argument prototype would still apply.  */
17713 #ifdef __cplusplus
17714 extern "C"
17715 #endif
17716 char $ac_func ();
17717 /* The GNU C library defines this for functions which it implements
17718     to always fail with ENOSYS.  Some functions are actually named
17719     something starting with __ and the normal name is an alias.  */
17720 #if defined __stub_$ac_func || defined __stub___$ac_func
17721 choke me
17722 #endif
17723
17724 int
17725 main ()
17726 {
17727 return $ac_func ();
17728   ;
17729   return 0;
17730 }
17731 _ACEOF
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (ac_try="$ac_link"
17734 case "(($ac_try" in
17735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736   *) ac_try_echo=$ac_try;;
17737 esac
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739   (eval "$ac_link") 2>conftest.er1
17740   ac_status=$?
17741   grep -v '^ *+' conftest.er1 >conftest.err
17742   rm -f conftest.er1
17743   cat conftest.err >&5
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); } &&
17746          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17747   { (case "(($ac_try" in
17748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749   *) ac_try_echo=$ac_try;;
17750 esac
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752   (eval "$ac_try") 2>&5
17753   ac_status=$?
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); }; } &&
17756          { ac_try='test -s conftest$ac_exeext'
17757   { (case "(($ac_try" in
17758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17759   *) ac_try_echo=$ac_try;;
17760 esac
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762   (eval "$ac_try") 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; }; then
17766   eval "$as_ac_var=yes"
17767 else
17768   echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771         eval "$as_ac_var=no"
17772 fi
17773
17774 rm -f core conftest.err conftest.$ac_objext \
17775       conftest$ac_exeext conftest.$ac_ext
17776 fi
17777 ac_res=`eval echo '${'$as_ac_var'}'`
17778                { echo "$as_me:$LINENO: result: $ac_res" >&5
17779 echo "${ECHO_T}$ac_res" >&6; }
17780 if test `eval echo '${'$as_ac_var'}'` = yes; then
17781   cat >>confdefs.h <<_ACEOF
17782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17783 _ACEOF
17784
17785 fi
17786 done
17787
17788
17789 SHLIBEXT=$llvm_shlib_ext
17790
17791
17792 if test "${prefix}" = "NONE" ; then
17793   prefix="/usr/local"
17794 fi
17795 eval LLVM_PREFIX="${prefix}";
17796 eval LLVM_BINDIR="${prefix}/bin";
17797 eval LLVM_DATADIR="${prefix}/share/llvm";
17798 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17799 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17800 eval LLVM_INCLUDEDIR="${prefix}/include";
17801 eval LLVM_INFODIR="${prefix}/info";
17802 eval LLVM_MANDIR="${prefix}/man";
17803 LLVM_CONFIGTIME=`date`
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17815   LLVM_CONFIGTIME="(timestamp not enabled)"
17816 fi
17817
17818
17819 cat >>confdefs.h <<_ACEOF
17820 #define LLVM_PREFIX "$LLVM_PREFIX"
17821 _ACEOF
17822
17823
17824 cat >>confdefs.h <<_ACEOF
17825 #define LLVM_BINDIR "$LLVM_BINDIR"
17826 _ACEOF
17827
17828
17829 cat >>confdefs.h <<_ACEOF
17830 #define LLVM_DATADIR "$LLVM_DATADIR"
17831 _ACEOF
17832
17833
17834 cat >>confdefs.h <<_ACEOF
17835 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17836 _ACEOF
17837
17838
17839 cat >>confdefs.h <<_ACEOF
17840 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17841 _ACEOF
17842
17843
17844 cat >>confdefs.h <<_ACEOF
17845 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17846 _ACEOF
17847
17848
17849 cat >>confdefs.h <<_ACEOF
17850 #define LLVM_INFODIR "$LLVM_INFODIR"
17851 _ACEOF
17852
17853
17854 cat >>confdefs.h <<_ACEOF
17855 #define LLVM_MANDIR "$LLVM_MANDIR"
17856 _ACEOF
17857
17858
17859 cat >>confdefs.h <<_ACEOF
17860 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17861 _ACEOF
17862
17863
17864 cat >>confdefs.h <<_ACEOF
17865 #define LLVM_HOST_TRIPLE "$host"
17866 _ACEOF
17867
17868
17869 cat >>confdefs.h <<_ACEOF
17870 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17871 _ACEOF
17872
17873
17874 if test "$BINDINGS_TO_BUILD" = auto ; then
17875   BINDINGS_TO_BUILD=""
17876   if test "x$OCAMLFIND" != x ; then
17877     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17878   fi
17879   if test "x$GO" != x ; then
17880     if $GO run ${srcdir}/bindings/go/conftest.go ; then
17881       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17882     fi
17883   fi
17884 fi
17885 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17886
17887
17888 binding_prereqs_failed=0
17889 for a_binding in $BINDINGS_TO_BUILD ; do
17890   case "$a_binding" in
17891   ocaml)
17892     if test "x$OCAMLFIND" = x ; then
17893       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17894 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17895       binding_prereqs_failed=1
17896     fi
17897
17898     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17899       HAVE_OCAMLOPT=1
17900     else
17901       HAVE_OCAMLOPT=0
17902     fi
17903
17904
17905     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17906       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17907 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17908       binding_prereqs_failed=1
17909     fi
17910
17911     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17912       HAVE_OCAML_OUNIT=1
17913     else
17914       HAVE_OCAML_OUNIT=0
17915       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17916 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17917           fi
17918
17919
17920     if test "x$with_ocaml_libdir" != xauto ; then
17921       OCAML_LIBDIR=$with_ocaml_libdir
17922
17923     else
17924       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17925       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17926       then
17927         # ocaml stdlib is beneath our prefix; use stdlib
17928         OCAML_LIBDIR=$ocaml_stdlib
17929
17930       else
17931         # ocaml stdlib is outside our prefix; use libdir/ocaml
17932         OCAML_LIBDIR=${prefix}/lib/ocaml
17933
17934       fi
17935     fi
17936     ;;
17937   go)
17938     if test "x$GO" = x ; then
17939       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17940 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17941       binding_prereqs_failed=1
17942     else
17943       if $GO run ${srcdir}/bindings/go/conftest.go ; then
17944         :
17945       else
17946         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17947 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17948         binding_prereqs_failed=1
17949       fi
17950     fi
17951     ;;
17952   esac
17953 done
17954 if test "$binding_prereqs_failed" = 1 ; then
17955   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17956 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17957    { (exit 1); exit 1; }; }
17958 fi
17959
17960 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17961 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17962 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17963   echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965    ac_ext=cpp
17966 ac_cpp='$CXXCPP $CPPFLAGS'
17967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17970
17971   oldcxxflags="$CXXFLAGS"
17972   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17973   cat >conftest.$ac_ext <<_ACEOF
17974 /* confdefs.h.  */
17975 _ACEOF
17976 cat confdefs.h >>conftest.$ac_ext
17977 cat >>conftest.$ac_ext <<_ACEOF
17978 /* end confdefs.h.  */
17979 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17980 int
17981 main ()
17982 {
17983 X<int>().f();
17984   ;
17985   return 0;
17986 }
17987 _ACEOF
17988 rm -f conftest.$ac_objext
17989 if { (ac_try="$ac_compile"
17990 case "(($ac_try" in
17991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992   *) ac_try_echo=$ac_try;;
17993 esac
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995   (eval "$ac_compile") 2>conftest.er1
17996   ac_status=$?
17997   grep -v '^ *+' conftest.er1 >conftest.err
17998   rm -f conftest.er1
17999   cat conftest.err >&5
18000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001   (exit $ac_status); } &&
18002          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18003   { (case "(($ac_try" in
18004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005   *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008   (eval "$ac_try") 2>&5
18009   ac_status=$?
18010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011   (exit $ac_status); }; } &&
18012          { ac_try='test -s conftest.$ac_objext'
18013   { (case "(($ac_try" in
18014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015   *) ac_try_echo=$ac_try;;
18016 esac
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018   (eval "$ac_try") 2>&5
18019   ac_status=$?
18020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021   (exit $ac_status); }; }; then
18022   llvm_cv_cxx_visibility_inlines_hidden=yes
18023 else
18024   echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18026
18027         llvm_cv_cxx_visibility_inlines_hidden=no
18028 fi
18029
18030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18031   CXXFLAGS="$oldcxxflags"
18032   ac_ext=c
18033 ac_cpp='$CPP $CPPFLAGS'
18034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18037
18038
18039 fi
18040 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18041 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18042 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18043   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18044
18045 else
18046   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18047
18048 fi
18049
18050
18051 if test "$llvm_cv_link_use_r" = "yes" ; then
18052   RPATH="-Wl,-R"
18053 else
18054   RPATH="-Wl,-rpath"
18055 fi
18056
18057
18058 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18059   RDYNAMIC="-rdynamic"
18060 else
18061   RDYNAMIC=""
18062 fi
18063
18064
18065
18066 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18067
18068
18069
18070
18071
18072
18073 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18074
18075 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18076
18077 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18078
18079 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18080
18081 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18082
18083
18084 ac_config_files="$ac_config_files Makefile.config"
18085
18086
18087 ac_config_files="$ac_config_files llvm.spec"
18088
18089
18090 ac_config_files="$ac_config_files docs/doxygen.cfg"
18091
18092
18093 if test "${clang_src_root}" = ""; then
18094   clang_src_root="$srcdir/tools/clang"
18095 fi
18096 if test -f ${clang_src_root}/README.txt; then
18097
18098 cat >>confdefs.h <<_ACEOF
18099 #define CLANG_LIBDIR_SUFFIX ""
18100 _ACEOF
18101
18102
18103     configh="include/clang/Config/config.h"
18104   doxy="docs/doxygen.cfg"
18105   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18106
18107   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18108
18109 fi
18110
18111 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18112
18113
18114 test "x$program_prefix" = "xNONE" && program_prefix=""
18115
18116
18117
18118 ac_config_commands="$ac_config_commands setup"
18119
18120 ac_config_commands="$ac_config_commands Makefile"
18121
18122
18123 ac_config_commands="$ac_config_commands Makefile.common"
18124
18125
18126 ac_config_commands="$ac_config_commands examples/Makefile"
18127
18128
18129 ac_config_commands="$ac_config_commands lib/Makefile"
18130
18131
18132 ac_config_commands="$ac_config_commands test/Makefile"
18133
18134
18135 ac_config_commands="$ac_config_commands test/Makefile.tests"
18136
18137
18138 ac_config_commands="$ac_config_commands unittests/Makefile"
18139
18140
18141 ac_config_commands="$ac_config_commands tools/Makefile"
18142
18143
18144 ac_config_commands="$ac_config_commands utils/Makefile"
18145
18146
18147 ac_config_commands="$ac_config_commands projects/Makefile"
18148
18149
18150 ac_config_commands="$ac_config_commands bindings/Makefile"
18151
18152
18153 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18154
18155
18156
18157 cat >confcache <<\_ACEOF
18158 # This file is a shell script that caches the results of configure
18159 # tests run on this system so they can be shared between configure
18160 # scripts and configure runs, see configure's option --config-cache.
18161 # It is not useful on other systems.  If it contains results you don't
18162 # want to keep, you may remove or edit it.
18163 #
18164 # config.status only pays attention to the cache file if you give it
18165 # the --recheck option to rerun configure.
18166 #
18167 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18168 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18169 # following values.
18170
18171 _ACEOF
18172
18173 # The following way of writing the cache mishandles newlines in values,
18174 # but we know of no workaround that is simple, portable, and efficient.
18175 # So, we kill variables containing newlines.
18176 # Ultrix sh set writes to stderr and can't be redirected directly,
18177 # and sets the high bit in the cache file unless we assign to the vars.
18178 (
18179   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18180     eval ac_val=\$$ac_var
18181     case $ac_val in #(
18182     *${as_nl}*)
18183       case $ac_var in #(
18184       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18185 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18186       esac
18187       case $ac_var in #(
18188       _ | IFS | as_nl) ;; #(
18189       *) $as_unset $ac_var ;;
18190       esac ;;
18191     esac
18192   done
18193
18194   (set) 2>&1 |
18195     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18196     *${as_nl}ac_space=\ *)
18197       # `set' does not quote correctly, so add quotes (double-quote
18198       # substitution turns \\\\ into \\, and sed turns \\ into \).
18199       sed -n \
18200         "s/'/'\\\\''/g;
18201           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18202       ;; #(
18203     *)
18204       # `set' quotes correctly as required by POSIX, so do not add quotes.
18205       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18206       ;;
18207     esac |
18208     sort
18209 ) |
18210   sed '
18211      /^ac_cv_env_/b end
18212      t clear
18213      :clear
18214      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18215      t end
18216      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18217      :end' >>confcache
18218 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18219   if test -w "$cache_file"; then
18220     test "x$cache_file" != "x/dev/null" &&
18221       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18222 echo "$as_me: updating cache $cache_file" >&6;}
18223     cat confcache >$cache_file
18224   else
18225     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18226 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18227   fi
18228 fi
18229 rm -f confcache
18230
18231 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18232 # Let make expand exec_prefix.
18233 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18234
18235 DEFS=-DHAVE_CONFIG_H
18236
18237 ac_libobjs=
18238 ac_ltlibobjs=
18239 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18240   # 1. Remove the extension, and $U if already installed.
18241   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18242   ac_i=`echo "$ac_i" | sed "$ac_script"`
18243   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18244   #    will be set to the directory where LIBOBJS objects are built.
18245   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18246   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18247 done
18248 LIBOBJS=$ac_libobjs
18249
18250 LTLIBOBJS=$ac_ltlibobjs
18251
18252
18253
18254 : ${CONFIG_STATUS=./config.status}
18255 ac_clean_files_save=$ac_clean_files
18256 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18257 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18258 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18259 cat >$CONFIG_STATUS <<_ACEOF
18260 #! $SHELL
18261 # Generated by $as_me.
18262 # Run this file to recreate the current configuration.
18263 # Compiler output produced by configure, useful for debugging
18264 # configure, is in config.log if it exists.
18265
18266 debug=false
18267 ac_cs_recheck=false
18268 ac_cs_silent=false
18269 SHELL=\${CONFIG_SHELL-$SHELL}
18270 _ACEOF
18271
18272 cat >>$CONFIG_STATUS <<\_ACEOF
18273 ## --------------------- ##
18274 ## M4sh Initialization.  ##
18275 ## --------------------- ##
18276
18277 # Be Bourne compatible
18278 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18279   emulate sh
18280   NULLCMD=:
18281   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18282   # is contrary to our usage.  Disable this feature.
18283   alias -g '${1+"$@"}'='"$@"'
18284   setopt NO_GLOB_SUBST
18285 else
18286   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18287 fi
18288 BIN_SH=xpg4; export BIN_SH # for Tru64
18289 DUALCASE=1; export DUALCASE # for MKS sh
18290
18291
18292 # PATH needs CR
18293 # Avoid depending upon Character Ranges.
18294 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18295 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18296 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18297 as_cr_digits='0123456789'
18298 as_cr_alnum=$as_cr_Letters$as_cr_digits
18299
18300 # The user is always right.
18301 if test "${PATH_SEPARATOR+set}" != set; then
18302   echo "#! /bin/sh" >conf$$.sh
18303   echo  "exit 0"   >>conf$$.sh
18304   chmod +x conf$$.sh
18305   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18306     PATH_SEPARATOR=';'
18307   else
18308     PATH_SEPARATOR=:
18309   fi
18310   rm -f conf$$.sh
18311 fi
18312
18313 # Support unset when possible.
18314 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18315   as_unset=unset
18316 else
18317   as_unset=false
18318 fi
18319
18320
18321 # IFS
18322 # We need space, tab and new line, in precisely that order.  Quoting is
18323 # there to prevent editors from complaining about space-tab.
18324 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18325 # splitting by setting IFS to empty value.)
18326 as_nl='
18327 '
18328 IFS=" ""        $as_nl"
18329
18330 # Find who we are.  Look in the path if we contain no directory separator.
18331 case $0 in
18332   *[\\/]* ) as_myself=$0 ;;
18333   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18334 for as_dir in $PATH
18335 do
18336   IFS=$as_save_IFS
18337   test -z "$as_dir" && as_dir=.
18338   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18339 done
18340 IFS=$as_save_IFS
18341
18342      ;;
18343 esac
18344 # We did not find ourselves, most probably we were run as `sh COMMAND'
18345 # in which case we are not to be found in the path.
18346 if test "x$as_myself" = x; then
18347   as_myself=$0
18348 fi
18349 if test ! -f "$as_myself"; then
18350   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18351   { (exit 1); exit 1; }
18352 fi
18353
18354 # Work around bugs in pre-3.0 UWIN ksh.
18355 for as_var in ENV MAIL MAILPATH
18356 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18357 done
18358 PS1='$ '
18359 PS2='> '
18360 PS4='+ '
18361
18362 # NLS nuisances.
18363 for as_var in \
18364   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18365   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18366   LC_TELEPHONE LC_TIME
18367 do
18368   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18369     eval $as_var=C; export $as_var
18370   else
18371     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18372   fi
18373 done
18374
18375 # Required to use basename.
18376 if expr a : '\(a\)' >/dev/null 2>&1 &&
18377    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18378   as_expr=expr
18379 else
18380   as_expr=false
18381 fi
18382
18383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18384   as_basename=basename
18385 else
18386   as_basename=false
18387 fi
18388
18389
18390 # Name of the executable.
18391 as_me=`$as_basename -- "$0" ||
18392 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18393          X"$0" : 'X\(//\)$' \| \
18394          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18395 echo X/"$0" |
18396     sed '/^.*\/\([^/][^/]*\)\/*$/{
18397             s//\1/
18398             q
18399           }
18400           /^X\/\(\/\/\)$/{
18401             s//\1/
18402             q
18403           }
18404           /^X\/\(\/\).*/{
18405             s//\1/
18406             q
18407           }
18408           s/.*/./; q'`
18409
18410 # CDPATH.
18411 $as_unset CDPATH
18412
18413
18414
18415   as_lineno_1=$LINENO
18416   as_lineno_2=$LINENO
18417   test "x$as_lineno_1" != "x$as_lineno_2" &&
18418   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18419
18420   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18421   # uniformly replaced by the line number.  The first 'sed' inserts a
18422   # line-number line after each line using $LINENO; the second 'sed'
18423   # does the real work.  The second script uses 'N' to pair each
18424   # line-number line with the line containing $LINENO, and appends
18425   # trailing '-' during substitution so that $LINENO is not a special
18426   # case at line end.
18427   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18428   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18429   # E. McMahon (1931-1989) for sed's syntax.  :-)
18430   sed -n '
18431     p
18432     /[$]LINENO/=
18433   ' <$as_myself |
18434     sed '
18435       s/[$]LINENO.*/&-/
18436       t lineno
18437       b
18438       :lineno
18439       N
18440       :loop
18441       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18442       t loop
18443       s/-\n.*//
18444     ' >$as_me.lineno &&
18445   chmod +x "$as_me.lineno" ||
18446     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18447    { (exit 1); exit 1; }; }
18448
18449   # Don't try to exec as it changes $[0], causing all sort of problems
18450   # (the dirname of $[0] is not the place where we might find the
18451   # original and so on.  Autoconf is especially sensitive to this).
18452   . "./$as_me.lineno"
18453   # Exit status is that of the last command.
18454   exit
18455 }
18456
18457
18458 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18459   as_dirname=dirname
18460 else
18461   as_dirname=false
18462 fi
18463
18464 ECHO_C= ECHO_N= ECHO_T=
18465 case `echo -n x` in
18466 -n*)
18467   case `echo 'x\c'` in
18468   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18469   *)   ECHO_C='\c';;
18470   esac;;
18471 *)
18472   ECHO_N='-n';;
18473 esac
18474
18475 if expr a : '\(a\)' >/dev/null 2>&1 &&
18476    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18477   as_expr=expr
18478 else
18479   as_expr=false
18480 fi
18481
18482 rm -f conf$$ conf$$.exe conf$$.file
18483 if test -d conf$$.dir; then
18484   rm -f conf$$.dir/conf$$.file
18485 else
18486   rm -f conf$$.dir
18487   mkdir conf$$.dir
18488 fi
18489 echo >conf$$.file
18490 if ln -s conf$$.file conf$$ 2>/dev/null; then
18491   as_ln_s='ln -s'
18492   # ... but there are two gotchas:
18493   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18494   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18495   # In both cases, we have to default to `cp -p'.
18496   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18497     as_ln_s='cp -p'
18498 elif ln conf$$.file conf$$ 2>/dev/null; then
18499   as_ln_s=ln
18500 else
18501   as_ln_s='cp -p'
18502 fi
18503 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18504 rmdir conf$$.dir 2>/dev/null
18505
18506 if mkdir -p . 2>/dev/null; then
18507   as_mkdir_p=:
18508 else
18509   test -d ./-p && rmdir ./-p
18510   as_mkdir_p=false
18511 fi
18512
18513 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18514 # systems may use methods other than mode bits to determine executability.
18515 cat >conf$$.file <<_ASEOF
18516 #! /bin/sh
18517 exit 0
18518 _ASEOF
18519 chmod +x conf$$.file
18520 if test -x conf$$.file >/dev/null 2>&1; then
18521   as_executable_p="test -x"
18522 else
18523   as_executable_p=:
18524 fi
18525 rm -f conf$$.file
18526
18527 # Sed expression to map a string onto a valid CPP name.
18528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18529
18530 # Sed expression to map a string onto a valid variable name.
18531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18532
18533
18534 exec 6>&1
18535
18536 # Save the log message, to keep $[0] and so on meaningful, and to
18537 # report actual input values of CONFIG_FILES etc. instead of their
18538 # values after options handling.
18539 ac_log="
18540 This file was extended by LLVM $as_me 3.7.0svn, which was
18541 generated by GNU Autoconf 2.60.  Invocation command line was
18542
18543   CONFIG_FILES    = $CONFIG_FILES
18544   CONFIG_HEADERS  = $CONFIG_HEADERS
18545   CONFIG_LINKS    = $CONFIG_LINKS
18546   CONFIG_COMMANDS = $CONFIG_COMMANDS
18547   $ $0 $@
18548
18549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18550 "
18551
18552 _ACEOF
18553
18554 cat >>$CONFIG_STATUS <<_ACEOF
18555 # Files that config.status was made for.
18556 config_files="$ac_config_files"
18557 config_headers="$ac_config_headers"
18558 config_commands="$ac_config_commands"
18559
18560 _ACEOF
18561
18562 cat >>$CONFIG_STATUS <<\_ACEOF
18563 ac_cs_usage="\
18564 \`$as_me' instantiates files from templates according to the
18565 current configuration.
18566
18567 Usage: $0 [OPTIONS] [FILE]...
18568
18569   -h, --help       print this help, then exit
18570   -V, --version    print version number, then exit
18571   -q, --quiet      do not print progress messages
18572   -d, --debug      don't remove temporary files
18573       --recheck    update $as_me by reconfiguring in the same conditions
18574   --file=FILE[:TEMPLATE]
18575                    instantiate the configuration file FILE
18576   --header=FILE[:TEMPLATE]
18577                    instantiate the configuration header FILE
18578
18579 Configuration files:
18580 $config_files
18581
18582 Configuration headers:
18583 $config_headers
18584
18585 Configuration commands:
18586 $config_commands
18587
18588 Report bugs to <bug-autoconf@gnu.org>."
18589
18590 _ACEOF
18591 cat >>$CONFIG_STATUS <<_ACEOF
18592 ac_cs_version="\\
18593 LLVM config.status 3.7.0svn
18594 configured by $0, generated by GNU Autoconf 2.60,
18595   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18596
18597 Copyright (C) 2006 Free Software Foundation, Inc.
18598 This config.status script is free software; the Free Software Foundation
18599 gives unlimited permission to copy, distribute and modify it."
18600
18601 ac_pwd='$ac_pwd'
18602 srcdir='$srcdir'
18603 INSTALL='$INSTALL'
18604 _ACEOF
18605
18606 cat >>$CONFIG_STATUS <<\_ACEOF
18607 # If no file are specified by the user, then we need to provide default
18608 # value.  By we need to know if files were specified by the user.
18609 ac_need_defaults=:
18610 while test $# != 0
18611 do
18612   case $1 in
18613   --*=*)
18614     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18615     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18616     ac_shift=:
18617     ;;
18618   *)
18619     ac_option=$1
18620     ac_optarg=$2
18621     ac_shift=shift
18622     ;;
18623   esac
18624
18625   case $ac_option in
18626   # Handling of the options.
18627   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18628     ac_cs_recheck=: ;;
18629   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18630     echo "$ac_cs_version"; exit ;;
18631   --debug | --debu | --deb | --de | --d | -d )
18632     debug=: ;;
18633   --file | --fil | --fi | --f )
18634     $ac_shift
18635     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18636     ac_need_defaults=false;;
18637   --header | --heade | --head | --hea )
18638     $ac_shift
18639     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18640     ac_need_defaults=false;;
18641   --he | --h)
18642     # Conflict between --help and --header
18643     { echo "$as_me: error: ambiguous option: $1
18644 Try \`$0 --help' for more information." >&2
18645    { (exit 1); exit 1; }; };;
18646   --help | --hel | -h )
18647     echo "$ac_cs_usage"; exit ;;
18648   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18649   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18650     ac_cs_silent=: ;;
18651
18652   # This is an error.
18653   -*) { echo "$as_me: error: unrecognized option: $1
18654 Try \`$0 --help' for more information." >&2
18655    { (exit 1); exit 1; }; } ;;
18656
18657   *) ac_config_targets="$ac_config_targets $1"
18658      ac_need_defaults=false ;;
18659
18660   esac
18661   shift
18662 done
18663
18664 ac_configure_extra_args=
18665
18666 if $ac_cs_silent; then
18667   exec 6>/dev/null
18668   ac_configure_extra_args="$ac_configure_extra_args --silent"
18669 fi
18670
18671 _ACEOF
18672 cat >>$CONFIG_STATUS <<_ACEOF
18673 if \$ac_cs_recheck; then
18674   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18675   CONFIG_SHELL=$SHELL
18676   export CONFIG_SHELL
18677   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18678 fi
18679
18680 _ACEOF
18681 cat >>$CONFIG_STATUS <<\_ACEOF
18682 exec 5>>config.log
18683 {
18684   echo
18685   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18686 ## Running $as_me. ##
18687 _ASBOX
18688   echo "$ac_log"
18689 } >&5
18690
18691 _ACEOF
18692 cat >>$CONFIG_STATUS <<_ACEOF
18693 #
18694 # INIT-COMMANDS
18695 #
18696 llvm_src="${srcdir}"
18697
18698 _ACEOF
18699
18700 cat >>$CONFIG_STATUS <<\_ACEOF
18701
18702 # Handling of arguments.
18703 for ac_config_target in $ac_config_targets
18704 do
18705   case $ac_config_target in
18706     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18707     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18708     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18709     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18710     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18711     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18712     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18713     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18714     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18715     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18716     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18717     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18718     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18719     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18720     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18721     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18722     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18723     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18724     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18725     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18726     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18727     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18728     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18729     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18730     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18731     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18732
18733   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18734 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18735    { (exit 1); exit 1; }; };;
18736   esac
18737 done
18738
18739
18740 # If the user did not use the arguments to specify the items to instantiate,
18741 # then the envvar interface is used.  Set only those that are not.
18742 # We use the long form for the default assignment because of an extremely
18743 # bizarre bug on SunOS 4.1.3.
18744 if $ac_need_defaults; then
18745   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18746   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18747   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18748 fi
18749
18750 # Have a temporary directory for convenience.  Make it in the build tree
18751 # simply because there is no reason against having it here, and in addition,
18752 # creating and moving files from /tmp can sometimes cause problems.
18753 # Hook for its removal unless debugging.
18754 # Note that there is a small window in which the directory will not be cleaned:
18755 # after its creation but before its name has been assigned to `$tmp'.
18756 $debug ||
18757 {
18758   tmp=
18759   trap 'exit_status=$?
18760   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18761 ' 0
18762   trap '{ (exit 1); exit 1; }' 1 2 13 15
18763 }
18764 # Create a (secure) tmp directory for tmp files.
18765
18766 {
18767   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18768   test -n "$tmp" && test -d "$tmp"
18769 }  ||
18770 {
18771   tmp=./conf$$-$RANDOM
18772   (umask 077 && mkdir "$tmp")
18773 } ||
18774 {
18775    echo "$me: cannot create a temporary directory in ." >&2
18776    { (exit 1); exit 1; }
18777 }
18778
18779 #
18780 # Set up the sed scripts for CONFIG_FILES section.
18781 #
18782
18783 # No need to generate the scripts if there are no CONFIG_FILES.
18784 # This happens for instance when ./config.status config.h
18785 if test -n "$CONFIG_FILES"; then
18786
18787 _ACEOF
18788
18789
18790
18791 ac_delim='%!_!# '
18792 for ac_last_try in false false false false false :; do
18793   cat >conf$$subs.sed <<_ACEOF
18794 SHELL!$SHELL$ac_delim
18795 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18796 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18797 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18798 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18799 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18800 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18801 exec_prefix!$exec_prefix$ac_delim
18802 prefix!$prefix$ac_delim
18803 program_transform_name!$program_transform_name$ac_delim
18804 bindir!$bindir$ac_delim
18805 sbindir!$sbindir$ac_delim
18806 libexecdir!$libexecdir$ac_delim
18807 datarootdir!$datarootdir$ac_delim
18808 datadir!$datadir$ac_delim
18809 sysconfdir!$sysconfdir$ac_delim
18810 sharedstatedir!$sharedstatedir$ac_delim
18811 localstatedir!$localstatedir$ac_delim
18812 includedir!$includedir$ac_delim
18813 oldincludedir!$oldincludedir$ac_delim
18814 docdir!$docdir$ac_delim
18815 infodir!$infodir$ac_delim
18816 htmldir!$htmldir$ac_delim
18817 dvidir!$dvidir$ac_delim
18818 pdfdir!$pdfdir$ac_delim
18819 psdir!$psdir$ac_delim
18820 libdir!$libdir$ac_delim
18821 localedir!$localedir$ac_delim
18822 mandir!$mandir$ac_delim
18823 DEFS!$DEFS$ac_delim
18824 ECHO_C!$ECHO_C$ac_delim
18825 ECHO_N!$ECHO_N$ac_delim
18826 ECHO_T!$ECHO_T$ac_delim
18827 LIBS!$LIBS$ac_delim
18828 build_alias!$build_alias$ac_delim
18829 host_alias!$host_alias$ac_delim
18830 target_alias!$target_alias$ac_delim
18831 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18832 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18833 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18834 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18835 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18836 CC!$CC$ac_delim
18837 CFLAGS!$CFLAGS$ac_delim
18838 LDFLAGS!$LDFLAGS$ac_delim
18839 CPPFLAGS!$CPPFLAGS$ac_delim
18840 ac_ct_CC!$ac_ct_CC$ac_delim
18841 EXEEXT!$EXEEXT$ac_delim
18842 OBJEXT!$OBJEXT$ac_delim
18843 CXX!$CXX$ac_delim
18844 CXXFLAGS!$CXXFLAGS$ac_delim
18845 ac_ct_CXX!$ac_ct_CXX$ac_delim
18846 CPP!$CPP$ac_delim
18847 subdirs!$subdirs$ac_delim
18848 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18849 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18850 build!$build$ac_delim
18851 build_cpu!$build_cpu$ac_delim
18852 build_vendor!$build_vendor$ac_delim
18853 build_os!$build_os$ac_delim
18854 host!$host$ac_delim
18855 host_cpu!$host_cpu$ac_delim
18856 host_vendor!$host_vendor$ac_delim
18857 host_os!$host_os$ac_delim
18858 target!$target$ac_delim
18859 target_cpu!$target_cpu$ac_delim
18860 target_vendor!$target_vendor$ac_delim
18861 target_os!$target_os$ac_delim
18862 OS!$OS$ac_delim
18863 HOST_OS!$HOST_OS$ac_delim
18864 TARGET_OS!$TARGET_OS$ac_delim
18865 LINKALL!$LINKALL$ac_delim
18866 NOLINKALL!$NOLINKALL$ac_delim
18867 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18868 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18869 ARCH!$ARCH$ac_delim
18870 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18871 HOST_ARCH!$HOST_ARCH$ac_delim
18872 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18873 BUILD_CC!$BUILD_CC$ac_delim
18874 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18875 BUILD_CXX!$BUILD_CXX$ac_delim
18876 CVSBUILD!$CVSBUILD$ac_delim
18877 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18878 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18879 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18880 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18881 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18882 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18883 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18884 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18885 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18886 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18887 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18888 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18889 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18890 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18891 _ACEOF
18892
18893   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18894     break
18895   elif $ac_last_try; then
18896     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18897 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18898    { (exit 1); exit 1; }; }
18899   else
18900     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18901   fi
18902 done
18903
18904 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18905 if test -n "$ac_eof"; then
18906   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18907   ac_eof=`expr $ac_eof + 1`
18908 fi
18909
18910 cat >>$CONFIG_STATUS <<_ACEOF
18911 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18912 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18913 _ACEOF
18914 sed '
18915 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18916 s/^/s,@/; s/!/@,|#_!!_#|/
18917 :n
18918 t n
18919 s/'"$ac_delim"'$/,g/; t
18920 s/$/\\/; p
18921 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18922 ' >>$CONFIG_STATUS <conf$$subs.sed
18923 rm -f conf$$subs.sed
18924 cat >>$CONFIG_STATUS <<_ACEOF
18925 CEOF$ac_eof
18926 _ACEOF
18927
18928
18929 ac_delim='%!_!# '
18930 for ac_last_try in false false false false false :; do
18931   cat >conf$$subs.sed <<_ACEOF
18932 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18933 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18934 JIT!$JIT$ac_delim
18935 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18936 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18937 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18938 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18939 enable_searchengine!$enable_searchengine$ac_delim
18940 enable_external_search!$enable_external_search$ac_delim
18941 enable_server_based_search!$enable_server_based_search$ac_delim
18942 searchengine_url!$searchengine_url$ac_delim
18943 extra_search_mappings!$extra_search_mappings$ac_delim
18944 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18945 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18946 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18947 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18948 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18949 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18950 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18951 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18952 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18953 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18954 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18955 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18956 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18957 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18958 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18959 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18960 ENABLE_PIC!$ENABLE_PIC$ac_delim
18961 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18962 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18963 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18964 ALL_TARGETS!$ALL_TARGETS$ac_delim
18965 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18966 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18967 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18968 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18969 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18970 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18971 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18972 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18973 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18974 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18975 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18976 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18977 ifGNUmake!$ifGNUmake$ac_delim
18978 LN_S!$LN_S$ac_delim
18979 NM!$NM$ac_delim
18980 CMP!$CMP$ac_delim
18981 CP!$CP$ac_delim
18982 DATE!$DATE$ac_delim
18983 FIND!$FIND$ac_delim
18984 GREP!$GREP$ac_delim
18985 MKDIR!$MKDIR$ac_delim
18986 MV!$MV$ac_delim
18987 RANLIB!$RANLIB$ac_delim
18988 AR!$AR$ac_delim
18989 RM!$RM$ac_delim
18990 SED!$SED$ac_delim
18991 TAR!$TAR$ac_delim
18992 BINPWD!$BINPWD$ac_delim
18993 DOT!$DOT$ac_delim
18994 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18995 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18996 INSTALL_DATA!$INSTALL_DATA$ac_delim
18997 BZIP2!$BZIP2$ac_delim
18998 CAT!$CAT$ac_delim
18999 DOXYGEN!$DOXYGEN$ac_delim
19000 GROFF!$GROFF$ac_delim
19001 GZIPBIN!$GZIPBIN$ac_delim
19002 PDFROFF!$PDFROFF$ac_delim
19003 ZIP!$ZIP$ac_delim
19004 GO!$GO$ac_delim
19005 OCAMLFIND!$OCAMLFIND$ac_delim
19006 GAS!$GAS$ac_delim
19007 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19008 EGREP!$EGREP$ac_delim
19009 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19010 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19011 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19012 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19013 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19014 NO_COMMENT!$NO_COMMENT$ac_delim
19015 PYTHON!$PYTHON$ac_delim
19016 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19017 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19018 USE_OPROFILE!$USE_OPROFILE$ac_delim
19019 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19020 XML2CONFIG!$XML2CONFIG$ac_delim
19021 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19022 LIBXML2_INC!$LIBXML2_INC$ac_delim
19023 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19024 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19025 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19026 MMAP_FILE!$MMAP_FILE$ac_delim
19027 SHLIBEXT!$SHLIBEXT$ac_delim
19028 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19029 _ACEOF
19030
19031   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19032     break
19033   elif $ac_last_try; then
19034     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19035 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19036    { (exit 1); exit 1; }; }
19037   else
19038     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19039   fi
19040 done
19041
19042 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19043 if test -n "$ac_eof"; then
19044   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19045   ac_eof=`expr $ac_eof + 1`
19046 fi
19047
19048 cat >>$CONFIG_STATUS <<_ACEOF
19049 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19050 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19051 _ACEOF
19052 sed '
19053 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19054 s/^/s,@/; s/!/@,|#_!!_#|/
19055 :n
19056 t n
19057 s/'"$ac_delim"'$/,g/; t
19058 s/$/\\/; p
19059 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19060 ' >>$CONFIG_STATUS <conf$$subs.sed
19061 rm -f conf$$subs.sed
19062 cat >>$CONFIG_STATUS <<_ACEOF
19063 CEOF$ac_eof
19064 _ACEOF
19065
19066
19067 ac_delim='%!_!# '
19068 for ac_last_try in false false false false false :; do
19069   cat >conf$$subs.sed <<_ACEOF
19070 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19071 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19072 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19073 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19074 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19075 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19076 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19077 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19078 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19079 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19080 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19081 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19082 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19083 RPATH!$RPATH$ac_delim
19084 RDYNAMIC!$RDYNAMIC$ac_delim
19085 program_prefix!$program_prefix$ac_delim
19086 LIBOBJS!$LIBOBJS$ac_delim
19087 LTLIBOBJS!$LTLIBOBJS$ac_delim
19088 _ACEOF
19089
19090   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19091     break
19092   elif $ac_last_try; then
19093     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19094 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19095    { (exit 1); exit 1; }; }
19096   else
19097     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19098   fi
19099 done
19100
19101 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19102 if test -n "$ac_eof"; then
19103   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19104   ac_eof=`expr $ac_eof + 1`
19105 fi
19106
19107 cat >>$CONFIG_STATUS <<_ACEOF
19108 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19110 _ACEOF
19111 sed '
19112 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19113 s/^/s,@/; s/!/@,|#_!!_#|/
19114 :n
19115 t n
19116 s/'"$ac_delim"'$/,g/; t
19117 s/$/\\/; p
19118 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19119 ' >>$CONFIG_STATUS <conf$$subs.sed
19120 rm -f conf$$subs.sed
19121 cat >>$CONFIG_STATUS <<_ACEOF
19122 :end
19123 s/|#_!!_#|//g
19124 CEOF$ac_eof
19125 _ACEOF
19126
19127
19128 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19129 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19130 # trailing colons and then remove the whole line if VPATH becomes empty
19131 # (actually we leave an empty line to preserve line numbers).
19132 if test "x$srcdir" = x.; then
19133   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19134 s/:*\$(srcdir):*/:/
19135 s/:*\${srcdir}:*/:/
19136 s/:*@srcdir@:*/:/
19137 s/^\([^=]*=[     ]*\):*/\1/
19138 s/:*$//
19139 s/^[^=]*=[       ]*$//
19140 }'
19141 fi
19142
19143 cat >>$CONFIG_STATUS <<\_ACEOF
19144 fi # test -n "$CONFIG_FILES"
19145
19146
19147 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19148 do
19149   case $ac_tag in
19150   :[FHLC]) ac_mode=$ac_tag; continue;;
19151   esac
19152   case $ac_mode$ac_tag in
19153   :[FHL]*:*);;
19154   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19155 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19156    { (exit 1); exit 1; }; };;
19157   :[FH]-) ac_tag=-:-;;
19158   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19159   esac
19160   ac_save_IFS=$IFS
19161   IFS=:
19162   set x $ac_tag
19163   IFS=$ac_save_IFS
19164   shift
19165   ac_file=$1
19166   shift
19167
19168   case $ac_mode in
19169   :L) ac_source=$1;;
19170   :[FH])
19171     ac_file_inputs=
19172     for ac_f
19173     do
19174       case $ac_f in
19175       -) ac_f="$tmp/stdin";;
19176       *) # Look for the file first in the build tree, then in the source tree
19177          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19178          # because $ac_f cannot contain `:'.
19179          test -f "$ac_f" ||
19180            case $ac_f in
19181            [\\/$]*) false;;
19182            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19183            esac ||
19184            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19185 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19186    { (exit 1); exit 1; }; };;
19187       esac
19188       ac_file_inputs="$ac_file_inputs $ac_f"
19189     done
19190
19191     # Let's still pretend it is `configure' which instantiates (i.e., don't
19192     # use $as_me), people would be surprised to read:
19193     #    /* config.h.  Generated by config.status.  */
19194     configure_input="Generated from "`IFS=:
19195           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19196     if test x"$ac_file" != x-; then
19197       configure_input="$ac_file.  $configure_input"
19198       { echo "$as_me:$LINENO: creating $ac_file" >&5
19199 echo "$as_me: creating $ac_file" >&6;}
19200     fi
19201
19202     case $ac_tag in
19203     *:-:* | *:-) cat >"$tmp/stdin";;
19204     esac
19205     ;;
19206   esac
19207
19208   ac_dir=`$as_dirname -- "$ac_file" ||
19209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19210          X"$ac_file" : 'X\(//\)[^/]' \| \
19211          X"$ac_file" : 'X\(//\)$' \| \
19212          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19213 echo X"$ac_file" |
19214     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19215             s//\1/
19216             q
19217           }
19218           /^X\(\/\/\)[^/].*/{
19219             s//\1/
19220             q
19221           }
19222           /^X\(\/\/\)$/{
19223             s//\1/
19224             q
19225           }
19226           /^X\(\/\).*/{
19227             s//\1/
19228             q
19229           }
19230           s/.*/./; q'`
19231   { as_dir="$ac_dir"
19232   case $as_dir in #(
19233   -*) as_dir=./$as_dir;;
19234   esac
19235   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19236     as_dirs=
19237     while :; do
19238       case $as_dir in #(
19239       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19240       *) as_qdir=$as_dir;;
19241       esac
19242       as_dirs="'$as_qdir' $as_dirs"
19243       as_dir=`$as_dirname -- "$as_dir" ||
19244 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19245          X"$as_dir" : 'X\(//\)[^/]' \| \
19246          X"$as_dir" : 'X\(//\)$' \| \
19247          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19248 echo X"$as_dir" |
19249     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19250             s//\1/
19251             q
19252           }
19253           /^X\(\/\/\)[^/].*/{
19254             s//\1/
19255             q
19256           }
19257           /^X\(\/\/\)$/{
19258             s//\1/
19259             q
19260           }
19261           /^X\(\/\).*/{
19262             s//\1/
19263             q
19264           }
19265           s/.*/./; q'`
19266       test -d "$as_dir" && break
19267     done
19268     test -z "$as_dirs" || eval "mkdir $as_dirs"
19269   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19270 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19271    { (exit 1); exit 1; }; }; }
19272   ac_builddir=.
19273
19274 case "$ac_dir" in
19275 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19276 *)
19277   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19278   # A ".." for each directory in $ac_dir_suffix.
19279   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19280   case $ac_top_builddir_sub in
19281   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19282   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19283   esac ;;
19284 esac
19285 ac_abs_top_builddir=$ac_pwd
19286 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19287 # for backward compatibility:
19288 ac_top_builddir=$ac_top_build_prefix
19289
19290 case $srcdir in
19291   .)  # We are building in place.
19292     ac_srcdir=.
19293     ac_top_srcdir=$ac_top_builddir_sub
19294     ac_abs_top_srcdir=$ac_pwd ;;
19295   [\\/]* | ?:[\\/]* )  # Absolute name.
19296     ac_srcdir=$srcdir$ac_dir_suffix;
19297     ac_top_srcdir=$srcdir
19298     ac_abs_top_srcdir=$srcdir ;;
19299   *) # Relative name.
19300     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19301     ac_top_srcdir=$ac_top_build_prefix$srcdir
19302     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19303 esac
19304 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19305
19306
19307   case $ac_mode in
19308   :F)
19309   #
19310   # CONFIG_FILE
19311   #
19312
19313   case $INSTALL in
19314   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19315   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19316   esac
19317 _ACEOF
19318
19319 cat >>$CONFIG_STATUS <<\_ACEOF
19320 # If the template does not know about datarootdir, expand it.
19321 # FIXME: This hack should be removed a few years after 2.60.
19322 ac_datarootdir_hack=; ac_datarootdir_seen=
19323
19324 case `sed -n '/datarootdir/ {
19325   p
19326   q
19327 }
19328 /@datadir@/p
19329 /@docdir@/p
19330 /@infodir@/p
19331 /@localedir@/p
19332 /@mandir@/p
19333 ' $ac_file_inputs` in
19334 *datarootdir*) ac_datarootdir_seen=yes;;
19335 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19336   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19337 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19338 _ACEOF
19339 cat >>$CONFIG_STATUS <<_ACEOF
19340   ac_datarootdir_hack='
19341   s&@datadir@&$datadir&g
19342   s&@docdir@&$docdir&g
19343   s&@infodir@&$infodir&g
19344   s&@localedir@&$localedir&g
19345   s&@mandir@&$mandir&g
19346     s&\\\${datarootdir}&$datarootdir&g' ;;
19347 esac
19348 _ACEOF
19349
19350 # Neutralize VPATH when `$srcdir' = `.'.
19351 # Shell code in configure.ac might set extrasub.
19352 # FIXME: do we really want to maintain this feature?
19353 cat >>$CONFIG_STATUS <<_ACEOF
19354   sed "$ac_vpsub
19355 $extrasub
19356 _ACEOF
19357 cat >>$CONFIG_STATUS <<\_ACEOF
19358 :t
19359 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19360 s&@configure_input@&$configure_input&;t t
19361 s&@top_builddir@&$ac_top_builddir_sub&;t t
19362 s&@srcdir@&$ac_srcdir&;t t
19363 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19364 s&@top_srcdir@&$ac_top_srcdir&;t t
19365 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19366 s&@builddir@&$ac_builddir&;t t
19367 s&@abs_builddir@&$ac_abs_builddir&;t t
19368 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19369 s&@INSTALL@&$ac_INSTALL&;t t
19370 $ac_datarootdir_hack
19371 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19372
19373 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19374   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19375   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19376   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19377 which seems to be undefined.  Please make sure it is defined." >&5
19378 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19379 which seems to be undefined.  Please make sure it is defined." >&2;}
19380
19381   rm -f "$tmp/stdin"
19382   case $ac_file in
19383   -) cat "$tmp/out"; rm -f "$tmp/out";;
19384   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19385   esac
19386  ;;
19387   :H)
19388   #
19389   # CONFIG_HEADER
19390   #
19391 _ACEOF
19392
19393 # Transform confdefs.h into a sed script `conftest.defines', that
19394 # substitutes the proper values into config.h.in to produce config.h.
19395 rm -f conftest.defines conftest.tail
19396 # First, append a space to every undef/define line, to ease matching.
19397 echo 's/$/ /' >conftest.defines
19398 # Then, protect against being on the right side of a sed subst, or in
19399 # an unquoted here document, in config.status.  If some macros were
19400 # called several times there might be several #defines for the same
19401 # symbol, which is useless.  But do not sort them, since the last
19402 # AC_DEFINE must be honored.
19403 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19404 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19405 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19406 # PARAMS is the parameter list in the macro definition--in most cases, it's
19407 # just an empty string.
19408 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19409 ac_dB='\\)[      (].*,\\1define\\2'
19410 ac_dC=' '
19411 ac_dD=' ,'
19412
19413 uniq confdefs.h |
19414   sed -n '
19415         t rset
19416         :rset
19417         s/^[     ]*#[    ]*define[       ][      ]*//
19418         t ok
19419         d
19420         :ok
19421         s/[\\&,]/\\&/g
19422         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19423         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19424   ' >>conftest.defines
19425
19426 # Remove the space that was appended to ease matching.
19427 # Then replace #undef with comments.  This is necessary, for
19428 # example, in the case of _POSIX_SOURCE, which is predefined and required
19429 # on some systems where configure will not decide to define it.
19430 # (The regexp can be short, since the line contains either #define or #undef.)
19431 echo 's/ $//
19432 s,^[     #]*u.*,/* & */,' >>conftest.defines
19433
19434 # Break up conftest.defines:
19435 ac_max_sed_lines=50
19436
19437 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19438 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19439 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19440 # et cetera.
19441 ac_in='$ac_file_inputs'
19442 ac_out='"$tmp/out1"'
19443 ac_nxt='"$tmp/out2"'
19444
19445 while :
19446 do
19447   # Write a here document:
19448     cat >>$CONFIG_STATUS <<_ACEOF
19449     # First, check the format of the line:
19450     cat >"\$tmp/defines.sed" <<\\CEOF
19451 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19452 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19453 b
19454 :def
19455 _ACEOF
19456   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19457   echo 'CEOF
19458     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19459   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19460   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19461   grep . conftest.tail >/dev/null || break
19462   rm -f conftest.defines
19463   mv conftest.tail conftest.defines
19464 done
19465 rm -f conftest.defines conftest.tail
19466
19467 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19468 cat >>$CONFIG_STATUS <<\_ACEOF
19469   if test x"$ac_file" != x-; then
19470     echo "/* $configure_input  */" >"$tmp/config.h"
19471     cat "$ac_result" >>"$tmp/config.h"
19472     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19473       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19474 echo "$as_me: $ac_file is unchanged" >&6;}
19475     else
19476       rm -f $ac_file
19477       mv "$tmp/config.h" $ac_file
19478     fi
19479   else
19480     echo "/* $configure_input  */"
19481     cat "$ac_result"
19482   fi
19483   rm -f "$tmp/out12"
19484  ;;
19485
19486   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19487 echo "$as_me: executing $ac_file commands" >&6;}
19488  ;;
19489   esac
19490
19491
19492   case $ac_file$ac_mode in
19493     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19494    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19495     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19496    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19497     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19498    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19499     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19500    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19501     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19502    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19503     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19504    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19505     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19506    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19507     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19508    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19509     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19510    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19511     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19512    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19513     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19514    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19515     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19516    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19517
19518   esac
19519 done # for ac_tag
19520
19521
19522 { (exit 0); exit 0; }
19523 _ACEOF
19524 chmod +x $CONFIG_STATUS
19525 ac_clean_files=$ac_clean_files_save
19526
19527
19528 # configure is writing to config.log, and then calls config.status.
19529 # config.status does its own redirection, appending to config.log.
19530 # Unfortunately, on DOS this fails, as config.log is still kept open
19531 # by configure, so config.status won't be able to write to it; its
19532 # output is simply discarded.  So we exec the FD to /dev/null,
19533 # effectively closing config.log, so it can be properly (re)opened and
19534 # appended to by config.status.  When coming back to configure, we
19535 # need to make the FD available again.
19536 if test "$no_create" != yes; then
19537   ac_cs_success=:
19538   ac_config_status_args=
19539   test "$silent" = yes &&
19540     ac_config_status_args="$ac_config_status_args --quiet"
19541   exec 5>/dev/null
19542   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19543   exec 5>>config.log
19544   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19545   # would make configure fail if this is the last instruction.
19546   $ac_cs_success || { (exit 1); exit 1; }
19547 fi
19548
19549 #
19550 # CONFIG_SUBDIRS section.
19551 #
19552 if test "$no_recursion" != yes; then
19553
19554   # Remove --cache-file and --srcdir arguments so they do not pile up.
19555   ac_sub_configure_args=
19556   ac_prev=
19557   eval "set x $ac_configure_args"
19558   shift
19559   for ac_arg
19560   do
19561     if test -n "$ac_prev"; then
19562       ac_prev=
19563       continue
19564     fi
19565     case $ac_arg in
19566     -cache-file | --cache-file | --cache-fil | --cache-fi \
19567     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19568       ac_prev=cache_file ;;
19569     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19570     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19571     | --c=*)
19572       ;;
19573     --config-cache | -C)
19574       ;;
19575     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19576       ac_prev=srcdir ;;
19577     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19578       ;;
19579     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19580       ac_prev=prefix ;;
19581     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19582       ;;
19583     *)
19584       case $ac_arg in
19585       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19586       esac
19587       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19588     esac
19589   done
19590
19591   # Always prepend --prefix to ensure using the same prefix
19592   # in subdir configurations.
19593   ac_arg="--prefix=$prefix"
19594   case $ac_arg in
19595   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19596   esac
19597   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19598
19599   ac_popdir=`pwd`
19600   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19601
19602     # Do not complain, so a configure script can configure whichever
19603     # parts of a large source tree are present.
19604     test -d "$srcdir/$ac_dir" || continue
19605
19606     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19607     echo "$as_me:$LINENO: $ac_msg" >&5
19608     echo "$ac_msg" >&6
19609     { as_dir="$ac_dir"
19610   case $as_dir in #(
19611   -*) as_dir=./$as_dir;;
19612   esac
19613   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19614     as_dirs=
19615     while :; do
19616       case $as_dir in #(
19617       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19618       *) as_qdir=$as_dir;;
19619       esac
19620       as_dirs="'$as_qdir' $as_dirs"
19621       as_dir=`$as_dirname -- "$as_dir" ||
19622 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19623          X"$as_dir" : 'X\(//\)[^/]' \| \
19624          X"$as_dir" : 'X\(//\)$' \| \
19625          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19626 echo X"$as_dir" |
19627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19628             s//\1/
19629             q
19630           }
19631           /^X\(\/\/\)[^/].*/{
19632             s//\1/
19633             q
19634           }
19635           /^X\(\/\/\)$/{
19636             s//\1/
19637             q
19638           }
19639           /^X\(\/\).*/{
19640             s//\1/
19641             q
19642           }
19643           s/.*/./; q'`
19644       test -d "$as_dir" && break
19645     done
19646     test -z "$as_dirs" || eval "mkdir $as_dirs"
19647   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19648 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19649    { (exit 1); exit 1; }; }; }
19650     ac_builddir=.
19651
19652 case "$ac_dir" in
19653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19654 *)
19655   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19656   # A ".." for each directory in $ac_dir_suffix.
19657   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19658   case $ac_top_builddir_sub in
19659   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19660   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19661   esac ;;
19662 esac
19663 ac_abs_top_builddir=$ac_pwd
19664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19665 # for backward compatibility:
19666 ac_top_builddir=$ac_top_build_prefix
19667
19668 case $srcdir in
19669   .)  # We are building in place.
19670     ac_srcdir=.
19671     ac_top_srcdir=$ac_top_builddir_sub
19672     ac_abs_top_srcdir=$ac_pwd ;;
19673   [\\/]* | ?:[\\/]* )  # Absolute name.
19674     ac_srcdir=$srcdir$ac_dir_suffix;
19675     ac_top_srcdir=$srcdir
19676     ac_abs_top_srcdir=$srcdir ;;
19677   *) # Relative name.
19678     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19679     ac_top_srcdir=$ac_top_build_prefix$srcdir
19680     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19681 esac
19682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19683
19684
19685     cd "$ac_dir"
19686
19687     # Check for guested configure; otherwise get Cygnus style configure.
19688     if test -f "$ac_srcdir/configure.gnu"; then
19689       ac_sub_configure=$ac_srcdir/configure.gnu
19690     elif test -f "$ac_srcdir/configure"; then
19691       ac_sub_configure=$ac_srcdir/configure
19692     elif test -f "$ac_srcdir/configure.in"; then
19693       # This should be Cygnus configure.
19694       ac_sub_configure=$ac_aux_dir/configure
19695     else
19696       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19697 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19698       ac_sub_configure=
19699     fi
19700
19701     # The recursion is here.
19702     if test -n "$ac_sub_configure"; then
19703       # Make the cache file name correct relative to the subdirectory.
19704       case $cache_file in
19705       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19706       *) # Relative name.
19707         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19708       esac
19709
19710       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19711 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19712       # The eval makes quoting arguments work.
19713       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19714            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19715         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19716 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19717    { (exit 1); exit 1; }; }
19718     fi
19719
19720     cd "$ac_popdir"
19721   done
19722 fi
19723