Prune trailing whitespaces and CRs.
[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                           wasm, 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: error: In-source builds are not allowed. Please configure from a separate build directory!" >&5
2037 echo "$as_me: error: In-source builds are not allowed. Please configure from a separate build directory!" >&2;}
2038    { (exit 1); exit 1; }; }
2039 fi
2040
2041 : ${CFLAGS=}
2042 : ${CXXFLAGS=}
2043
2044 ac_ext=c
2045 ac_cpp='$CPP $CPPFLAGS'
2046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2049 if test -n "$ac_tool_prefix"; then
2050   for ac_prog in clang gcc
2051   do
2052     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2056 if test "${ac_cv_prog_CC+set}" = set; then
2057   echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059   if test -n "$CC"; then
2060   ac_cv_prog_CC="$CC" # Let the user override the test.
2061 else
2062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 for as_dir in $PATH
2064 do
2065   IFS=$as_save_IFS
2066   test -z "$as_dir" && as_dir=.
2067   for ac_exec_ext in '' $ac_executable_extensions; do
2068   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2069     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071     break 2
2072   fi
2073 done
2074 done
2075 IFS=$as_save_IFS
2076
2077 fi
2078 fi
2079 CC=$ac_cv_prog_CC
2080 if test -n "$CC"; then
2081   { echo "$as_me:$LINENO: result: $CC" >&5
2082 echo "${ECHO_T}$CC" >&6; }
2083 else
2084   { echo "$as_me:$LINENO: result: no" >&5
2085 echo "${ECHO_T}no" >&6; }
2086 fi
2087
2088
2089     test -n "$CC" && break
2090   done
2091 fi
2092 if test -z "$CC"; then
2093   ac_ct_CC=$CC
2094   for ac_prog in clang gcc
2095 do
2096   # Extract the first word of "$ac_prog", so it can be a program name with args.
2097 set dummy $ac_prog; ac_word=$2
2098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101   echo $ECHO_N "(cached) $ECHO_C" >&6
2102 else
2103   if test -n "$ac_ct_CC"; then
2104   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109   IFS=$as_save_IFS
2110   test -z "$as_dir" && as_dir=.
2111   for ac_exec_ext in '' $ac_executable_extensions; do
2112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2113     ac_cv_prog_ac_ct_CC="$ac_prog"
2114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115     break 2
2116   fi
2117 done
2118 done
2119 IFS=$as_save_IFS
2120
2121 fi
2122 fi
2123 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2124 if test -n "$ac_ct_CC"; then
2125   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2126 echo "${ECHO_T}$ac_ct_CC" >&6; }
2127 else
2128   { echo "$as_me:$LINENO: result: no" >&5
2129 echo "${ECHO_T}no" >&6; }
2130 fi
2131
2132
2133   test -n "$ac_ct_CC" && break
2134 done
2135
2136   if test "x$ac_ct_CC" = x; then
2137     CC=""
2138   else
2139     case $cross_compiling:$ac_tool_warned in
2140 yes:)
2141 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2142 whose name does not start with the host triplet.  If you think this
2143 configuration is useful to you, please write to autoconf@gnu.org." >&5
2144 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2145 whose name does not start with the host triplet.  If you think this
2146 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2147 ac_tool_warned=yes ;;
2148 esac
2149     CC=$ac_ct_CC
2150   fi
2151 fi
2152
2153
2154 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2155 See \`config.log' for more details." >&5
2156 echo "$as_me: error: no acceptable C compiler found in \$PATH
2157 See \`config.log' for more details." >&2;}
2158    { (exit 1); exit 1; }; }
2159
2160 # Provide some information about the compiler.
2161 echo "$as_me:$LINENO: checking for C compiler version" >&5
2162 ac_compiler=`set X $ac_compile; echo $2`
2163 { (ac_try="$ac_compiler --version >&5"
2164 case "(($ac_try" in
2165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2166   *) ac_try_echo=$ac_try;;
2167 esac
2168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2169   (eval "$ac_compiler --version >&5") 2>&5
2170   ac_status=$?
2171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172   (exit $ac_status); }
2173 { (ac_try="$ac_compiler -v >&5"
2174 case "(($ac_try" in
2175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176   *) ac_try_echo=$ac_try;;
2177 esac
2178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2179   (eval "$ac_compiler -v >&5") 2>&5
2180   ac_status=$?
2181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182   (exit $ac_status); }
2183 { (ac_try="$ac_compiler -V >&5"
2184 case "(($ac_try" in
2185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186   *) ac_try_echo=$ac_try;;
2187 esac
2188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2189   (eval "$ac_compiler -V >&5") 2>&5
2190   ac_status=$?
2191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192   (exit $ac_status); }
2193
2194 cat >conftest.$ac_ext <<_ACEOF
2195 /* confdefs.h.  */
2196 _ACEOF
2197 cat confdefs.h >>conftest.$ac_ext
2198 cat >>conftest.$ac_ext <<_ACEOF
2199 /* end confdefs.h.  */
2200
2201 int
2202 main ()
2203 {
2204
2205   ;
2206   return 0;
2207 }
2208 _ACEOF
2209 ac_clean_files_save=$ac_clean_files
2210 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2211 # Try to create an executable without -o first, disregard a.out.
2212 # It will help us diagnose broken compilers, and finding out an intuition
2213 # of exeext.
2214 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2215 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2216 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2217 #
2218 # List of possible output files, starting from the most likely.
2219 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2220 # only as a last resort.  b.out is created by i960 compilers.
2221 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2222 #
2223 # The IRIX 6 linker writes into existing files which may not be
2224 # executable, retaining their permissions.  Remove them first so a
2225 # subsequent execution test works.
2226 ac_rmfiles=
2227 for ac_file in $ac_files
2228 do
2229   case $ac_file in
2230     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2231     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2232   esac
2233 done
2234 rm -f $ac_rmfiles
2235
2236 if { (ac_try="$ac_link_default"
2237 case "(($ac_try" in
2238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239   *) ac_try_echo=$ac_try;;
2240 esac
2241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2242   (eval "$ac_link_default") 2>&5
2243   ac_status=$?
2244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245   (exit $ac_status); }; then
2246   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2248 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2249 # so that the user can short-circuit this test for compilers unknown to
2250 # Autoconf.
2251 for ac_file in $ac_files
2252 do
2253   test -f "$ac_file" || continue
2254   case $ac_file in
2255     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2256         ;;
2257     [ab].out )
2258         # We found the default executable, but exeext='' is most
2259         # certainly right.
2260         break;;
2261     *.* )
2262         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2263         then :; else
2264            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2265         fi
2266         # We set ac_cv_exeext here because the later test for it is not
2267         # safe: cross compilers may not add the suffix if given an `-o'
2268         # argument, so we may need to know it at that point already.
2269         # Even if this section looks crufty: it has the advantage of
2270         # actually working.
2271         break;;
2272     * )
2273         break;;
2274   esac
2275 done
2276 test "$ac_cv_exeext" = no && ac_cv_exeext=
2277
2278 else
2279   echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2281
2282 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: C compiler cannot create executables
2285 See \`config.log' for more details." >&2;}
2286    { (exit 77); exit 77; }; }
2287 fi
2288
2289 ac_exeext=$ac_cv_exeext
2290 { echo "$as_me:$LINENO: result: $ac_file" >&5
2291 echo "${ECHO_T}$ac_file" >&6; }
2292
2293 # Check that the compiler produces executables we can run.  If not, either
2294 # the compiler is broken, or we cross compile.
2295 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2296 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2297 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2298 # If not cross compiling, check that we can run a simple program.
2299 if test "$cross_compiling" != yes; then
2300   if { ac_try='./$ac_file'
2301   { (case "(($ac_try" in
2302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303   *) ac_try_echo=$ac_try;;
2304 esac
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306   (eval "$ac_try") 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }; }; then
2310     cross_compiling=no
2311   else
2312     if test "$cross_compiling" = maybe; then
2313         cross_compiling=yes
2314     else
2315         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2316 If you meant to cross compile, use \`--host'.
2317 See \`config.log' for more details." >&5
2318 echo "$as_me: error: cannot run C compiled programs.
2319 If you meant to cross compile, use \`--host'.
2320 See \`config.log' for more details." >&2;}
2321    { (exit 1); exit 1; }; }
2322     fi
2323   fi
2324 fi
2325 { echo "$as_me:$LINENO: result: yes" >&5
2326 echo "${ECHO_T}yes" >&6; }
2327
2328 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2329 ac_clean_files=$ac_clean_files_save
2330 # Check that the compiler produces executables we can run.  If not, either
2331 # the compiler is broken, or we cross compile.
2332 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2333 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2334 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2335 echo "${ECHO_T}$cross_compiling" >&6; }
2336
2337 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2338 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2339 if { (ac_try="$ac_link"
2340 case "(($ac_try" in
2341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2342   *) ac_try_echo=$ac_try;;
2343 esac
2344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2345   (eval "$ac_link") 2>&5
2346   ac_status=$?
2347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348   (exit $ac_status); }; then
2349   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2350 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2351 # work properly (i.e., refer to `conftest.exe'), while it won't with
2352 # `rm'.
2353 for ac_file in conftest.exe conftest conftest.*; do
2354   test -f "$ac_file" || continue
2355   case $ac_file in
2356     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2357     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2358           break;;
2359     * ) break;;
2360   esac
2361 done
2362 else
2363   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2364 See \`config.log' for more details." >&5
2365 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2366 See \`config.log' for more details." >&2;}
2367    { (exit 1); exit 1; }; }
2368 fi
2369
2370 rm -f conftest$ac_cv_exeext
2371 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2372 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2373
2374 rm -f conftest.$ac_ext
2375 EXEEXT=$ac_cv_exeext
2376 ac_exeext=$EXEEXT
2377 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2378 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2379 if test "${ac_cv_objext+set}" = set; then
2380   echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382   cat >conftest.$ac_ext <<_ACEOF
2383 /* confdefs.h.  */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h.  */
2388
2389 int
2390 main ()
2391 {
2392
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 rm -f conftest.o conftest.obj
2398 if { (ac_try="$ac_compile"
2399 case "(($ac_try" in
2400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401   *) ac_try_echo=$ac_try;;
2402 esac
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404   (eval "$ac_compile") 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; then
2408   for ac_file in conftest.o conftest.obj conftest.*; do
2409   test -f "$ac_file" || continue;
2410   case $ac_file in
2411     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2412     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2413        break;;
2414   esac
2415 done
2416 else
2417   echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2421 See \`config.log' for more details." >&5
2422 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2423 See \`config.log' for more details." >&2;}
2424    { (exit 1); exit 1; }; }
2425 fi
2426
2427 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2428 fi
2429 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2430 echo "${ECHO_T}$ac_cv_objext" >&6; }
2431 OBJEXT=$ac_cv_objext
2432 ac_objext=$OBJEXT
2433 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2434 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2435 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2436   echo $ECHO_N "(cached) $ECHO_C" >&6
2437 else
2438   cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h.  */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h.  */
2444
2445 int
2446 main ()
2447 {
2448 #ifndef __GNUC__
2449        choke me
2450 #endif
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 rm -f conftest.$ac_objext
2457 if { (ac_try="$ac_compile"
2458 case "(($ac_try" in
2459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460   *) ac_try_echo=$ac_try;;
2461 esac
2462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2463   (eval "$ac_compile") 2>conftest.er1
2464   ac_status=$?
2465   grep -v '^ *+' conftest.er1 >conftest.err
2466   rm -f conftest.er1
2467   cat conftest.err >&5
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); } &&
2470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2471   { (case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_try") 2>&5
2477   ac_status=$?
2478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479   (exit $ac_status); }; } &&
2480          { ac_try='test -s conftest.$ac_objext'
2481   { (case "(($ac_try" in
2482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483   *) ac_try_echo=$ac_try;;
2484 esac
2485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2486   (eval "$ac_try") 2>&5
2487   ac_status=$?
2488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489   (exit $ac_status); }; }; then
2490   ac_compiler_gnu=yes
2491 else
2492   echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495         ac_compiler_gnu=no
2496 fi
2497
2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2500
2501 fi
2502 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2503 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2504 GCC=`test $ac_compiler_gnu = yes && echo yes`
2505 ac_test_CFLAGS=${CFLAGS+set}
2506 ac_save_CFLAGS=$CFLAGS
2507 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2508 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_cc_g+set}" = set; then
2510   echo $ECHO_N "(cached) $ECHO_C" >&6
2511 else
2512   ac_save_c_werror_flag=$ac_c_werror_flag
2513    ac_c_werror_flag=yes
2514    ac_cv_prog_cc_g=no
2515    CFLAGS="-g"
2516    cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h.  */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h.  */
2522
2523 int
2524 main ()
2525 {
2526
2527   ;
2528   return 0;
2529 }
2530 _ACEOF
2531 rm -f conftest.$ac_objext
2532 if { (ac_try="$ac_compile"
2533 case "(($ac_try" in
2534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535   *) ac_try_echo=$ac_try;;
2536 esac
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538   (eval "$ac_compile") 2>conftest.er1
2539   ac_status=$?
2540   grep -v '^ *+' conftest.er1 >conftest.err
2541   rm -f conftest.er1
2542   cat conftest.err >&5
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); } &&
2545          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2546   { (case "(($ac_try" in
2547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548   *) ac_try_echo=$ac_try;;
2549 esac
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551   (eval "$ac_try") 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; } &&
2555          { ac_try='test -s conftest.$ac_objext'
2556   { (case "(($ac_try" in
2557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558   *) ac_try_echo=$ac_try;;
2559 esac
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561   (eval "$ac_try") 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; }; then
2565   ac_cv_prog_cc_g=yes
2566 else
2567   echo "$as_me: failed program was:" >&5
2568 sed 's/^/| /' conftest.$ac_ext >&5
2569
2570         CFLAGS=""
2571       cat >conftest.$ac_ext <<_ACEOF
2572 /* confdefs.h.  */
2573 _ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h.  */
2577
2578 int
2579 main ()
2580 {
2581
2582   ;
2583   return 0;
2584 }
2585 _ACEOF
2586 rm -f conftest.$ac_objext
2587 if { (ac_try="$ac_compile"
2588 case "(($ac_try" in
2589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590   *) ac_try_echo=$ac_try;;
2591 esac
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593   (eval "$ac_compile") 2>conftest.er1
2594   ac_status=$?
2595   grep -v '^ *+' conftest.er1 >conftest.err
2596   rm -f conftest.er1
2597   cat conftest.err >&5
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); } &&
2600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2601   { (case "(($ac_try" in
2602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603   *) ac_try_echo=$ac_try;;
2604 esac
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606   (eval "$ac_try") 2>&5
2607   ac_status=$?
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); }; } &&
2610          { ac_try='test -s conftest.$ac_objext'
2611   { (case "(($ac_try" in
2612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613   *) ac_try_echo=$ac_try;;
2614 esac
2615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616   (eval "$ac_try") 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   :
2621 else
2622   echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2624
2625         ac_c_werror_flag=$ac_save_c_werror_flag
2626          CFLAGS="-g"
2627          cat >conftest.$ac_ext <<_ACEOF
2628 /* confdefs.h.  */
2629 _ACEOF
2630 cat confdefs.h >>conftest.$ac_ext
2631 cat >>conftest.$ac_ext <<_ACEOF
2632 /* end confdefs.h.  */
2633
2634 int
2635 main ()
2636 {
2637
2638   ;
2639   return 0;
2640 }
2641 _ACEOF
2642 rm -f conftest.$ac_objext
2643 if { (ac_try="$ac_compile"
2644 case "(($ac_try" in
2645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646   *) ac_try_echo=$ac_try;;
2647 esac
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649   (eval "$ac_compile") 2>conftest.er1
2650   ac_status=$?
2651   grep -v '^ *+' conftest.er1 >conftest.err
2652   rm -f conftest.er1
2653   cat conftest.err >&5
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); } &&
2656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2657   { (case "(($ac_try" in
2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659   *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662   (eval "$ac_try") 2>&5
2663   ac_status=$?
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); }; } &&
2666          { ac_try='test -s conftest.$ac_objext'
2667   { (case "(($ac_try" in
2668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669   *) ac_try_echo=$ac_try;;
2670 esac
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672   (eval "$ac_try") 2>&5
2673   ac_status=$?
2674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675   (exit $ac_status); }; }; then
2676   ac_cv_prog_cc_g=yes
2677 else
2678   echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2680
2681
2682 fi
2683
2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 fi
2686
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 fi
2689
2690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691    ac_c_werror_flag=$ac_save_c_werror_flag
2692 fi
2693 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2694 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2695 if test "$ac_test_CFLAGS" = set; then
2696   CFLAGS=$ac_save_CFLAGS
2697 elif test $ac_cv_prog_cc_g = yes; then
2698   if test "$GCC" = yes; then
2699     CFLAGS="-g -O2"
2700   else
2701     CFLAGS="-g"
2702   fi
2703 else
2704   if test "$GCC" = yes; then
2705     CFLAGS="-O2"
2706   else
2707     CFLAGS=
2708   fi
2709 fi
2710 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2711 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_cc_c89+set}" = set; then
2713   echo $ECHO_N "(cached) $ECHO_C" >&6
2714 else
2715   ac_cv_prog_cc_c89=no
2716 ac_save_CC=$CC
2717 cat >conftest.$ac_ext <<_ACEOF
2718 /* confdefs.h.  */
2719 _ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h.  */
2723 #include <stdarg.h>
2724 #include <stdio.h>
2725 #include <sys/types.h>
2726 #include <sys/stat.h>
2727 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2728 struct buf { int x; };
2729 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2730 static char *e (p, i)
2731      char **p;
2732      int i;
2733 {
2734   return p[i];
2735 }
2736 static char *f (char * (*g) (char **, int), char **p, ...)
2737 {
2738   char *s;
2739   va_list v;
2740   va_start (v,p);
2741   s = g (p, va_arg (v,int));
2742   va_end (v);
2743   return s;
2744 }
2745
2746 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2747    function prototypes and stuff, but not '\xHH' hex character constants.
2748    These don't provoke an error unfortunately, instead are silently treated
2749    as 'x'.  The following induces an error, until -std is added to get
2750    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2751    array size at least.  It's necessary to write '\x00'==0 to get something
2752    that's true only with -std.  */
2753 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2754
2755 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2756    inside strings and character constants.  */
2757 #define FOO(x) 'x'
2758 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2759
2760 int test (int i, double x);
2761 struct s1 {int (*f) (int a);};
2762 struct s2 {int (*f) (double a);};
2763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2764 int argc;
2765 char **argv;
2766 int
2767 main ()
2768 {
2769 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2775         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2776 do
2777   CC="$ac_save_CC $ac_arg"
2778   rm -f conftest.$ac_objext
2779 if { (ac_try="$ac_compile"
2780 case "(($ac_try" in
2781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782   *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785   (eval "$ac_compile") 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2793   { (case "(($ac_try" in
2794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795   *) ac_try_echo=$ac_try;;
2796 esac
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798   (eval "$ac_try") 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }; } &&
2802          { ac_try='test -s conftest.$ac_objext'
2803   { (case "(($ac_try" in
2804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805   *) ac_try_echo=$ac_try;;
2806 esac
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808   (eval "$ac_try") 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; }; then
2812   ac_cv_prog_cc_c89=$ac_arg
2813 else
2814   echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2816
2817
2818 fi
2819
2820 rm -f core conftest.err conftest.$ac_objext
2821   test "x$ac_cv_prog_cc_c89" != "xno" && break
2822 done
2823 rm -f conftest.$ac_ext
2824 CC=$ac_save_CC
2825
2826 fi
2827 # AC_CACHE_VAL
2828 case "x$ac_cv_prog_cc_c89" in
2829   x)
2830     { echo "$as_me:$LINENO: result: none needed" >&5
2831 echo "${ECHO_T}none needed" >&6; } ;;
2832   xno)
2833     { echo "$as_me:$LINENO: result: unsupported" >&5
2834 echo "${ECHO_T}unsupported" >&6; } ;;
2835   *)
2836     CC="$CC $ac_cv_prog_cc_c89"
2837     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2838 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2839 esac
2840
2841
2842 ac_ext=c
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847
2848 ac_ext=cpp
2849 ac_cpp='$CXXCPP $CPPFLAGS'
2850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2853 if test -z "$CXX"; then
2854   if test -n "$CCC"; then
2855     CXX=$CCC
2856   else
2857     if test -n "$ac_tool_prefix"; then
2858   for ac_prog in clang++ g++
2859   do
2860     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_CXX+set}" = set; then
2865   echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867   if test -n "$CXX"; then
2868   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873   IFS=$as_save_IFS
2874   test -z "$as_dir" && as_dir=.
2875   for ac_exec_ext in '' $ac_executable_extensions; do
2876   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2877     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2879     break 2
2880   fi
2881 done
2882 done
2883 IFS=$as_save_IFS
2884
2885 fi
2886 fi
2887 CXX=$ac_cv_prog_CXX
2888 if test -n "$CXX"; then
2889   { echo "$as_me:$LINENO: result: $CXX" >&5
2890 echo "${ECHO_T}$CXX" >&6; }
2891 else
2892   { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2894 fi
2895
2896
2897     test -n "$CXX" && break
2898   done
2899 fi
2900 if test -z "$CXX"; then
2901   ac_ct_CXX=$CXX
2902   for ac_prog in clang++ g++
2903 do
2904   # Extract the first word of "$ac_prog", so it can be a program name with args.
2905 set dummy $ac_prog; ac_word=$2
2906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2908 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2909   echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911   if test -n "$ac_ct_CXX"; then
2912   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917   IFS=$as_save_IFS
2918   test -z "$as_dir" && as_dir=.
2919   for ac_exec_ext in '' $ac_executable_extensions; do
2920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2921     ac_cv_prog_ac_ct_CXX="$ac_prog"
2922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2923     break 2
2924   fi
2925 done
2926 done
2927 IFS=$as_save_IFS
2928
2929 fi
2930 fi
2931 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2932 if test -n "$ac_ct_CXX"; then
2933   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2934 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2935 else
2936   { echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6; }
2938 fi
2939
2940
2941   test -n "$ac_ct_CXX" && break
2942 done
2943
2944   if test "x$ac_ct_CXX" = x; then
2945     CXX="g++"
2946   else
2947     case $cross_compiling:$ac_tool_warned in
2948 yes:)
2949 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2950 whose name does not start with the host triplet.  If you think this
2951 configuration is useful to you, please write to autoconf@gnu.org." >&5
2952 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2953 whose name does not start with the host triplet.  If you think this
2954 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2955 ac_tool_warned=yes ;;
2956 esac
2957     CXX=$ac_ct_CXX
2958   fi
2959 fi
2960
2961   fi
2962 fi
2963 # Provide some information about the compiler.
2964 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2965 ac_compiler=`set X $ac_compile; echo $2`
2966 { (ac_try="$ac_compiler --version >&5"
2967 case "(($ac_try" in
2968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969   *) ac_try_echo=$ac_try;;
2970 esac
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972   (eval "$ac_compiler --version >&5") 2>&5
2973   ac_status=$?
2974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975   (exit $ac_status); }
2976 { (ac_try="$ac_compiler -v >&5"
2977 case "(($ac_try" in
2978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979   *) ac_try_echo=$ac_try;;
2980 esac
2981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982   (eval "$ac_compiler -v >&5") 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }
2986 { (ac_try="$ac_compiler -V >&5"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compiler -V >&5") 2>&5
2993   ac_status=$?
2994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995   (exit $ac_status); }
2996
2997 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2998 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2999 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   cat >conftest.$ac_ext <<_ACEOF
3003 /* confdefs.h.  */
3004 _ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h.  */
3008
3009 int
3010 main ()
3011 {
3012 #ifndef __GNUC__
3013        choke me
3014 #endif
3015
3016   ;
3017   return 0;
3018 }
3019 _ACEOF
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compile") 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } &&
3034          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3035   { (case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_try") 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; } &&
3044          { ac_try='test -s conftest.$ac_objext'
3045   { (case "(($ac_try" in
3046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047   *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050   (eval "$ac_try") 2>&5
3051   ac_status=$?
3052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053   (exit $ac_status); }; }; then
3054   ac_compiler_gnu=yes
3055 else
3056   echo "$as_me: failed program was:" >&5
3057 sed 's/^/| /' conftest.$ac_ext >&5
3058
3059         ac_compiler_gnu=no
3060 fi
3061
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3064
3065 fi
3066 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3067 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3068 GXX=`test $ac_compiler_gnu = yes && echo yes`
3069 ac_test_CXXFLAGS=${CXXFLAGS+set}
3070 ac_save_CXXFLAGS=$CXXFLAGS
3071 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3072 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3073 if test "${ac_cv_prog_cxx_g+set}" = set; then
3074   echo $ECHO_N "(cached) $ECHO_C" >&6
3075 else
3076   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3077    ac_cxx_werror_flag=yes
3078    ac_cv_prog_cxx_g=no
3079    CXXFLAGS="-g"
3080    cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h.  */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h.  */
3086
3087 int
3088 main ()
3089 {
3090
3091   ;
3092   return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3097 case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_compile") 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } &&
3109          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3110   { (case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_try") 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }; } &&
3119          { ac_try='test -s conftest.$ac_objext'
3120   { (case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_try") 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }; }; then
3129   ac_cv_prog_cxx_g=yes
3130 else
3131   echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134         CXXFLAGS=""
3135       cat >conftest.$ac_ext <<_ACEOF
3136 /* confdefs.h.  */
3137 _ACEOF
3138 cat confdefs.h >>conftest.$ac_ext
3139 cat >>conftest.$ac_ext <<_ACEOF
3140 /* end confdefs.h.  */
3141
3142 int
3143 main ()
3144 {
3145
3146   ;
3147   return 0;
3148 }
3149 _ACEOF
3150 rm -f conftest.$ac_objext
3151 if { (ac_try="$ac_compile"
3152 case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157   (eval "$ac_compile") 2>conftest.er1
3158   ac_status=$?
3159   grep -v '^ *+' conftest.er1 >conftest.err
3160   rm -f conftest.er1
3161   cat conftest.err >&5
3162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163   (exit $ac_status); } &&
3164          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3165   { (case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170   (eval "$ac_try") 2>&5
3171   ac_status=$?
3172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173   (exit $ac_status); }; } &&
3174          { ac_try='test -s conftest.$ac_objext'
3175   { (case "(($ac_try" in
3176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177   *) ac_try_echo=$ac_try;;
3178 esac
3179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3180   (eval "$ac_try") 2>&5
3181   ac_status=$?
3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183   (exit $ac_status); }; }; then
3184   :
3185 else
3186   echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3190          CXXFLAGS="-g"
3191          cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h.  */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h.  */
3197
3198 int
3199 main ()
3200 {
3201
3202   ;
3203   return 0;
3204 }
3205 _ACEOF
3206 rm -f conftest.$ac_objext
3207 if { (ac_try="$ac_compile"
3208 case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213   (eval "$ac_compile") 2>conftest.er1
3214   ac_status=$?
3215   grep -v '^ *+' conftest.er1 >conftest.err
3216   rm -f conftest.er1
3217   cat conftest.err >&5
3218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); } &&
3220          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3221   { (case "(($ac_try" in
3222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223   *) ac_try_echo=$ac_try;;
3224 esac
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226   (eval "$ac_try") 2>&5
3227   ac_status=$?
3228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229   (exit $ac_status); }; } &&
3230          { ac_try='test -s conftest.$ac_objext'
3231   { (case "(($ac_try" in
3232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233   *) ac_try_echo=$ac_try;;
3234 esac
3235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3236   (eval "$ac_try") 2>&5
3237   ac_status=$?
3238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239   (exit $ac_status); }; }; then
3240   ac_cv_prog_cxx_g=yes
3241 else
3242   echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3244
3245
3246 fi
3247
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3249 fi
3250
3251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 fi
3253
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3256 fi
3257 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3258 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3259 if test "$ac_test_CXXFLAGS" = set; then
3260   CXXFLAGS=$ac_save_CXXFLAGS
3261 elif test $ac_cv_prog_cxx_g = yes; then
3262   if test "$GXX" = yes; then
3263     CXXFLAGS="-g -O2"
3264   else
3265     CXXFLAGS="-g"
3266   fi
3267 else
3268   if test "$GXX" = yes; then
3269     CXXFLAGS="-O2"
3270   else
3271     CXXFLAGS=
3272   fi
3273 fi
3274 ac_ext=c
3275 ac_cpp='$CPP $CPPFLAGS'
3276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279
3280 ac_ext=c
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3285 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3286 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3287 # On Suns, sometimes $CPP names a directory.
3288 if test -n "$CPP" && test -d "$CPP"; then
3289   CPP=
3290 fi
3291 if test -z "$CPP"; then
3292   if test "${ac_cv_prog_CPP+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295       # Double quotes because CPP needs to be expanded
3296     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3297     do
3298       ac_preproc_ok=false
3299 for ac_c_preproc_warn_flag in '' yes
3300 do
3301   # Use a header file that comes with gcc, so configuring glibc
3302   # with a fresh cross-compiler works.
3303   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3304   # <limits.h> exists even on freestanding compilers.
3305   # On the NeXT, cc -E runs the code through the compiler's parser,
3306   # not just through cpp. "Syntax error" is here to catch this case.
3307   cat >conftest.$ac_ext <<_ACEOF
3308 /* confdefs.h.  */
3309 _ACEOF
3310 cat confdefs.h >>conftest.$ac_ext
3311 cat >>conftest.$ac_ext <<_ACEOF
3312 /* end confdefs.h.  */
3313 #ifdef __STDC__
3314 # include <limits.h>
3315 #else
3316 # include <assert.h>
3317 #endif
3318                      Syntax error
3319 _ACEOF
3320 if { (ac_try="$ac_cpp conftest.$ac_ext"
3321 case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3327   ac_status=$?
3328   grep -v '^ *+' conftest.er1 >conftest.err
3329   rm -f conftest.er1
3330   cat conftest.err >&5
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); } >/dev/null; then
3333   if test -s conftest.err; then
3334     ac_cpp_err=$ac_c_preproc_warn_flag
3335     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3336   else
3337     ac_cpp_err=
3338   fi
3339 else
3340   ac_cpp_err=yes
3341 fi
3342 if test -z "$ac_cpp_err"; then
3343   :
3344 else
3345   echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3347
3348   # Broken: fails on valid input.
3349 continue
3350 fi
3351
3352 rm -f conftest.err conftest.$ac_ext
3353
3354   # OK, works on sane cases.  Now check whether nonexistent headers
3355   # can be detected and how.
3356   cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h.  */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h.  */
3362 #include <ac_nonexistent.h>
3363 _ACEOF
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371   ac_status=$?
3372   grep -v '^ *+' conftest.er1 >conftest.err
3373   rm -f conftest.er1
3374   cat conftest.err >&5
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } >/dev/null; then
3377   if test -s conftest.err; then
3378     ac_cpp_err=$ac_c_preproc_warn_flag
3379     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380   else
3381     ac_cpp_err=
3382   fi
3383 else
3384   ac_cpp_err=yes
3385 fi
3386 if test -z "$ac_cpp_err"; then
3387   # Broken: success on invalid input.
3388 continue
3389 else
3390   echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3392
3393   # Passes both tests.
3394 ac_preproc_ok=:
3395 break
3396 fi
3397
3398 rm -f conftest.err conftest.$ac_ext
3399
3400 done
3401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3402 rm -f conftest.err conftest.$ac_ext
3403 if $ac_preproc_ok; then
3404   break
3405 fi
3406
3407     done
3408     ac_cv_prog_CPP=$CPP
3409
3410 fi
3411   CPP=$ac_cv_prog_CPP
3412 else
3413   ac_cv_prog_CPP=$CPP
3414 fi
3415 { echo "$as_me:$LINENO: result: $CPP" >&5
3416 echo "${ECHO_T}$CPP" >&6; }
3417 ac_preproc_ok=false
3418 for ac_c_preproc_warn_flag in '' yes
3419 do
3420   # Use a header file that comes with gcc, so configuring glibc
3421   # with a fresh cross-compiler works.
3422   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3423   # <limits.h> exists even on freestanding compilers.
3424   # On the NeXT, cc -E runs the code through the compiler's parser,
3425   # not just through cpp. "Syntax error" is here to catch this case.
3426   cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432 #ifdef __STDC__
3433 # include <limits.h>
3434 #else
3435 # include <assert.h>
3436 #endif
3437                      Syntax error
3438 _ACEOF
3439 if { (ac_try="$ac_cpp conftest.$ac_ext"
3440 case "(($ac_try" in
3441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442   *) ac_try_echo=$ac_try;;
3443 esac
3444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3446   ac_status=$?
3447   grep -v '^ *+' conftest.er1 >conftest.err
3448   rm -f conftest.er1
3449   cat conftest.err >&5
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); } >/dev/null; then
3452   if test -s conftest.err; then
3453     ac_cpp_err=$ac_c_preproc_warn_flag
3454     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455   else
3456     ac_cpp_err=
3457   fi
3458 else
3459   ac_cpp_err=yes
3460 fi
3461 if test -z "$ac_cpp_err"; then
3462   :
3463 else
3464   echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467   # Broken: fails on valid input.
3468 continue
3469 fi
3470
3471 rm -f conftest.err conftest.$ac_ext
3472
3473   # OK, works on sane cases.  Now check whether nonexistent headers
3474   # can be detected and how.
3475   cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h.  */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h.  */
3481 #include <ac_nonexistent.h>
3482 _ACEOF
3483 if { (ac_try="$ac_cpp conftest.$ac_ext"
3484 case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3489   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490   ac_status=$?
3491   grep -v '^ *+' conftest.er1 >conftest.err
3492   rm -f conftest.er1
3493   cat conftest.err >&5
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); } >/dev/null; then
3496   if test -s conftest.err; then
3497     ac_cpp_err=$ac_c_preproc_warn_flag
3498     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3499   else
3500     ac_cpp_err=
3501   fi
3502 else
3503   ac_cpp_err=yes
3504 fi
3505 if test -z "$ac_cpp_err"; then
3506   # Broken: success on invalid input.
3507 continue
3508 else
3509   echo "$as_me: failed program was:" >&5
3510 sed 's/^/| /' conftest.$ac_ext >&5
3511
3512   # Passes both tests.
3513 ac_preproc_ok=:
3514 break
3515 fi
3516
3517 rm -f conftest.err conftest.$ac_ext
3518
3519 done
3520 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3521 rm -f conftest.err conftest.$ac_ext
3522 if $ac_preproc_ok; then
3523   :
3524 else
3525   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3526 See \`config.log' for more details." >&5
3527 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3528 See \`config.log' for more details." >&2;}
3529    { (exit 1); exit 1; }; }
3530 fi
3531
3532 ac_ext=c
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537
3538
3539 if test "$CXX" = "clang++" ; then
3540   { echo "$as_me:$LINENO: checking whether clang works" >&5
3541 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3542   ac_ext=cpp
3543 ac_cpp='$CXXCPP $CPPFLAGS'
3544 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3547
3548
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h.  */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h.  */
3555 #include <limits>
3556 #if __has_include (<cxxabi.h>)
3557 #include <cxxabi.h>
3558 #endif
3559 #if __has_include (<unwind.h>)
3560 #include <unwind.h>
3561 #endif
3562
3563 int
3564 main ()
3565 {
3566
3567   ;
3568   return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (ac_try="$ac_compile"
3573 case "(($ac_try" in
3574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575   *) ac_try_echo=$ac_try;;
3576 esac
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578   (eval "$ac_compile") 2>conftest.er1
3579   ac_status=$?
3580   grep -v '^ *+' conftest.er1 >conftest.err
3581   rm -f conftest.er1
3582   cat conftest.err >&5
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); } &&
3585          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3586   { (case "(($ac_try" in
3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588   *) ac_try_echo=$ac_try;;
3589 esac
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591   (eval "$ac_try") 2>&5
3592   ac_status=$?
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); }; } &&
3595          { ac_try='test -s conftest.$ac_objext'
3596   { (case "(($ac_try" in
3597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598   *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601   (eval "$ac_try") 2>&5
3602   ac_status=$?
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); }; }; then
3605
3606   { echo "$as_me:$LINENO: result: yes" >&5
3607 echo "${ECHO_T}yes" >&6; }
3608
3609 else
3610   echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613
3614   { echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6; }
3616   { { 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
3617 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;}
3618    { (exit 1); exit 1; }; }
3619
3620 fi
3621
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623   ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628
3629 fi
3630
3631 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3632 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3633 ac_ext=cpp
3634 ac_cpp='$CXXCPP $CPPFLAGS'
3635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3638
3639 llvm_cv_cxx_compiler=unknown
3640 cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h.  */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h.  */
3646 #if ! __clang__
3647                                     #error
3648                                     #endif
3649
3650 _ACEOF
3651 rm -f conftest.$ac_objext
3652 if { (ac_try="$ac_compile"
3653 case "(($ac_try" in
3654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655   *) ac_try_echo=$ac_try;;
3656 esac
3657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3658   (eval "$ac_compile") 2>conftest.er1
3659   ac_status=$?
3660   grep -v '^ *+' conftest.er1 >conftest.err
3661   rm -f conftest.er1
3662   cat conftest.err >&5
3663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); } &&
3665          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3666   { (case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671   (eval "$ac_try") 2>&5
3672   ac_status=$?
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }; } &&
3675          { ac_try='test -s conftest.$ac_objext'
3676   { (case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681   (eval "$ac_try") 2>&5
3682   ac_status=$?
3683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684   (exit $ac_status); }; }; then
3685   llvm_cv_cxx_compiler=clang
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690         cat >conftest.$ac_ext <<_ACEOF
3691 /* confdefs.h.  */
3692 _ACEOF
3693 cat confdefs.h >>conftest.$ac_ext
3694 cat >>conftest.$ac_ext <<_ACEOF
3695 /* end confdefs.h.  */
3696 #if ! __GNUC__
3697                                                        #error
3698                                                        #endif
3699
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3703 case "(($ac_try" in
3704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705   *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708   (eval "$ac_compile") 2>conftest.er1
3709   ac_status=$?
3710   grep -v '^ *+' conftest.er1 >conftest.err
3711   rm -f conftest.er1
3712   cat conftest.err >&5
3713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714   (exit $ac_status); } &&
3715          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3716   { (case "(($ac_try" in
3717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718   *) ac_try_echo=$ac_try;;
3719 esac
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721   (eval "$ac_try") 2>&5
3722   ac_status=$?
3723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724   (exit $ac_status); }; } &&
3725          { ac_try='test -s conftest.$ac_objext'
3726   { (case "(($ac_try" in
3727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728   *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731   (eval "$ac_try") 2>&5
3732   ac_status=$?
3733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734   (exit $ac_status); }; }; then
3735   llvm_cv_cxx_compiler=gcc
3736 else
3737   echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3739
3740
3741 fi
3742
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3744 fi
3745
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 ac_ext=c
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
3753 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3754 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3755
3756
3757
3758 if test -d ${srcdir}/projects/test-suite ; then
3759   subdirs="$subdirs projects/test-suite"
3760
3761 fi
3762
3763 if test -d ${srcdir}/projects/llvm-test ; then
3764   subdirs="$subdirs projects/llvm-test"
3765
3766 fi
3767
3768 if test -d ${srcdir}/projects/poolalloc ; then
3769   subdirs="$subdirs projects/poolalloc"
3770
3771 fi
3772
3773 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3774   subdirs="$subdirs projects/llvm-poolalloc"
3775
3776 fi
3777
3778 for i in `ls ${srcdir}/projects`
3779 do
3780   if test -d ${srcdir}/projects/${i} ; then
3781     case ${i} in
3782       safecode)     subdirs="$subdirs projects/safecode"
3783  ;;
3784       compiler-rt)       ;;
3785       test-suite)     ;;
3786       llvm-test)      ;;
3787       poolalloc)      ;;
3788       llvm-poolalloc) ;;
3789       *)
3790         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3791 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3792         ;;
3793     esac
3794   fi
3795 done
3796
3797 # Check whether --enable-polly was given.
3798 if test "${enable_polly+set}" = set; then
3799   enableval=$enable_polly;
3800 else
3801   enableval=default
3802 fi
3803
3804 case "$enableval" in
3805   yes) ENABLE_POLLY=1
3806  ;;
3807   no)  ENABLE_POLLY=0
3808  ;;
3809   default) ENABLE_POLLY=1
3810  ;;
3811   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3812 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3813    { (exit 1); exit 1; }; } ;;
3814 esac
3815
3816
3817 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3818   LLVM_HAS_POLLY=1
3819
3820   subdirs="$subdirs tools/polly"
3821
3822 fi
3823
3824
3825 # Make sure we can run config.sub.
3826 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3827   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3828 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3829    { (exit 1); exit 1; }; }
3830
3831 { echo "$as_me:$LINENO: checking build system type" >&5
3832 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3833 if test "${ac_cv_build+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   ac_build_alias=$build_alias
3837 test "x$ac_build_alias" = x &&
3838   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3839 test "x$ac_build_alias" = x &&
3840   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3841 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3842    { (exit 1); exit 1; }; }
3843 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3844   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3845 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3846    { (exit 1); exit 1; }; }
3847
3848 fi
3849 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3850 echo "${ECHO_T}$ac_cv_build" >&6; }
3851 case $ac_cv_build in
3852 *-*-*) ;;
3853 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3854 echo "$as_me: error: invalid value of canonical build" >&2;}
3855    { (exit 1); exit 1; }; };;
3856 esac
3857 build=$ac_cv_build
3858 ac_save_IFS=$IFS; IFS='-'
3859 set x $ac_cv_build
3860 shift
3861 build_cpu=$1
3862 build_vendor=$2
3863 shift; shift
3864 # Remember, the first character of IFS is used to create $*,
3865 # except with old shells:
3866 build_os=$*
3867 IFS=$ac_save_IFS
3868 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3869
3870
3871 { echo "$as_me:$LINENO: checking host system type" >&5
3872 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3873 if test "${ac_cv_host+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   if test "x$host_alias" = x; then
3877   ac_cv_host=$ac_cv_build
3878 else
3879   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3880     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3881 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3882    { (exit 1); exit 1; }; }
3883 fi
3884
3885 fi
3886 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3887 echo "${ECHO_T}$ac_cv_host" >&6; }
3888 case $ac_cv_host in
3889 *-*-*) ;;
3890 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3891 echo "$as_me: error: invalid value of canonical host" >&2;}
3892    { (exit 1); exit 1; }; };;
3893 esac
3894 host=$ac_cv_host
3895 ac_save_IFS=$IFS; IFS='-'
3896 set x $ac_cv_host
3897 shift
3898 host_cpu=$1
3899 host_vendor=$2
3900 shift; shift
3901 # Remember, the first character of IFS is used to create $*,
3902 # except with old shells:
3903 host_os=$*
3904 IFS=$ac_save_IFS
3905 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3906
3907
3908 { echo "$as_me:$LINENO: checking target system type" >&5
3909 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3910 if test "${ac_cv_target+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   if test "x$target_alias" = x; then
3914   ac_cv_target=$ac_cv_host
3915 else
3916   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3917     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3918 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3919    { (exit 1); exit 1; }; }
3920 fi
3921
3922 fi
3923 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3924 echo "${ECHO_T}$ac_cv_target" >&6; }
3925 case $ac_cv_target in
3926 *-*-*) ;;
3927 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3928 echo "$as_me: error: invalid value of canonical target" >&2;}
3929    { (exit 1); exit 1; }; };;
3930 esac
3931 target=$ac_cv_target
3932 ac_save_IFS=$IFS; IFS='-'
3933 set x $ac_cv_target
3934 shift
3935 target_cpu=$1
3936 target_vendor=$2
3937 shift; shift
3938 # Remember, the first character of IFS is used to create $*,
3939 # except with old shells:
3940 target_os=$*
3941 IFS=$ac_save_IFS
3942 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3943
3944
3945 # The aliases save the names the user supplied, while $host etc.
3946 # will get canonicalized.
3947 test -n "$target_alias" &&
3948   test "$program_prefix$program_suffix$program_transform_name" = \
3949     NONENONEs,x,x, &&
3950   program_prefix=${target_alias}-
3951
3952 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3953 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3954 if test "${llvm_cv_os_type+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   case $host in
3958   *-*-aix*)
3959     llvm_cv_link_all_option="-Wl,--whole-archive"
3960     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3961     llvm_cv_os_type="AIX"
3962     llvm_cv_platform_type="Unix" ;;
3963   *-*-irix*)
3964     llvm_cv_link_all_option="-Wl,--whole-archive"
3965     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3966     llvm_cv_os_type="IRIX"
3967     llvm_cv_platform_type="Unix" ;;
3968   *-*-cygwin*)
3969     llvm_cv_link_all_option="-Wl,--whole-archive"
3970     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3971     llvm_cv_os_type="Cygwin"
3972     llvm_cv_platform_type="Unix" ;;
3973   *-*-darwin*)
3974     llvm_cv_link_all_option="-Wl,-all_load"
3975     llvm_cv_no_link_all_option="-Wl,-noall_load"
3976     llvm_cv_os_type="Darwin"
3977     llvm_cv_platform_type="Unix" ;;
3978   *-*-minix*)
3979     llvm_cv_link_all_option="-Wl,-all_load"
3980     llvm_cv_no_link_all_option="-Wl,-noall_load"
3981     llvm_cv_os_type="Minix"
3982     llvm_cv_platform_type="Unix" ;;
3983   *-*-freebsd*)
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="FreeBSD"
3987     llvm_cv_platform_type="Unix" ;;
3988   *-*-kfreebsd-gnu)
3989     llvm_cv_link_all_option="-Wl,--whole-archive"
3990     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3991     llvm_cv_os_type="GNU/kFreeBSD"
3992     llvm_cv_platform_type="Unix" ;;
3993   *-*-openbsd*)
3994     llvm_cv_link_all_option="-Wl,--whole-archive"
3995     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3996     llvm_cv_os_type="OpenBSD"
3997     llvm_cv_platform_type="Unix" ;;
3998   *-*-netbsd*)
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="NetBSD"
4002     llvm_cv_platform_type="Unix" ;;
4003   *-*-dragonfly*)
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="DragonFly"
4007     llvm_cv_platform_type="Unix" ;;
4008   *-*-bitrig*)
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="Bitrig"
4012     llvm_cv_platform_type="Unix" ;;
4013   *-*-hpux*)
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="HP-UX"
4017     llvm_cv_platform_type="Unix" ;;
4018   *-*-interix*)
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="Interix"
4022     llvm_cv_platform_type="Unix" ;;
4023   *-*-linux*)
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="Linux"
4027     llvm_cv_platform_type="Unix" ;;
4028   *-*-gnu*)
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="GNU"
4032     llvm_cv_platform_type="Unix" ;;
4033   *-*-solaris*)
4034     llvm_cv_link_all_option="-Wl,-z,allextract"
4035     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4036     llvm_cv_os_type="SunOS"
4037     llvm_cv_platform_type="Unix" ;;
4038   *-*-win32*)
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="Win32"
4042     llvm_cv_platform_type="Win32" ;;
4043   *-*-mingw*)
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="MingW"
4047     llvm_cv_platform_type="Win32" ;;
4048   *-*-haiku*)
4049     llvm_cv_link_all_option="-Wl,--whole-archive"
4050     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4051     llvm_cv_os_type="Haiku"
4052     llvm_cv_platform_type="Unix" ;;
4053   *-unknown-eabi*)
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="Freestanding"
4057     llvm_cv_platform_type="Unix" ;;
4058   *-unknown-elf*)
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="Freestanding"
4062     llvm_cv_platform_type="Unix" ;;
4063   *)
4064     llvm_cv_link_all_option=""
4065     llvm_cv_no_link_all_option=""
4066     llvm_cv_os_type="Unknown"
4067     llvm_cv_platform_type="Unknown" ;;
4068 esac
4069 fi
4070 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4071 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4072
4073 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4074 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4075 if test "${llvm_cv_target_os_type+set}" = set; then
4076   echo $ECHO_N "(cached) $ECHO_C" >&6
4077 else
4078   case $target in
4079   *-*-aix*)
4080     llvm_cv_target_os_type="AIX" ;;
4081   *-*-irix*)
4082     llvm_cv_target_os_type="IRIX" ;;
4083   *-*-cygwin*)
4084     llvm_cv_target_os_type="Cygwin" ;;
4085   *-*-darwin*)
4086     llvm_cv_target_os_type="Darwin" ;;
4087   *-*-minix*)
4088     llvm_cv_target_os_type="Minix" ;;
4089   *-*-freebsd*)
4090     llvm_cv_target_os_type="FreeBSD" ;;
4091   *-*-kfreebsd-gnu)
4092     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4093   *-*-openbsd*)
4094     llvm_cv_target_os_type="OpenBSD" ;;
4095   *-*-netbsd*)
4096     llvm_cv_target_os_type="NetBSD" ;;
4097   *-*-dragonfly*)
4098     llvm_cv_target_os_type="DragonFly" ;;
4099   *-*-bitrig*)
4100     llvm_cv_target_os_type="Bitrig" ;;
4101   *-*-hpux*)
4102     llvm_cv_target_os_type="HP-UX" ;;
4103   *-*-interix*)
4104     llvm_cv_target_os_type="Interix" ;;
4105   *-*-linux*)
4106     llvm_cv_target_os_type="Linux" ;;
4107   *-*-gnu*)
4108     llvm_cv_target_os_type="GNU" ;;
4109   *-*-solaris*)
4110     llvm_cv_target_os_type="SunOS" ;;
4111   *-*-win32*)
4112     llvm_cv_target_os_type="Win32" ;;
4113   *-*-mingw*)
4114     llvm_cv_target_os_type="MingW" ;;
4115   *-*-haiku*)
4116     llvm_cv_target_os_type="Haiku" ;;
4117   *-*-rtems*)
4118     llvm_cv_target_os_type="RTEMS" ;;
4119   *-*-nacl*)
4120     llvm_cv_target_os_type="NativeClient" ;;
4121   *-unknown-eabi*)
4122     llvm_cv_target_os_type="Freestanding" ;;
4123   *-*-ps4)
4124     llvm_cv_target_os_type="PS4" ;;
4125   *)
4126     llvm_cv_target_os_type="Unknown" ;;
4127 esac
4128 fi
4129 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4130 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4131
4132 if test "$llvm_cv_os_type" = "Unknown" ; then
4133   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4134 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4135    { (exit 1); exit 1; }; }
4136 fi
4137
4138 OS=$llvm_cv_os_type
4139
4140 HOST_OS=$llvm_cv_os_type
4141
4142 TARGET_OS=$llvm_cv_target_os_type
4143
4144
4145 LINKALL=$llvm_cv_link_all_option
4146
4147 NOLINKALL=$llvm_cv_no_link_all_option
4148
4149
4150 case $llvm_cv_platform_type in
4151   Unix)
4152
4153 cat >>confdefs.h <<\_ACEOF
4154 #define LLVM_ON_UNIX 1
4155 _ACEOF
4156
4157     LLVM_ON_UNIX=1
4158
4159     LLVM_ON_WIN32=0
4160
4161     ;;
4162   Win32)
4163
4164 cat >>confdefs.h <<\_ACEOF
4165 #define LLVM_ON_WIN32 1
4166 _ACEOF
4167
4168     LLVM_ON_UNIX=0
4169
4170     LLVM_ON_WIN32=1
4171
4172     ;;
4173 esac
4174
4175 { echo "$as_me:$LINENO: checking target architecture" >&5
4176 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4177 if test "${llvm_cv_target_arch+set}" = set; then
4178   echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180   case $target in
4181   i?86-*)                 llvm_cv_target_arch="x86" ;;
4182   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4183   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4184   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4185   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4186   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4187   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4188   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4189   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4190   xcore-*)                llvm_cv_target_arch="XCore" ;;
4191   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4192   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4193   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4194   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4195   wasm*-*)                llvm_cv_target_arch="WebAssembly" ;;
4196   *)                      llvm_cv_target_arch="Unknown" ;;
4197 esac
4198 fi
4199 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4200 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4201
4202 if test "$llvm_cv_target_arch" = "Unknown" ; then
4203   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4204 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4205 fi
4206
4207 case "$llvm_cv_target_arch" in
4208     x86)     LLVM_NATIVE_ARCH="X86" ;;
4209     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4210     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4211 esac
4212
4213 ARCH=$llvm_cv_target_arch
4214
4215 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4216
4217
4218 case $host in
4219   i?86-*)                 host_arch="x86" ;;
4220   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4221   sparc*-*)               host_arch="Sparc" ;;
4222   powerpc*-*)             host_arch="PowerPC" ;;
4223   arm64*-*)               host_arch="AArch64" ;;
4224   arm*-*)                 host_arch="ARM" ;;
4225   aarch64*-*)             host_arch="AArch64" ;;
4226   mips-* | mips64-*)      host_arch="Mips" ;;
4227   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4228   xcore-*)                host_arch="XCore" ;;
4229   msp430-*)               host_arch="MSP430" ;;
4230   hexagon-*)              host_arch="Hexagon" ;;
4231   s390x-*)                host_arch="SystemZ" ;;
4232   wasm*-*)                host_arch="WebAssembly" ;;
4233   *)                      host_arch="Unknown" ;;
4234 esac
4235
4236 if test "$host_arch" = "Unknown" ; then
4237   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4238 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4239 fi
4240
4241 HOST_ARCH=$host_arch
4242
4243
4244 if test "$cross_compiling" = yes; then
4245   LLVM_CROSS_COMPILING=1
4246
4247
4248 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4249 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4250 if test "${ac_cv_build_exeext+set}" = set; then
4251   echo $ECHO_N "(cached) $ECHO_C" >&6
4252 else
4253   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4254   ac_cv_build_exeext=.exe
4255 else
4256   ac_build_prefix=${build_alias}-
4257
4258   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4259 set dummy ${ac_build_prefix}gcc; ac_word=$2
4260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4262 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   if test -n "$BUILD_CC"; then
4266   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273   for ac_exec_ext in '' $ac_executable_extensions; do
4274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4275     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277     break 2
4278   fi
4279 done
4280 done
4281 IFS=$as_save_IFS
4282
4283 fi
4284 fi
4285 BUILD_CC=$ac_cv_prog_BUILD_CC
4286 if test -n "$BUILD_CC"; then
4287   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4288 echo "${ECHO_T}$BUILD_CC" >&6; }
4289 else
4290   { echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6; }
4292 fi
4293
4294
4295   if test -z "$BUILD_CC"; then
4296      # Extract the first word of "gcc", so it can be a program name with args.
4297 set dummy gcc; ac_word=$2
4298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4300 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303   if test -n "$BUILD_CC"; then
4304   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4305 else
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH
4308 do
4309   IFS=$as_save_IFS
4310   test -z "$as_dir" && as_dir=.
4311   for ac_exec_ext in '' $ac_executable_extensions; do
4312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4313     ac_cv_prog_BUILD_CC="gcc"
4314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4315     break 2
4316   fi
4317 done
4318 done
4319 IFS=$as_save_IFS
4320
4321 fi
4322 fi
4323 BUILD_CC=$ac_cv_prog_BUILD_CC
4324 if test -n "$BUILD_CC"; then
4325   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4326 echo "${ECHO_T}$BUILD_CC" >&6; }
4327 else
4328   { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4330 fi
4331
4332
4333      if test -z "$BUILD_CC"; then
4334        # Extract the first word of "cc", so it can be a program name with args.
4335 set dummy cc; ac_word=$2
4336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4338 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4339   echo $ECHO_N "(cached) $ECHO_C" >&6
4340 else
4341   if test -n "$BUILD_CC"; then
4342   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4343 else
4344   ac_prog_rejected=no
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348   IFS=$as_save_IFS
4349   test -z "$as_dir" && as_dir=.
4350   for ac_exec_ext in '' $ac_executable_extensions; do
4351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4352     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4353        ac_prog_rejected=yes
4354        continue
4355      fi
4356     ac_cv_prog_BUILD_CC="cc"
4357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4358     break 2
4359   fi
4360 done
4361 done
4362 IFS=$as_save_IFS
4363
4364 if test $ac_prog_rejected = yes; then
4365   # We found a bogon in the path, so make sure we never use it.
4366   set dummy $ac_cv_prog_BUILD_CC
4367   shift
4368   if test $# != 0; then
4369     # We chose a different compiler from the bogus one.
4370     # However, it has the same basename, so the bogon will be chosen
4371     # first if we set BUILD_CC to just the basename; use the full file name.
4372     shift
4373     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4374   fi
4375 fi
4376 fi
4377 fi
4378 BUILD_CC=$ac_cv_prog_BUILD_CC
4379 if test -n "$BUILD_CC"; then
4380   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4381 echo "${ECHO_T}$BUILD_CC" >&6; }
4382 else
4383   { echo "$as_me:$LINENO: result: no" >&5
4384 echo "${ECHO_T}no" >&6; }
4385 fi
4386
4387
4388      fi
4389   fi
4390   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4391 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4392    { (exit 1); exit 1; }; }
4393   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4394   rm -f conftest*
4395   echo 'int main () { return 0; }' > conftest.$ac_ext
4396   ac_cv_build_exeext=
4397   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4398   (eval $ac_build_link) 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }; then
4402     for file in conftest.*; do
4403       case $file in
4404       *.c | *.o | *.obj | *.dSYM) ;;
4405       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4406       esac
4407     done
4408   else
4409     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4410 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4411    { (exit 1); exit 1; }; }
4412   fi
4413   rm -f conftest*
4414   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4415 fi
4416 fi
4417
4418 BUILD_EXEEXT=""
4419 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4420 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4421 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4422 ac_build_exeext=$BUILD_EXEEXT
4423
4424   ac_build_prefix=${build_alias}-
4425   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4426 set dummy ${ac_build_prefix}g++; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   if test -n "$BUILD_CXX"; then
4433   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438   IFS=$as_save_IFS
4439   test -z "$as_dir" && as_dir=.
4440   for ac_exec_ext in '' $ac_executable_extensions; do
4441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444     break 2
4445   fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4453 if test -n "$BUILD_CXX"; then
4454   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4455 echo "${ECHO_T}$BUILD_CXX" >&6; }
4456 else
4457   { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4459 fi
4460
4461
4462   if test -z "$BUILD_CXX"; then
4463      # Extract the first word of "g++", so it can be a program name with args.
4464 set dummy g++; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   if test -n "$BUILD_CXX"; then
4471   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476   IFS=$as_save_IFS
4477   test -z "$as_dir" && as_dir=.
4478   for ac_exec_ext in '' $ac_executable_extensions; do
4479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4480     ac_cv_prog_BUILD_CXX="g++"
4481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482     break 2
4483   fi
4484 done
4485 done
4486 IFS=$as_save_IFS
4487
4488 fi
4489 fi
4490 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4491 if test -n "$BUILD_CXX"; then
4492   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4493 echo "${ECHO_T}$BUILD_CXX" >&6; }
4494 else
4495   { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4497 fi
4498
4499
4500      if test -z "$BUILD_CXX"; then
4501        # Extract the first word of "c++", so it can be a program name with args.
4502 set dummy c++; ac_word=$2
4503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4506   echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508   if test -n "$BUILD_CXX"; then
4509   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4510 else
4511   ac_prog_rejected=no
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515   IFS=$as_save_IFS
4516   test -z "$as_dir" && as_dir=.
4517   for ac_exec_ext in '' $ac_executable_extensions; do
4518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4519     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4520        ac_prog_rejected=yes
4521        continue
4522      fi
4523     ac_cv_prog_BUILD_CXX="c++"
4524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525     break 2
4526   fi
4527 done
4528 done
4529 IFS=$as_save_IFS
4530
4531 if test $ac_prog_rejected = yes; then
4532   # We found a bogon in the path, so make sure we never use it.
4533   set dummy $ac_cv_prog_BUILD_CXX
4534   shift
4535   if test $# != 0; then
4536     # We chose a different compiler from the bogus one.
4537     # However, it has the same basename, so the bogon will be chosen
4538     # first if we set BUILD_CXX to just the basename; use the full file name.
4539     shift
4540     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4541   fi
4542 fi
4543 fi
4544 fi
4545 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4546 if test -n "$BUILD_CXX"; then
4547   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4548 echo "${ECHO_T}$BUILD_CXX" >&6; }
4549 else
4550   { echo "$as_me:$LINENO: result: no" >&5
4551 echo "${ECHO_T}no" >&6; }
4552 fi
4553
4554
4555      fi
4556   fi
4557 else
4558   LLVM_CROSS_COMPILING=0
4559
4560 fi
4561
4562 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4563   cvsbuild="yes"
4564   optimize="no"
4565   CVSBUILD=CVSBUILD=1
4566
4567 else
4568   cvsbuild="no"
4569   optimize="yes"
4570 fi
4571
4572
4573 # Check whether --enable-libcpp was given.
4574 if test "${enable_libcpp+set}" = set; then
4575   enableval=$enable_libcpp;
4576 else
4577   enableval=default
4578 fi
4579
4580 case "$enableval" in
4581   yes) ENABLE_LIBCPP=1
4582  ;;
4583   no)  ENABLE_LIBCPP=0
4584  ;;
4585   default) ENABLE_LIBCPP=0
4586 ;;
4587   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4588 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4589    { (exit 1); exit 1; }; } ;;
4590 esac
4591
4592 # Check whether --enable-compiler-version-checks was given.
4593 if test "${enable_compiler_version_checks+set}" = set; then
4594   enableval=$enable_compiler_version_checks;
4595 else
4596   enableval=default
4597 fi
4598
4599 case "$enableval" in
4600   no)
4601     ;;
4602   yes|default)
4603     ac_ext=cpp
4604 ac_cpp='$CXXCPP $CPPFLAGS'
4605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4608
4609     case "$llvm_cv_cxx_compiler" in
4610     clang)
4611       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4612 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4613       cat >conftest.$ac_ext <<_ACEOF
4614 /* confdefs.h.  */
4615 _ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h.  */
4619
4620 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4621 #error This version of Clang is too old to build LLVM
4622 #endif
4623
4624 _ACEOF
4625 rm -f conftest.$ac_objext
4626 if { (ac_try="$ac_compile"
4627 case "(($ac_try" in
4628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629   *) ac_try_echo=$ac_try;;
4630 esac
4631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4632   (eval "$ac_compile") 2>conftest.er1
4633   ac_status=$?
4634   grep -v '^ *+' conftest.er1 >conftest.err
4635   rm -f conftest.er1
4636   cat conftest.err >&5
4637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638   (exit $ac_status); } &&
4639          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4646   ac_status=$?
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); }; } &&
4649          { ac_try='test -s conftest.$ac_objext'
4650   { (case "(($ac_try" in
4651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652   *) ac_try_echo=$ac_try;;
4653 esac
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655   (eval "$ac_try") 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); }; }; then
4659   { echo "$as_me:$LINENO: result: yes" >&5
4660 echo "${ECHO_T}yes" >&6; }
4661 else
4662   echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665         { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4667            { { echo "$as_me:$LINENO: error:
4668 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4669 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4670 bypass these sanity checks." >&5
4671 echo "$as_me: error:
4672 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4673 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4674 bypass these sanity checks." >&2;}
4675    { (exit 1); exit 1; }; }
4676 fi
4677
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679
4680                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4681         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4682 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4683         llvm_cv_old_cxxflags="$CXXFLAGS"
4684         CXXFLAGS="$CXXFLAGS -std=c++0x"
4685         cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h.  */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h.  */
4691
4692 #include <atomic>
4693 std::atomic<float> x(0.0f);
4694 int main() { return (float)x; }
4695
4696 _ACEOF
4697 rm -f conftest.$ac_objext conftest$ac_exeext
4698 if { (ac_try="$ac_link"
4699 case "(($ac_try" in
4700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701   *) ac_try_echo=$ac_try;;
4702 esac
4703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4704   (eval "$ac_link") 2>conftest.er1
4705   ac_status=$?
4706   grep -v '^ *+' conftest.er1 >conftest.err
4707   rm -f conftest.er1
4708   cat conftest.err >&5
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); } &&
4711          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; } &&
4721          { ac_try='test -s conftest$ac_exeext'
4722   { (case "(($ac_try" in
4723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724   *) ac_try_echo=$ac_try;;
4725 esac
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727   (eval "$ac_try") 2>&5
4728   ac_status=$?
4729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730   (exit $ac_status); }; }; then
4731   { echo "$as_me:$LINENO: result: yes" >&5
4732 echo "${ECHO_T}yes" >&6; }
4733 else
4734   echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737         { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739              { { echo "$as_me:$LINENO: error:
4740 We detected a missing feature in the standard C++ library that was known to be
4741 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4742 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4743 than 4.7. You will need to update your system and ensure Clang uses the newer
4744 standard library.
4745
4746 If this error is incorrect or you need to force things to work, you may pass
4747 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4748 echo "$as_me: error:
4749 We detected a missing feature in the standard C++ library that was known to be
4750 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4751 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4752 than 4.7. You will need to update your system and ensure Clang uses the newer
4753 standard library.
4754
4755 If this error is incorrect or you need to force things to work, you may pass
4756 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4757    { (exit 1); exit 1; }; }
4758 fi
4759
4760 rm -f core conftest.err conftest.$ac_objext \
4761       conftest$ac_exeext conftest.$ac_ext
4762         CXXFLAGS="$llvm_cv_old_cxxflags"
4763       fi
4764       ;;
4765     gcc)
4766       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4767 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4768       cat >conftest.$ac_ext <<_ACEOF
4769 /* confdefs.h.  */
4770 _ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h.  */
4774
4775 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4776 #error This version of GCC is too old to build LLVM
4777 #endif
4778
4779 _ACEOF
4780 rm -f conftest.$ac_objext
4781 if { (ac_try="$ac_compile"
4782 case "(($ac_try" in
4783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784   *) ac_try_echo=$ac_try;;
4785 esac
4786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4787   (eval "$ac_compile") 2>conftest.er1
4788   ac_status=$?
4789   grep -v '^ *+' conftest.er1 >conftest.err
4790   rm -f conftest.er1
4791   cat conftest.err >&5
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); } &&
4794          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
4801   ac_status=$?
4802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803   (exit $ac_status); }; } &&
4804          { ac_try='test -s conftest.$ac_objext'
4805   { (case "(($ac_try" in
4806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807   *) ac_try_echo=$ac_try;;
4808 esac
4809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4810   (eval "$ac_try") 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); }; }; then
4814   { echo "$as_me:$LINENO: result: yes" >&5
4815 echo "${ECHO_T}yes" >&6; }
4816 else
4817   echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4819
4820         { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4822            { { echo "$as_me:$LINENO: error:
4823 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4824 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4825 bypass these sanity checks." >&5
4826 echo "$as_me: error:
4827 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4828 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4829 bypass these sanity checks." >&2;}
4830    { (exit 1); exit 1; }; }
4831 fi
4832
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834       ;;
4835     unknown)
4836       ;;
4837     esac
4838     ac_ext=c
4839 ac_cpp='$CPP $CPPFLAGS'
4840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843
4844     ;;
4845   *)
4846     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4847 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4848    { (exit 1); exit 1; }; }
4849     ;;
4850 esac
4851
4852 # Check whether --enable-cxx1y was given.
4853 if test "${enable_cxx1y+set}" = set; then
4854   enableval=$enable_cxx1y;
4855 else
4856   enableval=default
4857 fi
4858
4859 case "$enableval" in
4860   yes) ENABLE_CXX1Y=1
4861  ;;
4862   no)  ENABLE_CXX1Y=0
4863  ;;
4864   default) ENABLE_CXX1Y=0
4865 ;;
4866   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4867 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4868    { (exit 1); exit 1; }; } ;;
4869 esac
4870
4871 # Check whether --enable-split-dwarf was given.
4872 if test "${enable_split_dwarf+set}" = set; then
4873   enableval=$enable_split_dwarf;
4874 else
4875   enableval=default
4876 fi
4877
4878 case "$enableval" in
4879   yes) ENABLE_SPLIT_DWARF=1
4880  ;;
4881   no)  ENABLE_SPLIT_DWARF=0
4882  ;;
4883   default) ENABLE_SPLIT_DWARF=0
4884 ;;
4885   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4886 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4887    { (exit 1); exit 1; }; } ;;
4888 esac
4889
4890 clang_arcmt="yes"
4891 # Check whether --enable-clang-arcmt was given.
4892 if test "${enable_clang_arcmt+set}" = set; then
4893   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4894 else
4895   enableval="yes"
4896 fi
4897
4898 case "$enableval" in
4899   yes) ENABLE_CLANG_ARCMT=1
4900  ;;
4901   no)  ENABLE_CLANG_ARCMT=0
4902  ;;
4903   default) ENABLE_CLANG_ARCMT=1
4904 ;;
4905   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4906 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4907    { (exit 1); exit 1; }; } ;;
4908 esac
4909
4910 clang_plugin_support="yes"
4911 # Check whether --enable-clang-plugin-support was given.
4912 if test "${enable_clang_plugin_support+set}" = set; then
4913   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4914 else
4915   enableval="yes"
4916 fi
4917
4918 case "$enableval" in
4919   yes) CLANG_PLUGIN_SUPPORT=1
4920  ;;
4921   no)  CLANG_PLUGIN_SUPPORT=0
4922  ;;
4923   default) CLANG_PLUGIN_SUPPORT=1
4924 ;;
4925   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4926 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4927    { (exit 1); exit 1; }; } ;;
4928 esac
4929
4930 clang_static_analyzer="yes"
4931 # Check whether --enable-clang-static-analyzer was given.
4932 if test "${enable_clang_static_analyzer+set}" = set; then
4933   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4934 else
4935   enableval="yes"
4936 fi
4937
4938 case "$enableval" in
4939   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4940  ;;
4941   no)
4942     if test ${clang_arcmt} != "no" ; then
4943       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4944 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4945    { (exit 1); exit 1; }; }
4946     fi
4947     ENABLE_CLANG_STATIC_ANALYZER=0
4948
4949     ;;
4950   default) ENABLE_CLANG_STATIC_ANALYZER=1
4951 ;;
4952   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4953 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4954    { (exit 1); exit 1; }; } ;;
4955 esac
4956
4957 # Check whether --enable-optimized was given.
4958 if test "${enable_optimized+set}" = set; then
4959   enableval=$enable_optimized;
4960 else
4961   enableval=$optimize
4962 fi
4963
4964 if test ${enableval} = "no" ; then
4965   ENABLE_OPTIMIZED=
4966
4967 else
4968   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4969
4970 fi
4971
4972 # Check whether --enable-profiling was given.
4973 if test "${enable_profiling+set}" = set; then
4974   enableval=$enable_profiling;
4975 else
4976   enableval="no"
4977 fi
4978
4979 if test ${enableval} = "no" ; then
4980   ENABLE_PROFILING=
4981
4982 else
4983   ENABLE_PROFILING=ENABLE_PROFILING=1
4984
4985 fi
4986
4987 # Check whether --enable-assertions was given.
4988 if test "${enable_assertions+set}" = set; then
4989   enableval=$enable_assertions;
4990 else
4991   enableval="yes"
4992 fi
4993
4994 if test ${enableval} = "yes" ; then
4995   DISABLE_ASSERTIONS=
4996
4997   assertions_enabled="yes"
4998 else
4999   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5000
5001   assertions_enabled="no"
5002 fi
5003
5004 # Check whether --enable-werror was given.
5005 if test "${enable_werror+set}" = set; then
5006   enableval=$enable_werror;
5007 else
5008   enableval="no"
5009 fi
5010
5011 case "$enableval" in
5012   yes) ENABLE_WERROR=1
5013  ;;
5014   no)  ENABLE_WERROR=0
5015  ;;
5016   default) ENABLE_WERROR=0
5017 ;;
5018   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5019 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5020    { (exit 1); exit 1; }; } ;;
5021 esac
5022
5023 # Check whether --enable-expensive-checks was given.
5024 if test "${enable_expensive_checks+set}" = set; then
5025   enableval=$enable_expensive_checks;
5026 else
5027   enableval="no"
5028 fi
5029
5030 if test ${enableval} = "yes" ; then
5031   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5032
5033   EXPENSIVE_CHECKS=yes
5034
5035 else
5036   ENABLE_EXPENSIVE_CHECKS=
5037
5038   EXPENSIVE_CHECKS=no
5039
5040 fi
5041
5042 # Check whether --enable-abi-breaking-checks was given.
5043 if test "${enable_abi_breaking_checks+set}" = set; then
5044   enableval=$enable_abi_breaking_checks;
5045 else
5046   enableval="with-asserts"
5047 fi
5048
5049 case "$enableval" in
5050   with-asserts)  if test ${assertions_enabled} = "yes" ; then
5051
5052 cat >>confdefs.h <<\_ACEOF
5053 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5054 _ACEOF
5055
5056                    ENABLE_ABI_BREAKING_CHECKS=1
5057
5058                  else
5059                    ENABLE_ABI_BREAKING_CHECKS=0
5060
5061                  fi ;;
5062   yes)
5063
5064 cat >>confdefs.h <<\_ACEOF
5065 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5066 _ACEOF
5067
5068                  ENABLE_ABI_BREAKING_CHECKS=1
5069
5070                  ;;
5071   no)
5072                  ENABLE_ABI_BREAKING_CHECKS=0
5073
5074                  ;;
5075   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&5
5076 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5077    { (exit 1); exit 1; }; }
5078 esac
5079
5080 # Check whether --enable-debug-runtime was given.
5081 if test "${enable_debug_runtime+set}" = set; then
5082   enableval=$enable_debug_runtime;
5083 else
5084   enableval=no
5085 fi
5086
5087 if test ${enableval} = "no" ; then
5088   DEBUG_RUNTIME=
5089
5090 else
5091   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5092
5093 fi
5094
5095 # Check whether --enable-debug-symbols was given.
5096 if test "${enable_debug_symbols+set}" = set; then
5097   enableval=$enable_debug_symbols;
5098 else
5099   enableval=no
5100 fi
5101
5102 if test ${enableval} = "no" ; then
5103   DEBUG_SYMBOLS=
5104
5105 else
5106   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5107
5108 fi
5109
5110 # Check whether --enable-keep-symbols was given.
5111 if test "${enable_keep_symbols+set}" = set; then
5112   enableval=$enable_keep_symbols;
5113 else
5114   enableval=no
5115 fi
5116
5117 if test ${enableval} = "no" ; then
5118   KEEP_SYMBOLS=
5119
5120 else
5121   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5122
5123 fi
5124
5125 # Check whether --enable-jit was given.
5126 if test "${enable_jit+set}" = set; then
5127   enableval=$enable_jit;
5128 else
5129   enableval=default
5130 fi
5131
5132 if test ${enableval} = "no"
5133 then
5134   JIT=
5135
5136 else
5137   case "$llvm_cv_target_arch" in
5138     x86)         TARGET_HAS_JIT=1
5139  ;;
5140     Sparc)       TARGET_HAS_JIT=0
5141  ;;
5142     PowerPC)     TARGET_HAS_JIT=1
5143  ;;
5144     x86_64)      TARGET_HAS_JIT=1
5145  ;;
5146     ARM)         TARGET_HAS_JIT=1
5147  ;;
5148     Mips)        TARGET_HAS_JIT=1
5149  ;;
5150     XCore)       TARGET_HAS_JIT=0
5151  ;;
5152     MSP430)      TARGET_HAS_JIT=0
5153  ;;
5154     Hexagon)     TARGET_HAS_JIT=0
5155  ;;
5156     NVPTX)       TARGET_HAS_JIT=0
5157  ;;
5158     SystemZ)     TARGET_HAS_JIT=1
5159  ;;
5160     WebAssembly) TARGET_HAS_JIT=0
5161  ;;
5162     *)           TARGET_HAS_JIT=0
5163  ;;
5164   esac
5165 fi
5166
5167 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5168 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5169
5170
5171 # Check whether --enable-docs was given.
5172 if test "${enable_docs+set}" = set; then
5173   enableval=$enable_docs;
5174 else
5175   enableval=default
5176 fi
5177
5178 case "$enableval" in
5179   yes) ENABLE_DOCS=1
5180  ;;
5181   no)  ENABLE_DOCS=0
5182  ;;
5183   default) ENABLE_DOCS=1
5184  ;;
5185   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5186 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5187    { (exit 1); exit 1; }; } ;;
5188 esac
5189
5190 # Check whether --enable-doxygen was given.
5191 if test "${enable_doxygen+set}" = set; then
5192   enableval=$enable_doxygen;
5193 else
5194   enableval=default
5195 fi
5196
5197 case "$enableval" in
5198   yes) ENABLE_DOXYGEN=1
5199  ;;
5200   no|default) ENABLE_DOXYGEN=0
5201  ;;
5202   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5203 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5204    { (exit 1); exit 1; }; } ;;
5205 esac
5206
5207 # Check whether --enable-doxygen-search was given.
5208 if test "${enable_doxygen_search+set}" = set; then
5209   enableval=$enable_doxygen_search;
5210 else
5211   enableval=default
5212 fi
5213
5214 ENABLE_DOXYGEN_SEARCH="$enableval"
5215
5216 case "$enableval" in
5217   yes|no|default) ;;
5218   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5219 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5220    { (exit 1); exit 1; }; } ;;
5221 esac
5222
5223 # Check whether --enable-doxygen-external-search was given.
5224 if test "${enable_doxygen_external_search+set}" = set; then
5225   enableval=$enable_doxygen_external_search;
5226 else
5227   enableval=default
5228 fi
5229
5230 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5231
5232 case "$enableval" in
5233   yes)
5234             case "$ENABLE_DOXYGEN_SEARCH" in
5235       yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5236       no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5237 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5238    { (exit 1); exit 1; }; } ;;
5239     esac
5240     ;;
5241   no|default) ;;
5242   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5243 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5244    { (exit 1); exit 1; }; } ;;
5245 esac
5246
5247
5248 # Check whether --with-doxygen-search-engine-url was given.
5249 if test "${with_doxygen_search_engine_url+set}" = set; then
5250   withval=$with_doxygen_search_engine_url;
5251 fi
5252
5253 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5254
5255
5256 # Check whether --with-doxygen-search-mappings was given.
5257 if test "${with_doxygen_search_mappings+set}" = set; then
5258   withval=$with_doxygen_search_mappings;
5259 fi
5260
5261 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5262
5263 case "$ENABLE_DOXYGEN_SEARCH" in
5264   yes)
5265     if test "$ENABLE_DOXYGEN" = "0" ; then
5266       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5267 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5268    { (exit 1); exit 1; }; }
5269     fi
5270
5271     enable_searchengine=YES
5272
5273
5274     case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5275       yes)
5276         enable_external_search=YES
5277
5278         enable_server_based_search=YES
5279
5280         searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5281
5282         extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5283
5284         ;;
5285
5286       no|default)
5287         enable_external_search=NO
5288
5289         enable_server_based_search=NO
5290
5291
5292
5293         ;;
5294     esac
5295     ;;
5296
5297   no|default)
5298     enable_searchengine=NO
5299
5300
5301     enable_server_based_search=NO
5302
5303     enable_external_search=NO
5304
5305
5306     ;;
5307
5308   *)
5309     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5310 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5311    { (exit 1); exit 1; }; }
5312     ;;
5313 esac
5314
5315 # Check whether --enable-doxygen-qt-help was given.
5316 if test "${enable_doxygen_qt_help+set}" = set; then
5317   enableval=$enable_doxygen_qt_help;
5318 else
5319   enableval=default
5320 fi
5321
5322 case "$enableval" in
5323   yes)
5324     if test "$ENABLE_DOXYGEN" = "0" ; then
5325       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5326 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5327    { (exit 1); exit 1; }; }
5328     fi
5329
5330     # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5331 set dummy qhelpgenerator; ac_word=$2
5332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5334 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5335   echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337   case $QHELPGENERATOR in
5338   [\\/]* | ?:[\\/]*)
5339   ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5340   ;;
5341   *)
5342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5344 do
5345   IFS=$as_save_IFS
5346   test -z "$as_dir" && as_dir=.
5347   for ac_exec_ext in '' $ac_executable_extensions; do
5348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5349     ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351     break 2
5352   fi
5353 done
5354 done
5355 IFS=$as_save_IFS
5356
5357   test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5358   ;;
5359 esac
5360 fi
5361 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5362 if test -n "$QHELPGENERATOR"; then
5363   { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5364 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5365 else
5366   { echo "$as_me:$LINENO: result: no" >&5
5367 echo "${ECHO_T}no" >&6; }
5368 fi
5369
5370
5371
5372         llvm_doxygen_generate_qhp=YES
5373
5374     llvm_doxygen_qch_filename=org.llvm.qch
5375
5376     llvm_doxygen_qhp_namespace=org.llvm
5377
5378     llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5379
5380     llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5381
5382     llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5383
5384
5385         clang_doxygen_generate_qhp=YES
5386
5387     clang_doxygen_qch_filename=org.llvm.clang.qch
5388
5389     clang_doxygen_qhp_namespace=org.llvm.clang
5390
5391     clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5392
5393     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5394
5395     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5396
5397     ;;
5398
5399   no|default)
5400     llvm_doxygen_generate_qhp=NO
5401
5402
5403
5404
5405
5406
5407
5408     clang_doxygen_generate_qhp=NO
5409
5410
5411
5412
5413     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5414
5415     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5416
5417     ;;
5418
5419   *)
5420     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5421 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5422    { (exit 1); exit 1; }; } ;;
5423 esac
5424
5425 # Check whether --enable-threads was given.
5426 if test "${enable_threads+set}" = set; then
5427   enableval=$enable_threads;
5428 else
5429   enableval=default
5430 fi
5431
5432 case "$enableval" in
5433   yes) LLVM_ENABLE_THREADS=1
5434  ;;
5435   no)  LLVM_ENABLE_THREADS=0
5436  ;;
5437   default) LLVM_ENABLE_THREADS=1
5438  ;;
5439   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5440 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5441    { (exit 1); exit 1; }; } ;;
5442 esac
5443
5444 cat >>confdefs.h <<_ACEOF
5445 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5446 _ACEOF
5447
5448
5449 # Check whether --enable-pthreads was given.
5450 if test "${enable_pthreads+set}" = set; then
5451   enableval=$enable_pthreads;
5452 else
5453   enableval=default
5454 fi
5455
5456 case "$enableval" in
5457   yes) ENABLE_PTHREADS=1
5458  ;;
5459   no)  ENABLE_PTHREADS=0
5460  ;;
5461   default) ENABLE_PTHREADS=1
5462  ;;
5463   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5464 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5465    { (exit 1); exit 1; }; } ;;
5466 esac
5467
5468 # Check whether --enable-zlib was given.
5469 if test "${enable_zlib+set}" = set; then
5470   enableval=$enable_zlib;
5471 else
5472   enableval=default
5473 fi
5474
5475 case "$enableval" in
5476   yes) LLVM_ENABLE_ZLIB=1
5477  ;;
5478   no)  LLVM_ENABLE_ZLIB=0
5479  ;;
5480   default) LLVM_ENABLE_ZLIB=1
5481  ;;
5482   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5483 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5484    { (exit 1); exit 1; }; } ;;
5485 esac
5486
5487 cat >>confdefs.h <<_ACEOF
5488 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5489 _ACEOF
5490
5491
5492 # Check whether --enable-pic was given.
5493 if test "${enable_pic+set}" = set; then
5494   enableval=$enable_pic;
5495 else
5496   enableval=default
5497 fi
5498
5499 case "$enableval" in
5500   yes) ENABLE_PIC=1
5501  ;;
5502   no)  ENABLE_PIC=0
5503  ;;
5504   default) ENABLE_PIC=1
5505  ;;
5506   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5507 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5508    { (exit 1); exit 1; }; } ;;
5509 esac
5510
5511 cat >>confdefs.h <<_ACEOF
5512 #define ENABLE_PIC $ENABLE_PIC
5513 _ACEOF
5514
5515
5516 # Check whether --enable-shared was given.
5517 if test "${enable_shared+set}" = set; then
5518   enableval=$enable_shared;
5519 else
5520   enableval=default
5521 fi
5522
5523 case "$enableval" in
5524   yes) ENABLE_SHARED=1
5525  ;;
5526   no)  ENABLE_SHARED=0
5527  ;;
5528   default) ENABLE_SHARED=0
5529  ;;
5530   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5531 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5532    { (exit 1); exit 1; }; } ;;
5533 esac
5534
5535 # Check whether --enable-embed-stdcxx was given.
5536 if test "${enable_embed_stdcxx+set}" = set; then
5537   enableval=$enable_embed_stdcxx;
5538 else
5539   enableval=default
5540 fi
5541
5542 case "$enableval" in
5543   yes) ENABLE_EMBED_STDCXX=1
5544  ;;
5545   no)  ENABLE_EMBED_STDCXX=0
5546  ;;
5547   default) ENABLE_EMBED_STDCXX=0
5548  ;;
5549   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5550 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5551    { (exit 1); exit 1; }; } ;;
5552 esac
5553
5554 # Check whether --enable-timestamps was given.
5555 if test "${enable_timestamps+set}" = set; then
5556   enableval=$enable_timestamps;
5557 else
5558   enableval=default
5559 fi
5560
5561 case "$enableval" in
5562   yes) ENABLE_TIMESTAMPS=1
5563  ;;
5564   no)  ENABLE_TIMESTAMPS=0
5565  ;;
5566   default) ENABLE_TIMESTAMPS=1
5567  ;;
5568   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5569 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5570    { (exit 1); exit 1; }; } ;;
5571 esac
5572
5573 cat >>confdefs.h <<_ACEOF
5574 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5575 _ACEOF
5576
5577
5578 # Check whether --enable-backtraces was given.
5579 if test "${enable_backtraces+set}" = set; then
5580   enableval=$enable_backtraces; case "$enableval" in
5581     yes) llvm_cv_enable_backtraces="yes" ;;
5582     no)  llvm_cv_enable_backtraces="no"  ;;
5583     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5584 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5585    { (exit 1); exit 1; }; } ;;
5586   esac
5587 else
5588   llvm_cv_enable_backtraces="yes"
5589 fi
5590
5591 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5592
5593 cat >>confdefs.h <<\_ACEOF
5594 #define ENABLE_BACKTRACES 1
5595 _ACEOF
5596
5597 fi
5598
5599 # Check whether --enable-crash-overrides was given.
5600 if test "${enable_crash_overrides+set}" = set; then
5601   enableval=$enable_crash_overrides; case "$enableval" in
5602     yes) llvm_cv_enable_crash_overrides="yes" ;;
5603     no)  llvm_cv_enable_crash_overrides="no"  ;;
5604     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5605 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5606    { (exit 1); exit 1; }; } ;;
5607   esac
5608 else
5609   llvm_cv_enable_crash_overrides="yes"
5610 fi
5611
5612 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5613
5614 cat >>confdefs.h <<\_ACEOF
5615 #define ENABLE_CRASH_OVERRIDES 1
5616 _ACEOF
5617
5618 fi
5619
5620 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
5621 ALL_TARGETS=$ALL_TARGETS
5622
5623
5624 TARGETS_TO_BUILD=""
5625 # Check whether --enable-targets was given.
5626 if test "${enable_targets+set}" = set; then
5627   enableval=$enable_targets;
5628 else
5629   enableval=all
5630 fi
5631
5632 if test "$enableval" = host-only ; then
5633   enableval=host
5634 fi
5635 case "$enableval" in
5636   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5637   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5638       case "$a_target" in
5639         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5640         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5641         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5642         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5643         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5644         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5645         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5646         bpf)      TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5647         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5648         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5649         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5650         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5651         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5652         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5653         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5654         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5655         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5656         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5657         amdgpu)   TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5658         r600)     TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5659         wasm)     TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5660         host) case "$llvm_cv_target_arch" in
5661             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5662             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5663             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5664             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5665             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5666             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5667             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5668             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5669             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5670             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5671             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5672             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5673             WebAssembly) TARGETS_TO_BUILD="WebAssembly $TARGETS_TO_BUILD" ;;
5674             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5675 echo "$as_me: error: Can not set target to build" >&2;}
5676    { (exit 1); exit 1; }; } ;;
5677           esac ;;
5678         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5679 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5680    { (exit 1); exit 1; }; } ;;
5681       esac
5682   done
5683   ;;
5684 esac
5685
5686 # Check whether --enable-experimental-targets was given.
5687 if test "${enable_experimental_targets+set}" = set; then
5688   enableval=$enable_experimental_targets;
5689 else
5690   enableval=disable
5691 fi
5692
5693
5694 if test ${enableval} != "disable"
5695 then
5696   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5697 fi
5698
5699 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5700
5701
5702 for a_target in $TARGETS_TO_BUILD; do
5703   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5704
5705 cat >>confdefs.h <<_ACEOF
5706 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5707 _ACEOF
5708
5709     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5710     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5711     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5712     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5713     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5714       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5715     fi
5716     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5717       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5718     fi
5719
5720 cat >>confdefs.h <<_ACEOF
5721 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5722 _ACEOF
5723
5724
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5727 _ACEOF
5728
5729
5730 cat >>confdefs.h <<_ACEOF
5731 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5732 _ACEOF
5733
5734
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5737 _ACEOF
5738
5739     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5740
5741 cat >>confdefs.h <<_ACEOF
5742 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5743 _ACEOF
5744
5745     fi
5746     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5747
5748 cat >>confdefs.h <<_ACEOF
5749 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5750 _ACEOF
5751
5752     fi
5753   fi
5754 done
5755
5756 LLVM_ENUM_TARGETS=""
5757 LLVM_ENUM_ASM_PRINTERS=""
5758 LLVM_ENUM_ASM_PARSERS=""
5759 LLVM_ENUM_DISASSEMBLERS=""
5760 for target_to_build in $TARGETS_TO_BUILD; do
5761   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5762   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5763     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5764   fi
5765   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5766     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5767   fi
5768   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5769     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5770   fi
5771 done
5772
5773
5774
5775
5776
5777
5778 # Check whether --with-optimize-option was given.
5779 if test "${with_optimize_option+set}" = set; then
5780   withval=$with_optimize_option;
5781 else
5782   withval=default
5783 fi
5784
5785 { echo "$as_me:$LINENO: checking optimization flags" >&5
5786 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5787 case "$withval" in
5788   default)
5789     case "$llvm_cv_os_type" in
5790     FreeBSD) optimize_option=-O2 ;;
5791     MingW) optimize_option=-O2 ;;
5792     *)     optimize_option=-O3 ;;
5793     esac ;;
5794   *) optimize_option="$withval" ;;
5795 esac
5796 OPTIMIZE_OPTION=$optimize_option
5797
5798 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5799 echo "${ECHO_T}$optimize_option" >&6; }
5800
5801
5802 # Check whether --with-extra-options was given.
5803 if test "${with_extra_options+set}" = set; then
5804   withval=$with_extra_options;
5805 else
5806   withval=default
5807 fi
5808
5809 case "$withval" in
5810   default) EXTRA_OPTIONS= ;;
5811   *) EXTRA_OPTIONS=$withval ;;
5812 esac
5813 EXTRA_OPTIONS=$EXTRA_OPTIONS
5814
5815
5816
5817 # Check whether --with-extra-ld-options was given.
5818 if test "${with_extra_ld_options+set}" = set; then
5819   withval=$with_extra_ld_options;
5820 else
5821   withval=default
5822 fi
5823
5824 case "$withval" in
5825   default) EXTRA_LD_OPTIONS= ;;
5826   *) EXTRA_LD_OPTIONS=$withval ;;
5827 esac
5828 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5829
5830
5831 # Check whether --enable-bindings was given.
5832 if test "${enable_bindings+set}" = set; then
5833   enableval=$enable_bindings;
5834 else
5835   enableval=default
5836 fi
5837
5838 BINDINGS_TO_BUILD=""
5839 case "$enableval" in
5840   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5841   all ) BINDINGS_TO_BUILD="ocaml" ;;
5842   none | no) BINDINGS_TO_BUILD="" ;;
5843   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5844       case "$a_binding" in
5845         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5846         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5847 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5848    { (exit 1); exit 1; }; } ;;
5849       esac
5850   done
5851   ;;
5852 esac
5853
5854
5855 # Check whether --with-ocaml-libdir was given.
5856 if test "${with_ocaml_libdir+set}" = set; then
5857   withval=$with_ocaml_libdir;
5858 else
5859   withval=auto
5860 fi
5861
5862 case "$withval" in
5863   auto) with_ocaml_libdir="$withval" ;;
5864   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5865   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5866 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5867    { (exit 1); exit 1; }; } ;;
5868 esac
5869
5870
5871 # Check whether --with-clang-srcdir was given.
5872 if test "${with_clang_srcdir+set}" = set; then
5873   withval=$with_clang_srcdir;
5874 else
5875   withval="-"
5876 fi
5877
5878 case "$withval" in
5879   -) clang_src_root="" ;;
5880   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5881   *) clang_src_root="$ac_pwd/$withval" ;;
5882 esac
5883 CLANG_SRC_ROOT=$clang_src_root
5884
5885
5886
5887 # Check whether --with-clang-resource-dir was given.
5888 if test "${with_clang_resource_dir+set}" = set; then
5889   withval=$with_clang_resource_dir;
5890 else
5891   withval=""
5892 fi
5893
5894
5895 cat >>confdefs.h <<_ACEOF
5896 #define CLANG_RESOURCE_DIR "$withval"
5897 _ACEOF
5898
5899
5900
5901 # Check whether --with-c-include-dirs was given.
5902 if test "${with_c_include_dirs+set}" = set; then
5903   withval=$with_c_include_dirs;
5904 else
5905   withval=""
5906 fi
5907
5908
5909 cat >>confdefs.h <<_ACEOF
5910 #define C_INCLUDE_DIRS "$withval"
5911 _ACEOF
5912
5913
5914 # Clang normally uses the system c++ headers and libraries. With this option,
5915 # clang will use the ones provided by a gcc installation instead. This option should
5916 # be passed the same value that was used with --prefix when configuring gcc.
5917
5918 # Check whether --with-gcc-toolchain was given.
5919 if test "${with_gcc_toolchain+set}" = set; then
5920   withval=$with_gcc_toolchain;
5921 else
5922   withval=""
5923 fi
5924
5925
5926 cat >>confdefs.h <<_ACEOF
5927 #define GCC_INSTALL_PREFIX "$withval"
5928 _ACEOF
5929
5930
5931
5932 # Check whether --with-default-sysroot was given.
5933 if test "${with_default_sysroot+set}" = set; then
5934   withval=$with_default_sysroot;
5935 else
5936   withval=""
5937 fi
5938
5939
5940 cat >>confdefs.h <<_ACEOF
5941 #define DEFAULT_SYSROOT "$withval"
5942 _ACEOF
5943
5944
5945
5946 # Check whether --with-clang-default-openmp-runtime was given.
5947 if test "${with_clang_default_openmp_runtime+set}" = set; then
5948   withval=$with_clang_default_openmp_runtime;
5949 else
5950   withval="libgomp"
5951 fi
5952
5953
5954 cat >>confdefs.h <<_ACEOF
5955 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5956 _ACEOF
5957
5958
5959
5960 # Check whether --with-binutils-include was given.
5961 if test "${with_binutils_include+set}" = set; then
5962   withval=$with_binutils_include;
5963 else
5964   withval=default
5965 fi
5966
5967 case "$withval" in
5968   default) WITH_BINUTILS_INCDIR=default ;;
5969   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5970   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5971 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5972    { (exit 1); exit 1; }; } ;;
5973 esac
5974 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5975   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5976
5977   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5978      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5979      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5980 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5981    { (exit 1); exit 1; }; };
5982   fi
5983 fi
5984
5985
5986 # Check whether --with-bug-report-url was given.
5987 if test "${with_bug_report_url+set}" = set; then
5988   withval=$with_bug_report_url;
5989 else
5990   withval="http://llvm.org/bugs/"
5991 fi
5992
5993
5994 cat >>confdefs.h <<_ACEOF
5995 #define BUG_REPORT_URL "$withval"
5996 _ACEOF
5997
5998
5999 # Check whether --enable-terminfo was given.
6000 if test "${enable_terminfo+set}" = set; then
6001   enableval=$enable_terminfo; case "$enableval" in
6002     yes) llvm_cv_enable_terminfo="yes" ;;
6003     no)  llvm_cv_enable_terminfo="no"  ;;
6004     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6005 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6006    { (exit 1); exit 1; }; } ;;
6007   esac
6008 else
6009   llvm_cv_enable_terminfo="yes"
6010 fi
6011
6012 case "$llvm_cv_enable_terminfo" in
6013   yes) ENABLE_TERMINFO=1
6014  ;;
6015   no)  ENABLE_TERMINFO=0
6016  ;;
6017 esac
6018
6019 # Check whether --enable-libedit was given.
6020 if test "${enable_libedit+set}" = set; then
6021   enableval=$enable_libedit; case "$enableval" in
6022     yes) llvm_cv_enable_libedit="yes" ;;
6023     no)  llvm_cv_enable_libedit="no"  ;;
6024     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6025 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6026    { (exit 1); exit 1; }; } ;;
6027   esac
6028 else
6029   llvm_cv_enable_libedit="yes"
6030 fi
6031
6032
6033 # Check whether --enable-libffi was given.
6034 if test "${enable_libffi+set}" = set; then
6035   enableval=$enable_libffi; case "$enableval" in
6036     yes) llvm_cv_enable_libffi="yes" ;;
6037     no)  llvm_cv_enable_libffi="no"  ;;
6038     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6039 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6040    { (exit 1); exit 1; }; } ;;
6041   esac
6042 else
6043   llvm_cv_enable_libffi=no
6044 fi
6045
6046
6047
6048 # Check whether --with-internal-prefix was given.
6049 if test "${with_internal_prefix+set}" = set; then
6050   withval=$with_internal_prefix;
6051 else
6052   withval=""
6053 fi
6054
6055 INTERNAL_PREFIX=$withval
6056
6057
6058
6059 { echo "$as_me:$LINENO: checking for GNU make" >&5
6060 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6061 if test "${llvm_cv_gnu_make_command+set}" = set; then
6062   echo $ECHO_N "(cached) $ECHO_C" >&6
6063 else
6064   llvm_cv_gnu_make_command=''
6065  for a in "$MAKE" make gmake gnumake ; do
6066   if test -z "$a" ; then continue ; fi ;
6067   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6068   then
6069    llvm_cv_gnu_make_command=$a ;
6070    break;
6071   fi
6072  done
6073 fi
6074 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6075 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6076  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6077    ifGNUmake='' ;
6078  else
6079    ifGNUmake='#' ;
6080    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6081 echo "${ECHO_T}\"Not found\"" >&6; };
6082  fi
6083
6084
6085 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6086 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6087 LN_S=$as_ln_s
6088 if test "$LN_S" = "ln -s"; then
6089   { echo "$as_me:$LINENO: result: yes" >&5
6090 echo "${ECHO_T}yes" >&6; }
6091 else
6092   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6093 echo "${ECHO_T}no, using $LN_S" >&6; }
6094 fi
6095
6096 # Extract the first word of "nm", so it can be a program name with args.
6097 set dummy nm; ac_word=$2
6098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6100 if test "${ac_cv_path_NM+set}" = set; then
6101   echo $ECHO_N "(cached) $ECHO_C" >&6
6102 else
6103   case $NM in
6104   [\\/]* | ?:[\\/]*)
6105   ac_cv_path_NM="$NM" # Let the user override the test with a path.
6106   ;;
6107   *)
6108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111   IFS=$as_save_IFS
6112   test -z "$as_dir" && as_dir=.
6113   for ac_exec_ext in '' $ac_executable_extensions; do
6114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6115     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117     break 2
6118   fi
6119 done
6120 done
6121 IFS=$as_save_IFS
6122
6123   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6124   ;;
6125 esac
6126 fi
6127 NM=$ac_cv_path_NM
6128 if test -n "$NM"; then
6129   { echo "$as_me:$LINENO: result: $NM" >&5
6130 echo "${ECHO_T}$NM" >&6; }
6131 else
6132   { echo "$as_me:$LINENO: result: no" >&5
6133 echo "${ECHO_T}no" >&6; }
6134 fi
6135
6136
6137 # Extract the first word of "cmp", so it can be a program name with args.
6138 set dummy cmp; ac_word=$2
6139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6141 if test "${ac_cv_path_CMP+set}" = set; then
6142   echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144   case $CMP in
6145   [\\/]* | ?:[\\/]*)
6146   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6147   ;;
6148   *)
6149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150 for as_dir in $PATH
6151 do
6152   IFS=$as_save_IFS
6153   test -z "$as_dir" && as_dir=.
6154   for ac_exec_ext in '' $ac_executable_extensions; do
6155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6156     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6158     break 2
6159   fi
6160 done
6161 done
6162 IFS=$as_save_IFS
6163
6164   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6165   ;;
6166 esac
6167 fi
6168 CMP=$ac_cv_path_CMP
6169 if test -n "$CMP"; then
6170   { echo "$as_me:$LINENO: result: $CMP" >&5
6171 echo "${ECHO_T}$CMP" >&6; }
6172 else
6173   { echo "$as_me:$LINENO: result: no" >&5
6174 echo "${ECHO_T}no" >&6; }
6175 fi
6176
6177
6178 # Extract the first word of "cp", so it can be a program name with args.
6179 set dummy cp; ac_word=$2
6180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6182 if test "${ac_cv_path_CP+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185   case $CP in
6186   [\\/]* | ?:[\\/]*)
6187   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6188   ;;
6189   *)
6190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195   for ac_exec_ext in '' $ac_executable_extensions; do
6196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6197     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6198     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199     break 2
6200   fi
6201 done
6202 done
6203 IFS=$as_save_IFS
6204
6205   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6206   ;;
6207 esac
6208 fi
6209 CP=$ac_cv_path_CP
6210 if test -n "$CP"; then
6211   { echo "$as_me:$LINENO: result: $CP" >&5
6212 echo "${ECHO_T}$CP" >&6; }
6213 else
6214   { echo "$as_me:$LINENO: result: no" >&5
6215 echo "${ECHO_T}no" >&6; }
6216 fi
6217
6218
6219 # Extract the first word of "date", so it can be a program name with args.
6220 set dummy date; ac_word=$2
6221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6223 if test "${ac_cv_path_DATE+set}" = set; then
6224   echo $ECHO_N "(cached) $ECHO_C" >&6
6225 else
6226   case $DATE in
6227   [\\/]* | ?:[\\/]*)
6228   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6229   ;;
6230   *)
6231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236   for ac_exec_ext in '' $ac_executable_extensions; do
6237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6238     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240     break 2
6241   fi
6242 done
6243 done
6244 IFS=$as_save_IFS
6245
6246   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6247   ;;
6248 esac
6249 fi
6250 DATE=$ac_cv_path_DATE
6251 if test -n "$DATE"; then
6252   { echo "$as_me:$LINENO: result: $DATE" >&5
6253 echo "${ECHO_T}$DATE" >&6; }
6254 else
6255   { echo "$as_me:$LINENO: result: no" >&5
6256 echo "${ECHO_T}no" >&6; }
6257 fi
6258
6259
6260 # Extract the first word of "find", so it can be a program name with args.
6261 set dummy find; ac_word=$2
6262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6264 if test "${ac_cv_path_FIND+set}" = set; then
6265   echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267   case $FIND in
6268   [\\/]* | ?:[\\/]*)
6269   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6270   ;;
6271   *)
6272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275   IFS=$as_save_IFS
6276   test -z "$as_dir" && as_dir=.
6277   for ac_exec_ext in '' $ac_executable_extensions; do
6278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6279     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6281     break 2
6282   fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6288   ;;
6289 esac
6290 fi
6291 FIND=$ac_cv_path_FIND
6292 if test -n "$FIND"; then
6293   { echo "$as_me:$LINENO: result: $FIND" >&5
6294 echo "${ECHO_T}$FIND" >&6; }
6295 else
6296   { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6298 fi
6299
6300
6301 # Extract the first word of "grep", so it can be a program name with args.
6302 set dummy grep; ac_word=$2
6303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305 if test "${ac_cv_path_GREP+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   case $GREP in
6309   [\\/]* | ?:[\\/]*)
6310   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6311   ;;
6312   *)
6313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314 for as_dir in $PATH
6315 do
6316   IFS=$as_save_IFS
6317   test -z "$as_dir" && as_dir=.
6318   for ac_exec_ext in '' $ac_executable_extensions; do
6319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6322     break 2
6323   fi
6324 done
6325 done
6326 IFS=$as_save_IFS
6327
6328   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6329   ;;
6330 esac
6331 fi
6332 GREP=$ac_cv_path_GREP
6333 if test -n "$GREP"; then
6334   { echo "$as_me:$LINENO: result: $GREP" >&5
6335 echo "${ECHO_T}$GREP" >&6; }
6336 else
6337   { echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6; }
6339 fi
6340
6341
6342 # Extract the first word of "mkdir", so it can be a program name with args.
6343 set dummy mkdir; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_path_MKDIR+set}" = set; then
6347   echo $ECHO_N "(cached) $ECHO_C" >&6
6348 else
6349   case $MKDIR in
6350   [\\/]* | ?:[\\/]*)
6351   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6352   ;;
6353   *)
6354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359   for ac_exec_ext in '' $ac_executable_extensions; do
6360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6361     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366 done
6367 IFS=$as_save_IFS
6368
6369   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6370   ;;
6371 esac
6372 fi
6373 MKDIR=$ac_cv_path_MKDIR
6374 if test -n "$MKDIR"; then
6375   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6376 echo "${ECHO_T}$MKDIR" >&6; }
6377 else
6378   { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6380 fi
6381
6382
6383 # Extract the first word of "mv", so it can be a program name with args.
6384 set dummy mv; ac_word=$2
6385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6387 if test "${ac_cv_path_MV+set}" = set; then
6388   echo $ECHO_N "(cached) $ECHO_C" >&6
6389 else
6390   case $MV in
6391   [\\/]* | ?:[\\/]*)
6392   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6393   ;;
6394   *)
6395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6396 for as_dir in $PATH
6397 do
6398   IFS=$as_save_IFS
6399   test -z "$as_dir" && as_dir=.
6400   for ac_exec_ext in '' $ac_executable_extensions; do
6401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6402     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6404     break 2
6405   fi
6406 done
6407 done
6408 IFS=$as_save_IFS
6409
6410   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6411   ;;
6412 esac
6413 fi
6414 MV=$ac_cv_path_MV
6415 if test -n "$MV"; then
6416   { echo "$as_me:$LINENO: result: $MV" >&5
6417 echo "${ECHO_T}$MV" >&6; }
6418 else
6419   { echo "$as_me:$LINENO: result: no" >&5
6420 echo "${ECHO_T}no" >&6; }
6421 fi
6422
6423
6424 if test -n "$ac_tool_prefix"; then
6425   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6426 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6429 if test "${ac_cv_prog_RANLIB+set}" = set; then
6430   echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432   if test -n "$RANLIB"; then
6433   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440   for ac_exec_ext in '' $ac_executable_extensions; do
6441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6442     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447 done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 RANLIB=$ac_cv_prog_RANLIB
6453 if test -n "$RANLIB"; then
6454   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6455 echo "${ECHO_T}$RANLIB" >&6; }
6456 else
6457   { echo "$as_me:$LINENO: result: no" >&5
6458 echo "${ECHO_T}no" >&6; }
6459 fi
6460
6461
6462 fi
6463 if test -z "$ac_cv_prog_RANLIB"; then
6464   ac_ct_RANLIB=$RANLIB
6465   # Extract the first word of "ranlib", so it can be a program name with args.
6466 set dummy ranlib; ac_word=$2
6467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6469 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6470   echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472   if test -n "$ac_ct_RANLIB"; then
6473   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480   for ac_exec_ext in '' $ac_executable_extensions; do
6481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6482     ac_cv_prog_ac_ct_RANLIB="ranlib"
6483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487 done
6488 IFS=$as_save_IFS
6489
6490 fi
6491 fi
6492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6493 if test -n "$ac_ct_RANLIB"; then
6494   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6495 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6496 else
6497   { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6499 fi
6500
6501   if test "x$ac_ct_RANLIB" = x; then
6502     RANLIB=":"
6503   else
6504     case $cross_compiling:$ac_tool_warned in
6505 yes:)
6506 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6507 whose name does not start with the host triplet.  If you think this
6508 configuration is useful to you, please write to autoconf@gnu.org." >&5
6509 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6510 whose name does not start with the host triplet.  If you think this
6511 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6512 ac_tool_warned=yes ;;
6513 esac
6514     RANLIB=$ac_ct_RANLIB
6515   fi
6516 else
6517   RANLIB="$ac_cv_prog_RANLIB"
6518 fi
6519
6520 if test -n "$ac_tool_prefix"; then
6521   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6522 set dummy ${ac_tool_prefix}ar; ac_word=$2
6523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6525 if test "${ac_cv_prog_AR+set}" = set; then
6526   echo $ECHO_N "(cached) $ECHO_C" >&6
6527 else
6528   if test -n "$AR"; then
6529   ac_cv_prog_AR="$AR" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534   IFS=$as_save_IFS
6535   test -z "$as_dir" && as_dir=.
6536   for ac_exec_ext in '' $ac_executable_extensions; do
6537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6538     ac_cv_prog_AR="${ac_tool_prefix}ar"
6539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540     break 2
6541   fi
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546 fi
6547 fi
6548 AR=$ac_cv_prog_AR
6549 if test -n "$AR"; then
6550   { echo "$as_me:$LINENO: result: $AR" >&5
6551 echo "${ECHO_T}$AR" >&6; }
6552 else
6553   { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6555 fi
6556
6557
6558 fi
6559 if test -z "$ac_cv_prog_AR"; then
6560   ac_ct_AR=$AR
6561   # Extract the first word of "ar", so it can be a program name with args.
6562 set dummy ar; ac_word=$2
6563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6565 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 else
6568   if test -n "$ac_ct_AR"; then
6569   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574   IFS=$as_save_IFS
6575   test -z "$as_dir" && as_dir=.
6576   for ac_exec_ext in '' $ac_executable_extensions; do
6577   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6578     ac_cv_prog_ac_ct_AR="ar"
6579     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6580     break 2
6581   fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6589 if test -n "$ac_ct_AR"; then
6590   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6591 echo "${ECHO_T}$ac_ct_AR" >&6; }
6592 else
6593   { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6595 fi
6596
6597   if test "x$ac_ct_AR" = x; then
6598     AR="false"
6599   else
6600     case $cross_compiling:$ac_tool_warned in
6601 yes:)
6602 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6603 whose name does not start with the host triplet.  If you think this
6604 configuration is useful to you, please write to autoconf@gnu.org." >&5
6605 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6606 whose name does not start with the host triplet.  If you think this
6607 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6608 ac_tool_warned=yes ;;
6609 esac
6610     AR=$ac_ct_AR
6611   fi
6612 else
6613   AR="$ac_cv_prog_AR"
6614 fi
6615
6616 # Extract the first word of "rm", so it can be a program name with args.
6617 set dummy rm; ac_word=$2
6618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6620 if test "${ac_cv_path_RM+set}" = set; then
6621   echo $ECHO_N "(cached) $ECHO_C" >&6
6622 else
6623   case $RM in
6624   [\\/]* | ?:[\\/]*)
6625   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6626   ;;
6627   *)
6628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 for as_dir in $PATH
6630 do
6631   IFS=$as_save_IFS
6632   test -z "$as_dir" && as_dir=.
6633   for ac_exec_ext in '' $ac_executable_extensions; do
6634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6635     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637     break 2
6638   fi
6639 done
6640 done
6641 IFS=$as_save_IFS
6642
6643   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6644   ;;
6645 esac
6646 fi
6647 RM=$ac_cv_path_RM
6648 if test -n "$RM"; then
6649   { echo "$as_me:$LINENO: result: $RM" >&5
6650 echo "${ECHO_T}$RM" >&6; }
6651 else
6652   { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6654 fi
6655
6656
6657 # Extract the first word of "sed", so it can be a program name with args.
6658 set dummy sed; ac_word=$2
6659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6661 if test "${ac_cv_path_SED+set}" = set; then
6662   echo $ECHO_N "(cached) $ECHO_C" >&6
6663 else
6664   case $SED in
6665   [\\/]* | ?:[\\/]*)
6666   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6667   ;;
6668   *)
6669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670 for as_dir in $PATH
6671 do
6672   IFS=$as_save_IFS
6673   test -z "$as_dir" && as_dir=.
6674   for ac_exec_ext in '' $ac_executable_extensions; do
6675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6676     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6677     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6678     break 2
6679   fi
6680 done
6681 done
6682 IFS=$as_save_IFS
6683
6684   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6685   ;;
6686 esac
6687 fi
6688 SED=$ac_cv_path_SED
6689 if test -n "$SED"; then
6690   { echo "$as_me:$LINENO: result: $SED" >&5
6691 echo "${ECHO_T}$SED" >&6; }
6692 else
6693   { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6695 fi
6696
6697
6698 # Extract the first word of "tar", so it can be a program name with args.
6699 set dummy tar; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_path_TAR+set}" = set; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705   case $TAR in
6706   [\\/]* | ?:[\\/]*)
6707   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6708   ;;
6709   *)
6710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713   IFS=$as_save_IFS
6714   test -z "$as_dir" && as_dir=.
6715   for ac_exec_ext in '' $ac_executable_extensions; do
6716   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6717     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6719     break 2
6720   fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6726   ;;
6727 esac
6728 fi
6729 TAR=$ac_cv_path_TAR
6730 if test -n "$TAR"; then
6731   { echo "$as_me:$LINENO: result: $TAR" >&5
6732 echo "${ECHO_T}$TAR" >&6; }
6733 else
6734   { echo "$as_me:$LINENO: result: no" >&5
6735 echo "${ECHO_T}no" >&6; }
6736 fi
6737
6738
6739 # Extract the first word of "pwd", so it can be a program name with args.
6740 set dummy pwd; ac_word=$2
6741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6743 if test "${ac_cv_path_BINPWD+set}" = set; then
6744   echo $ECHO_N "(cached) $ECHO_C" >&6
6745 else
6746   case $BINPWD in
6747   [\\/]* | ?:[\\/]*)
6748   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6749   ;;
6750   *)
6751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754   IFS=$as_save_IFS
6755   test -z "$as_dir" && as_dir=.
6756   for ac_exec_ext in '' $ac_executable_extensions; do
6757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6758     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760     break 2
6761   fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6767   ;;
6768 esac
6769 fi
6770 BINPWD=$ac_cv_path_BINPWD
6771 if test -n "$BINPWD"; then
6772   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6773 echo "${ECHO_T}$BINPWD" >&6; }
6774 else
6775   { echo "$as_me:$LINENO: result: no" >&5
6776 echo "${ECHO_T}no" >&6; }
6777 fi
6778
6779
6780
6781 # Extract the first word of "dot", so it can be a program name with args.
6782 set dummy dot; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_DOT+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788   case $DOT in
6789   [\\/]* | ?:[\\/]*)
6790   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6791   ;;
6792   *)
6793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798   for ac_exec_ext in '' $ac_executable_extensions; do
6799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805 done
6806 IFS=$as_save_IFS
6807
6808   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6809   ;;
6810 esac
6811 fi
6812 DOT=$ac_cv_path_DOT
6813 if test -n "$DOT"; then
6814   { echo "$as_me:$LINENO: result: $DOT" >&5
6815 echo "${ECHO_T}$DOT" >&6; }
6816 else
6817   { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6819 fi
6820
6821
6822 if test "$DOT" != "echo dot" ; then
6823
6824 cat >>confdefs.h <<\_ACEOF
6825 #define HAVE_DOT 1
6826 _ACEOF
6827
6828     if test "$llvm_cv_os_type" = "MingW" ; then
6829     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6830   fi
6831
6832 cat >>confdefs.h <<_ACEOF
6833 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6834 _ACEOF
6835
6836 fi
6837
6838 # Find a good install program.  We prefer a C program (faster),
6839 # so one script is as good as another.  But avoid the broken or
6840 # incompatible versions:
6841 # SysV /etc/install, /usr/sbin/install
6842 # SunOS /usr/etc/install
6843 # IRIX /sbin/install
6844 # AIX /bin/install
6845 # AmigaOS /C/install, which installs bootblocks on floppy discs
6846 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6847 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6848 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6849 # OS/2's system install, which has a completely different semantic
6850 # ./install, which can be erroneously created by make from ./install.sh.
6851 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6852 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6853 if test -z "$INSTALL"; then
6854 if test "${ac_cv_path_install+set}" = set; then
6855   echo $ECHO_N "(cached) $ECHO_C" >&6
6856 else
6857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 for as_dir in $PATH
6859 do
6860   IFS=$as_save_IFS
6861   test -z "$as_dir" && as_dir=.
6862   # Account for people who put trailing slashes in PATH elements.
6863 case $as_dir/ in
6864   ./ | .// | /cC/* | \
6865   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6866   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6867   /usr/ucb/* ) ;;
6868   *)
6869     # OSF1 and SCO ODT 3.0 have their own names for install.
6870     # Don't use installbsd from OSF since it installs stuff as root
6871     # by default.
6872     for ac_prog in ginstall scoinst install; do
6873       for ac_exec_ext in '' $ac_executable_extensions; do
6874         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6875           if test $ac_prog = install &&
6876             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6877             # AIX install.  It has an incompatible calling convention.
6878             :
6879           elif test $ac_prog = install &&
6880             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6881             # program-specific install script used by HP pwplus--don't use.
6882             :
6883           else
6884             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6885             break 3
6886           fi
6887         fi
6888       done
6889     done
6890     ;;
6891 esac
6892 done
6893 IFS=$as_save_IFS
6894
6895
6896 fi
6897   if test "${ac_cv_path_install+set}" = set; then
6898     INSTALL=$ac_cv_path_install
6899   else
6900     # As a last resort, use the slow shell script.  Don't cache a
6901     # value for INSTALL within a source directory, because that will
6902     # break other packages using the cache if that directory is
6903     # removed, or if the value is a relative name.
6904     INSTALL=$ac_install_sh
6905   fi
6906 fi
6907 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6908 echo "${ECHO_T}$INSTALL" >&6; }
6909
6910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6911 # It thinks the first close brace ends the variable substitution.
6912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6913
6914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6915
6916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6917
6918 case "$INSTALL" in
6919  [\\/$]* | ?:[\\/]* ) ;;
6920  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6921 esac
6922
6923 # Extract the first word of "bzip2", so it can be a program name with args.
6924 set dummy bzip2; ac_word=$2
6925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927 if test "${ac_cv_path_BZIP2+set}" = set; then
6928   echo $ECHO_N "(cached) $ECHO_C" >&6
6929 else
6930   case $BZIP2 in
6931   [\\/]* | ?:[\\/]*)
6932   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6933   ;;
6934   *)
6935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940   for ac_exec_ext in '' $ac_executable_extensions; do
6941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947 done
6948 IFS=$as_save_IFS
6949
6950   ;;
6951 esac
6952 fi
6953 BZIP2=$ac_cv_path_BZIP2
6954 if test -n "$BZIP2"; then
6955   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6956 echo "${ECHO_T}$BZIP2" >&6; }
6957 else
6958   { echo "$as_me:$LINENO: result: no" >&5
6959 echo "${ECHO_T}no" >&6; }
6960 fi
6961
6962
6963 # Extract the first word of "cat", so it can be a program name with args.
6964 set dummy cat; ac_word=$2
6965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6967 if test "${ac_cv_path_CAT+set}" = set; then
6968   echo $ECHO_N "(cached) $ECHO_C" >&6
6969 else
6970   case $CAT in
6971   [\\/]* | ?:[\\/]*)
6972   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6973   ;;
6974   *)
6975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980   for ac_exec_ext in '' $ac_executable_extensions; do
6981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6982     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6984     break 2
6985   fi
6986 done
6987 done
6988 IFS=$as_save_IFS
6989
6990   ;;
6991 esac
6992 fi
6993 CAT=$ac_cv_path_CAT
6994 if test -n "$CAT"; then
6995   { echo "$as_me:$LINENO: result: $CAT" >&5
6996 echo "${ECHO_T}$CAT" >&6; }
6997 else
6998   { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7000 fi
7001
7002
7003 # Extract the first word of "doxygen", so it can be a program name with args.
7004 set dummy doxygen; ac_word=$2
7005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7007 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7008   echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010   case $DOXYGEN in
7011   [\\/]* | ?:[\\/]*)
7012   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7013   ;;
7014   *)
7015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018   IFS=$as_save_IFS
7019   test -z "$as_dir" && as_dir=.
7020   for ac_exec_ext in '' $ac_executable_extensions; do
7021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7022     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024     break 2
7025   fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030   ;;
7031 esac
7032 fi
7033 DOXYGEN=$ac_cv_path_DOXYGEN
7034 if test -n "$DOXYGEN"; then
7035   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7036 echo "${ECHO_T}$DOXYGEN" >&6; }
7037 else
7038   { echo "$as_me:$LINENO: result: no" >&5
7039 echo "${ECHO_T}no" >&6; }
7040 fi
7041
7042
7043 # Extract the first word of "groff", so it can be a program name with args.
7044 set dummy groff; ac_word=$2
7045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7047 if test "${ac_cv_path_GROFF+set}" = set; then
7048   echo $ECHO_N "(cached) $ECHO_C" >&6
7049 else
7050   case $GROFF in
7051   [\\/]* | ?:[\\/]*)
7052   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7053   ;;
7054   *)
7055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060   for ac_exec_ext in '' $ac_executable_extensions; do
7061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064     break 2
7065   fi
7066 done
7067 done
7068 IFS=$as_save_IFS
7069
7070   ;;
7071 esac
7072 fi
7073 GROFF=$ac_cv_path_GROFF
7074 if test -n "$GROFF"; then
7075   { echo "$as_me:$LINENO: result: $GROFF" >&5
7076 echo "${ECHO_T}$GROFF" >&6; }
7077 else
7078   { echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6; }
7080 fi
7081
7082
7083 # Extract the first word of "gzip", so it can be a program name with args.
7084 set dummy gzip; ac_word=$2
7085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7087 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   case $GZIPBIN in
7091   [\\/]* | ?:[\\/]*)
7092   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7093   ;;
7094   *)
7095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098   IFS=$as_save_IFS
7099   test -z "$as_dir" && as_dir=.
7100   for ac_exec_ext in '' $ac_executable_extensions; do
7101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110   ;;
7111 esac
7112 fi
7113 GZIPBIN=$ac_cv_path_GZIPBIN
7114 if test -n "$GZIPBIN"; then
7115   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7116 echo "${ECHO_T}$GZIPBIN" >&6; }
7117 else
7118   { echo "$as_me:$LINENO: result: no" >&5
7119 echo "${ECHO_T}no" >&6; }
7120 fi
7121
7122
7123 # Extract the first word of "pdfroff", so it can be a program name with args.
7124 set dummy pdfroff; ac_word=$2
7125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7127 if test "${ac_cv_path_PDFROFF+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   case $PDFROFF in
7131   [\\/]* | ?:[\\/]*)
7132   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7133   ;;
7134   *)
7135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140   for ac_exec_ext in '' $ac_executable_extensions; do
7141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7142     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147 done
7148 IFS=$as_save_IFS
7149
7150   ;;
7151 esac
7152 fi
7153 PDFROFF=$ac_cv_path_PDFROFF
7154 if test -n "$PDFROFF"; then
7155   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7156 echo "${ECHO_T}$PDFROFF" >&6; }
7157 else
7158   { echo "$as_me:$LINENO: result: no" >&5
7159 echo "${ECHO_T}no" >&6; }
7160 fi
7161
7162
7163 # Extract the first word of "zip", so it can be a program name with args.
7164 set dummy zip; ac_word=$2
7165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7167 if test "${ac_cv_path_ZIP+set}" = set; then
7168   echo $ECHO_N "(cached) $ECHO_C" >&6
7169 else
7170   case $ZIP in
7171   [\\/]* | ?:[\\/]*)
7172   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7173   ;;
7174   *)
7175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180   for ac_exec_ext in '' $ac_executable_extensions; do
7181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7182     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187 done
7188 IFS=$as_save_IFS
7189
7190   ;;
7191 esac
7192 fi
7193 ZIP=$ac_cv_path_ZIP
7194 if test -n "$ZIP"; then
7195   { echo "$as_me:$LINENO: result: $ZIP" >&5
7196 echo "${ECHO_T}$ZIP" >&6; }
7197 else
7198   { echo "$as_me:$LINENO: result: no" >&5
7199 echo "${ECHO_T}no" >&6; }
7200 fi
7201
7202
7203 # Extract the first word of "go", so it can be a program name with args.
7204 set dummy go; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_GO+set}" = set; then
7208   echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210   case $GO in
7211   [\\/]* | ?:[\\/]*)
7212   ac_cv_path_GO="$GO" # Let the user override the test with a path.
7213   ;;
7214   *)
7215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220   for ac_exec_ext in '' $ac_executable_extensions; do
7221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230   ;;
7231 esac
7232 fi
7233 GO=$ac_cv_path_GO
7234 if test -n "$GO"; then
7235   { echo "$as_me:$LINENO: result: $GO" >&5
7236 echo "${ECHO_T}$GO" >&6; }
7237 else
7238   { echo "$as_me:$LINENO: result: no" >&5
7239 echo "${ECHO_T}no" >&6; }
7240 fi
7241
7242
7243 for ac_prog in ocamlfind
7244 do
7245   # Extract the first word of "$ac_prog", so it can be a program name with args.
7246 set dummy $ac_prog; ac_word=$2
7247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7249 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7250   echo $ECHO_N "(cached) $ECHO_C" >&6
7251 else
7252   case $OCAMLFIND in
7253   [\\/]* | ?:[\\/]*)
7254   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7255   ;;
7256   *)
7257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262   for ac_exec_ext in '' $ac_executable_extensions; do
7263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7264     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269 done
7270 IFS=$as_save_IFS
7271
7272   ;;
7273 esac
7274 fi
7275 OCAMLFIND=$ac_cv_path_OCAMLFIND
7276 if test -n "$OCAMLFIND"; then
7277   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7278 echo "${ECHO_T}$OCAMLFIND" >&6; }
7279 else
7280   { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7282 fi
7283
7284
7285   test -n "$OCAMLFIND" && break
7286 done
7287
7288 for ac_prog in gas as
7289 do
7290   # Extract the first word of "$ac_prog", so it can be a program name with args.
7291 set dummy $ac_prog; ac_word=$2
7292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7294 if test "${ac_cv_path_GAS+set}" = set; then
7295   echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297   case $GAS in
7298   [\\/]* | ?:[\\/]*)
7299   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7300   ;;
7301   *)
7302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305   IFS=$as_save_IFS
7306   test -z "$as_dir" && as_dir=.
7307   for ac_exec_ext in '' $ac_executable_extensions; do
7308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7309     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7310     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311     break 2
7312   fi
7313 done
7314 done
7315 IFS=$as_save_IFS
7316
7317   ;;
7318 esac
7319 fi
7320 GAS=$ac_cv_path_GAS
7321 if test -n "$GAS"; then
7322   { echo "$as_me:$LINENO: result: $GAS" >&5
7323 echo "${ECHO_T}$GAS" >&6; }
7324 else
7325   { echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6; }
7327 fi
7328
7329
7330   test -n "$GAS" && break
7331 done
7332
7333
7334 { echo "$as_me:$LINENO: checking for linker version" >&5
7335 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7336 if test "${llvm_cv_link_version+set}" = set; then
7337   echo $ECHO_N "(cached) $ECHO_C" >&6
7338 else
7339
7340    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7341
7342    # Check for ld64.
7343    if (echo "$version_string" | grep -q "ld64"); then
7344      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7345    else
7346      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7347    fi
7348
7349 fi
7350 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7351 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7352
7353 cat >>confdefs.h <<_ACEOF
7354 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7355 _ACEOF
7356
7357
7358
7359
7360 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7361 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7362 if test "${llvm_cv_link_use_r+set}" = set; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365    ac_ext=c
7366 ac_cpp='$CPP $CPPFLAGS'
7367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7370
7371   oldcflags="$CFLAGS"
7372   CFLAGS="$CFLAGS -Wl,-R."
7373   cat >conftest.$ac_ext <<_ACEOF
7374 /* confdefs.h.  */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h.  */
7379
7380 int
7381 main ()
7382 {
7383
7384   ;
7385   return 0;
7386 }
7387 _ACEOF
7388 rm -f conftest.$ac_objext conftest$ac_exeext
7389 if { (ac_try="$ac_link"
7390 case "(($ac_try" in
7391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392   *) ac_try_echo=$ac_try;;
7393 esac
7394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395   (eval "$ac_link") 2>conftest.er1
7396   ac_status=$?
7397   grep -v '^ *+' conftest.er1 >conftest.err
7398   rm -f conftest.er1
7399   cat conftest.err >&5
7400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401   (exit $ac_status); } &&
7402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7403   { (case "(($ac_try" in
7404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405   *) ac_try_echo=$ac_try;;
7406 esac
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408   (eval "$ac_try") 2>&5
7409   ac_status=$?
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); }; } &&
7412          { ac_try='test -s conftest$ac_exeext'
7413   { (case "(($ac_try" in
7414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415   *) ac_try_echo=$ac_try;;
7416 esac
7417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418   (eval "$ac_try") 2>&5
7419   ac_status=$?
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); }; }; then
7422   llvm_cv_link_use_r=yes
7423 else
7424   echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7426
7427         llvm_cv_link_use_r=no
7428 fi
7429
7430 rm -f core conftest.err conftest.$ac_objext \
7431       conftest$ac_exeext conftest.$ac_ext
7432   CFLAGS="$oldcflags"
7433   ac_ext=c
7434 ac_cpp='$CPP $CPPFLAGS'
7435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7438
7439
7440 fi
7441 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7442 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7443 if test "$llvm_cv_link_use_r" = yes ; then
7444
7445 cat >>confdefs.h <<\_ACEOF
7446 #define HAVE_LINK_R 1
7447 _ACEOF
7448
7449   fi
7450
7451
7452 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7453 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7454 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7455   echo $ECHO_N "(cached) $ECHO_C" >&6
7456 else
7457    ac_ext=c
7458 ac_cpp='$CPP $CPPFLAGS'
7459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7462
7463   oldcflags="$CFLAGS"
7464   CFLAGS="$CFLAGS -rdynamic"
7465   cat >conftest.$ac_ext <<_ACEOF
7466 /* confdefs.h.  */
7467 _ACEOF
7468 cat confdefs.h >>conftest.$ac_ext
7469 cat >>conftest.$ac_ext <<_ACEOF
7470 /* end confdefs.h.  */
7471
7472 int
7473 main ()
7474 {
7475
7476   ;
7477   return 0;
7478 }
7479 _ACEOF
7480 rm -f conftest.$ac_objext conftest$ac_exeext
7481 if { (ac_try="$ac_link"
7482 case "(($ac_try" in
7483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484   *) ac_try_echo=$ac_try;;
7485 esac
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487   (eval "$ac_link") 2>conftest.er1
7488   ac_status=$?
7489   grep -v '^ *+' conftest.er1 >conftest.err
7490   rm -f conftest.er1
7491   cat conftest.err >&5
7492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493   (exit $ac_status); } &&
7494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7495   { (case "(($ac_try" in
7496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7497   *) ac_try_echo=$ac_try;;
7498 esac
7499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7500   (eval "$ac_try") 2>&5
7501   ac_status=$?
7502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503   (exit $ac_status); }; } &&
7504          { ac_try='test -s conftest$ac_exeext'
7505   { (case "(($ac_try" in
7506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507   *) ac_try_echo=$ac_try;;
7508 esac
7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510   (eval "$ac_try") 2>&5
7511   ac_status=$?
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); }; }; then
7514   llvm_cv_link_use_export_dynamic=yes
7515 else
7516   echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7518
7519         llvm_cv_link_use_export_dynamic=no
7520 fi
7521
7522 rm -f core conftest.err conftest.$ac_objext \
7523       conftest$ac_exeext conftest.$ac_ext
7524   CFLAGS="$oldcflags"
7525   ac_ext=c
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7530
7531
7532 fi
7533 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7534 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7535 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7536
7537 cat >>confdefs.h <<\_ACEOF
7538 #define HAVE_LINK_EXPORT_DYNAMIC 1
7539 _ACEOF
7540
7541   fi
7542
7543
7544 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7545 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7546 if test "${llvm_cv_link_use_version_script+set}" = set; then
7547   echo $ECHO_N "(cached) $ECHO_C" >&6
7548 else
7549    ac_ext=c
7550 ac_cpp='$CPP $CPPFLAGS'
7551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7554
7555   oldcflags="$CFLAGS"
7556
7557   # The following code is from the autoconf manual,
7558   # "11.13: Limitations of Usual Tools".
7559   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7560   # Use mktemp if possible; otherwise fall back on mkdir,
7561   # with $RANDOM to make collisions less likely.
7562   : ${TMPDIR=/tmp}
7563   {
7564     tmp=`
7565       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7566     ` &&
7567     test -n "$tmp" && test -d "$tmp"
7568   } || {
7569     tmp=$TMPDIR/foo$$-$RANDOM
7570     (umask 077 && mkdir "$tmp")
7571   } || exit $?
7572
7573   echo "{" > "$tmp/export.map"
7574   echo "  global: main;" >> "$tmp/export.map"
7575   echo "  local: *;" >> "$tmp/export.map"
7576   echo "};" >> "$tmp/export.map"
7577
7578   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7579   cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h.  */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h.  */
7585
7586 int
7587 main ()
7588 {
7589
7590   ;
7591   return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (ac_try="$ac_link"
7596 case "(($ac_try" in
7597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7598   *) ac_try_echo=$ac_try;;
7599 esac
7600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7601   (eval "$ac_link") 2>conftest.er1
7602   ac_status=$?
7603   grep -v '^ *+' conftest.er1 >conftest.err
7604   rm -f conftest.er1
7605   cat conftest.err >&5
7606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607   (exit $ac_status); } &&
7608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7609   { (case "(($ac_try" in
7610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7611   *) ac_try_echo=$ac_try;;
7612 esac
7613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7614   (eval "$ac_try") 2>&5
7615   ac_status=$?
7616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617   (exit $ac_status); }; } &&
7618          { ac_try='test -s conftest$ac_exeext'
7619   { (case "(($ac_try" in
7620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621   *) ac_try_echo=$ac_try;;
7622 esac
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624   (eval "$ac_try") 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); }; }; then
7628   llvm_cv_link_use_version_script=yes
7629 else
7630   echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633         llvm_cv_link_use_version_script=no
7634 fi
7635
7636 rm -f core conftest.err conftest.$ac_objext \
7637       conftest$ac_exeext conftest.$ac_ext
7638   rm "$tmp/export.map"
7639   rmdir "$tmp"
7640   CFLAGS="$oldcflags"
7641   ac_ext=c
7642 ac_cpp='$CPP $CPPFLAGS'
7643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7646
7647
7648 fi
7649 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7650 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7651 if test "$llvm_cv_link_use_version_script" = yes ; then
7652   HAVE_LINK_VERSION_SCRIPT=1
7653
7654   fi
7655
7656
7657
7658 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7659 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7660 if test "${ac_cv_path_GREP+set}" = set; then
7661   echo $ECHO_N "(cached) $ECHO_C" >&6
7662 else
7663   # Extract the first word of "grep ggrep" to use in msg output
7664 if test -z "$GREP"; then
7665 set dummy grep ggrep; ac_prog_name=$2
7666 if test "${ac_cv_path_GREP+set}" = set; then
7667   echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669   ac_path_GREP_found=false
7670 # Loop through the user's path and test for each of PROGNAME-LIST
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   for ac_prog in grep ggrep; do
7677   for ac_exec_ext in '' $ac_executable_extensions; do
7678     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7679     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7680     # Check for GNU ac_path_GREP and select it if it is found.
7681   # Check for GNU $ac_path_GREP
7682 case `"$ac_path_GREP" --version 2>&1` in
7683 *GNU*)
7684   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7685 *)
7686   ac_count=0
7687   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7688   while :
7689   do
7690     cat "conftest.in" "conftest.in" >"conftest.tmp"
7691     mv "conftest.tmp" "conftest.in"
7692     cp "conftest.in" "conftest.nl"
7693     echo 'GREP' >> "conftest.nl"
7694     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7696     ac_count=`expr $ac_count + 1`
7697     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7698       # Best one so far, save it but keep looking for a better one
7699       ac_cv_path_GREP="$ac_path_GREP"
7700       ac_path_GREP_max=$ac_count
7701     fi
7702     # 10*(2^10) chars as input seems more than enough
7703     test $ac_count -gt 10 && break
7704   done
7705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7706 esac
7707
7708
7709     $ac_path_GREP_found && break 3
7710   done
7711 done
7712
7713 done
7714 IFS=$as_save_IFS
7715
7716
7717 fi
7718
7719 GREP="$ac_cv_path_GREP"
7720 if test -z "$GREP"; then
7721   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7722 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7723    { (exit 1); exit 1; }; }
7724 fi
7725
7726 else
7727   ac_cv_path_GREP=$GREP
7728 fi
7729
7730
7731 fi
7732 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7733 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7734  GREP="$ac_cv_path_GREP"
7735
7736
7737 { echo "$as_me:$LINENO: checking for egrep" >&5
7738 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7739 if test "${ac_cv_path_EGREP+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7743    then ac_cv_path_EGREP="$GREP -E"
7744    else
7745      # Extract the first word of "egrep" to use in msg output
7746 if test -z "$EGREP"; then
7747 set dummy egrep; ac_prog_name=$2
7748 if test "${ac_cv_path_EGREP+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   ac_path_EGREP_found=false
7752 # Loop through the user's path and test for each of PROGNAME-LIST
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7755 do
7756   IFS=$as_save_IFS
7757   test -z "$as_dir" && as_dir=.
7758   for ac_prog in egrep; do
7759   for ac_exec_ext in '' $ac_executable_extensions; do
7760     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7761     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7762     # Check for GNU ac_path_EGREP and select it if it is found.
7763   # Check for GNU $ac_path_EGREP
7764 case `"$ac_path_EGREP" --version 2>&1` in
7765 *GNU*)
7766   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7767 *)
7768   ac_count=0
7769   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7770   while :
7771   do
7772     cat "conftest.in" "conftest.in" >"conftest.tmp"
7773     mv "conftest.tmp" "conftest.in"
7774     cp "conftest.in" "conftest.nl"
7775     echo 'EGREP' >> "conftest.nl"
7776     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7777     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7778     ac_count=`expr $ac_count + 1`
7779     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7780       # Best one so far, save it but keep looking for a better one
7781       ac_cv_path_EGREP="$ac_path_EGREP"
7782       ac_path_EGREP_max=$ac_count
7783     fi
7784     # 10*(2^10) chars as input seems more than enough
7785     test $ac_count -gt 10 && break
7786   done
7787   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7788 esac
7789
7790
7791     $ac_path_EGREP_found && break 3
7792   done
7793 done
7794
7795 done
7796 IFS=$as_save_IFS
7797
7798
7799 fi
7800
7801 EGREP="$ac_cv_path_EGREP"
7802 if test -z "$EGREP"; then
7803   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7804 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7805    { (exit 1); exit 1; }; }
7806 fi
7807
7808 else
7809   ac_cv_path_EGREP=$EGREP
7810 fi
7811
7812
7813    fi
7814 fi
7815 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7816 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7817  EGREP="$ac_cv_path_EGREP"
7818
7819
7820 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7821 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7822 if test "${ac_cv_header_stdc+set}" = set; then
7823   echo $ECHO_N "(cached) $ECHO_C" >&6
7824 else
7825   cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831 #include <stdlib.h>
7832 #include <stdarg.h>
7833 #include <string.h>
7834 #include <float.h>
7835
7836 int
7837 main ()
7838 {
7839
7840   ;
7841   return 0;
7842 }
7843 _ACEOF
7844 rm -f conftest.$ac_objext
7845 if { (ac_try="$ac_compile"
7846 case "(($ac_try" in
7847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848   *) ac_try_echo=$ac_try;;
7849 esac
7850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7851   (eval "$ac_compile") 2>conftest.er1
7852   ac_status=$?
7853   grep -v '^ *+' conftest.er1 >conftest.err
7854   rm -f conftest.er1
7855   cat conftest.err >&5
7856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7857   (exit $ac_status); } &&
7858          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7859   { (case "(($ac_try" in
7860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861   *) ac_try_echo=$ac_try;;
7862 esac
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864   (eval "$ac_try") 2>&5
7865   ac_status=$?
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); }; } &&
7868          { ac_try='test -s conftest.$ac_objext'
7869   { (case "(($ac_try" in
7870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7871   *) ac_try_echo=$ac_try;;
7872 esac
7873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7874   (eval "$ac_try") 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); }; }; then
7878   ac_cv_header_stdc=yes
7879 else
7880   echo "$as_me: failed program was:" >&5
7881 sed 's/^/| /' conftest.$ac_ext >&5
7882
7883         ac_cv_header_stdc=no
7884 fi
7885
7886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887
7888 if test $ac_cv_header_stdc = yes; then
7889   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7890   cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896 #include <string.h>
7897
7898 _ACEOF
7899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7900   $EGREP "memchr" >/dev/null 2>&1; then
7901   :
7902 else
7903   ac_cv_header_stdc=no
7904 fi
7905 rm -f conftest*
7906
7907 fi
7908
7909 if test $ac_cv_header_stdc = yes; then
7910   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7911   cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h.  */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h.  */
7917 #include <stdlib.h>
7918
7919 _ACEOF
7920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7921   $EGREP "free" >/dev/null 2>&1; then
7922   :
7923 else
7924   ac_cv_header_stdc=no
7925 fi
7926 rm -f conftest*
7927
7928 fi
7929
7930 if test $ac_cv_header_stdc = yes; then
7931   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7932   if test "$cross_compiling" = yes; then
7933   :
7934 else
7935   cat >conftest.$ac_ext <<_ACEOF
7936 /* confdefs.h.  */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h.  */
7941 #include <ctype.h>
7942 #include <stdlib.h>
7943 #if ((' ' & 0x0FF) == 0x020)
7944 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7945 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7946 #else
7947 # define ISLOWER(c) \
7948                    (('a' <= (c) && (c) <= 'i') \
7949                      || ('j' <= (c) && (c) <= 'r') \
7950                      || ('s' <= (c) && (c) <= 'z'))
7951 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7952 #endif
7953
7954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7955 int
7956 main ()
7957 {
7958   int i;
7959   for (i = 0; i < 256; i++)
7960     if (XOR (islower (i), ISLOWER (i))
7961         || toupper (i) != TOUPPER (i))
7962       return 2;
7963   return 0;
7964 }
7965 _ACEOF
7966 rm -f conftest$ac_exeext
7967 if { (ac_try="$ac_link"
7968 case "(($ac_try" in
7969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970   *) ac_try_echo=$ac_try;;
7971 esac
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973   (eval "$ac_link") 2>&5
7974   ac_status=$?
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7977   { (case "(($ac_try" in
7978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979   *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982   (eval "$ac_try") 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); }; }; then
7986   :
7987 else
7988   echo "$as_me: program exited with status $ac_status" >&5
7989 echo "$as_me: failed program was:" >&5
7990 sed 's/^/| /' conftest.$ac_ext >&5
7991
7992 ( exit $ac_status )
7993 ac_cv_header_stdc=no
7994 fi
7995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7996 fi
7997
7998
7999 fi
8000 fi
8001 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8002 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8003 if test $ac_cv_header_stdc = yes; then
8004
8005 cat >>confdefs.h <<\_ACEOF
8006 #define STDC_HEADERS 1
8007 _ACEOF
8008
8009 fi
8010
8011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8022                   inttypes.h stdint.h unistd.h
8023 do
8024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8028   echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030   cat >conftest.$ac_ext <<_ACEOF
8031 /* confdefs.h.  */
8032 _ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h.  */
8036 $ac_includes_default
8037
8038 #include <$ac_header>
8039 _ACEOF
8040 rm -f conftest.$ac_objext
8041 if { (ac_try="$ac_compile"
8042 case "(($ac_try" in
8043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044   *) ac_try_echo=$ac_try;;
8045 esac
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047   (eval "$ac_compile") 2>conftest.er1
8048   ac_status=$?
8049   grep -v '^ *+' conftest.er1 >conftest.err
8050   rm -f conftest.er1
8051   cat conftest.err >&5
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); } &&
8054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8055   { (case "(($ac_try" in
8056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057   *) ac_try_echo=$ac_try;;
8058 esac
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060   (eval "$ac_try") 2>&5
8061   ac_status=$?
8062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063   (exit $ac_status); }; } &&
8064          { ac_try='test -s conftest.$ac_objext'
8065   { (case "(($ac_try" in
8066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8067   *) ac_try_echo=$ac_try;;
8068 esac
8069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8070   (eval "$ac_try") 2>&5
8071   ac_status=$?
8072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073   (exit $ac_status); }; }; then
8074   eval "$as_ac_Header=yes"
8075 else
8076   echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8078
8079         eval "$as_ac_Header=no"
8080 fi
8081
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 fi
8084 ac_res=`eval echo '${'$as_ac_Header'}'`
8085                { echo "$as_me:$LINENO: result: $ac_res" >&5
8086 echo "${ECHO_T}$ac_res" >&6; }
8087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8088   cat >>confdefs.h <<_ACEOF
8089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8090 _ACEOF
8091
8092 fi
8093
8094 done
8095
8096
8097
8098 for ac_header in errno.h
8099 do
8100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8102   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 fi
8107 ac_res=`eval echo '${'$as_ac_Header'}'`
8108                { echo "$as_me:$LINENO: result: $ac_res" >&5
8109 echo "${ECHO_T}$ac_res" >&6; }
8110 else
8111   # Is the header compilable?
8112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8114 cat >conftest.$ac_ext <<_ACEOF
8115 /* confdefs.h.  */
8116 _ACEOF
8117 cat confdefs.h >>conftest.$ac_ext
8118 cat >>conftest.$ac_ext <<_ACEOF
8119 /* end confdefs.h.  */
8120 $ac_includes_default
8121 #include <$ac_header>
8122 _ACEOF
8123 rm -f conftest.$ac_objext
8124 if { (ac_try="$ac_compile"
8125 case "(($ac_try" in
8126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127   *) ac_try_echo=$ac_try;;
8128 esac
8129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130   (eval "$ac_compile") 2>conftest.er1
8131   ac_status=$?
8132   grep -v '^ *+' conftest.er1 >conftest.err
8133   rm -f conftest.er1
8134   cat conftest.err >&5
8135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8136   (exit $ac_status); } &&
8137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8138   { (case "(($ac_try" in
8139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8140   *) ac_try_echo=$ac_try;;
8141 esac
8142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8143   (eval "$ac_try") 2>&5
8144   ac_status=$?
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); }; } &&
8147          { ac_try='test -s conftest.$ac_objext'
8148   { (case "(($ac_try" in
8149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150   *) ac_try_echo=$ac_try;;
8151 esac
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153   (eval "$ac_try") 2>&5
8154   ac_status=$?
8155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156   (exit $ac_status); }; }; then
8157   ac_header_compiler=yes
8158 else
8159   echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8161
8162         ac_header_compiler=no
8163 fi
8164
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8167 echo "${ECHO_T}$ac_header_compiler" >&6; }
8168
8169 # Is the header present?
8170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8172 cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h.  */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h.  */
8178 #include <$ac_header>
8179 _ACEOF
8180 if { (ac_try="$ac_cpp conftest.$ac_ext"
8181 case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8187   ac_status=$?
8188   grep -v '^ *+' conftest.er1 >conftest.err
8189   rm -f conftest.er1
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } >/dev/null; then
8193   if test -s conftest.err; then
8194     ac_cpp_err=$ac_c_preproc_warn_flag
8195     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8196   else
8197     ac_cpp_err=
8198   fi
8199 else
8200   ac_cpp_err=yes
8201 fi
8202 if test -z "$ac_cpp_err"; then
8203   ac_header_preproc=yes
8204 else
8205   echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208   ac_header_preproc=no
8209 fi
8210
8211 rm -f conftest.err conftest.$ac_ext
8212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8213 echo "${ECHO_T}$ac_header_preproc" >&6; }
8214
8215 # So?  What about this header?
8216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8217   yes:no: )
8218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8222     ac_header_preproc=yes
8223     ;;
8224   no:yes:* )
8225     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8227     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8228 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8229     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8231     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8232 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8235     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8237     ( cat <<\_ASBOX
8238 ## ------------------------------------ ##
8239 ## Report this to http://llvm.org/bugs/ ##
8240 ## ------------------------------------ ##
8241 _ASBOX
8242      ) | sed "s/^/$as_me: WARNING:     /" >&2
8243     ;;
8244 esac
8245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8248   echo $ECHO_N "(cached) $ECHO_C" >&6
8249 else
8250   eval "$as_ac_Header=\$ac_header_preproc"
8251 fi
8252 ac_res=`eval echo '${'$as_ac_Header'}'`
8253                { echo "$as_me:$LINENO: result: $ac_res" >&5
8254 echo "${ECHO_T}$ac_res" >&6; }
8255
8256 fi
8257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8258   cat >>confdefs.h <<_ACEOF
8259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8260 _ACEOF
8261
8262 fi
8263
8264 done
8265
8266
8267 case "$llvm_cv_os_type" in
8268   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8269   Darwin) llvm_shlib_ext=.dylib ;;
8270   *) llvm_shlib_ext=.so ;;
8271 esac
8272
8273
8274 cat >>confdefs.h <<_ACEOF
8275 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8276 _ACEOF
8277
8278
8279 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8280 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8281
8282 ICC=no
8283 IXX=no
8284 case $CC in
8285   icc*|icpc*)
8286     ICC=yes
8287     IXX=yes
8288     ;;
8289    *)
8290     ;;
8291 esac
8292
8293 if test "$GCC" != "yes" && test "$ICC" != "yes"
8294 then
8295   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8296 echo "$as_me: error: gcc|icc required but not found" >&2;}
8297    { (exit 1); exit 1; }; }
8298 fi
8299
8300 if test "$GXX" != "yes" && test "$IXX" != "yes"
8301 then
8302   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8303 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8304    { (exit 1); exit 1; }; }
8305 fi
8306
8307 if test "$GCC" = "yes"
8308 then
8309   cat >conftest.$ac_ext <<_ACEOF
8310
8311   /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316
8317     #if !defined(__GNUC__) || __GNUC__ < 3
8318     #error Unsupported GCC version
8319     #endif
8320
8321
8322 _ACEOF
8323 rm -f conftest.$ac_objext
8324 if { (ac_try="$ac_compile"
8325 case "(($ac_try" in
8326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327   *) ac_try_echo=$ac_try;;
8328 esac
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330   (eval "$ac_compile") 2>conftest.er1
8331   ac_status=$?
8332   grep -v '^ *+' conftest.er1 >conftest.err
8333   rm -f conftest.er1
8334   cat conftest.err >&5
8335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); } &&
8337          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8338   { (case "(($ac_try" in
8339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340   *) ac_try_echo=$ac_try;;
8341 esac
8342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8343   (eval "$ac_try") 2>&5
8344   ac_status=$?
8345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346   (exit $ac_status); }; } &&
8347          { ac_try='test -s conftest.$ac_objext'
8348   { (case "(($ac_try" in
8349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350   *) ac_try_echo=$ac_try;;
8351 esac
8352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8353   (eval "$ac_try") 2>&5
8354   ac_status=$?
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); }; }; then
8357   :
8358 else
8359   echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8361
8362         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8363 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8364    { (exit 1); exit 1; }; }
8365 fi
8366
8367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 fi
8369
8370 if test -z "$llvm_cv_gnu_make_command"
8371 then
8372   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8373 echo "$as_me: error: GNU Make required but not found" >&2;}
8374    { (exit 1); exit 1; }; }
8375 fi
8376
8377 { echo "$as_me:$LINENO: result: ok" >&5
8378 echo "${ECHO_T}ok" >&6; }
8379
8380 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8381 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8382 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8383
8384 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8385
8386 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8387
8388
8389 NO_UNINITIALIZED=
8390 NO_MAYBE_UNINITIALIZED=
8391 if test "$GXX" = "yes"
8392 then
8393   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8394
8395         if test -z "$NO_MAYBE_UNINITIALIZED"
8396   then
8397     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8398
8399   fi
8400 fi
8401
8402 no_comment=
8403 llvm_cv_old_cxxflags="$CXXFLAGS"
8404 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8405 cat >conftest.$ac_ext <<_ACEOF
8406
8407   /* confdefs.h.  */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h.  */
8412 // Comment \o\
8413 // Another comment
8414 int main() { return 0; }
8415
8416
8417 _ACEOF
8418 rm -f conftest.$ac_objext
8419 if { (ac_try="$ac_compile"
8420 case "(($ac_try" in
8421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8422   *) ac_try_echo=$ac_try;;
8423 esac
8424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8425   (eval "$ac_compile") 2>conftest.er1
8426   ac_status=$?
8427   grep -v '^ *+' conftest.er1 >conftest.err
8428   rm -f conftest.er1
8429   cat conftest.err >&5
8430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431   (exit $ac_status); } &&
8432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8433   { (case "(($ac_try" in
8434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435   *) ac_try_echo=$ac_try;;
8436 esac
8437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438   (eval "$ac_try") 2>&5
8439   ac_status=$?
8440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441   (exit $ac_status); }; } &&
8442          { ac_try='test -s conftest.$ac_objext'
8443   { (case "(($ac_try" in
8444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445   *) ac_try_echo=$ac_try;;
8446 esac
8447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8448   (eval "$ac_try") 2>&5
8449   ac_status=$?
8450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451   (exit $ac_status); }; }; then
8452
8453   no_comment=-Wno-comment
8454
8455 else
8456   echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
8459
8460 fi
8461
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8463 NO_COMMENT=$no_comment
8464
8465 CXXFLAGS="$llvm_cv_old_cxxflags"
8466
8467 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8468 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8469
8470
8471 # Check whether --with-python was given.
8472 if test "${with_python+set}" = set; then
8473   withval=$with_python; PYTHON="$withval"
8474 fi
8475
8476
8477 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8478   { echo "$as_me:$LINENO: checking for python" >&5
8479 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8480   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8481 echo "${ECHO_T}user defined: $with_python" >&6; }
8482 else
8483   if test -n "$PYTHON" ; then
8484     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8485 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8486   fi
8487
8488   # Extract the first word of "python python2 python27", so it can be a program name with args.
8489 set dummy python python2 python27; ac_word=$2
8490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8492 if test "${ac_cv_path_PYTHON+set}" = set; then
8493   echo $ECHO_N "(cached) $ECHO_C" >&6
8494 else
8495   case $PYTHON in
8496   [\\/]* | ?:[\\/]*)
8497   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8498   ;;
8499   *)
8500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8502 do
8503   IFS=$as_save_IFS
8504   test -z "$as_dir" && as_dir=.
8505   for ac_exec_ext in '' $ac_executable_extensions; do
8506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8507     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8509     break 2
8510   fi
8511 done
8512 done
8513 IFS=$as_save_IFS
8514
8515   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8516 echo "${ECHO_T}not found" >&6; }
8517                 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8518 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8519    { (exit 1); exit 1; }; }"
8520   ;;
8521 esac
8522 fi
8523 PYTHON=$ac_cv_path_PYTHON
8524 if test -n "$PYTHON"; then
8525   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8526 echo "${ECHO_T}$PYTHON" >&6; }
8527 else
8528   { echo "$as_me:$LINENO: result: no" >&5
8529 echo "${ECHO_T}no" >&6; }
8530 fi
8531
8532
8533 fi
8534
8535 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8536 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8537 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8538 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8539 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8540 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8541 if test "$ac_python_version_major" -gt "2" || \
8542    (test "$ac_python_version_major" -eq "2" && \
8543     test "$ac_python_version_minor" -ge "7") ; then
8544   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8545 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8546 else
8547   { echo "$as_me:$LINENO: result: not found" >&5
8548 echo "${ECHO_T}not found" >&6; }
8549   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8550 See \`config.log' for more details." >&5
8551 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8552 See \`config.log' for more details." >&2;}
8553    { (exit 1); exit 1; }; }
8554 fi
8555
8556
8557
8558 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8559 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8560 if test "${ac_cv_lib_m_sin+set}" = set; then
8561   echo $ECHO_N "(cached) $ECHO_C" >&6
8562 else
8563   ac_check_lib_save_LIBS=$LIBS
8564 LIBS="-lm  $LIBS"
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h.  */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h.  */
8571
8572 /* Override any GCC internal prototype to avoid an error.
8573    Use char because int might match the return type of a GCC
8574    builtin and then its argument prototype would still apply.  */
8575 #ifdef __cplusplus
8576 extern "C"
8577 #endif
8578 char sin ();
8579 int
8580 main ()
8581 {
8582 return sin ();
8583   ;
8584   return 0;
8585 }
8586 _ACEOF
8587 rm -f conftest.$ac_objext conftest$ac_exeext
8588 if { (ac_try="$ac_link"
8589 case "(($ac_try" in
8590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8591   *) ac_try_echo=$ac_try;;
8592 esac
8593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8594   (eval "$ac_link") 2>conftest.er1
8595   ac_status=$?
8596   grep -v '^ *+' conftest.er1 >conftest.err
8597   rm -f conftest.er1
8598   cat conftest.err >&5
8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600   (exit $ac_status); } &&
8601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8602   { (case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607   (eval "$ac_try") 2>&5
8608   ac_status=$?
8609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610   (exit $ac_status); }; } &&
8611          { ac_try='test -s conftest$ac_exeext'
8612   { (case "(($ac_try" in
8613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614   *) ac_try_echo=$ac_try;;
8615 esac
8616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8617   (eval "$ac_try") 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); }; }; then
8621   ac_cv_lib_m_sin=yes
8622 else
8623   echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8625
8626         ac_cv_lib_m_sin=no
8627 fi
8628
8629 rm -f core conftest.err conftest.$ac_objext \
8630       conftest$ac_exeext conftest.$ac_ext
8631 LIBS=$ac_check_lib_save_LIBS
8632 fi
8633 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8634 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8635 if test $ac_cv_lib_m_sin = yes; then
8636   cat >>confdefs.h <<_ACEOF
8637 #define HAVE_LIBM 1
8638 _ACEOF
8639
8640   LIBS="-lm $LIBS"
8641
8642 fi
8643
8644 if test "$llvm_cv_os_type" = "MingW" ; then
8645
8646 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8647 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8648 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8649   echo $ECHO_N "(cached) $ECHO_C" >&6
8650 else
8651   ac_check_lib_save_LIBS=$LIBS
8652 LIBS="-limagehlp  $LIBS"
8653 cat >conftest.$ac_ext <<_ACEOF
8654 /* confdefs.h.  */
8655 _ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h.  */
8659
8660
8661 int
8662 main ()
8663 {
8664 return main ();
8665   ;
8666   return 0;
8667 }
8668 _ACEOF
8669 rm -f conftest.$ac_objext conftest$ac_exeext
8670 if { (ac_try="$ac_link"
8671 case "(($ac_try" in
8672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673   *) ac_try_echo=$ac_try;;
8674 esac
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676   (eval "$ac_link") 2>conftest.er1
8677   ac_status=$?
8678   grep -v '^ *+' conftest.er1 >conftest.err
8679   rm -f conftest.er1
8680   cat conftest.err >&5
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); } &&
8683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8684   { (case "(($ac_try" in
8685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686   *) ac_try_echo=$ac_try;;
8687 esac
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689   (eval "$ac_try") 2>&5
8690   ac_status=$?
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); }; } &&
8693          { ac_try='test -s conftest$ac_exeext'
8694   { (case "(($ac_try" in
8695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696   *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699   (eval "$ac_try") 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); }; }; then
8703   ac_cv_lib_imagehlp_main=yes
8704 else
8705   echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8707
8708         ac_cv_lib_imagehlp_main=no
8709 fi
8710
8711 rm -f core conftest.err conftest.$ac_objext \
8712       conftest$ac_exeext conftest.$ac_ext
8713 LIBS=$ac_check_lib_save_LIBS
8714 fi
8715 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8716 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8717 if test $ac_cv_lib_imagehlp_main = yes; then
8718   cat >>confdefs.h <<_ACEOF
8719 #define HAVE_LIBIMAGEHLP 1
8720 _ACEOF
8721
8722   LIBS="-limagehlp $LIBS"
8723
8724 fi
8725
8726
8727 { echo "$as_me:$LINENO: checking for main in -lole32" >&5
8728 echo $ECHO_N "checking for main in -lole32... $ECHO_C" >&6; }
8729 if test "${ac_cv_lib_ole32_main+set}" = set; then
8730   echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732   ac_check_lib_save_LIBS=$LIBS
8733 LIBS="-lole32  $LIBS"
8734 cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740
8741
8742 int
8743 main ()
8744 {
8745 return main ();
8746   ;
8747   return 0;
8748 }
8749 _ACEOF
8750 rm -f conftest.$ac_objext conftest$ac_exeext
8751 if { (ac_try="$ac_link"
8752 case "(($ac_try" in
8753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754   *) ac_try_echo=$ac_try;;
8755 esac
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757   (eval "$ac_link") 2>conftest.er1
8758   ac_status=$?
8759   grep -v '^ *+' conftest.er1 >conftest.err
8760   rm -f conftest.er1
8761   cat conftest.err >&5
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } &&
8764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8765   { (case "(($ac_try" in
8766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8767   *) ac_try_echo=$ac_try;;
8768 esac
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770   (eval "$ac_try") 2>&5
8771   ac_status=$?
8772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773   (exit $ac_status); }; } &&
8774          { ac_try='test -s conftest$ac_exeext'
8775   { (case "(($ac_try" in
8776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8777   *) ac_try_echo=$ac_try;;
8778 esac
8779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8780   (eval "$ac_try") 2>&5
8781   ac_status=$?
8782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783   (exit $ac_status); }; }; then
8784   ac_cv_lib_ole32_main=yes
8785 else
8786   echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8788
8789         ac_cv_lib_ole32_main=no
8790 fi
8791
8792 rm -f core conftest.err conftest.$ac_objext \
8793       conftest$ac_exeext conftest.$ac_ext
8794 LIBS=$ac_check_lib_save_LIBS
8795 fi
8796 { echo "$as_me:$LINENO: result: $ac_cv_lib_ole32_main" >&5
8797 echo "${ECHO_T}$ac_cv_lib_ole32_main" >&6; }
8798 if test $ac_cv_lib_ole32_main = yes; then
8799   cat >>confdefs.h <<_ACEOF
8800 #define HAVE_LIBOLE32 1
8801 _ACEOF
8802
8803   LIBS="-lole32 $LIBS"
8804
8805 fi
8806
8807
8808 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8809 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8810 if test "${ac_cv_lib_psapi_main+set}" = set; then
8811   echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813   ac_check_lib_save_LIBS=$LIBS
8814 LIBS="-lpsapi  $LIBS"
8815 cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h.  */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h.  */
8821
8822
8823 int
8824 main ()
8825 {
8826 return main ();
8827   ;
8828   return 0;
8829 }
8830 _ACEOF
8831 rm -f conftest.$ac_objext conftest$ac_exeext
8832 if { (ac_try="$ac_link"
8833 case "(($ac_try" in
8834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835   *) ac_try_echo=$ac_try;;
8836 esac
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838   (eval "$ac_link") 2>conftest.er1
8839   ac_status=$?
8840   grep -v '^ *+' conftest.er1 >conftest.err
8841   rm -f conftest.er1
8842   cat conftest.err >&5
8843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844   (exit $ac_status); } &&
8845          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8846   { (case "(($ac_try" in
8847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848   *) ac_try_echo=$ac_try;;
8849 esac
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851   (eval "$ac_try") 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); }; } &&
8855          { ac_try='test -s conftest$ac_exeext'
8856   { (case "(($ac_try" in
8857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858   *) ac_try_echo=$ac_try;;
8859 esac
8860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861   (eval "$ac_try") 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; }; then
8865   ac_cv_lib_psapi_main=yes
8866 else
8867   echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8869
8870         ac_cv_lib_psapi_main=no
8871 fi
8872
8873 rm -f core conftest.err conftest.$ac_objext \
8874       conftest$ac_exeext conftest.$ac_ext
8875 LIBS=$ac_check_lib_save_LIBS
8876 fi
8877 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8878 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8879 if test $ac_cv_lib_psapi_main = yes; then
8880   cat >>confdefs.h <<_ACEOF
8881 #define HAVE_LIBPSAPI 1
8882 _ACEOF
8883
8884   LIBS="-lpsapi $LIBS"
8885
8886 fi
8887
8888
8889 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8890 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8891 if test "${ac_cv_lib_shell32_main+set}" = set; then
8892   echo $ECHO_N "(cached) $ECHO_C" >&6
8893 else
8894   ac_check_lib_save_LIBS=$LIBS
8895 LIBS="-lshell32  $LIBS"
8896 cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h.  */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h.  */
8902
8903
8904 int
8905 main ()
8906 {
8907 return main ();
8908   ;
8909   return 0;
8910 }
8911 _ACEOF
8912 rm -f conftest.$ac_objext conftest$ac_exeext
8913 if { (ac_try="$ac_link"
8914 case "(($ac_try" in
8915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916   *) ac_try_echo=$ac_try;;
8917 esac
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919   (eval "$ac_link") 2>conftest.er1
8920   ac_status=$?
8921   grep -v '^ *+' conftest.er1 >conftest.err
8922   rm -f conftest.er1
8923   cat conftest.err >&5
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } &&
8926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8927   { (case "(($ac_try" in
8928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929   *) ac_try_echo=$ac_try;;
8930 esac
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932   (eval "$ac_try") 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; } &&
8936          { ac_try='test -s conftest$ac_exeext'
8937   { (case "(($ac_try" in
8938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939   *) ac_try_echo=$ac_try;;
8940 esac
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942   (eval "$ac_try") 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); }; }; then
8946   ac_cv_lib_shell32_main=yes
8947 else
8948   echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951         ac_cv_lib_shell32_main=no
8952 fi
8953
8954 rm -f core conftest.err conftest.$ac_objext \
8955       conftest$ac_exeext conftest.$ac_ext
8956 LIBS=$ac_check_lib_save_LIBS
8957 fi
8958 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8959 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8960 if test $ac_cv_lib_shell32_main = yes; then
8961   cat >>confdefs.h <<_ACEOF
8962 #define HAVE_LIBSHELL32 1
8963 _ACEOF
8964
8965   LIBS="-lshell32 $LIBS"
8966
8967 fi
8968
8969 fi
8970
8971 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8972 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8973 if test "${ac_cv_search_dlopen+set}" = set; then
8974   echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976   ac_func_search_save_LIBS=$LIBS
8977 cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h.  */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h.  */
8983
8984 /* Override any GCC internal prototype to avoid an error.
8985    Use char because int might match the return type of a GCC
8986    builtin and then its argument prototype would still apply.  */
8987 #ifdef __cplusplus
8988 extern "C"
8989 #endif
8990 char dlopen ();
8991 int
8992 main ()
8993 {
8994 return dlopen ();
8995   ;
8996   return 0;
8997 }
8998 _ACEOF
8999 for ac_lib in '' dl; do
9000   if test -z "$ac_lib"; then
9001     ac_res="none required"
9002   else
9003     ac_res=-l$ac_lib
9004     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9005   fi
9006   rm -f conftest.$ac_objext conftest$ac_exeext
9007 if { (ac_try="$ac_link"
9008 case "(($ac_try" in
9009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010   *) ac_try_echo=$ac_try;;
9011 esac
9012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013   (eval "$ac_link") 2>conftest.er1
9014   ac_status=$?
9015   grep -v '^ *+' conftest.er1 >conftest.err
9016   rm -f conftest.er1
9017   cat conftest.err >&5
9018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); } &&
9020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9021   { (case "(($ac_try" in
9022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9023   *) ac_try_echo=$ac_try;;
9024 esac
9025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9026   (eval "$ac_try") 2>&5
9027   ac_status=$?
9028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029   (exit $ac_status); }; } &&
9030          { ac_try='test -s conftest$ac_exeext'
9031   { (case "(($ac_try" in
9032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033   *) ac_try_echo=$ac_try;;
9034 esac
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036   (eval "$ac_try") 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); }; }; then
9040   ac_cv_search_dlopen=$ac_res
9041 else
9042   echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045
9046 fi
9047
9048 rm -f core conftest.err conftest.$ac_objext \
9049       conftest$ac_exeext
9050   if test "${ac_cv_search_dlopen+set}" = set; then
9051   break
9052 fi
9053 done
9054 if test "${ac_cv_search_dlopen+set}" = set; then
9055   :
9056 else
9057   ac_cv_search_dlopen=no
9058 fi
9059 rm conftest.$ac_ext
9060 LIBS=$ac_func_search_save_LIBS
9061 fi
9062 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9063 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9064 ac_res=$ac_cv_search_dlopen
9065 if test "$ac_res" != no; then
9066   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9067
9068
9069 cat >>confdefs.h <<\_ACEOF
9070 #define HAVE_DLOPEN 1
9071 _ACEOF
9072
9073 HAVE_DLOPEN='1'
9074
9075
9076 else
9077   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9078 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9079 fi
9080
9081
9082 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9083 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9084 if test "${ac_cv_search_clock_gettime+set}" = set; then
9085   echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087   ac_func_search_save_LIBS=$LIBS
9088 cat >conftest.$ac_ext <<_ACEOF
9089 /* confdefs.h.  */
9090 _ACEOF
9091 cat confdefs.h >>conftest.$ac_ext
9092 cat >>conftest.$ac_ext <<_ACEOF
9093 /* end confdefs.h.  */
9094
9095 /* Override any GCC internal prototype to avoid an error.
9096    Use char because int might match the return type of a GCC
9097    builtin and then its argument prototype would still apply.  */
9098 #ifdef __cplusplus
9099 extern "C"
9100 #endif
9101 char clock_gettime ();
9102 int
9103 main ()
9104 {
9105 return clock_gettime ();
9106   ;
9107   return 0;
9108 }
9109 _ACEOF
9110 for ac_lib in '' rt; do
9111   if test -z "$ac_lib"; then
9112     ac_res="none required"
9113   else
9114     ac_res=-l$ac_lib
9115     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9116   fi
9117   rm -f conftest.$ac_objext conftest$ac_exeext
9118 if { (ac_try="$ac_link"
9119 case "(($ac_try" in
9120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9121   *) ac_try_echo=$ac_try;;
9122 esac
9123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9124   (eval "$ac_link") 2>conftest.er1
9125   ac_status=$?
9126   grep -v '^ *+' conftest.er1 >conftest.err
9127   rm -f conftest.er1
9128   cat conftest.err >&5
9129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130   (exit $ac_status); } &&
9131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9132   { (case "(($ac_try" in
9133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134   *) ac_try_echo=$ac_try;;
9135 esac
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137   (eval "$ac_try") 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; } &&
9141          { ac_try='test -s conftest$ac_exeext'
9142   { (case "(($ac_try" in
9143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144   *) ac_try_echo=$ac_try;;
9145 esac
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147   (eval "$ac_try") 2>&5
9148   ac_status=$?
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); }; }; then
9151   ac_cv_search_clock_gettime=$ac_res
9152 else
9153   echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9155
9156
9157 fi
9158
9159 rm -f core conftest.err conftest.$ac_objext \
9160       conftest$ac_exeext
9161   if test "${ac_cv_search_clock_gettime+set}" = set; then
9162   break
9163 fi
9164 done
9165 if test "${ac_cv_search_clock_gettime+set}" = set; then
9166   :
9167 else
9168   ac_cv_search_clock_gettime=no
9169 fi
9170 rm conftest.$ac_ext
9171 LIBS=$ac_func_search_save_LIBS
9172 fi
9173 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9174 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9175 ac_res=$ac_cv_search_clock_gettime
9176 if test "$ac_res" != no; then
9177   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9178
9179 fi
9180
9181
9182 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9183     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9184 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9185 if test "${ac_cv_search_setupterm+set}" = set; then
9186   echo $ECHO_N "(cached) $ECHO_C" >&6
9187 else
9188   ac_func_search_save_LIBS=$LIBS
9189 cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h.  */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h.  */
9195
9196 /* Override any GCC internal prototype to avoid an error.
9197    Use char because int might match the return type of a GCC
9198    builtin and then its argument prototype would still apply.  */
9199 #ifdef __cplusplus
9200 extern "C"
9201 #endif
9202 char setupterm ();
9203 int
9204 main ()
9205 {
9206 return setupterm ();
9207   ;
9208   return 0;
9209 }
9210 _ACEOF
9211 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9212   if test -z "$ac_lib"; then
9213     ac_res="none required"
9214   else
9215     ac_res=-l$ac_lib
9216     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9217   fi
9218   rm -f conftest.$ac_objext conftest$ac_exeext
9219 if { (ac_try="$ac_link"
9220 case "(($ac_try" in
9221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222   *) ac_try_echo=$ac_try;;
9223 esac
9224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225   (eval "$ac_link") 2>conftest.er1
9226   ac_status=$?
9227   grep -v '^ *+' conftest.er1 >conftest.err
9228   rm -f conftest.er1
9229   cat conftest.err >&5
9230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231   (exit $ac_status); } &&
9232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9233   { (case "(($ac_try" in
9234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9235   *) ac_try_echo=$ac_try;;
9236 esac
9237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9238   (eval "$ac_try") 2>&5
9239   ac_status=$?
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); }; } &&
9242          { ac_try='test -s conftest$ac_exeext'
9243   { (case "(($ac_try" in
9244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245   *) ac_try_echo=$ac_try;;
9246 esac
9247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248   (eval "$ac_try") 2>&5
9249   ac_status=$?
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); }; }; then
9252   ac_cv_search_setupterm=$ac_res
9253 else
9254   echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9256
9257
9258 fi
9259
9260 rm -f core conftest.err conftest.$ac_objext \
9261       conftest$ac_exeext
9262   if test "${ac_cv_search_setupterm+set}" = set; then
9263   break
9264 fi
9265 done
9266 if test "${ac_cv_search_setupterm+set}" = set; then
9267   :
9268 else
9269   ac_cv_search_setupterm=no
9270 fi
9271 rm conftest.$ac_ext
9272 LIBS=$ac_func_search_save_LIBS
9273 fi
9274 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9275 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9276 ac_res=$ac_cv_search_setupterm
9277 if test "$ac_res" != no; then
9278   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9279
9280
9281 cat >>confdefs.h <<\_ACEOF
9282 #define HAVE_TERMINFO 1
9283 _ACEOF
9284
9285 HAVE_TERMINFO='1'
9286
9287
9288 fi
9289
9290 fi
9291
9292 if test "$llvm_cv_enable_libedit" = "yes" ; then
9293   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9294 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9295 if test "${ac_cv_search_el_init+set}" = set; then
9296   echo $ECHO_N "(cached) $ECHO_C" >&6
9297 else
9298   ac_func_search_save_LIBS=$LIBS
9299 cat >conftest.$ac_ext <<_ACEOF
9300 /* confdefs.h.  */
9301 _ACEOF
9302 cat confdefs.h >>conftest.$ac_ext
9303 cat >>conftest.$ac_ext <<_ACEOF
9304 /* end confdefs.h.  */
9305
9306 /* Override any GCC internal prototype to avoid an error.
9307    Use char because int might match the return type of a GCC
9308    builtin and then its argument prototype would still apply.  */
9309 #ifdef __cplusplus
9310 extern "C"
9311 #endif
9312 char el_init ();
9313 int
9314 main ()
9315 {
9316 return el_init ();
9317   ;
9318   return 0;
9319 }
9320 _ACEOF
9321 for ac_lib in '' edit; do
9322   if test -z "$ac_lib"; then
9323     ac_res="none required"
9324   else
9325     ac_res=-l$ac_lib
9326     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9327   fi
9328   rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (ac_try="$ac_link"
9330 case "(($ac_try" in
9331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332   *) ac_try_echo=$ac_try;;
9333 esac
9334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335   (eval "$ac_link") 2>conftest.er1
9336   ac_status=$?
9337   grep -v '^ *+' conftest.er1 >conftest.err
9338   rm -f conftest.er1
9339   cat conftest.err >&5
9340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); } &&
9342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9343   { (case "(($ac_try" in
9344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345   *) ac_try_echo=$ac_try;;
9346 esac
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348   (eval "$ac_try") 2>&5
9349   ac_status=$?
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); }; } &&
9352          { ac_try='test -s conftest$ac_exeext'
9353   { (case "(($ac_try" in
9354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355   *) ac_try_echo=$ac_try;;
9356 esac
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358   (eval "$ac_try") 2>&5
9359   ac_status=$?
9360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361   (exit $ac_status); }; }; then
9362   ac_cv_search_el_init=$ac_res
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367
9368 fi
9369
9370 rm -f core conftest.err conftest.$ac_objext \
9371       conftest$ac_exeext
9372   if test "${ac_cv_search_el_init+set}" = set; then
9373   break
9374 fi
9375 done
9376 if test "${ac_cv_search_el_init+set}" = set; then
9377   :
9378 else
9379   ac_cv_search_el_init=no
9380 fi
9381 rm conftest.$ac_ext
9382 LIBS=$ac_func_search_save_LIBS
9383 fi
9384 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9385 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9386 ac_res=$ac_cv_search_el_init
9387 if test "$ac_res" != no; then
9388   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9389
9390 cat >>confdefs.h <<\_ACEOF
9391 #define HAVE_LIBEDIT 1
9392 _ACEOF
9393
9394 fi
9395
9396 fi
9397
9398 if test "$llvm_cv_enable_libffi" = "yes" ; then
9399   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9400 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9401 if test "${ac_cv_search_ffi_call+set}" = set; then
9402   echo $ECHO_N "(cached) $ECHO_C" >&6
9403 else
9404   ac_func_search_save_LIBS=$LIBS
9405 cat >conftest.$ac_ext <<_ACEOF
9406 /* confdefs.h.  */
9407 _ACEOF
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h.  */
9411
9412 /* Override any GCC internal prototype to avoid an error.
9413    Use char because int might match the return type of a GCC
9414    builtin and then its argument prototype would still apply.  */
9415 #ifdef __cplusplus
9416 extern "C"
9417 #endif
9418 char ffi_call ();
9419 int
9420 main ()
9421 {
9422 return ffi_call ();
9423   ;
9424   return 0;
9425 }
9426 _ACEOF
9427 for ac_lib in '' ffi; do
9428   if test -z "$ac_lib"; then
9429     ac_res="none required"
9430   else
9431     ac_res=-l$ac_lib
9432     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9433   fi
9434   rm -f conftest.$ac_objext conftest$ac_exeext
9435 if { (ac_try="$ac_link"
9436 case "(($ac_try" in
9437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438   *) ac_try_echo=$ac_try;;
9439 esac
9440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9441   (eval "$ac_link") 2>conftest.er1
9442   ac_status=$?
9443   grep -v '^ *+' conftest.er1 >conftest.err
9444   rm -f conftest.er1
9445   cat conftest.err >&5
9446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447   (exit $ac_status); } &&
9448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9449   { (case "(($ac_try" in
9450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9451   *) ac_try_echo=$ac_try;;
9452 esac
9453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9454   (eval "$ac_try") 2>&5
9455   ac_status=$?
9456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457   (exit $ac_status); }; } &&
9458          { ac_try='test -s conftest$ac_exeext'
9459   { (case "(($ac_try" in
9460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461   *) ac_try_echo=$ac_try;;
9462 esac
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464   (eval "$ac_try") 2>&5
9465   ac_status=$?
9466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467   (exit $ac_status); }; }; then
9468   ac_cv_search_ffi_call=$ac_res
9469 else
9470   echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9472
9473
9474 fi
9475
9476 rm -f core conftest.err conftest.$ac_objext \
9477       conftest$ac_exeext
9478   if test "${ac_cv_search_ffi_call+set}" = set; then
9479   break
9480 fi
9481 done
9482 if test "${ac_cv_search_ffi_call+set}" = set; then
9483   :
9484 else
9485   ac_cv_search_ffi_call=no
9486 fi
9487 rm conftest.$ac_ext
9488 LIBS=$ac_func_search_save_LIBS
9489 fi
9490 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9491 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9492 ac_res=$ac_cv_search_ffi_call
9493 if test "$ac_res" != no; then
9494   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9495
9496 cat >>confdefs.h <<\_ACEOF
9497 #define HAVE_FFI_CALL 1
9498 _ACEOF
9499
9500 else
9501   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9502 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9503    { (exit 1); exit 1; }; }
9504 fi
9505
9506 fi
9507
9508 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9509 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9510 if test "${ac_cv_search_mallinfo+set}" = set; then
9511   echo $ECHO_N "(cached) $ECHO_C" >&6
9512 else
9513   ac_func_search_save_LIBS=$LIBS
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h.  */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h.  */
9520
9521 /* Override any GCC internal prototype to avoid an error.
9522    Use char because int might match the return type of a GCC
9523    builtin and then its argument prototype would still apply.  */
9524 #ifdef __cplusplus
9525 extern "C"
9526 #endif
9527 char mallinfo ();
9528 int
9529 main ()
9530 {
9531 return mallinfo ();
9532   ;
9533   return 0;
9534 }
9535 _ACEOF
9536 for ac_lib in '' malloc; do
9537   if test -z "$ac_lib"; then
9538     ac_res="none required"
9539   else
9540     ac_res=-l$ac_lib
9541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9542   fi
9543   rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (ac_try="$ac_link"
9545 case "(($ac_try" in
9546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547   *) ac_try_echo=$ac_try;;
9548 esac
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550   (eval "$ac_link") 2>conftest.er1
9551   ac_status=$?
9552   grep -v '^ *+' conftest.er1 >conftest.err
9553   rm -f conftest.er1
9554   cat conftest.err >&5
9555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556   (exit $ac_status); } &&
9557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9558   { (case "(($ac_try" in
9559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560   *) ac_try_echo=$ac_try;;
9561 esac
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563   (eval "$ac_try") 2>&5
9564   ac_status=$?
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); }; } &&
9567          { ac_try='test -s conftest$ac_exeext'
9568   { (case "(($ac_try" in
9569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570   *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573   (eval "$ac_try") 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; }; then
9577   ac_cv_search_mallinfo=$ac_res
9578 else
9579   echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9581
9582
9583 fi
9584
9585 rm -f core conftest.err conftest.$ac_objext \
9586       conftest$ac_exeext
9587   if test "${ac_cv_search_mallinfo+set}" = set; then
9588   break
9589 fi
9590 done
9591 if test "${ac_cv_search_mallinfo+set}" = set; then
9592   :
9593 else
9594   ac_cv_search_mallinfo=no
9595 fi
9596 rm conftest.$ac_ext
9597 LIBS=$ac_func_search_save_LIBS
9598 fi
9599 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9600 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9601 ac_res=$ac_cv_search_mallinfo
9602 if test "$ac_res" != no; then
9603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9604
9605 cat >>confdefs.h <<\_ACEOF
9606 #define HAVE_MALLINFO 1
9607 _ACEOF
9608
9609 fi
9610
9611
9612 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9613
9614 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9615 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9616 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9617   echo $ECHO_N "(cached) $ECHO_C" >&6
9618 else
9619   ac_check_lib_save_LIBS=$LIBS
9620 LIBS="-lpthread  $LIBS"
9621 cat >conftest.$ac_ext <<_ACEOF
9622 /* confdefs.h.  */
9623 _ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h.  */
9627
9628 /* Override any GCC internal prototype to avoid an error.
9629    Use char because int might match the return type of a GCC
9630    builtin and then its argument prototype would still apply.  */
9631 #ifdef __cplusplus
9632 extern "C"
9633 #endif
9634 char pthread_mutex_init ();
9635 int
9636 main ()
9637 {
9638 return pthread_mutex_init ();
9639   ;
9640   return 0;
9641 }
9642 _ACEOF
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (ac_try="$ac_link"
9645 case "(($ac_try" in
9646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647   *) ac_try_echo=$ac_try;;
9648 esac
9649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9650   (eval "$ac_link") 2>conftest.er1
9651   ac_status=$?
9652   grep -v '^ *+' conftest.er1 >conftest.err
9653   rm -f conftest.er1
9654   cat conftest.err >&5
9655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656   (exit $ac_status); } &&
9657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9658   { (case "(($ac_try" in
9659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660   *) ac_try_echo=$ac_try;;
9661 esac
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663   (eval "$ac_try") 2>&5
9664   ac_status=$?
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); }; } &&
9667          { ac_try='test -s conftest$ac_exeext'
9668   { (case "(($ac_try" in
9669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670   *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673   (eval "$ac_try") 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); }; }; then
9677   ac_cv_lib_pthread_pthread_mutex_init=yes
9678 else
9679   echo "$as_me: failed program was:" >&5
9680 sed 's/^/| /' conftest.$ac_ext >&5
9681
9682         ac_cv_lib_pthread_pthread_mutex_init=no
9683 fi
9684
9685 rm -f core conftest.err conftest.$ac_objext \
9686       conftest$ac_exeext conftest.$ac_ext
9687 LIBS=$ac_check_lib_save_LIBS
9688 fi
9689 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9690 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9691 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9692   cat >>confdefs.h <<_ACEOF
9693 #define HAVE_LIBPTHREAD 1
9694 _ACEOF
9695
9696   LIBS="-lpthread $LIBS"
9697
9698 fi
9699
9700   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9701 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9702 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9703   echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705   ac_func_search_save_LIBS=$LIBS
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h.  */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h.  */
9712
9713 /* Override any GCC internal prototype to avoid an error.
9714    Use char because int might match the return type of a GCC
9715    builtin and then its argument prototype would still apply.  */
9716 #ifdef __cplusplus
9717 extern "C"
9718 #endif
9719 char pthread_mutex_lock ();
9720 int
9721 main ()
9722 {
9723 return pthread_mutex_lock ();
9724   ;
9725   return 0;
9726 }
9727 _ACEOF
9728 for ac_lib in '' pthread; do
9729   if test -z "$ac_lib"; then
9730     ac_res="none required"
9731   else
9732     ac_res=-l$ac_lib
9733     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9734   fi
9735   rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (ac_try="$ac_link"
9737 case "(($ac_try" in
9738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9739   *) ac_try_echo=$ac_try;;
9740 esac
9741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9742   (eval "$ac_link") 2>conftest.er1
9743   ac_status=$?
9744   grep -v '^ *+' conftest.er1 >conftest.err
9745   rm -f conftest.er1
9746   cat conftest.err >&5
9747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748   (exit $ac_status); } &&
9749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9750   { (case "(($ac_try" in
9751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752   *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755   (eval "$ac_try") 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); }; } &&
9759          { ac_try='test -s conftest$ac_exeext'
9760   { (case "(($ac_try" in
9761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762   *) ac_try_echo=$ac_try;;
9763 esac
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765   (eval "$ac_try") 2>&5
9766   ac_status=$?
9767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768   (exit $ac_status); }; }; then
9769   ac_cv_search_pthread_mutex_lock=$ac_res
9770 else
9771   echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9773
9774
9775 fi
9776
9777 rm -f core conftest.err conftest.$ac_objext \
9778       conftest$ac_exeext
9779   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9780   break
9781 fi
9782 done
9783 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9784   :
9785 else
9786   ac_cv_search_pthread_mutex_lock=no
9787 fi
9788 rm conftest.$ac_ext
9789 LIBS=$ac_func_search_save_LIBS
9790 fi
9791 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9792 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9793 ac_res=$ac_cv_search_pthread_mutex_lock
9794 if test "$ac_res" != no; then
9795   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9796
9797 cat >>confdefs.h <<\_ACEOF
9798 #define HAVE_PTHREAD_MUTEX_LOCK 1
9799 _ACEOF
9800
9801 fi
9802
9803   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9804 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9805 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9806   echo $ECHO_N "(cached) $ECHO_C" >&6
9807 else
9808   ac_func_search_save_LIBS=$LIBS
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h.  */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h.  */
9815
9816 /* Override any GCC internal prototype to avoid an error.
9817    Use char because int might match the return type of a GCC
9818    builtin and then its argument prototype would still apply.  */
9819 #ifdef __cplusplus
9820 extern "C"
9821 #endif
9822 char pthread_rwlock_init ();
9823 int
9824 main ()
9825 {
9826 return pthread_rwlock_init ();
9827   ;
9828   return 0;
9829 }
9830 _ACEOF
9831 for ac_lib in '' pthread; do
9832   if test -z "$ac_lib"; then
9833     ac_res="none required"
9834   else
9835     ac_res=-l$ac_lib
9836     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9837   fi
9838   rm -f conftest.$ac_objext conftest$ac_exeext
9839 if { (ac_try="$ac_link"
9840 case "(($ac_try" in
9841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842   *) ac_try_echo=$ac_try;;
9843 esac
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845   (eval "$ac_link") 2>conftest.er1
9846   ac_status=$?
9847   grep -v '^ *+' conftest.er1 >conftest.err
9848   rm -f conftest.er1
9849   cat conftest.err >&5
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); } &&
9852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9853   { (case "(($ac_try" in
9854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855   *) ac_try_echo=$ac_try;;
9856 esac
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858   (eval "$ac_try") 2>&5
9859   ac_status=$?
9860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861   (exit $ac_status); }; } &&
9862          { ac_try='test -s conftest$ac_exeext'
9863   { (case "(($ac_try" in
9864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865   *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868   (eval "$ac_try") 2>&5
9869   ac_status=$?
9870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871   (exit $ac_status); }; }; then
9872   ac_cv_search_pthread_rwlock_init=$ac_res
9873 else
9874   echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9876
9877
9878 fi
9879
9880 rm -f core conftest.err conftest.$ac_objext \
9881       conftest$ac_exeext
9882   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9883   break
9884 fi
9885 done
9886 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9887   :
9888 else
9889   ac_cv_search_pthread_rwlock_init=no
9890 fi
9891 rm conftest.$ac_ext
9892 LIBS=$ac_func_search_save_LIBS
9893 fi
9894 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9895 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9896 ac_res=$ac_cv_search_pthread_rwlock_init
9897 if test "$ac_res" != no; then
9898   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9899
9900 cat >>confdefs.h <<\_ACEOF
9901 #define HAVE_PTHREAD_RWLOCK_INIT 1
9902 _ACEOF
9903
9904 fi
9905
9906   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9907 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9908 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9909   echo $ECHO_N "(cached) $ECHO_C" >&6
9910 else
9911   ac_func_search_save_LIBS=$LIBS
9912 cat >conftest.$ac_ext <<_ACEOF
9913 /* confdefs.h.  */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h.  */
9918
9919 /* Override any GCC internal prototype to avoid an error.
9920    Use char because int might match the return type of a GCC
9921    builtin and then its argument prototype would still apply.  */
9922 #ifdef __cplusplus
9923 extern "C"
9924 #endif
9925 char pthread_getspecific ();
9926 int
9927 main ()
9928 {
9929 return pthread_getspecific ();
9930   ;
9931   return 0;
9932 }
9933 _ACEOF
9934 for ac_lib in '' pthread; do
9935   if test -z "$ac_lib"; then
9936     ac_res="none required"
9937   else
9938     ac_res=-l$ac_lib
9939     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9940   fi
9941   rm -f conftest.$ac_objext conftest$ac_exeext
9942 if { (ac_try="$ac_link"
9943 case "(($ac_try" in
9944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945   *) ac_try_echo=$ac_try;;
9946 esac
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948   (eval "$ac_link") 2>conftest.er1
9949   ac_status=$?
9950   grep -v '^ *+' conftest.er1 >conftest.err
9951   rm -f conftest.er1
9952   cat conftest.err >&5
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); } &&
9955          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9956   { (case "(($ac_try" in
9957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958   *) ac_try_echo=$ac_try;;
9959 esac
9960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9961   (eval "$ac_try") 2>&5
9962   ac_status=$?
9963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964   (exit $ac_status); }; } &&
9965          { ac_try='test -s conftest$ac_exeext'
9966   { (case "(($ac_try" in
9967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968   *) ac_try_echo=$ac_try;;
9969 esac
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971   (eval "$ac_try") 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; }; then
9975   ac_cv_search_pthread_getspecific=$ac_res
9976 else
9977   echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9979
9980
9981 fi
9982
9983 rm -f core conftest.err conftest.$ac_objext \
9984       conftest$ac_exeext
9985   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9986   break
9987 fi
9988 done
9989 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9990   :
9991 else
9992   ac_cv_search_pthread_getspecific=no
9993 fi
9994 rm conftest.$ac_ext
9995 LIBS=$ac_func_search_save_LIBS
9996 fi
9997 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9998 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9999 ac_res=$ac_cv_search_pthread_getspecific
10000 if test "$ac_res" != no; then
10001   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10002
10003 cat >>confdefs.h <<\_ACEOF
10004 #define HAVE_PTHREAD_GETSPECIFIC 1
10005 _ACEOF
10006
10007 fi
10008
10009 fi
10010
10011 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
10012
10013 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
10014 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
10015 if test "${ac_cv_lib_z_compress2+set}" = set; then
10016   echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018   ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-lz  $LIBS"
10020 cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h.  */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h.  */
10026
10027 /* Override any GCC internal prototype to avoid an error.
10028    Use char because int might match the return type of a GCC
10029    builtin and then its argument prototype would still apply.  */
10030 #ifdef __cplusplus
10031 extern "C"
10032 #endif
10033 char compress2 ();
10034 int
10035 main ()
10036 {
10037 return compress2 ();
10038   ;
10039   return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046   *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049   (eval "$ac_link") 2>conftest.er1
10050   ac_status=$?
10051   grep -v '^ *+' conftest.er1 >conftest.err
10052   rm -f conftest.er1
10053   cat conftest.err >&5
10054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } &&
10056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10057   { (case "(($ac_try" in
10058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059   *) ac_try_echo=$ac_try;;
10060 esac
10061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062   (eval "$ac_try") 2>&5
10063   ac_status=$?
10064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065   (exit $ac_status); }; } &&
10066          { ac_try='test -s conftest$ac_exeext'
10067   { (case "(($ac_try" in
10068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069   *) ac_try_echo=$ac_try;;
10070 esac
10071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10072   (eval "$ac_try") 2>&5
10073   ac_status=$?
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); }; }; then
10076   ac_cv_lib_z_compress2=yes
10077 else
10078   echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10080
10081         ac_cv_lib_z_compress2=no
10082 fi
10083
10084 rm -f core conftest.err conftest.$ac_objext \
10085       conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10087 fi
10088 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10089 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10090 if test $ac_cv_lib_z_compress2 = yes; then
10091   cat >>confdefs.h <<_ACEOF
10092 #define HAVE_LIBZ 1
10093 _ACEOF
10094
10095   LIBS="-lz $LIBS"
10096
10097 fi
10098
10099 fi
10100
10101
10102 # Check whether --with-oprofile was given.
10103 if test "${with_oprofile+set}" = set; then
10104   withval=$with_oprofile;
10105       USE_OPROFILE=1
10106
10107       case "$withval" in
10108         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10109         no) llvm_cv_oppath=
10110             USE_OPROFILE=0
10111  ;;
10112         *) llvm_cv_oppath="${withval}/lib/oprofile"
10113            CPPFLAGS="-I${withval}/include";;
10114       esac
10115       case $llvm_cv_os_type in
10116         Linux)
10117           if test -n "$llvm_cv_oppath" ; then
10118             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10119                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10120 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10121 if test "${ac_cv_search_bfd_init+set}" = set; then
10122   echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124   ac_func_search_save_LIBS=$LIBS
10125 cat >conftest.$ac_ext <<_ACEOF
10126 /* confdefs.h.  */
10127 _ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h.  */
10131
10132 /* Override any GCC internal prototype to avoid an error.
10133    Use char because int might match the return type of a GCC
10134    builtin and then its argument prototype would still apply.  */
10135 #ifdef __cplusplus
10136 extern "C"
10137 #endif
10138 char bfd_init ();
10139 int
10140 main ()
10141 {
10142 return bfd_init ();
10143   ;
10144   return 0;
10145 }
10146 _ACEOF
10147 for ac_lib in '' bfd; do
10148   if test -z "$ac_lib"; then
10149     ac_res="none required"
10150   else
10151     ac_res=-l$ac_lib
10152     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10153   fi
10154   rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158   *) ac_try_echo=$ac_try;;
10159 esac
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161   (eval "$ac_link") 2>conftest.er1
10162   ac_status=$?
10163   grep -v '^ *+' conftest.er1 >conftest.err
10164   rm -f conftest.er1
10165   cat conftest.err >&5
10166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167   (exit $ac_status); } &&
10168          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10169   { (case "(($ac_try" in
10170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171   *) ac_try_echo=$ac_try;;
10172 esac
10173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10174   (eval "$ac_try") 2>&5
10175   ac_status=$?
10176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); }; } &&
10178          { ac_try='test -s conftest$ac_exeext'
10179   { (case "(($ac_try" in
10180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181   *) ac_try_echo=$ac_try;;
10182 esac
10183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10184   (eval "$ac_try") 2>&5
10185   ac_status=$?
10186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187   (exit $ac_status); }; }; then
10188   ac_cv_search_bfd_init=$ac_res
10189 else
10190   echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193
10194 fi
10195
10196 rm -f core conftest.err conftest.$ac_objext \
10197       conftest$ac_exeext
10198   if test "${ac_cv_search_bfd_init+set}" = set; then
10199   break
10200 fi
10201 done
10202 if test "${ac_cv_search_bfd_init+set}" = set; then
10203   :
10204 else
10205   ac_cv_search_bfd_init=no
10206 fi
10207 rm conftest.$ac_ext
10208 LIBS=$ac_func_search_save_LIBS
10209 fi
10210 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10211 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10212 ac_res=$ac_cv_search_bfd_init
10213 if test "$ac_res" != no; then
10214   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10215
10216 fi
10217
10218             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10219 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10220 if test "${ac_cv_search_op_open_agent+set}" = set; then
10221   echo $ECHO_N "(cached) $ECHO_C" >&6
10222 else
10223   ac_func_search_save_LIBS=$LIBS
10224 cat >conftest.$ac_ext <<_ACEOF
10225 /* confdefs.h.  */
10226 _ACEOF
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h.  */
10230
10231 /* Override any GCC internal prototype to avoid an error.
10232    Use char because int might match the return type of a GCC
10233    builtin and then its argument prototype would still apply.  */
10234 #ifdef __cplusplus
10235 extern "C"
10236 #endif
10237 char op_open_agent ();
10238 int
10239 main ()
10240 {
10241 return op_open_agent ();
10242   ;
10243   return 0;
10244 }
10245 _ACEOF
10246 for ac_lib in '' opagent; do
10247   if test -z "$ac_lib"; then
10248     ac_res="none required"
10249   else
10250     ac_res=-l$ac_lib
10251     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10252   fi
10253   rm -f conftest.$ac_objext conftest$ac_exeext
10254 if { (ac_try="$ac_link"
10255 case "(($ac_try" in
10256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257   *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260   (eval "$ac_link") 2>conftest.er1
10261   ac_status=$?
10262   grep -v '^ *+' conftest.er1 >conftest.err
10263   rm -f conftest.er1
10264   cat conftest.err >&5
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); } &&
10267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10268   { (case "(($ac_try" in
10269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270   *) ac_try_echo=$ac_try;;
10271 esac
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273   (eval "$ac_try") 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); }; } &&
10277          { ac_try='test -s conftest$ac_exeext'
10278   { (case "(($ac_try" in
10279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280   *) ac_try_echo=$ac_try;;
10281 esac
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283   (eval "$ac_try") 2>&5
10284   ac_status=$?
10285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286   (exit $ac_status); }; }; then
10287   ac_cv_search_op_open_agent=$ac_res
10288 else
10289   echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10291
10292
10293 fi
10294
10295 rm -f core conftest.err conftest.$ac_objext \
10296       conftest$ac_exeext
10297   if test "${ac_cv_search_op_open_agent+set}" = set; then
10298   break
10299 fi
10300 done
10301 if test "${ac_cv_search_op_open_agent+set}" = set; then
10302   :
10303 else
10304   ac_cv_search_op_open_agent=no
10305 fi
10306 rm conftest.$ac_ext
10307 LIBS=$ac_func_search_save_LIBS
10308 fi
10309 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10310 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10311 ac_res=$ac_cv_search_op_open_agent
10312 if test "$ac_res" != no; then
10313   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10314
10315 else
10316
10317               echo "Error! You need to have libopagent around."
10318               exit 1
10319
10320 fi
10321
10322             if test "${ac_cv_header_opagent_h+set}" = set; then
10323   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10324 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10325 if test "${ac_cv_header_opagent_h+set}" = set; then
10326   echo $ECHO_N "(cached) $ECHO_C" >&6
10327 fi
10328 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10329 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10330 else
10331   # Is the header compilable?
10332 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10333 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10334 cat >conftest.$ac_ext <<_ACEOF
10335 /* confdefs.h.  */
10336 _ACEOF
10337 cat confdefs.h >>conftest.$ac_ext
10338 cat >>conftest.$ac_ext <<_ACEOF
10339 /* end confdefs.h.  */
10340 $ac_includes_default
10341 #include <opagent.h>
10342 _ACEOF
10343 rm -f conftest.$ac_objext
10344 if { (ac_try="$ac_compile"
10345 case "(($ac_try" in
10346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10347   *) ac_try_echo=$ac_try;;
10348 esac
10349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10350   (eval "$ac_compile") 2>conftest.er1
10351   ac_status=$?
10352   grep -v '^ *+' conftest.er1 >conftest.err
10353   rm -f conftest.er1
10354   cat conftest.err >&5
10355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356   (exit $ac_status); } &&
10357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10358   { (case "(($ac_try" in
10359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360   *) ac_try_echo=$ac_try;;
10361 esac
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363   (eval "$ac_try") 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; } &&
10367          { ac_try='test -s conftest.$ac_objext'
10368   { (case "(($ac_try" in
10369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370   *) ac_try_echo=$ac_try;;
10371 esac
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373   (eval "$ac_try") 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; }; then
10377   ac_header_compiler=yes
10378 else
10379   echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10381
10382         ac_header_compiler=no
10383 fi
10384
10385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10387 echo "${ECHO_T}$ac_header_compiler" >&6; }
10388
10389 # Is the header present?
10390 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10391 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10392 cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h.  */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h.  */
10398 #include <opagent.h>
10399 _ACEOF
10400 if { (ac_try="$ac_cpp conftest.$ac_ext"
10401 case "(($ac_try" in
10402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403   *) ac_try_echo=$ac_try;;
10404 esac
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10407   ac_status=$?
10408   grep -v '^ *+' conftest.er1 >conftest.err
10409   rm -f conftest.er1
10410   cat conftest.err >&5
10411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412   (exit $ac_status); } >/dev/null; then
10413   if test -s conftest.err; then
10414     ac_cpp_err=$ac_c_preproc_warn_flag
10415     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10416   else
10417     ac_cpp_err=
10418   fi
10419 else
10420   ac_cpp_err=yes
10421 fi
10422 if test -z "$ac_cpp_err"; then
10423   ac_header_preproc=yes
10424 else
10425   echo "$as_me: failed program was:" >&5
10426 sed 's/^/| /' conftest.$ac_ext >&5
10427
10428   ac_header_preproc=no
10429 fi
10430
10431 rm -f conftest.err conftest.$ac_ext
10432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10433 echo "${ECHO_T}$ac_header_preproc" >&6; }
10434
10435 # So?  What about this header?
10436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10437   yes:no: )
10438     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10439 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10440     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10441 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10442     ac_header_preproc=yes
10443     ;;
10444   no:yes:* )
10445     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10446 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10447     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10448 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10449     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10450 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10451     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10452 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10453     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10454 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10455     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10456 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10457     ( cat <<\_ASBOX
10458 ## ------------------------------------ ##
10459 ## Report this to http://llvm.org/bugs/ ##
10460 ## ------------------------------------ ##
10461 _ASBOX
10462      ) | sed "s/^/$as_me: WARNING:     /" >&2
10463     ;;
10464 esac
10465 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10466 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10467 if test "${ac_cv_header_opagent_h+set}" = set; then
10468   echo $ECHO_N "(cached) $ECHO_C" >&6
10469 else
10470   ac_cv_header_opagent_h=$ac_header_preproc
10471 fi
10472 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10473 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10474
10475 fi
10476 if test $ac_cv_header_opagent_h = yes; then
10477   :
10478 else
10479
10480               echo "Error! You need to have opagent.h around."
10481               exit 1
10482
10483 fi
10484
10485
10486           fi ;;
10487         *)
10488           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10489 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10490    { (exit 1); exit 1; }; } ;;
10491       esac
10492
10493 else
10494
10495       USE_OPROFILE=0
10496
10497
10498 fi
10499
10500
10501 cat >>confdefs.h <<_ACEOF
10502 #define LLVM_USE_OPROFILE $USE_OPROFILE
10503 _ACEOF
10504
10505
10506
10507 # Check whether --with-intel-jitevents was given.
10508 if test "${with_intel_jitevents+set}" = set; then
10509   withval=$with_intel_jitevents;
10510        case "$withval" in
10511           yes) USE_INTEL_JITEVENTS=1
10512 ;;
10513           no)  USE_INTEL_JITEVENTS=0
10514 ;;
10515           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10516 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10517    { (exit 1); exit 1; }; };;
10518        esac
10519
10520       case $llvm_cv_os_type in
10521         Linux|Win32|Cygwin|MingW) ;;
10522         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10523 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10524    { (exit 1); exit 1; }; };;
10525       esac
10526
10527       case "$llvm_cv_target_arch" in
10528         x86|x86_64) ;;
10529         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10530 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10531    { (exit 1); exit 1; }; };;
10532       esac
10533
10534 else
10535
10536       USE_INTEL_JITEVENTS=0
10537
10538
10539 fi
10540
10541
10542 cat >>confdefs.h <<_ACEOF
10543 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10544 _ACEOF
10545
10546
10547 for ac_prog in xml2-config
10548 do
10549   # Extract the first word of "$ac_prog", so it can be a program name with args.
10550 set dummy $ac_prog; ac_word=$2
10551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10553 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10554   echo $ECHO_N "(cached) $ECHO_C" >&6
10555 else
10556   if test -n "$XML2CONFIG"; then
10557   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10558 else
10559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560 for as_dir in $PATH
10561 do
10562   IFS=$as_save_IFS
10563   test -z "$as_dir" && as_dir=.
10564   for ac_exec_ext in '' $ac_executable_extensions; do
10565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10566     ac_cv_prog_XML2CONFIG="$ac_prog"
10567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10568     break 2
10569   fi
10570 done
10571 done
10572 IFS=$as_save_IFS
10573
10574 fi
10575 fi
10576 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10577 if test -n "$XML2CONFIG"; then
10578   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10579 echo "${ECHO_T}$XML2CONFIG" >&6; }
10580 else
10581   { echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6; }
10583 fi
10584
10585
10586   test -n "$XML2CONFIG" && break
10587 done
10588
10589
10590 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10591 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10592 if test "x$XML2CONFIG" = "x"; then
10593  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10594 echo "${ECHO_T}xml2-config not found" >&6; }
10595 else
10596  LIBXML2_INC=`$XML2CONFIG --cflags`
10597  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10598 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10599  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10600 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10601 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10602   echo $ECHO_N "(cached) $ECHO_C" >&6
10603 else
10604   ac_check_lib_save_LIBS=$LIBS
10605 LIBS="-lxml2  $LIBS"
10606 cat >conftest.$ac_ext <<_ACEOF
10607 /* confdefs.h.  */
10608 _ACEOF
10609 cat confdefs.h >>conftest.$ac_ext
10610 cat >>conftest.$ac_ext <<_ACEOF
10611 /* end confdefs.h.  */
10612
10613 /* Override any GCC internal prototype to avoid an error.
10614    Use char because int might match the return type of a GCC
10615    builtin and then its argument prototype would still apply.  */
10616 #ifdef __cplusplus
10617 extern "C"
10618 #endif
10619 char xmlReadFile ();
10620 int
10621 main ()
10622 {
10623 return xmlReadFile ();
10624   ;
10625   return 0;
10626 }
10627 _ACEOF
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (ac_try="$ac_link"
10630 case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635   (eval "$ac_link") 2>conftest.er1
10636   ac_status=$?
10637   grep -v '^ *+' conftest.er1 >conftest.err
10638   rm -f conftest.er1
10639   cat conftest.err >&5
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); } &&
10642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643   { (case "(($ac_try" in
10644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645   *) ac_try_echo=$ac_try;;
10646 esac
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648   (eval "$ac_try") 2>&5
10649   ac_status=$?
10650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651   (exit $ac_status); }; } &&
10652          { ac_try='test -s conftest$ac_exeext'
10653   { (case "(($ac_try" in
10654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655   *) ac_try_echo=$ac_try;;
10656 esac
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658   (eval "$ac_try") 2>&5
10659   ac_status=$?
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); }; }; then
10662   ac_cv_lib_xml2_xmlReadFile=yes
10663 else
10664   echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10666
10667         ac_cv_lib_xml2_xmlReadFile=no
10668 fi
10669
10670 rm -f core conftest.err conftest.$ac_objext \
10671       conftest$ac_exeext conftest.$ac_ext
10672 LIBS=$ac_check_lib_save_LIBS
10673 fi
10674 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10675 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10676 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10677
10678 cat >>confdefs.h <<\_ACEOF
10679 #define CLANG_HAVE_LIBXML 1
10680 _ACEOF
10681
10682                                 LIBXML2_LIBS="-lxml2"
10683 fi
10684
10685 fi
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695 ac_header_dirent=no
10696 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10697   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10698 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10699 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10701   echo $ECHO_N "(cached) $ECHO_C" >&6
10702 else
10703   cat >conftest.$ac_ext <<_ACEOF
10704 /* confdefs.h.  */
10705 _ACEOF
10706 cat confdefs.h >>conftest.$ac_ext
10707 cat >>conftest.$ac_ext <<_ACEOF
10708 /* end confdefs.h.  */
10709 #include <sys/types.h>
10710 #include <$ac_hdr>
10711
10712 int
10713 main ()
10714 {
10715 if ((DIR *) 0)
10716 return 0;
10717   ;
10718   return 0;
10719 }
10720 _ACEOF
10721 rm -f conftest.$ac_objext
10722 if { (ac_try="$ac_compile"
10723 case "(($ac_try" in
10724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10725   *) ac_try_echo=$ac_try;;
10726 esac
10727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10728   (eval "$ac_compile") 2>conftest.er1
10729   ac_status=$?
10730   grep -v '^ *+' conftest.er1 >conftest.err
10731   rm -f conftest.er1
10732   cat conftest.err >&5
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); } &&
10735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10736   { (case "(($ac_try" in
10737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738   *) ac_try_echo=$ac_try;;
10739 esac
10740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10741   (eval "$ac_try") 2>&5
10742   ac_status=$?
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); }; } &&
10745          { ac_try='test -s conftest.$ac_objext'
10746   { (case "(($ac_try" in
10747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748   *) ac_try_echo=$ac_try;;
10749 esac
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751   (eval "$ac_try") 2>&5
10752   ac_status=$?
10753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754   (exit $ac_status); }; }; then
10755   eval "$as_ac_Header=yes"
10756 else
10757   echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760         eval "$as_ac_Header=no"
10761 fi
10762
10763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 fi
10765 ac_res=`eval echo '${'$as_ac_Header'}'`
10766                { echo "$as_me:$LINENO: result: $ac_res" >&5
10767 echo "${ECHO_T}$ac_res" >&6; }
10768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10769   cat >>confdefs.h <<_ACEOF
10770 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10771 _ACEOF
10772
10773 ac_header_dirent=$ac_hdr; break
10774 fi
10775
10776 done
10777 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10778 if test $ac_header_dirent = dirent.h; then
10779   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10780 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10781 if test "${ac_cv_search_opendir+set}" = set; then
10782   echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784   ac_func_search_save_LIBS=$LIBS
10785 cat >conftest.$ac_ext <<_ACEOF
10786 /* confdefs.h.  */
10787 _ACEOF
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h.  */
10791
10792 /* Override any GCC internal prototype to avoid an error.
10793    Use char because int might match the return type of a GCC
10794    builtin and then its argument prototype would still apply.  */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char opendir ();
10799 int
10800 main ()
10801 {
10802 return opendir ();
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 for ac_lib in '' dir; do
10808   if test -z "$ac_lib"; then
10809     ac_res="none required"
10810   else
10811     ac_res=-l$ac_lib
10812     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10813   fi
10814   rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (ac_try="$ac_link"
10816 case "(($ac_try" in
10817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818   *) ac_try_echo=$ac_try;;
10819 esac
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821   (eval "$ac_link") 2>conftest.er1
10822   ac_status=$?
10823   grep -v '^ *+' conftest.er1 >conftest.err
10824   rm -f conftest.er1
10825   cat conftest.err >&5
10826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827   (exit $ac_status); } &&
10828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10829   { (case "(($ac_try" in
10830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831   *) ac_try_echo=$ac_try;;
10832 esac
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834   (eval "$ac_try") 2>&5
10835   ac_status=$?
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); }; } &&
10838          { ac_try='test -s conftest$ac_exeext'
10839   { (case "(($ac_try" in
10840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841   *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844   (eval "$ac_try") 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); }; }; then
10848   ac_cv_search_opendir=$ac_res
10849 else
10850   echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10852
10853
10854 fi
10855
10856 rm -f core conftest.err conftest.$ac_objext \
10857       conftest$ac_exeext
10858   if test "${ac_cv_search_opendir+set}" = set; then
10859   break
10860 fi
10861 done
10862 if test "${ac_cv_search_opendir+set}" = set; then
10863   :
10864 else
10865   ac_cv_search_opendir=no
10866 fi
10867 rm conftest.$ac_ext
10868 LIBS=$ac_func_search_save_LIBS
10869 fi
10870 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10871 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10872 ac_res=$ac_cv_search_opendir
10873 if test "$ac_res" != no; then
10874   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10875
10876 fi
10877
10878 else
10879   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10880 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10881 if test "${ac_cv_search_opendir+set}" = set; then
10882   echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884   ac_func_search_save_LIBS=$LIBS
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h.  */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h.  */
10891
10892 /* Override any GCC internal prototype to avoid an error.
10893    Use char because int might match the return type of a GCC
10894    builtin and then its argument prototype would still apply.  */
10895 #ifdef __cplusplus
10896 extern "C"
10897 #endif
10898 char opendir ();
10899 int
10900 main ()
10901 {
10902 return opendir ();
10903   ;
10904   return 0;
10905 }
10906 _ACEOF
10907 for ac_lib in '' x; do
10908   if test -z "$ac_lib"; then
10909     ac_res="none required"
10910   else
10911     ac_res=-l$ac_lib
10912     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10913   fi
10914   rm -f conftest.$ac_objext conftest$ac_exeext
10915 if { (ac_try="$ac_link"
10916 case "(($ac_try" in
10917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918   *) ac_try_echo=$ac_try;;
10919 esac
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921   (eval "$ac_link") 2>conftest.er1
10922   ac_status=$?
10923   grep -v '^ *+' conftest.er1 >conftest.err
10924   rm -f conftest.er1
10925   cat conftest.err >&5
10926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927   (exit $ac_status); } &&
10928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10929   { (case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934   (eval "$ac_try") 2>&5
10935   ac_status=$?
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); }; } &&
10938          { ac_try='test -s conftest$ac_exeext'
10939   { (case "(($ac_try" in
10940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941   *) ac_try_echo=$ac_try;;
10942 esac
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944   (eval "$ac_try") 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); }; }; then
10948   ac_cv_search_opendir=$ac_res
10949 else
10950   echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10952
10953
10954 fi
10955
10956 rm -f core conftest.err conftest.$ac_objext \
10957       conftest$ac_exeext
10958   if test "${ac_cv_search_opendir+set}" = set; then
10959   break
10960 fi
10961 done
10962 if test "${ac_cv_search_opendir+set}" = set; then
10963   :
10964 else
10965   ac_cv_search_opendir=no
10966 fi
10967 rm conftest.$ac_ext
10968 LIBS=$ac_func_search_save_LIBS
10969 fi
10970 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10971 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10972 ac_res=$ac_cv_search_opendir
10973 if test "$ac_res" != no; then
10974   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10975
10976 fi
10977
10978 fi
10979
10980 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10981 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10982 if test "${ac_cv_header_mmap_anon+set}" = set; then
10983   echo $ECHO_N "(cached) $ECHO_C" >&6
10984 else
10985    ac_ext=c
10986 ac_cpp='$CPP $CPPFLAGS'
10987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10990
10991   cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h.  */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h.  */
10997 #include <sys/mman.h>
10998 #include <unistd.h>
10999 #include <fcntl.h>
11000 int
11001 main ()
11002 {
11003 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11004   ;
11005   return 0;
11006 }
11007 _ACEOF
11008 rm -f conftest.$ac_objext
11009 if { (ac_try="$ac_compile"
11010 case "(($ac_try" in
11011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11012   *) ac_try_echo=$ac_try;;
11013 esac
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015   (eval "$ac_compile") 2>conftest.er1
11016   ac_status=$?
11017   grep -v '^ *+' conftest.er1 >conftest.err
11018   rm -f conftest.er1
11019   cat conftest.err >&5
11020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021   (exit $ac_status); } &&
11022          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11023   { (case "(($ac_try" in
11024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025   *) ac_try_echo=$ac_try;;
11026 esac
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028   (eval "$ac_try") 2>&5
11029   ac_status=$?
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); }; } &&
11032          { ac_try='test -s conftest.$ac_objext'
11033   { (case "(($ac_try" in
11034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11035   *) ac_try_echo=$ac_try;;
11036 esac
11037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11038   (eval "$ac_try") 2>&5
11039   ac_status=$?
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); }; }; then
11042   ac_cv_header_mmap_anon=yes
11043 else
11044   echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11046
11047         ac_cv_header_mmap_anon=no
11048 fi
11049
11050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11051   ac_ext=c
11052 ac_cpp='$CPP $CPPFLAGS'
11053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11056
11057
11058 fi
11059 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
11060 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
11061 if test "$ac_cv_header_mmap_anon" = yes; then
11062
11063 cat >>confdefs.h <<\_ACEOF
11064 #define HAVE_MMAP_ANONYMOUS 1
11065 _ACEOF
11066
11067 fi
11068
11069 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11070 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
11071 if test "${ac_cv_header_stat_broken+set}" = set; then
11072   echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074   cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h.  */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h.  */
11080 #include <sys/types.h>
11081 #include <sys/stat.h>
11082
11083 #if defined S_ISBLK && defined S_IFDIR
11084 # if S_ISBLK (S_IFDIR)
11085 You lose.
11086 # endif
11087 #endif
11088
11089 #if defined S_ISBLK && defined S_IFCHR
11090 # if S_ISBLK (S_IFCHR)
11091 You lose.
11092 # endif
11093 #endif
11094
11095 #if defined S_ISLNK && defined S_IFREG
11096 # if S_ISLNK (S_IFREG)
11097 You lose.
11098 # endif
11099 #endif
11100
11101 #if defined S_ISSOCK && defined S_IFREG
11102 # if S_ISSOCK (S_IFREG)
11103 You lose.
11104 # endif
11105 #endif
11106
11107 _ACEOF
11108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11109   $EGREP "You lose" >/dev/null 2>&1; then
11110   ac_cv_header_stat_broken=yes
11111 else
11112   ac_cv_header_stat_broken=no
11113 fi
11114 rm -f conftest*
11115
11116 fi
11117 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11118 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11119 if test $ac_cv_header_stat_broken = yes; then
11120
11121 cat >>confdefs.h <<\_ACEOF
11122 #define STAT_MACROS_BROKEN 1
11123 _ACEOF
11124
11125 fi
11126
11127 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11128 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11129 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11130   echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132   cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 #include <sys/types.h>
11139 #include <sys/wait.h>
11140 #ifndef WEXITSTATUS
11141 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11142 #endif
11143 #ifndef WIFEXITED
11144 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11145 #endif
11146
11147 int
11148 main ()
11149 {
11150   int s;
11151   wait (&s);
11152   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11153   ;
11154   return 0;
11155 }
11156 _ACEOF
11157 rm -f conftest.$ac_objext
11158 if { (ac_try="$ac_compile"
11159 case "(($ac_try" in
11160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11161   *) ac_try_echo=$ac_try;;
11162 esac
11163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11164   (eval "$ac_compile") 2>conftest.er1
11165   ac_status=$?
11166   grep -v '^ *+' conftest.er1 >conftest.err
11167   rm -f conftest.er1
11168   cat conftest.err >&5
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); } &&
11171          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11172   { (case "(($ac_try" in
11173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174   *) ac_try_echo=$ac_try;;
11175 esac
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177   (eval "$ac_try") 2>&5
11178   ac_status=$?
11179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180   (exit $ac_status); }; } &&
11181          { ac_try='test -s conftest.$ac_objext'
11182   { (case "(($ac_try" in
11183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11184   *) ac_try_echo=$ac_try;;
11185 esac
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187   (eval "$ac_try") 2>&5
11188   ac_status=$?
11189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190   (exit $ac_status); }; }; then
11191   ac_cv_header_sys_wait_h=yes
11192 else
11193   echo "$as_me: failed program was:" >&5
11194 sed 's/^/| /' conftest.$ac_ext >&5
11195
11196         ac_cv_header_sys_wait_h=no
11197 fi
11198
11199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11200 fi
11201 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11202 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11203 if test $ac_cv_header_sys_wait_h = yes; then
11204
11205 cat >>confdefs.h <<\_ACEOF
11206 #define HAVE_SYS_WAIT_H 1
11207 _ACEOF
11208
11209 fi
11210
11211 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11212 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11213 if test "${ac_cv_header_time+set}" = set; then
11214   echo $ECHO_N "(cached) $ECHO_C" >&6
11215 else
11216   cat >conftest.$ac_ext <<_ACEOF
11217 /* confdefs.h.  */
11218 _ACEOF
11219 cat confdefs.h >>conftest.$ac_ext
11220 cat >>conftest.$ac_ext <<_ACEOF
11221 /* end confdefs.h.  */
11222 #include <sys/types.h>
11223 #include <sys/time.h>
11224 #include <time.h>
11225
11226 int
11227 main ()
11228 {
11229 if ((struct tm *) 0)
11230 return 0;
11231   ;
11232   return 0;
11233 }
11234 _ACEOF
11235 rm -f conftest.$ac_objext
11236 if { (ac_try="$ac_compile"
11237 case "(($ac_try" in
11238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239   *) ac_try_echo=$ac_try;;
11240 esac
11241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242   (eval "$ac_compile") 2>conftest.er1
11243   ac_status=$?
11244   grep -v '^ *+' conftest.er1 >conftest.err
11245   rm -f conftest.er1
11246   cat conftest.err >&5
11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); } &&
11249          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11250   { (case "(($ac_try" in
11251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252   *) ac_try_echo=$ac_try;;
11253 esac
11254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255   (eval "$ac_try") 2>&5
11256   ac_status=$?
11257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258   (exit $ac_status); }; } &&
11259          { ac_try='test -s conftest.$ac_objext'
11260   { (case "(($ac_try" in
11261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262   *) ac_try_echo=$ac_try;;
11263 esac
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265   (eval "$ac_try") 2>&5
11266   ac_status=$?
11267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); }; }; then
11269   ac_cv_header_time=yes
11270 else
11271   echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11273
11274         ac_cv_header_time=no
11275 fi
11276
11277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11278 fi
11279 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11280 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11281 if test $ac_cv_header_time = yes; then
11282
11283 cat >>confdefs.h <<\_ACEOF
11284 #define TIME_WITH_SYS_TIME 1
11285 _ACEOF
11286
11287 fi
11288
11289
11290 ac_ext=cpp
11291 ac_cpp='$CXXCPP $CPPFLAGS'
11292 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11293 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11294 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11295
11296
11297 for ac_header in cxxabi.h
11298 do
11299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11303   echo $ECHO_N "(cached) $ECHO_C" >&6
11304 else
11305   cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h.  */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h.  */
11311 #include <stddef.h>
11312
11313
11314 #include <$ac_header>
11315 _ACEOF
11316 rm -f conftest.$ac_objext
11317 if { (ac_try="$ac_compile"
11318 case "(($ac_try" in
11319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320   *) ac_try_echo=$ac_try;;
11321 esac
11322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323   (eval "$ac_compile") 2>conftest.er1
11324   ac_status=$?
11325   grep -v '^ *+' conftest.er1 >conftest.err
11326   rm -f conftest.er1
11327   cat conftest.err >&5
11328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); } &&
11330          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11331   { (case "(($ac_try" in
11332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333   *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336   (eval "$ac_try") 2>&5
11337   ac_status=$?
11338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339   (exit $ac_status); }; } &&
11340          { ac_try='test -s conftest.$ac_objext'
11341   { (case "(($ac_try" in
11342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343   *) ac_try_echo=$ac_try;;
11344 esac
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346   (eval "$ac_try") 2>&5
11347   ac_status=$?
11348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349   (exit $ac_status); }; }; then
11350   eval "$as_ac_Header=yes"
11351 else
11352   echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.$ac_ext >&5
11354
11355         eval "$as_ac_Header=no"
11356 fi
11357
11358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359 fi
11360 ac_res=`eval echo '${'$as_ac_Header'}'`
11361                { echo "$as_me:$LINENO: result: $ac_res" >&5
11362 echo "${ECHO_T}$ac_res" >&6; }
11363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11364   cat >>confdefs.h <<_ACEOF
11365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11366 _ACEOF
11367
11368 fi
11369
11370 done
11371
11372 ac_ext=c
11373 ac_cpp='$CPP $CPPFLAGS'
11374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11377
11378
11379
11380
11381
11382
11383
11384 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11385 do
11386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11388   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11391   echo $ECHO_N "(cached) $ECHO_C" >&6
11392 fi
11393 ac_res=`eval echo '${'$as_ac_Header'}'`
11394                { echo "$as_me:$LINENO: result: $ac_res" >&5
11395 echo "${ECHO_T}$ac_res" >&6; }
11396 else
11397   # Is the header compilable?
11398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11400 cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h.  */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h.  */
11406 $ac_includes_default
11407 #include <$ac_header>
11408 _ACEOF
11409 rm -f conftest.$ac_objext
11410 if { (ac_try="$ac_compile"
11411 case "(($ac_try" in
11412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11413   *) ac_try_echo=$ac_try;;
11414 esac
11415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11416   (eval "$ac_compile") 2>conftest.er1
11417   ac_status=$?
11418   grep -v '^ *+' conftest.er1 >conftest.err
11419   rm -f conftest.er1
11420   cat conftest.err >&5
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); } &&
11423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11424   { (case "(($ac_try" in
11425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426   *) ac_try_echo=$ac_try;;
11427 esac
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429   (eval "$ac_try") 2>&5
11430   ac_status=$?
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); }; } &&
11433          { ac_try='test -s conftest.$ac_objext'
11434   { (case "(($ac_try" in
11435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436   *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439   (eval "$ac_try") 2>&5
11440   ac_status=$?
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); }; }; then
11443   ac_header_compiler=yes
11444 else
11445   echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11447
11448         ac_header_compiler=no
11449 fi
11450
11451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11453 echo "${ECHO_T}$ac_header_compiler" >&6; }
11454
11455 # Is the header present?
11456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11458 cat >conftest.$ac_ext <<_ACEOF
11459 /* confdefs.h.  */
11460 _ACEOF
11461 cat confdefs.h >>conftest.$ac_ext
11462 cat >>conftest.$ac_ext <<_ACEOF
11463 /* end confdefs.h.  */
11464 #include <$ac_header>
11465 _ACEOF
11466 if { (ac_try="$ac_cpp conftest.$ac_ext"
11467 case "(($ac_try" in
11468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469   *) ac_try_echo=$ac_try;;
11470 esac
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11473   ac_status=$?
11474   grep -v '^ *+' conftest.er1 >conftest.err
11475   rm -f conftest.er1
11476   cat conftest.err >&5
11477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478   (exit $ac_status); } >/dev/null; then
11479   if test -s conftest.err; then
11480     ac_cpp_err=$ac_c_preproc_warn_flag
11481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11482   else
11483     ac_cpp_err=
11484   fi
11485 else
11486   ac_cpp_err=yes
11487 fi
11488 if test -z "$ac_cpp_err"; then
11489   ac_header_preproc=yes
11490 else
11491   echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11493
11494   ac_header_preproc=no
11495 fi
11496
11497 rm -f conftest.err conftest.$ac_ext
11498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11499 echo "${ECHO_T}$ac_header_preproc" >&6; }
11500
11501 # So?  What about this header?
11502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11503   yes:no: )
11504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11508     ac_header_preproc=yes
11509     ;;
11510   no:yes:* )
11511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11523     ( cat <<\_ASBOX
11524 ## ------------------------------------ ##
11525 ## Report this to http://llvm.org/bugs/ ##
11526 ## ------------------------------------ ##
11527 _ASBOX
11528      ) | sed "s/^/$as_me: WARNING:     /" >&2
11529     ;;
11530 esac
11531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11534   echo $ECHO_N "(cached) $ECHO_C" >&6
11535 else
11536   eval "$as_ac_Header=\$ac_header_preproc"
11537 fi
11538 ac_res=`eval echo '${'$as_ac_Header'}'`
11539                { echo "$as_me:$LINENO: result: $ac_res" >&5
11540 echo "${ECHO_T}$ac_res" >&6; }
11541
11542 fi
11543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11544   cat >>confdefs.h <<_ACEOF
11545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11546 _ACEOF
11547
11548 fi
11549
11550 done
11551
11552
11553
11554
11555
11556
11557
11558 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11559 do
11560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11562   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11565   echo $ECHO_N "(cached) $ECHO_C" >&6
11566 fi
11567 ac_res=`eval echo '${'$as_ac_Header'}'`
11568                { echo "$as_me:$LINENO: result: $ac_res" >&5
11569 echo "${ECHO_T}$ac_res" >&6; }
11570 else
11571   # Is the header compilable?
11572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11574 cat >conftest.$ac_ext <<_ACEOF
11575 /* confdefs.h.  */
11576 _ACEOF
11577 cat confdefs.h >>conftest.$ac_ext
11578 cat >>conftest.$ac_ext <<_ACEOF
11579 /* end confdefs.h.  */
11580 $ac_includes_default
11581 #include <$ac_header>
11582 _ACEOF
11583 rm -f conftest.$ac_objext
11584 if { (ac_try="$ac_compile"
11585 case "(($ac_try" in
11586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587   *) ac_try_echo=$ac_try;;
11588 esac
11589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590   (eval "$ac_compile") 2>conftest.er1
11591   ac_status=$?
11592   grep -v '^ *+' conftest.er1 >conftest.err
11593   rm -f conftest.er1
11594   cat conftest.err >&5
11595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596   (exit $ac_status); } &&
11597          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11598   { (case "(($ac_try" in
11599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600   *) ac_try_echo=$ac_try;;
11601 esac
11602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603   (eval "$ac_try") 2>&5
11604   ac_status=$?
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); }; } &&
11607          { ac_try='test -s conftest.$ac_objext'
11608   { (case "(($ac_try" in
11609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11610   *) ac_try_echo=$ac_try;;
11611 esac
11612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11613   (eval "$ac_try") 2>&5
11614   ac_status=$?
11615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616   (exit $ac_status); }; }; then
11617   ac_header_compiler=yes
11618 else
11619   echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11621
11622         ac_header_compiler=no
11623 fi
11624
11625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11627 echo "${ECHO_T}$ac_header_compiler" >&6; }
11628
11629 # Is the header present?
11630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11632 cat >conftest.$ac_ext <<_ACEOF
11633 /* confdefs.h.  */
11634 _ACEOF
11635 cat confdefs.h >>conftest.$ac_ext
11636 cat >>conftest.$ac_ext <<_ACEOF
11637 /* end confdefs.h.  */
11638 #include <$ac_header>
11639 _ACEOF
11640 if { (ac_try="$ac_cpp conftest.$ac_ext"
11641 case "(($ac_try" in
11642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643   *) ac_try_echo=$ac_try;;
11644 esac
11645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11647   ac_status=$?
11648   grep -v '^ *+' conftest.er1 >conftest.err
11649   rm -f conftest.er1
11650   cat conftest.err >&5
11651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652   (exit $ac_status); } >/dev/null; then
11653   if test -s conftest.err; then
11654     ac_cpp_err=$ac_c_preproc_warn_flag
11655     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11656   else
11657     ac_cpp_err=
11658   fi
11659 else
11660   ac_cpp_err=yes
11661 fi
11662 if test -z "$ac_cpp_err"; then
11663   ac_header_preproc=yes
11664 else
11665   echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668   ac_header_preproc=no
11669 fi
11670
11671 rm -f conftest.err conftest.$ac_ext
11672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11673 echo "${ECHO_T}$ac_header_preproc" >&6; }
11674
11675 # So?  What about this header?
11676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11677   yes:no: )
11678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11682     ac_header_preproc=yes
11683     ;;
11684   no:yes:* )
11685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11687     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11688 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11689     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11691     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11692 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11695     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11697     ( cat <<\_ASBOX
11698 ## ------------------------------------ ##
11699 ## Report this to http://llvm.org/bugs/ ##
11700 ## ------------------------------------ ##
11701 _ASBOX
11702      ) | sed "s/^/$as_me: WARNING:     /" >&2
11703     ;;
11704 esac
11705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11708   echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710   eval "$as_ac_Header=\$ac_header_preproc"
11711 fi
11712 ac_res=`eval echo '${'$as_ac_Header'}'`
11713                { echo "$as_me:$LINENO: result: $ac_res" >&5
11714 echo "${ECHO_T}$ac_res" >&6; }
11715
11716 fi
11717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11718   cat >>confdefs.h <<_ACEOF
11719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11720 _ACEOF
11721
11722 fi
11723
11724 done
11725
11726
11727 for ac_header in utime.h
11728 do
11729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11731   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11734   echo $ECHO_N "(cached) $ECHO_C" >&6
11735 fi
11736 ac_res=`eval echo '${'$as_ac_Header'}'`
11737                { echo "$as_me:$LINENO: result: $ac_res" >&5
11738 echo "${ECHO_T}$ac_res" >&6; }
11739 else
11740   # Is the header compilable?
11741 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11743 cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h.  */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h.  */
11749 $ac_includes_default
11750 #include <$ac_header>
11751 _ACEOF
11752 rm -f conftest.$ac_objext
11753 if { (ac_try="$ac_compile"
11754 case "(($ac_try" in
11755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756   *) ac_try_echo=$ac_try;;
11757 esac
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759   (eval "$ac_compile") 2>conftest.er1
11760   ac_status=$?
11761   grep -v '^ *+' conftest.er1 >conftest.err
11762   rm -f conftest.er1
11763   cat conftest.err >&5
11764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765   (exit $ac_status); } &&
11766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11767   { (case "(($ac_try" in
11768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769   *) ac_try_echo=$ac_try;;
11770 esac
11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772   (eval "$ac_try") 2>&5
11773   ac_status=$?
11774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775   (exit $ac_status); }; } &&
11776          { ac_try='test -s conftest.$ac_objext'
11777   { (case "(($ac_try" in
11778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779   *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782   (eval "$ac_try") 2>&5
11783   ac_status=$?
11784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785   (exit $ac_status); }; }; then
11786   ac_header_compiler=yes
11787 else
11788   echo "$as_me: failed program was:" >&5
11789 sed 's/^/| /' conftest.$ac_ext >&5
11790
11791         ac_header_compiler=no
11792 fi
11793
11794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11796 echo "${ECHO_T}$ac_header_compiler" >&6; }
11797
11798 # Is the header present?
11799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h.  */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h.  */
11807 #include <$ac_header>
11808 _ACEOF
11809 if { (ac_try="$ac_cpp conftest.$ac_ext"
11810 case "(($ac_try" in
11811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812   *) ac_try_echo=$ac_try;;
11813 esac
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11816   ac_status=$?
11817   grep -v '^ *+' conftest.er1 >conftest.err
11818   rm -f conftest.er1
11819   cat conftest.err >&5
11820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821   (exit $ac_status); } >/dev/null; then
11822   if test -s conftest.err; then
11823     ac_cpp_err=$ac_c_preproc_warn_flag
11824     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11825   else
11826     ac_cpp_err=
11827   fi
11828 else
11829   ac_cpp_err=yes
11830 fi
11831 if test -z "$ac_cpp_err"; then
11832   ac_header_preproc=yes
11833 else
11834   echo "$as_me: failed program was:" >&5
11835 sed 's/^/| /' conftest.$ac_ext >&5
11836
11837   ac_header_preproc=no
11838 fi
11839
11840 rm -f conftest.err conftest.$ac_ext
11841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11842 echo "${ECHO_T}$ac_header_preproc" >&6; }
11843
11844 # So?  What about this header?
11845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11846   yes:no: )
11847     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11848 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11849     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11850 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11851     ac_header_preproc=yes
11852     ;;
11853   no:yes:* )
11854     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11855 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11856     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11857 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11858     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11859 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11860     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11861 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11862     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11863 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11864     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11865 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11866     ( cat <<\_ASBOX
11867 ## ------------------------------------ ##
11868 ## Report this to http://llvm.org/bugs/ ##
11869 ## ------------------------------------ ##
11870 _ASBOX
11871      ) | sed "s/^/$as_me: WARNING:     /" >&2
11872     ;;
11873 esac
11874 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11875 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11876 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11877   echo $ECHO_N "(cached) $ECHO_C" >&6
11878 else
11879   eval "$as_ac_Header=\$ac_header_preproc"
11880 fi
11881 ac_res=`eval echo '${'$as_ac_Header'}'`
11882                { echo "$as_me:$LINENO: result: $ac_res" >&5
11883 echo "${ECHO_T}$ac_res" >&6; }
11884
11885 fi
11886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11887   cat >>confdefs.h <<_ACEOF
11888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11889 _ACEOF
11890
11891 fi
11892
11893 done
11894
11895
11896
11897
11898
11899
11900 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11901 do
11902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11904   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907   echo $ECHO_N "(cached) $ECHO_C" >&6
11908 fi
11909 ac_res=`eval echo '${'$as_ac_Header'}'`
11910                { echo "$as_me:$LINENO: result: $ac_res" >&5
11911 echo "${ECHO_T}$ac_res" >&6; }
11912 else
11913   # Is the header compilable?
11914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11916 cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h.  */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h.  */
11922 $ac_includes_default
11923 #include <$ac_header>
11924 _ACEOF
11925 rm -f conftest.$ac_objext
11926 if { (ac_try="$ac_compile"
11927 case "(($ac_try" in
11928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11929   *) ac_try_echo=$ac_try;;
11930 esac
11931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11932   (eval "$ac_compile") 2>conftest.er1
11933   ac_status=$?
11934   grep -v '^ *+' conftest.er1 >conftest.err
11935   rm -f conftest.er1
11936   cat conftest.err >&5
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); } &&
11939          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11940   { (case "(($ac_try" in
11941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942   *) ac_try_echo=$ac_try;;
11943 esac
11944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945   (eval "$ac_try") 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); }; } &&
11949          { ac_try='test -s conftest.$ac_objext'
11950   { (case "(($ac_try" in
11951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11952   *) ac_try_echo=$ac_try;;
11953 esac
11954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11955   (eval "$ac_try") 2>&5
11956   ac_status=$?
11957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958   (exit $ac_status); }; }; then
11959   ac_header_compiler=yes
11960 else
11961   echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11963
11964         ac_header_compiler=no
11965 fi
11966
11967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11969 echo "${ECHO_T}$ac_header_compiler" >&6; }
11970
11971 # Is the header present?
11972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11974 cat >conftest.$ac_ext <<_ACEOF
11975 /* confdefs.h.  */
11976 _ACEOF
11977 cat confdefs.h >>conftest.$ac_ext
11978 cat >>conftest.$ac_ext <<_ACEOF
11979 /* end confdefs.h.  */
11980 #include <$ac_header>
11981 _ACEOF
11982 if { (ac_try="$ac_cpp conftest.$ac_ext"
11983 case "(($ac_try" in
11984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11985   *) ac_try_echo=$ac_try;;
11986 esac
11987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11989   ac_status=$?
11990   grep -v '^ *+' conftest.er1 >conftest.err
11991   rm -f conftest.er1
11992   cat conftest.err >&5
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); } >/dev/null; then
11995   if test -s conftest.err; then
11996     ac_cpp_err=$ac_c_preproc_warn_flag
11997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11998   else
11999     ac_cpp_err=
12000   fi
12001 else
12002   ac_cpp_err=yes
12003 fi
12004 if test -z "$ac_cpp_err"; then
12005   ac_header_preproc=yes
12006 else
12007   echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12009
12010   ac_header_preproc=no
12011 fi
12012
12013 rm -f conftest.err conftest.$ac_ext
12014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12015 echo "${ECHO_T}$ac_header_preproc" >&6; }
12016
12017 # So?  What about this header?
12018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12019   yes:no: )
12020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12024     ac_header_preproc=yes
12025     ;;
12026   no:yes:* )
12027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12029     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12030 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12031     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12033     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12034 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12037     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12039     ( cat <<\_ASBOX
12040 ## ------------------------------------ ##
12041 ## Report this to http://llvm.org/bugs/ ##
12042 ## ------------------------------------ ##
12043 _ASBOX
12044      ) | sed "s/^/$as_me: WARNING:     /" >&2
12045     ;;
12046 esac
12047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12050   echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052   eval "$as_ac_Header=\$ac_header_preproc"
12053 fi
12054 ac_res=`eval echo '${'$as_ac_Header'}'`
12055                { echo "$as_me:$LINENO: result: $ac_res" >&5
12056 echo "${ECHO_T}$ac_res" >&6; }
12057
12058 fi
12059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12060   cat >>confdefs.h <<_ACEOF
12061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12062 _ACEOF
12063
12064 fi
12065
12066 done
12067
12068
12069
12070
12071 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12072 do
12073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12075   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12078   echo $ECHO_N "(cached) $ECHO_C" >&6
12079 fi
12080 ac_res=`eval echo '${'$as_ac_Header'}'`
12081                { echo "$as_me:$LINENO: result: $ac_res" >&5
12082 echo "${ECHO_T}$ac_res" >&6; }
12083 else
12084   # Is the header compilable?
12085 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12087 cat >conftest.$ac_ext <<_ACEOF
12088 /* confdefs.h.  */
12089 _ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h.  */
12093 $ac_includes_default
12094 #include <$ac_header>
12095 _ACEOF
12096 rm -f conftest.$ac_objext
12097 if { (ac_try="$ac_compile"
12098 case "(($ac_try" in
12099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12100   *) ac_try_echo=$ac_try;;
12101 esac
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103   (eval "$ac_compile") 2>conftest.er1
12104   ac_status=$?
12105   grep -v '^ *+' conftest.er1 >conftest.err
12106   rm -f conftest.er1
12107   cat conftest.err >&5
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); } &&
12110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12111   { (case "(($ac_try" in
12112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113   *) ac_try_echo=$ac_try;;
12114 esac
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116   (eval "$ac_try") 2>&5
12117   ac_status=$?
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); }; } &&
12120          { ac_try='test -s conftest.$ac_objext'
12121   { (case "(($ac_try" in
12122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123   *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126   (eval "$ac_try") 2>&5
12127   ac_status=$?
12128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129   (exit $ac_status); }; }; then
12130   ac_header_compiler=yes
12131 else
12132   echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12134
12135         ac_header_compiler=no
12136 fi
12137
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12140 echo "${ECHO_T}$ac_header_compiler" >&6; }
12141
12142 # Is the header present?
12143 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12145 cat >conftest.$ac_ext <<_ACEOF
12146 /* confdefs.h.  */
12147 _ACEOF
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h.  */
12151 #include <$ac_header>
12152 _ACEOF
12153 if { (ac_try="$ac_cpp conftest.$ac_ext"
12154 case "(($ac_try" in
12155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156   *) ac_try_echo=$ac_try;;
12157 esac
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12160   ac_status=$?
12161   grep -v '^ *+' conftest.er1 >conftest.err
12162   rm -f conftest.er1
12163   cat conftest.err >&5
12164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165   (exit $ac_status); } >/dev/null; then
12166   if test -s conftest.err; then
12167     ac_cpp_err=$ac_c_preproc_warn_flag
12168     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12169   else
12170     ac_cpp_err=
12171   fi
12172 else
12173   ac_cpp_err=yes
12174 fi
12175 if test -z "$ac_cpp_err"; then
12176   ac_header_preproc=yes
12177 else
12178   echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12180
12181   ac_header_preproc=no
12182 fi
12183
12184 rm -f conftest.err conftest.$ac_ext
12185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12186 echo "${ECHO_T}$ac_header_preproc" >&6; }
12187
12188 # So?  What about this header?
12189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12190   yes:no: )
12191     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12193     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12195     ac_header_preproc=yes
12196     ;;
12197   no:yes:* )
12198     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12200     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12201 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12202     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12204     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12205 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12206     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12208     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12210     ( cat <<\_ASBOX
12211 ## ------------------------------------ ##
12212 ## Report this to http://llvm.org/bugs/ ##
12213 ## ------------------------------------ ##
12214 _ASBOX
12215      ) | sed "s/^/$as_me: WARNING:     /" >&2
12216     ;;
12217 esac
12218 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12221   echo $ECHO_N "(cached) $ECHO_C" >&6
12222 else
12223   eval "$as_ac_Header=\$ac_header_preproc"
12224 fi
12225 ac_res=`eval echo '${'$as_ac_Header'}'`
12226                { echo "$as_me:$LINENO: result: $ac_res" >&5
12227 echo "${ECHO_T}$ac_res" >&6; }
12228
12229 fi
12230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12231   cat >>confdefs.h <<_ACEOF
12232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12233 _ACEOF
12234
12235 fi
12236
12237 done
12238
12239
12240 for ac_header in valgrind/valgrind.h
12241 do
12242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12244   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12247   echo $ECHO_N "(cached) $ECHO_C" >&6
12248 fi
12249 ac_res=`eval echo '${'$as_ac_Header'}'`
12250                { echo "$as_me:$LINENO: result: $ac_res" >&5
12251 echo "${ECHO_T}$ac_res" >&6; }
12252 else
12253   # Is the header compilable?
12254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12256 cat >conftest.$ac_ext <<_ACEOF
12257 /* confdefs.h.  */
12258 _ACEOF
12259 cat confdefs.h >>conftest.$ac_ext
12260 cat >>conftest.$ac_ext <<_ACEOF
12261 /* end confdefs.h.  */
12262 $ac_includes_default
12263 #include <$ac_header>
12264 _ACEOF
12265 rm -f conftest.$ac_objext
12266 if { (ac_try="$ac_compile"
12267 case "(($ac_try" in
12268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269   *) ac_try_echo=$ac_try;;
12270 esac
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272   (eval "$ac_compile") 2>conftest.er1
12273   ac_status=$?
12274   grep -v '^ *+' conftest.er1 >conftest.err
12275   rm -f conftest.er1
12276   cat conftest.err >&5
12277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278   (exit $ac_status); } &&
12279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12280   { (case "(($ac_try" in
12281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282   *) ac_try_echo=$ac_try;;
12283 esac
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285   (eval "$ac_try") 2>&5
12286   ac_status=$?
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); }; } &&
12289          { ac_try='test -s conftest.$ac_objext'
12290   { (case "(($ac_try" in
12291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292   *) ac_try_echo=$ac_try;;
12293 esac
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295   (eval "$ac_try") 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; }; then
12299   ac_header_compiler=yes
12300 else
12301   echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304         ac_header_compiler=no
12305 fi
12306
12307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12309 echo "${ECHO_T}$ac_header_compiler" >&6; }
12310
12311 # Is the header present?
12312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12314 cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h.  */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h.  */
12320 #include <$ac_header>
12321 _ACEOF
12322 if { (ac_try="$ac_cpp conftest.$ac_ext"
12323 case "(($ac_try" in
12324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325   *) ac_try_echo=$ac_try;;
12326 esac
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12329   ac_status=$?
12330   grep -v '^ *+' conftest.er1 >conftest.err
12331   rm -f conftest.er1
12332   cat conftest.err >&5
12333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334   (exit $ac_status); } >/dev/null; then
12335   if test -s conftest.err; then
12336     ac_cpp_err=$ac_c_preproc_warn_flag
12337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12338   else
12339     ac_cpp_err=
12340   fi
12341 else
12342   ac_cpp_err=yes
12343 fi
12344 if test -z "$ac_cpp_err"; then
12345   ac_header_preproc=yes
12346 else
12347   echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12349
12350   ac_header_preproc=no
12351 fi
12352
12353 rm -f conftest.err conftest.$ac_ext
12354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12355 echo "${ECHO_T}$ac_header_preproc" >&6; }
12356
12357 # So?  What about this header?
12358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12359   yes:no: )
12360     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12362     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12364     ac_header_preproc=yes
12365     ;;
12366   no:yes:* )
12367     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12369     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12370 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12371     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12373     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12374 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12377     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12379     ( cat <<\_ASBOX
12380 ## ------------------------------------ ##
12381 ## Report this to http://llvm.org/bugs/ ##
12382 ## ------------------------------------ ##
12383 _ASBOX
12384      ) | sed "s/^/$as_me: WARNING:     /" >&2
12385     ;;
12386 esac
12387 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392   eval "$as_ac_Header=\$ac_header_preproc"
12393 fi
12394 ac_res=`eval echo '${'$as_ac_Header'}'`
12395                { echo "$as_me:$LINENO: result: $ac_res" >&5
12396 echo "${ECHO_T}$ac_res" >&6; }
12397
12398 fi
12399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12400   cat >>confdefs.h <<_ACEOF
12401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12402 _ACEOF
12403
12404 fi
12405
12406 done
12407
12408
12409 for ac_header in fenv.h
12410 do
12411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12413   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12416   echo $ECHO_N "(cached) $ECHO_C" >&6
12417 fi
12418 ac_res=`eval echo '${'$as_ac_Header'}'`
12419                { echo "$as_me:$LINENO: result: $ac_res" >&5
12420 echo "${ECHO_T}$ac_res" >&6; }
12421 else
12422   # Is the header compilable?
12423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12425 cat >conftest.$ac_ext <<_ACEOF
12426 /* confdefs.h.  */
12427 _ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h.  */
12431 $ac_includes_default
12432 #include <$ac_header>
12433 _ACEOF
12434 rm -f conftest.$ac_objext
12435 if { (ac_try="$ac_compile"
12436 case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441   (eval "$ac_compile") 2>conftest.er1
12442   ac_status=$?
12443   grep -v '^ *+' conftest.er1 >conftest.err
12444   rm -f conftest.er1
12445   cat conftest.err >&5
12446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447   (exit $ac_status); } &&
12448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449   { (case "(($ac_try" in
12450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451   *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454   (eval "$ac_try") 2>&5
12455   ac_status=$?
12456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457   (exit $ac_status); }; } &&
12458          { ac_try='test -s conftest.$ac_objext'
12459   { (case "(($ac_try" in
12460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461   *) ac_try_echo=$ac_try;;
12462 esac
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464   (eval "$ac_try") 2>&5
12465   ac_status=$?
12466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467   (exit $ac_status); }; }; then
12468   ac_header_compiler=yes
12469 else
12470   echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12472
12473         ac_header_compiler=no
12474 fi
12475
12476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12477 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12478 echo "${ECHO_T}$ac_header_compiler" >&6; }
12479
12480 # Is the header present?
12481 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12483 cat >conftest.$ac_ext <<_ACEOF
12484 /* confdefs.h.  */
12485 _ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h.  */
12489 #include <$ac_header>
12490 _ACEOF
12491 if { (ac_try="$ac_cpp conftest.$ac_ext"
12492 case "(($ac_try" in
12493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494   *) ac_try_echo=$ac_try;;
12495 esac
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12498   ac_status=$?
12499   grep -v '^ *+' conftest.er1 >conftest.err
12500   rm -f conftest.er1
12501   cat conftest.err >&5
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); } >/dev/null; then
12504   if test -s conftest.err; then
12505     ac_cpp_err=$ac_c_preproc_warn_flag
12506     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12507   else
12508     ac_cpp_err=
12509   fi
12510 else
12511   ac_cpp_err=yes
12512 fi
12513 if test -z "$ac_cpp_err"; then
12514   ac_header_preproc=yes
12515 else
12516   echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12518
12519   ac_header_preproc=no
12520 fi
12521
12522 rm -f conftest.err conftest.$ac_ext
12523 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12524 echo "${ECHO_T}$ac_header_preproc" >&6; }
12525
12526 # So?  What about this header?
12527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12528   yes:no: )
12529     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12530 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12532 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12533     ac_header_preproc=yes
12534     ;;
12535   no:yes:* )
12536     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12537 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12538     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12539 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12540     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12541 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12542     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12543 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12544     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12545 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12546     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12547 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12548     ( cat <<\_ASBOX
12549 ## ------------------------------------ ##
12550 ## Report this to http://llvm.org/bugs/ ##
12551 ## ------------------------------------ ##
12552 _ASBOX
12553      ) | sed "s/^/$as_me: WARNING:     /" >&2
12554     ;;
12555 esac
12556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12559   echo $ECHO_N "(cached) $ECHO_C" >&6
12560 else
12561   eval "$as_ac_Header=\$ac_header_preproc"
12562 fi
12563 ac_res=`eval echo '${'$as_ac_Header'}'`
12564                { echo "$as_me:$LINENO: result: $ac_res" >&5
12565 echo "${ECHO_T}$ac_res" >&6; }
12566
12567 fi
12568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12569   cat >>confdefs.h <<_ACEOF
12570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12571 _ACEOF
12572
12573 fi
12574
12575 done
12576
12577 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12578 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12579 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12580   echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582   cat >conftest.$ac_ext <<_ACEOF
12583 /* confdefs.h.  */
12584 _ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h.  */
12588 #include <fenv.h>
12589
12590 int
12591 main ()
12592 {
12593 #ifndef FE_ALL_EXCEPT
12594   char *p = (char *) FE_ALL_EXCEPT;
12595   return !p;
12596 #endif
12597
12598   ;
12599   return 0;
12600 }
12601 _ACEOF
12602 rm -f conftest.$ac_objext
12603 if { (ac_try="$ac_compile"
12604 case "(($ac_try" in
12605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12606   *) ac_try_echo=$ac_try;;
12607 esac
12608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12609   (eval "$ac_compile") 2>conftest.er1
12610   ac_status=$?
12611   grep -v '^ *+' conftest.er1 >conftest.err
12612   rm -f conftest.er1
12613   cat conftest.err >&5
12614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615   (exit $ac_status); } &&
12616          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12617   { (case "(($ac_try" in
12618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619   *) ac_try_echo=$ac_try;;
12620 esac
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622   (eval "$ac_try") 2>&5
12623   ac_status=$?
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); }; } &&
12626          { ac_try='test -s conftest.$ac_objext'
12627   { (case "(($ac_try" in
12628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629   *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632   (eval "$ac_try") 2>&5
12633   ac_status=$?
12634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635   (exit $ac_status); }; }; then
12636   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12637 else
12638   echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641         ac_cv_have_decl_FE_ALL_EXCEPT=no
12642 fi
12643
12644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12645 fi
12646 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12647 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12648 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12649
12650 cat >>confdefs.h <<_ACEOF
12651 #define HAVE_DECL_FE_ALL_EXCEPT 1
12652 _ACEOF
12653
12654
12655 else
12656   cat >>confdefs.h <<_ACEOF
12657 #define HAVE_DECL_FE_ALL_EXCEPT 0
12658 _ACEOF
12659
12660
12661 fi
12662 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12663 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12664 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12665   echo $ECHO_N "(cached) $ECHO_C" >&6
12666 else
12667   cat >conftest.$ac_ext <<_ACEOF
12668 /* confdefs.h.  */
12669 _ACEOF
12670 cat confdefs.h >>conftest.$ac_ext
12671 cat >>conftest.$ac_ext <<_ACEOF
12672 /* end confdefs.h.  */
12673 #include <fenv.h>
12674
12675 int
12676 main ()
12677 {
12678 #ifndef FE_INEXACT
12679   char *p = (char *) FE_INEXACT;
12680   return !p;
12681 #endif
12682
12683   ;
12684   return 0;
12685 }
12686 _ACEOF
12687 rm -f conftest.$ac_objext
12688 if { (ac_try="$ac_compile"
12689 case "(($ac_try" in
12690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691   *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694   (eval "$ac_compile") 2>conftest.er1
12695   ac_status=$?
12696   grep -v '^ *+' conftest.er1 >conftest.err
12697   rm -f conftest.er1
12698   cat conftest.err >&5
12699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); } &&
12701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12702   { (case "(($ac_try" in
12703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704   *) ac_try_echo=$ac_try;;
12705 esac
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707   (eval "$ac_try") 2>&5
12708   ac_status=$?
12709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710   (exit $ac_status); }; } &&
12711          { ac_try='test -s conftest.$ac_objext'
12712   { (case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717   (eval "$ac_try") 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); }; }; then
12721   ac_cv_have_decl_FE_INEXACT=yes
12722 else
12723   echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12725
12726         ac_cv_have_decl_FE_INEXACT=no
12727 fi
12728
12729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12730 fi
12731 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12732 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12733 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12734
12735 cat >>confdefs.h <<_ACEOF
12736 #define HAVE_DECL_FE_INEXACT 1
12737 _ACEOF
12738
12739
12740 else
12741   cat >>confdefs.h <<_ACEOF
12742 #define HAVE_DECL_FE_INEXACT 0
12743 _ACEOF
12744
12745
12746 fi
12747
12748
12749 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12750
12751 for ac_header in pthread.h
12752 do
12753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12755   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12758   echo $ECHO_N "(cached) $ECHO_C" >&6
12759 fi
12760 ac_res=`eval echo '${'$as_ac_Header'}'`
12761                { echo "$as_me:$LINENO: result: $ac_res" >&5
12762 echo "${ECHO_T}$ac_res" >&6; }
12763 else
12764   # Is the header compilable?
12765 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12767 cat >conftest.$ac_ext <<_ACEOF
12768 /* confdefs.h.  */
12769 _ACEOF
12770 cat confdefs.h >>conftest.$ac_ext
12771 cat >>conftest.$ac_ext <<_ACEOF
12772 /* end confdefs.h.  */
12773 $ac_includes_default
12774 #include <$ac_header>
12775 _ACEOF
12776 rm -f conftest.$ac_objext
12777 if { (ac_try="$ac_compile"
12778 case "(($ac_try" in
12779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780   *) ac_try_echo=$ac_try;;
12781 esac
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783   (eval "$ac_compile") 2>conftest.er1
12784   ac_status=$?
12785   grep -v '^ *+' conftest.er1 >conftest.err
12786   rm -f conftest.er1
12787   cat conftest.err >&5
12788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789   (exit $ac_status); } &&
12790          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12791   { (case "(($ac_try" in
12792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793   *) ac_try_echo=$ac_try;;
12794 esac
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796   (eval "$ac_try") 2>&5
12797   ac_status=$?
12798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799   (exit $ac_status); }; } &&
12800          { ac_try='test -s conftest.$ac_objext'
12801   { (case "(($ac_try" in
12802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803   *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806   (eval "$ac_try") 2>&5
12807   ac_status=$?
12808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809   (exit $ac_status); }; }; then
12810   ac_header_compiler=yes
12811 else
12812   echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12814
12815         ac_header_compiler=no
12816 fi
12817
12818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12820 echo "${ECHO_T}$ac_header_compiler" >&6; }
12821
12822 # Is the header present?
12823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12825 cat >conftest.$ac_ext <<_ACEOF
12826 /* confdefs.h.  */
12827 _ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h.  */
12831 #include <$ac_header>
12832 _ACEOF
12833 if { (ac_try="$ac_cpp conftest.$ac_ext"
12834 case "(($ac_try" in
12835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836   *) ac_try_echo=$ac_try;;
12837 esac
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12840   ac_status=$?
12841   grep -v '^ *+' conftest.er1 >conftest.err
12842   rm -f conftest.er1
12843   cat conftest.err >&5
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); } >/dev/null; then
12846   if test -s conftest.err; then
12847     ac_cpp_err=$ac_c_preproc_warn_flag
12848     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12849   else
12850     ac_cpp_err=
12851   fi
12852 else
12853   ac_cpp_err=yes
12854 fi
12855 if test -z "$ac_cpp_err"; then
12856   ac_header_preproc=yes
12857 else
12858   echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12860
12861   ac_header_preproc=no
12862 fi
12863
12864 rm -f conftest.err conftest.$ac_ext
12865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12866 echo "${ECHO_T}$ac_header_preproc" >&6; }
12867
12868 # So?  What about this header?
12869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12870   yes:no: )
12871     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12875     ac_header_preproc=yes
12876     ;;
12877   no:yes:* )
12878     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12880     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12881 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12882     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12884     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12885 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12886     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12888     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12890     ( cat <<\_ASBOX
12891 ## ------------------------------------ ##
12892 ## Report this to http://llvm.org/bugs/ ##
12893 ## ------------------------------------ ##
12894 _ASBOX
12895      ) | sed "s/^/$as_me: WARNING:     /" >&2
12896     ;;
12897 esac
12898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12901   echo $ECHO_N "(cached) $ECHO_C" >&6
12902 else
12903   eval "$as_ac_Header=\$ac_header_preproc"
12904 fi
12905 ac_res=`eval echo '${'$as_ac_Header'}'`
12906                { echo "$as_me:$LINENO: result: $ac_res" >&5
12907 echo "${ECHO_T}$ac_res" >&6; }
12908
12909 fi
12910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12911   cat >>confdefs.h <<_ACEOF
12912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12913 _ACEOF
12914  HAVE_PTHREAD=1
12915
12916 else
12917   HAVE_PTHREAD=0
12918
12919 fi
12920
12921 done
12922
12923 else
12924   HAVE_PTHREAD=0
12925
12926 fi
12927 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12928
12929 for ac_header in zlib.h
12930 do
12931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12933   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12936   echo $ECHO_N "(cached) $ECHO_C" >&6
12937 fi
12938 ac_res=`eval echo '${'$as_ac_Header'}'`
12939                { echo "$as_me:$LINENO: result: $ac_res" >&5
12940 echo "${ECHO_T}$ac_res" >&6; }
12941 else
12942   # Is the header compilable?
12943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12945 cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h.  */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h.  */
12951 $ac_includes_default
12952 #include <$ac_header>
12953 _ACEOF
12954 rm -f conftest.$ac_objext
12955 if { (ac_try="$ac_compile"
12956 case "(($ac_try" in
12957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958   *) ac_try_echo=$ac_try;;
12959 esac
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961   (eval "$ac_compile") 2>conftest.er1
12962   ac_status=$?
12963   grep -v '^ *+' conftest.er1 >conftest.err
12964   rm -f conftest.er1
12965   cat conftest.err >&5
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); } &&
12968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12969   { (case "(($ac_try" in
12970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971   *) ac_try_echo=$ac_try;;
12972 esac
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974   (eval "$ac_try") 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); }; } &&
12978          { ac_try='test -s conftest.$ac_objext'
12979   { (case "(($ac_try" in
12980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981   *) ac_try_echo=$ac_try;;
12982 esac
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984   (eval "$ac_try") 2>&5
12985   ac_status=$?
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); }; }; then
12988   ac_header_compiler=yes
12989 else
12990   echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12992
12993         ac_header_compiler=no
12994 fi
12995
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12998 echo "${ECHO_T}$ac_header_compiler" >&6; }
12999
13000 # Is the header present?
13001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13003 cat >conftest.$ac_ext <<_ACEOF
13004 /* confdefs.h.  */
13005 _ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h.  */
13009 #include <$ac_header>
13010 _ACEOF
13011 if { (ac_try="$ac_cpp conftest.$ac_ext"
13012 case "(($ac_try" in
13013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13014   *) ac_try_echo=$ac_try;;
13015 esac
13016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13017   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13018   ac_status=$?
13019   grep -v '^ *+' conftest.er1 >conftest.err
13020   rm -f conftest.er1
13021   cat conftest.err >&5
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); } >/dev/null; then
13024   if test -s conftest.err; then
13025     ac_cpp_err=$ac_c_preproc_warn_flag
13026     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13027   else
13028     ac_cpp_err=
13029   fi
13030 else
13031   ac_cpp_err=yes
13032 fi
13033 if test -z "$ac_cpp_err"; then
13034   ac_header_preproc=yes
13035 else
13036   echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13038
13039   ac_header_preproc=no
13040 fi
13041
13042 rm -f conftest.err conftest.$ac_ext
13043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13044 echo "${ECHO_T}$ac_header_preproc" >&6; }
13045
13046 # So?  What about this header?
13047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13048   yes:no: )
13049     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13053     ac_header_preproc=yes
13054     ;;
13055   no:yes:* )
13056     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13058     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13059 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13060     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13062     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13063 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13066     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13068     ( cat <<\_ASBOX
13069 ## ------------------------------------ ##
13070 ## Report this to http://llvm.org/bugs/ ##
13071 ## ------------------------------------ ##
13072 _ASBOX
13073      ) | sed "s/^/$as_me: WARNING:     /" >&2
13074     ;;
13075 esac
13076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13079   echo $ECHO_N "(cached) $ECHO_C" >&6
13080 else
13081   eval "$as_ac_Header=\$ac_header_preproc"
13082 fi
13083 ac_res=`eval echo '${'$as_ac_Header'}'`
13084                { echo "$as_me:$LINENO: result: $ac_res" >&5
13085 echo "${ECHO_T}$ac_res" >&6; }
13086
13087 fi
13088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13089   cat >>confdefs.h <<_ACEOF
13090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13091 _ACEOF
13092  HAVE_LIBZ=1
13093
13094 else
13095   HAVE_LIBZ=0
13096
13097 fi
13098
13099 done
13100
13101 else
13102   HAVE_LIBZ=0
13103
13104 fi
13105
13106 if test "$llvm_cv_enable_libffi" = "yes" ; then
13107
13108
13109 for ac_header in ffi.h ffi/ffi.h
13110 do
13111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13113   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13116   echo $ECHO_N "(cached) $ECHO_C" >&6
13117 fi
13118 ac_res=`eval echo '${'$as_ac_Header'}'`
13119                { echo "$as_me:$LINENO: result: $ac_res" >&5
13120 echo "${ECHO_T}$ac_res" >&6; }
13121 else
13122   # Is the header compilable?
13123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13125 cat >conftest.$ac_ext <<_ACEOF
13126 /* confdefs.h.  */
13127 _ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h.  */
13131 $ac_includes_default
13132 #include <$ac_header>
13133 _ACEOF
13134 rm -f conftest.$ac_objext
13135 if { (ac_try="$ac_compile"
13136 case "(($ac_try" in
13137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138   *) ac_try_echo=$ac_try;;
13139 esac
13140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141   (eval "$ac_compile") 2>conftest.er1
13142   ac_status=$?
13143   grep -v '^ *+' conftest.er1 >conftest.err
13144   rm -f conftest.er1
13145   cat conftest.err >&5
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); } &&
13148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13149   { (case "(($ac_try" in
13150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151   *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154   (eval "$ac_try") 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }; } &&
13158          { ac_try='test -s conftest.$ac_objext'
13159   { (case "(($ac_try" in
13160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161   *) ac_try_echo=$ac_try;;
13162 esac
13163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164   (eval "$ac_try") 2>&5
13165   ac_status=$?
13166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167   (exit $ac_status); }; }; then
13168   ac_header_compiler=yes
13169 else
13170   echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13172
13173         ac_header_compiler=no
13174 fi
13175
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13178 echo "${ECHO_T}$ac_header_compiler" >&6; }
13179
13180 # Is the header present?
13181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h.  */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h.  */
13189 #include <$ac_header>
13190 _ACEOF
13191 if { (ac_try="$ac_cpp conftest.$ac_ext"
13192 case "(($ac_try" in
13193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194   *) ac_try_echo=$ac_try;;
13195 esac
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13198   ac_status=$?
13199   grep -v '^ *+' conftest.er1 >conftest.err
13200   rm -f conftest.er1
13201   cat conftest.err >&5
13202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203   (exit $ac_status); } >/dev/null; then
13204   if test -s conftest.err; then
13205     ac_cpp_err=$ac_c_preproc_warn_flag
13206     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13207   else
13208     ac_cpp_err=
13209   fi
13210 else
13211   ac_cpp_err=yes
13212 fi
13213 if test -z "$ac_cpp_err"; then
13214   ac_header_preproc=yes
13215 else
13216   echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13218
13219   ac_header_preproc=no
13220 fi
13221
13222 rm -f conftest.err conftest.$ac_ext
13223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13224 echo "${ECHO_T}$ac_header_preproc" >&6; }
13225
13226 # So?  What about this header?
13227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13228   yes:no: )
13229     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13231     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13233     ac_header_preproc=yes
13234     ;;
13235   no:yes:* )
13236     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13238     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13239 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13240     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13242     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13243 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13246     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13248     ( cat <<\_ASBOX
13249 ## ------------------------------------ ##
13250 ## Report this to http://llvm.org/bugs/ ##
13251 ## ------------------------------------ ##
13252 _ASBOX
13253      ) | sed "s/^/$as_me: WARNING:     /" >&2
13254     ;;
13255 esac
13256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13259   echo $ECHO_N "(cached) $ECHO_C" >&6
13260 else
13261   eval "$as_ac_Header=\$ac_header_preproc"
13262 fi
13263 ac_res=`eval echo '${'$as_ac_Header'}'`
13264                { echo "$as_me:$LINENO: result: $ac_res" >&5
13265 echo "${ECHO_T}$ac_res" >&6; }
13266
13267 fi
13268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13269   cat >>confdefs.h <<_ACEOF
13270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13271 _ACEOF
13272
13273 fi
13274
13275 done
13276
13277 fi
13278
13279
13280 for ac_header in CrashReporterClient.h
13281 do
13282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13284   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13287   echo $ECHO_N "(cached) $ECHO_C" >&6
13288 fi
13289 ac_res=`eval echo '${'$as_ac_Header'}'`
13290                { echo "$as_me:$LINENO: result: $ac_res" >&5
13291 echo "${ECHO_T}$ac_res" >&6; }
13292 else
13293   # Is the header compilable?
13294 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13296 cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h.  */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h.  */
13302 $ac_includes_default
13303 #include <$ac_header>
13304 _ACEOF
13305 rm -f conftest.$ac_objext
13306 if { (ac_try="$ac_compile"
13307 case "(($ac_try" in
13308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309   *) ac_try_echo=$ac_try;;
13310 esac
13311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13312   (eval "$ac_compile") 2>conftest.er1
13313   ac_status=$?
13314   grep -v '^ *+' conftest.er1 >conftest.err
13315   rm -f conftest.er1
13316   cat conftest.err >&5
13317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); } &&
13319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13320   { (case "(($ac_try" in
13321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322   *) ac_try_echo=$ac_try;;
13323 esac
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325   (eval "$ac_try") 2>&5
13326   ac_status=$?
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); }; } &&
13329          { ac_try='test -s conftest.$ac_objext'
13330   { (case "(($ac_try" in
13331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332   *) ac_try_echo=$ac_try;;
13333 esac
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335   (eval "$ac_try") 2>&5
13336   ac_status=$?
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); }; }; then
13339   ac_header_compiler=yes
13340 else
13341   echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13343
13344         ac_header_compiler=no
13345 fi
13346
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13349 echo "${ECHO_T}$ac_header_compiler" >&6; }
13350
13351 # Is the header present?
13352 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13353 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13354 cat >conftest.$ac_ext <<_ACEOF
13355 /* confdefs.h.  */
13356 _ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h.  */
13360 #include <$ac_header>
13361 _ACEOF
13362 if { (ac_try="$ac_cpp conftest.$ac_ext"
13363 case "(($ac_try" in
13364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365   *) ac_try_echo=$ac_try;;
13366 esac
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13369   ac_status=$?
13370   grep -v '^ *+' conftest.er1 >conftest.err
13371   rm -f conftest.er1
13372   cat conftest.err >&5
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); } >/dev/null; then
13375   if test -s conftest.err; then
13376     ac_cpp_err=$ac_c_preproc_warn_flag
13377     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13378   else
13379     ac_cpp_err=
13380   fi
13381 else
13382   ac_cpp_err=yes
13383 fi
13384 if test -z "$ac_cpp_err"; then
13385   ac_header_preproc=yes
13386 else
13387   echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13389
13390   ac_header_preproc=no
13391 fi
13392
13393 rm -f conftest.err conftest.$ac_ext
13394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13395 echo "${ECHO_T}$ac_header_preproc" >&6; }
13396
13397 # So?  What about this header?
13398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13399   yes:no: )
13400     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13402     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13404     ac_header_preproc=yes
13405     ;;
13406   no:yes:* )
13407     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13409     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13410 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13411     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13413     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13414 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13415     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13417     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13419     ( cat <<\_ASBOX
13420 ## ------------------------------------ ##
13421 ## Report this to http://llvm.org/bugs/ ##
13422 ## ------------------------------------ ##
13423 _ASBOX
13424      ) | sed "s/^/$as_me: WARNING:     /" >&2
13425     ;;
13426 esac
13427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13430   echo $ECHO_N "(cached) $ECHO_C" >&6
13431 else
13432   eval "$as_ac_Header=\$ac_header_preproc"
13433 fi
13434 ac_res=`eval echo '${'$as_ac_Header'}'`
13435                { echo "$as_me:$LINENO: result: $ac_res" >&5
13436 echo "${ECHO_T}$ac_res" >&6; }
13437
13438 fi
13439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13440   cat >>confdefs.h <<_ACEOF
13441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13442 _ACEOF
13443
13444 fi
13445
13446 done
13447
13448
13449 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13450 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13451 cat >conftest.$ac_ext <<_ACEOF
13452
13453   /* confdefs.h.  */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h.  */
13458
13459     extern const char *__crashreporter_info__;
13460     int main() {
13461       __crashreporter_info__ = "test";
13462       return 0;
13463     }
13464
13465
13466 _ACEOF
13467 rm -f conftest.$ac_objext conftest$ac_exeext
13468 if { (ac_try="$ac_link"
13469 case "(($ac_try" in
13470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471   *) ac_try_echo=$ac_try;;
13472 esac
13473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474   (eval "$ac_link") 2>conftest.er1
13475   ac_status=$?
13476   grep -v '^ *+' conftest.er1 >conftest.err
13477   rm -f conftest.er1
13478   cat conftest.err >&5
13479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480   (exit $ac_status); } &&
13481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13482   { (case "(($ac_try" in
13483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484   *) ac_try_echo=$ac_try;;
13485 esac
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487   (eval "$ac_try") 2>&5
13488   ac_status=$?
13489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490   (exit $ac_status); }; } &&
13491          { ac_try='test -s conftest$ac_exeext'
13492   { (case "(($ac_try" in
13493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494   *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497   (eval "$ac_try") 2>&5
13498   ac_status=$?
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); }; }; then
13501
13502   { echo "$as_me:$LINENO: result: yes" >&5
13503 echo "${ECHO_T}yes" >&6; }
13504
13505 cat >>confdefs.h <<\_ACEOF
13506 #define HAVE_CRASHREPORTER_INFO 1
13507 _ACEOF
13508
13509
13510 else
13511   echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514
13515   { echo "$as_me:$LINENO: result: no" >&5
13516 echo "${ECHO_T}no" >&6; }
13517
13518 cat >>confdefs.h <<\_ACEOF
13519 #define HAVE_CRASHREPORTER_INFO 0
13520 _ACEOF
13521
13522
13523 fi
13524
13525 rm -f core conftest.err conftest.$ac_objext \
13526       conftest$ac_exeext conftest.$ac_ext
13527
13528
13529
13530   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13531 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13532 if test "${ac_cv_huge_val_sanity+set}" = set; then
13533   echo $ECHO_N "(cached) $ECHO_C" >&6
13534 else
13535
13536     ac_ext=cpp
13537 ac_cpp='$CXXCPP $CPPFLAGS'
13538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13541
13542     ac_save_CXXFLAGS=$CXXFLAGS
13543     CXXFLAGS="$CXXFLAGS -pedantic"
13544     if test "$cross_compiling" = yes; then
13545   ac_cv_huge_val_sanity=yes
13546 else
13547   cat >conftest.$ac_ext <<_ACEOF
13548 /* confdefs.h.  */
13549 _ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h.  */
13553 #include <math.h>
13554 int
13555 main ()
13556 {
13557 double x = HUGE_VAL; return x != x;
13558   ;
13559   return 0;
13560 }
13561 _ACEOF
13562 rm -f conftest$ac_exeext
13563 if { (ac_try="$ac_link"
13564 case "(($ac_try" in
13565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566   *) ac_try_echo=$ac_try;;
13567 esac
13568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569   (eval "$ac_link") 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13573   { (case "(($ac_try" in
13574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575   *) ac_try_echo=$ac_try;;
13576 esac
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578   (eval "$ac_try") 2>&5
13579   ac_status=$?
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); }; }; then
13582   ac_cv_huge_val_sanity=yes
13583 else
13584   echo "$as_me: program exited with status $ac_status" >&5
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588 ( exit $ac_status )
13589 ac_cv_huge_val_sanity=no
13590 fi
13591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13592 fi
13593
13594
13595     CXXFLAGS=$ac_save_CXXFLAGS
13596     ac_ext=c
13597 ac_cpp='$CPP $CPPFLAGS'
13598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13601
13602
13603 fi
13604 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13605 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13606   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13607
13608
13609 { echo "$as_me:$LINENO: checking for pid_t" >&5
13610 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13611 if test "${ac_cv_type_pid_t+set}" = set; then
13612   echo $ECHO_N "(cached) $ECHO_C" >&6
13613 else
13614   cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h.  */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h.  */
13620 $ac_includes_default
13621 typedef pid_t ac__type_new_;
13622 int
13623 main ()
13624 {
13625 if ((ac__type_new_ *) 0)
13626   return 0;
13627 if (sizeof (ac__type_new_))
13628   return 0;
13629   ;
13630   return 0;
13631 }
13632 _ACEOF
13633 rm -f conftest.$ac_objext
13634 if { (ac_try="$ac_compile"
13635 case "(($ac_try" in
13636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637   *) ac_try_echo=$ac_try;;
13638 esac
13639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13640   (eval "$ac_compile") 2>conftest.er1
13641   ac_status=$?
13642   grep -v '^ *+' conftest.er1 >conftest.err
13643   rm -f conftest.er1
13644   cat conftest.err >&5
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); } &&
13647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13648   { (case "(($ac_try" in
13649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650   *) ac_try_echo=$ac_try;;
13651 esac
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653   (eval "$ac_try") 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }; } &&
13657          { ac_try='test -s conftest.$ac_objext'
13658   { (case "(($ac_try" in
13659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660   *) ac_try_echo=$ac_try;;
13661 esac
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663   (eval "$ac_try") 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); }; }; then
13667   ac_cv_type_pid_t=yes
13668 else
13669   echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672         ac_cv_type_pid_t=no
13673 fi
13674
13675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13676 fi
13677 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13678 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13679 if test $ac_cv_type_pid_t = yes; then
13680   :
13681 else
13682
13683 cat >>confdefs.h <<_ACEOF
13684 #define pid_t int
13685 _ACEOF
13686
13687 fi
13688
13689 { echo "$as_me:$LINENO: checking for size_t" >&5
13690 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13691 if test "${ac_cv_type_size_t+set}" = set; then
13692   echo $ECHO_N "(cached) $ECHO_C" >&6
13693 else
13694   cat >conftest.$ac_ext <<_ACEOF
13695 /* confdefs.h.  */
13696 _ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h.  */
13700 $ac_includes_default
13701 typedef size_t ac__type_new_;
13702 int
13703 main ()
13704 {
13705 if ((ac__type_new_ *) 0)
13706   return 0;
13707 if (sizeof (ac__type_new_))
13708   return 0;
13709   ;
13710   return 0;
13711 }
13712 _ACEOF
13713 rm -f conftest.$ac_objext
13714 if { (ac_try="$ac_compile"
13715 case "(($ac_try" in
13716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717   *) ac_try_echo=$ac_try;;
13718 esac
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720   (eval "$ac_compile") 2>conftest.er1
13721   ac_status=$?
13722   grep -v '^ *+' conftest.er1 >conftest.err
13723   rm -f conftest.er1
13724   cat conftest.err >&5
13725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726   (exit $ac_status); } &&
13727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13728   { (case "(($ac_try" in
13729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730   *) ac_try_echo=$ac_try;;
13731 esac
13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733   (eval "$ac_try") 2>&5
13734   ac_status=$?
13735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736   (exit $ac_status); }; } &&
13737          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13747   ac_cv_type_size_t=yes
13748 else
13749   echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13751
13752         ac_cv_type_size_t=no
13753 fi
13754
13755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 fi
13757 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13758 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13759 if test $ac_cv_type_size_t = yes; then
13760   :
13761 else
13762
13763 cat >>confdefs.h <<_ACEOF
13764 #define size_t unsigned int
13765 _ACEOF
13766
13767 fi
13768
13769
13770 cat >>confdefs.h <<_ACEOF
13771 #define RETSIGTYPE void
13772 _ACEOF
13773
13774 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13775 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13776 if test "${ac_cv_struct_tm+set}" = set; then
13777   echo $ECHO_N "(cached) $ECHO_C" >&6
13778 else
13779   cat >conftest.$ac_ext <<_ACEOF
13780 /* confdefs.h.  */
13781 _ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h.  */
13785 #include <sys/types.h>
13786 #include <time.h>
13787
13788 int
13789 main ()
13790 {
13791 struct tm *tp; tp->tm_sec;
13792   ;
13793   return 0;
13794 }
13795 _ACEOF
13796 rm -f conftest.$ac_objext
13797 if { (ac_try="$ac_compile"
13798 case "(($ac_try" in
13799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800   *) ac_try_echo=$ac_try;;
13801 esac
13802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803   (eval "$ac_compile") 2>conftest.er1
13804   ac_status=$?
13805   grep -v '^ *+' conftest.er1 >conftest.err
13806   rm -f conftest.er1
13807   cat conftest.err >&5
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); } &&
13810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13811   { (case "(($ac_try" in
13812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13813   *) ac_try_echo=$ac_try;;
13814 esac
13815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13816   (eval "$ac_try") 2>&5
13817   ac_status=$?
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); }; } &&
13820          { ac_try='test -s conftest.$ac_objext'
13821   { (case "(($ac_try" in
13822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823   *) ac_try_echo=$ac_try;;
13824 esac
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826   (eval "$ac_try") 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; }; then
13830   ac_cv_struct_tm=time.h
13831 else
13832   echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13834
13835         ac_cv_struct_tm=sys/time.h
13836 fi
13837
13838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13839 fi
13840 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13841 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13842 if test $ac_cv_struct_tm = sys/time.h; then
13843
13844 cat >>confdefs.h <<\_ACEOF
13845 #define TM_IN_SYS_TIME 1
13846 _ACEOF
13847
13848 fi
13849
13850 { echo "$as_me:$LINENO: checking for int64_t" >&5
13851 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13852 if test "${ac_cv_type_int64_t+set}" = set; then
13853   echo $ECHO_N "(cached) $ECHO_C" >&6
13854 else
13855   cat >conftest.$ac_ext <<_ACEOF
13856 /* confdefs.h.  */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h.  */
13861 $ac_includes_default
13862 typedef int64_t ac__type_new_;
13863 int
13864 main ()
13865 {
13866 if ((ac__type_new_ *) 0)
13867   return 0;
13868 if (sizeof (ac__type_new_))
13869   return 0;
13870   ;
13871   return 0;
13872 }
13873 _ACEOF
13874 rm -f conftest.$ac_objext
13875 if { (ac_try="$ac_compile"
13876 case "(($ac_try" in
13877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878   *) ac_try_echo=$ac_try;;
13879 esac
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881   (eval "$ac_compile") 2>conftest.er1
13882   ac_status=$?
13883   grep -v '^ *+' conftest.er1 >conftest.err
13884   rm -f conftest.er1
13885   cat conftest.err >&5
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } &&
13888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13889   { (case "(($ac_try" in
13890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891   *) ac_try_echo=$ac_try;;
13892 esac
13893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894   (eval "$ac_try") 2>&5
13895   ac_status=$?
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); }; } &&
13898          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13908   ac_cv_type_int64_t=yes
13909 else
13910   echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913         ac_cv_type_int64_t=no
13914 fi
13915
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 fi
13918 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13919 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13920 if test $ac_cv_type_int64_t = yes; then
13921
13922 cat >>confdefs.h <<_ACEOF
13923 #define HAVE_INT64_T 1
13924 _ACEOF
13925
13926
13927 else
13928   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13929 echo "$as_me: error: Type int64_t required but not found" >&2;}
13930    { (exit 1); exit 1; }; }
13931 fi
13932
13933 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13934 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13935 if test "${ac_cv_type_uint64_t+set}" = set; then
13936   echo $ECHO_N "(cached) $ECHO_C" >&6
13937 else
13938   cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h.  */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h.  */
13944 $ac_includes_default
13945 typedef uint64_t ac__type_new_;
13946 int
13947 main ()
13948 {
13949 if ((ac__type_new_ *) 0)
13950   return 0;
13951 if (sizeof (ac__type_new_))
13952   return 0;
13953   ;
13954   return 0;
13955 }
13956 _ACEOF
13957 rm -f conftest.$ac_objext
13958 if { (ac_try="$ac_compile"
13959 case "(($ac_try" in
13960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961   *) ac_try_echo=$ac_try;;
13962 esac
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964   (eval "$ac_compile") 2>conftest.er1
13965   ac_status=$?
13966   grep -v '^ *+' conftest.er1 >conftest.err
13967   rm -f conftest.er1
13968   cat conftest.err >&5
13969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970   (exit $ac_status); } &&
13971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13972   { (case "(($ac_try" in
13973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13974   *) ac_try_echo=$ac_try;;
13975 esac
13976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13977   (eval "$ac_try") 2>&5
13978   ac_status=$?
13979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980   (exit $ac_status); }; } &&
13981          { ac_try='test -s conftest.$ac_objext'
13982   { (case "(($ac_try" in
13983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13984   *) ac_try_echo=$ac_try;;
13985 esac
13986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13987   (eval "$ac_try") 2>&5
13988   ac_status=$?
13989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); }; }; then
13991   ac_cv_type_uint64_t=yes
13992 else
13993   echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13995
13996         ac_cv_type_uint64_t=no
13997 fi
13998
13999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14000 fi
14001 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
14002 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
14003 if test $ac_cv_type_uint64_t = yes; then
14004
14005 cat >>confdefs.h <<_ACEOF
14006 #define HAVE_UINT64_T 1
14007 _ACEOF
14008
14009
14010 else
14011   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
14012 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
14013 if test "${ac_cv_type_u_int64_t+set}" = set; then
14014   echo $ECHO_N "(cached) $ECHO_C" >&6
14015 else
14016   cat >conftest.$ac_ext <<_ACEOF
14017 /* confdefs.h.  */
14018 _ACEOF
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h.  */
14022 $ac_includes_default
14023 typedef u_int64_t ac__type_new_;
14024 int
14025 main ()
14026 {
14027 if ((ac__type_new_ *) 0)
14028   return 0;
14029 if (sizeof (ac__type_new_))
14030   return 0;
14031   ;
14032   return 0;
14033 }
14034 _ACEOF
14035 rm -f conftest.$ac_objext
14036 if { (ac_try="$ac_compile"
14037 case "(($ac_try" in
14038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039   *) ac_try_echo=$ac_try;;
14040 esac
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042   (eval "$ac_compile") 2>conftest.er1
14043   ac_status=$?
14044   grep -v '^ *+' conftest.er1 >conftest.err
14045   rm -f conftest.er1
14046   cat conftest.err >&5
14047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048   (exit $ac_status); } &&
14049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14050   { (case "(($ac_try" in
14051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14052   *) ac_try_echo=$ac_try;;
14053 esac
14054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14055   (eval "$ac_try") 2>&5
14056   ac_status=$?
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); }; } &&
14059          { ac_try='test -s conftest.$ac_objext'
14060   { (case "(($ac_try" in
14061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14062   *) ac_try_echo=$ac_try;;
14063 esac
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065   (eval "$ac_try") 2>&5
14066   ac_status=$?
14067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068   (exit $ac_status); }; }; then
14069   ac_cv_type_u_int64_t=yes
14070 else
14071   echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14073
14074         ac_cv_type_u_int64_t=no
14075 fi
14076
14077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14078 fi
14079 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14080 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14081 if test $ac_cv_type_u_int64_t = yes; then
14082
14083 cat >>confdefs.h <<_ACEOF
14084 #define HAVE_U_INT64_T 1
14085 _ACEOF
14086
14087
14088 else
14089   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14090 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14091    { (exit 1); exit 1; }; }
14092 fi
14093
14094 fi
14095
14096
14097
14098
14099
14100 for ac_func in backtrace getcwd
14101 do
14102 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14103 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14104 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14105 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14106   echo $ECHO_N "(cached) $ECHO_C" >&6
14107 else
14108   cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h.  */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h.  */
14114 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14116 #define $ac_func innocuous_$ac_func
14117
14118 /* System header to define __stub macros and hopefully few prototypes,
14119     which can conflict with char $ac_func (); below.
14120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14121     <limits.h> exists even on freestanding compilers.  */
14122
14123 #ifdef __STDC__
14124 # include <limits.h>
14125 #else
14126 # include <assert.h>
14127 #endif
14128
14129 #undef $ac_func
14130
14131 /* Override any GCC internal prototype to avoid an error.
14132    Use char because int might match the return type of a GCC
14133    builtin and then its argument prototype would still apply.  */
14134 #ifdef __cplusplus
14135 extern "C"
14136 #endif
14137 char $ac_func ();
14138 /* The GNU C library defines this for functions which it implements
14139     to always fail with ENOSYS.  Some functions are actually named
14140     something starting with __ and the normal name is an alias.  */
14141 #if defined __stub_$ac_func || defined __stub___$ac_func
14142 choke me
14143 #endif
14144
14145 int
14146 main ()
14147 {
14148 return $ac_func ();
14149   ;
14150   return 0;
14151 }
14152 _ACEOF
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (ac_try="$ac_link"
14155 case "(($ac_try" in
14156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157   *) ac_try_echo=$ac_try;;
14158 esac
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160   (eval "$ac_link") 2>conftest.er1
14161   ac_status=$?
14162   grep -v '^ *+' conftest.er1 >conftest.err
14163   rm -f conftest.er1
14164   cat conftest.err >&5
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); } &&
14167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14168   { (case "(($ac_try" in
14169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170   *) ac_try_echo=$ac_try;;
14171 esac
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173   (eval "$ac_try") 2>&5
14174   ac_status=$?
14175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176   (exit $ac_status); }; } &&
14177          { ac_try='test -s conftest$ac_exeext'
14178   { (case "(($ac_try" in
14179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180   *) ac_try_echo=$ac_try;;
14181 esac
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183   (eval "$ac_try") 2>&5
14184   ac_status=$?
14185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); }; }; then
14187   eval "$as_ac_var=yes"
14188 else
14189   echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14191
14192         eval "$as_ac_var=no"
14193 fi
14194
14195 rm -f core conftest.err conftest.$ac_objext \
14196       conftest$ac_exeext conftest.$ac_ext
14197 fi
14198 ac_res=`eval echo '${'$as_ac_var'}'`
14199                { echo "$as_me:$LINENO: result: $ac_res" >&5
14200 echo "${ECHO_T}$ac_res" >&6; }
14201 if test `eval echo '${'$as_ac_var'}'` = yes; then
14202   cat >>confdefs.h <<_ACEOF
14203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14204 _ACEOF
14205
14206 fi
14207 done
14208
14209
14210
14211
14212
14213
14214 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14215 do
14216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14217 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14219 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14220   echo $ECHO_N "(cached) $ECHO_C" >&6
14221 else
14222   cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h.  */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h.  */
14228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14229    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14230 #define $ac_func innocuous_$ac_func
14231
14232 /* System header to define __stub macros and hopefully few prototypes,
14233     which can conflict with char $ac_func (); below.
14234     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14235     <limits.h> exists even on freestanding compilers.  */
14236
14237 #ifdef __STDC__
14238 # include <limits.h>
14239 #else
14240 # include <assert.h>
14241 #endif
14242
14243 #undef $ac_func
14244
14245 /* Override any GCC internal prototype to avoid an error.
14246    Use char because int might match the return type of a GCC
14247    builtin and then its argument prototype would still apply.  */
14248 #ifdef __cplusplus
14249 extern "C"
14250 #endif
14251 char $ac_func ();
14252 /* The GNU C library defines this for functions which it implements
14253     to always fail with ENOSYS.  Some functions are actually named
14254     something starting with __ and the normal name is an alias.  */
14255 #if defined __stub_$ac_func || defined __stub___$ac_func
14256 choke me
14257 #endif
14258
14259 int
14260 main ()
14261 {
14262 return $ac_func ();
14263   ;
14264   return 0;
14265 }
14266 _ACEOF
14267 rm -f conftest.$ac_objext conftest$ac_exeext
14268 if { (ac_try="$ac_link"
14269 case "(($ac_try" in
14270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271   *) ac_try_echo=$ac_try;;
14272 esac
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274   (eval "$ac_link") 2>conftest.er1
14275   ac_status=$?
14276   grep -v '^ *+' conftest.er1 >conftest.err
14277   rm -f conftest.er1
14278   cat conftest.err >&5
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); } &&
14281          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14282   { (case "(($ac_try" in
14283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284   *) ac_try_echo=$ac_try;;
14285 esac
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287   (eval "$ac_try") 2>&5
14288   ac_status=$?
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); }; } &&
14291          { ac_try='test -s conftest$ac_exeext'
14292   { (case "(($ac_try" in
14293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294   *) ac_try_echo=$ac_try;;
14295 esac
14296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297   (eval "$ac_try") 2>&5
14298   ac_status=$?
14299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300   (exit $ac_status); }; }; then
14301   eval "$as_ac_var=yes"
14302 else
14303   echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14305
14306         eval "$as_ac_var=no"
14307 fi
14308
14309 rm -f core conftest.err conftest.$ac_objext \
14310       conftest$ac_exeext conftest.$ac_ext
14311 fi
14312 ac_res=`eval echo '${'$as_ac_var'}'`
14313                { echo "$as_me:$LINENO: result: $ac_res" >&5
14314 echo "${ECHO_T}$ac_res" >&6; }
14315 if test `eval echo '${'$as_ac_var'}'` = yes; then
14316   cat >>confdefs.h <<_ACEOF
14317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14318 _ACEOF
14319
14320 fi
14321 done
14322
14323
14324
14325
14326 for ac_func in isatty mkdtemp mkstemp
14327 do
14328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14329 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14331 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14332   echo $ECHO_N "(cached) $ECHO_C" >&6
14333 else
14334   cat >conftest.$ac_ext <<_ACEOF
14335 /* confdefs.h.  */
14336 _ACEOF
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h.  */
14340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14341    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14342 #define $ac_func innocuous_$ac_func
14343
14344 /* System header to define __stub macros and hopefully few prototypes,
14345     which can conflict with char $ac_func (); below.
14346     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14347     <limits.h> exists even on freestanding compilers.  */
14348
14349 #ifdef __STDC__
14350 # include <limits.h>
14351 #else
14352 # include <assert.h>
14353 #endif
14354
14355 #undef $ac_func
14356
14357 /* Override any GCC internal prototype to avoid an error.
14358    Use char because int might match the return type of a GCC
14359    builtin and then its argument prototype would still apply.  */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char $ac_func ();
14364 /* The GNU C library defines this for functions which it implements
14365     to always fail with ENOSYS.  Some functions are actually named
14366     something starting with __ and the normal name is an alias.  */
14367 #if defined __stub_$ac_func || defined __stub___$ac_func
14368 choke me
14369 #endif
14370
14371 int
14372 main ()
14373 {
14374 return $ac_func ();
14375   ;
14376   return 0;
14377 }
14378 _ACEOF
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (ac_try="$ac_link"
14381 case "(($ac_try" in
14382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383   *) ac_try_echo=$ac_try;;
14384 esac
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386   (eval "$ac_link") 2>conftest.er1
14387   ac_status=$?
14388   grep -v '^ *+' conftest.er1 >conftest.err
14389   rm -f conftest.er1
14390   cat conftest.err >&5
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } &&
14393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14394   { (case "(($ac_try" in
14395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14396   *) ac_try_echo=$ac_try;;
14397 esac
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399   (eval "$ac_try") 2>&5
14400   ac_status=$?
14401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402   (exit $ac_status); }; } &&
14403          { ac_try='test -s conftest$ac_exeext'
14404   { (case "(($ac_try" in
14405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406   *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409   (eval "$ac_try") 2>&5
14410   ac_status=$?
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); }; }; then
14413   eval "$as_ac_var=yes"
14414 else
14415   echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14417
14418         eval "$as_ac_var=no"
14419 fi
14420
14421 rm -f core conftest.err conftest.$ac_objext \
14422       conftest$ac_exeext conftest.$ac_ext
14423 fi
14424 ac_res=`eval echo '${'$as_ac_var'}'`
14425                { echo "$as_me:$LINENO: result: $ac_res" >&5
14426 echo "${ECHO_T}$ac_res" >&6; }
14427 if test `eval echo '${'$as_ac_var'}'` = yes; then
14428   cat >>confdefs.h <<_ACEOF
14429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14430 _ACEOF
14431
14432 fi
14433 done
14434
14435
14436
14437
14438
14439
14440
14441 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14442 do
14443 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14444 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14445 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14446 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14447   echo $ECHO_N "(cached) $ECHO_C" >&6
14448 else
14449   cat >conftest.$ac_ext <<_ACEOF
14450 /* confdefs.h.  */
14451 _ACEOF
14452 cat confdefs.h >>conftest.$ac_ext
14453 cat >>conftest.$ac_ext <<_ACEOF
14454 /* end confdefs.h.  */
14455 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14456    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14457 #define $ac_func innocuous_$ac_func
14458
14459 /* System header to define __stub macros and hopefully few prototypes,
14460     which can conflict with char $ac_func (); below.
14461     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14462     <limits.h> exists even on freestanding compilers.  */
14463
14464 #ifdef __STDC__
14465 # include <limits.h>
14466 #else
14467 # include <assert.h>
14468 #endif
14469
14470 #undef $ac_func
14471
14472 /* Override any GCC internal prototype to avoid an error.
14473    Use char because int might match the return type of a GCC
14474    builtin and then its argument prototype would still apply.  */
14475 #ifdef __cplusplus
14476 extern "C"
14477 #endif
14478 char $ac_func ();
14479 /* The GNU C library defines this for functions which it implements
14480     to always fail with ENOSYS.  Some functions are actually named
14481     something starting with __ and the normal name is an alias.  */
14482 #if defined __stub_$ac_func || defined __stub___$ac_func
14483 choke me
14484 #endif
14485
14486 int
14487 main ()
14488 {
14489 return $ac_func ();
14490   ;
14491   return 0;
14492 }
14493 _ACEOF
14494 rm -f conftest.$ac_objext conftest$ac_exeext
14495 if { (ac_try="$ac_link"
14496 case "(($ac_try" in
14497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14498   *) ac_try_echo=$ac_try;;
14499 esac
14500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14501   (eval "$ac_link") 2>conftest.er1
14502   ac_status=$?
14503   grep -v '^ *+' conftest.er1 >conftest.err
14504   rm -f conftest.er1
14505   cat conftest.err >&5
14506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507   (exit $ac_status); } &&
14508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14509   { (case "(($ac_try" in
14510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511   *) ac_try_echo=$ac_try;;
14512 esac
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514   (eval "$ac_try") 2>&5
14515   ac_status=$?
14516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517   (exit $ac_status); }; } &&
14518          { ac_try='test -s conftest$ac_exeext'
14519   { (case "(($ac_try" in
14520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521   *) ac_try_echo=$ac_try;;
14522 esac
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524   (eval "$ac_try") 2>&5
14525   ac_status=$?
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); }; }; then
14528   eval "$as_ac_var=yes"
14529 else
14530   echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14532
14533         eval "$as_ac_var=no"
14534 fi
14535
14536 rm -f core conftest.err conftest.$ac_objext \
14537       conftest$ac_exeext conftest.$ac_ext
14538 fi
14539 ac_res=`eval echo '${'$as_ac_var'}'`
14540                { echo "$as_me:$LINENO: result: $ac_res" >&5
14541 echo "${ECHO_T}$ac_res" >&6; }
14542 if test `eval echo '${'$as_ac_var'}'` = yes; then
14543   cat >>confdefs.h <<_ACEOF
14544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14545 _ACEOF
14546
14547 fi
14548 done
14549
14550
14551
14552
14553 for ac_func in strerror strerror_r setenv
14554 do
14555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14559   echo $ECHO_N "(cached) $ECHO_C" >&6
14560 else
14561   cat >conftest.$ac_ext <<_ACEOF
14562 /* confdefs.h.  */
14563 _ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h.  */
14567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14568    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14569 #define $ac_func innocuous_$ac_func
14570
14571 /* System header to define __stub macros and hopefully few prototypes,
14572     which can conflict with char $ac_func (); below.
14573     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14574     <limits.h> exists even on freestanding compilers.  */
14575
14576 #ifdef __STDC__
14577 # include <limits.h>
14578 #else
14579 # include <assert.h>
14580 #endif
14581
14582 #undef $ac_func
14583
14584 /* Override any GCC internal prototype to avoid an error.
14585    Use char because int might match the return type of a GCC
14586    builtin and then its argument prototype would still apply.  */
14587 #ifdef __cplusplus
14588 extern "C"
14589 #endif
14590 char $ac_func ();
14591 /* The GNU C library defines this for functions which it implements
14592     to always fail with ENOSYS.  Some functions are actually named
14593     something starting with __ and the normal name is an alias.  */
14594 #if defined __stub_$ac_func || defined __stub___$ac_func
14595 choke me
14596 #endif
14597
14598 int
14599 main ()
14600 {
14601 return $ac_func ();
14602   ;
14603   return 0;
14604 }
14605 _ACEOF
14606 rm -f conftest.$ac_objext conftest$ac_exeext
14607 if { (ac_try="$ac_link"
14608 case "(($ac_try" in
14609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14610   *) ac_try_echo=$ac_try;;
14611 esac
14612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14613   (eval "$ac_link") 2>conftest.er1
14614   ac_status=$?
14615   grep -v '^ *+' conftest.er1 >conftest.err
14616   rm -f conftest.er1
14617   cat conftest.err >&5
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); } &&
14620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14621   { (case "(($ac_try" in
14622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14623   *) ac_try_echo=$ac_try;;
14624 esac
14625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14626   (eval "$ac_try") 2>&5
14627   ac_status=$?
14628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629   (exit $ac_status); }; } &&
14630          { ac_try='test -s conftest$ac_exeext'
14631   { (case "(($ac_try" in
14632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633   *) ac_try_echo=$ac_try;;
14634 esac
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636   (eval "$ac_try") 2>&5
14637   ac_status=$?
14638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639   (exit $ac_status); }; }; then
14640   eval "$as_ac_var=yes"
14641 else
14642   echo "$as_me: failed program was:" >&5
14643 sed 's/^/| /' conftest.$ac_ext >&5
14644
14645         eval "$as_ac_var=no"
14646 fi
14647
14648 rm -f core conftest.err conftest.$ac_objext \
14649       conftest$ac_exeext conftest.$ac_ext
14650 fi
14651 ac_res=`eval echo '${'$as_ac_var'}'`
14652                { echo "$as_me:$LINENO: result: $ac_res" >&5
14653 echo "${ECHO_T}$ac_res" >&6; }
14654 if test `eval echo '${'$as_ac_var'}'` = yes; then
14655   cat >>confdefs.h <<_ACEOF
14656 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14657 _ACEOF
14658
14659 fi
14660 done
14661
14662
14663
14664
14665
14666 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14667 do
14668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14669 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14671 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14672   echo $ECHO_N "(cached) $ECHO_C" >&6
14673 else
14674   cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h.  */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h.  */
14680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14682 #define $ac_func innocuous_$ac_func
14683
14684 /* System header to define __stub macros and hopefully few prototypes,
14685     which can conflict with char $ac_func (); below.
14686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14687     <limits.h> exists even on freestanding compilers.  */
14688
14689 #ifdef __STDC__
14690 # include <limits.h>
14691 #else
14692 # include <assert.h>
14693 #endif
14694
14695 #undef $ac_func
14696
14697 /* Override any GCC internal prototype to avoid an error.
14698    Use char because int might match the return type of a GCC
14699    builtin and then its argument prototype would still apply.  */
14700 #ifdef __cplusplus
14701 extern "C"
14702 #endif
14703 char $ac_func ();
14704 /* The GNU C library defines this for functions which it implements
14705     to always fail with ENOSYS.  Some functions are actually named
14706     something starting with __ and the normal name is an alias.  */
14707 #if defined __stub_$ac_func || defined __stub___$ac_func
14708 choke me
14709 #endif
14710
14711 int
14712 main ()
14713 {
14714 return $ac_func ();
14715   ;
14716   return 0;
14717 }
14718 _ACEOF
14719 rm -f conftest.$ac_objext conftest$ac_exeext
14720 if { (ac_try="$ac_link"
14721 case "(($ac_try" in
14722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723   *) ac_try_echo=$ac_try;;
14724 esac
14725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14726   (eval "$ac_link") 2>conftest.er1
14727   ac_status=$?
14728   grep -v '^ *+' conftest.er1 >conftest.err
14729   rm -f conftest.er1
14730   cat conftest.err >&5
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); } &&
14733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14734   { (case "(($ac_try" in
14735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14736   *) ac_try_echo=$ac_try;;
14737 esac
14738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14739   (eval "$ac_try") 2>&5
14740   ac_status=$?
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); }; } &&
14743          { ac_try='test -s conftest$ac_exeext'
14744   { (case "(($ac_try" in
14745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14746   *) ac_try_echo=$ac_try;;
14747 esac
14748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14749   (eval "$ac_try") 2>&5
14750   ac_status=$?
14751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752   (exit $ac_status); }; }; then
14753   eval "$as_ac_var=yes"
14754 else
14755   echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758         eval "$as_ac_var=no"
14759 fi
14760
14761 rm -f core conftest.err conftest.$ac_objext \
14762       conftest$ac_exeext conftest.$ac_ext
14763 fi
14764 ac_res=`eval echo '${'$as_ac_var'}'`
14765                { echo "$as_me:$LINENO: result: $ac_res" >&5
14766 echo "${ECHO_T}$ac_res" >&6; }
14767 if test `eval echo '${'$as_ac_var'}'` = yes; then
14768   cat >>confdefs.h <<_ACEOF
14769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14770 _ACEOF
14771
14772 fi
14773 done
14774
14775
14776
14777
14778
14779
14780 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14781 do
14782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14786   echo $ECHO_N "(cached) $ECHO_C" >&6
14787 else
14788   cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h.  */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h.  */
14794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14796 #define $ac_func innocuous_$ac_func
14797
14798 /* System header to define __stub macros and hopefully few prototypes,
14799     which can conflict with char $ac_func (); below.
14800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14801     <limits.h> exists even on freestanding compilers.  */
14802
14803 #ifdef __STDC__
14804 # include <limits.h>
14805 #else
14806 # include <assert.h>
14807 #endif
14808
14809 #undef $ac_func
14810
14811 /* Override any GCC internal prototype to avoid an error.
14812    Use char because int might match the return type of a GCC
14813    builtin and then its argument prototype would still apply.  */
14814 #ifdef __cplusplus
14815 extern "C"
14816 #endif
14817 char $ac_func ();
14818 /* The GNU C library defines this for functions which it implements
14819     to always fail with ENOSYS.  Some functions are actually named
14820     something starting with __ and the normal name is an alias.  */
14821 #if defined __stub_$ac_func || defined __stub___$ac_func
14822 choke me
14823 #endif
14824
14825 int
14826 main ()
14827 {
14828 return $ac_func ();
14829   ;
14830   return 0;
14831 }
14832 _ACEOF
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (ac_try="$ac_link"
14835 case "(($ac_try" in
14836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837   *) ac_try_echo=$ac_try;;
14838 esac
14839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14840   (eval "$ac_link") 2>conftest.er1
14841   ac_status=$?
14842   grep -v '^ *+' conftest.er1 >conftest.err
14843   rm -f conftest.er1
14844   cat conftest.err >&5
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); } &&
14847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14848   { (case "(($ac_try" in
14849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850   *) ac_try_echo=$ac_try;;
14851 esac
14852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14853   (eval "$ac_try") 2>&5
14854   ac_status=$?
14855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856   (exit $ac_status); }; } &&
14857          { ac_try='test -s conftest$ac_exeext'
14858   { (case "(($ac_try" in
14859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14860   *) ac_try_echo=$ac_try;;
14861 esac
14862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14863   (eval "$ac_try") 2>&5
14864   ac_status=$?
14865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866   (exit $ac_status); }; }; then
14867   eval "$as_ac_var=yes"
14868 else
14869   echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14871
14872         eval "$as_ac_var=no"
14873 fi
14874
14875 rm -f core conftest.err conftest.$ac_objext \
14876       conftest$ac_exeext conftest.$ac_ext
14877 fi
14878 ac_res=`eval echo '${'$as_ac_var'}'`
14879                { echo "$as_me:$LINENO: result: $ac_res" >&5
14880 echo "${ECHO_T}$ac_res" >&6; }
14881 if test `eval echo '${'$as_ac_var'}'` = yes; then
14882   cat >>confdefs.h <<_ACEOF
14883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14884 _ACEOF
14885
14886 fi
14887 done
14888
14889
14890
14891 for ac_func in futimes futimens
14892 do
14893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14897   echo $ECHO_N "(cached) $ECHO_C" >&6
14898 else
14899   cat >conftest.$ac_ext <<_ACEOF
14900 /* confdefs.h.  */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h.  */
14905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14906    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14907 #define $ac_func innocuous_$ac_func
14908
14909 /* System header to define __stub macros and hopefully few prototypes,
14910     which can conflict with char $ac_func (); below.
14911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14912     <limits.h> exists even on freestanding compilers.  */
14913
14914 #ifdef __STDC__
14915 # include <limits.h>
14916 #else
14917 # include <assert.h>
14918 #endif
14919
14920 #undef $ac_func
14921
14922 /* Override any GCC internal prototype to avoid an error.
14923    Use char because int might match the return type of a GCC
14924    builtin and then its argument prototype would still apply.  */
14925 #ifdef __cplusplus
14926 extern "C"
14927 #endif
14928 char $ac_func ();
14929 /* The GNU C library defines this for functions which it implements
14930     to always fail with ENOSYS.  Some functions are actually named
14931     something starting with __ and the normal name is an alias.  */
14932 #if defined __stub_$ac_func || defined __stub___$ac_func
14933 choke me
14934 #endif
14935
14936 int
14937 main ()
14938 {
14939 return $ac_func ();
14940   ;
14941   return 0;
14942 }
14943 _ACEOF
14944 rm -f conftest.$ac_objext conftest$ac_exeext
14945 if { (ac_try="$ac_link"
14946 case "(($ac_try" in
14947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14948   *) ac_try_echo=$ac_try;;
14949 esac
14950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14951   (eval "$ac_link") 2>conftest.er1
14952   ac_status=$?
14953   grep -v '^ *+' conftest.er1 >conftest.err
14954   rm -f conftest.er1
14955   cat conftest.err >&5
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); } &&
14958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14959   { (case "(($ac_try" in
14960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961   *) ac_try_echo=$ac_try;;
14962 esac
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964   (eval "$ac_try") 2>&5
14965   ac_status=$?
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); }; } &&
14968          { ac_try='test -s conftest$ac_exeext'
14969   { (case "(($ac_try" in
14970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971   *) ac_try_echo=$ac_try;;
14972 esac
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974   (eval "$ac_try") 2>&5
14975   ac_status=$?
14976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977   (exit $ac_status); }; }; then
14978   eval "$as_ac_var=yes"
14979 else
14980   echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14982
14983         eval "$as_ac_var=no"
14984 fi
14985
14986 rm -f core conftest.err conftest.$ac_objext \
14987       conftest$ac_exeext conftest.$ac_ext
14988 fi
14989 ac_res=`eval echo '${'$as_ac_var'}'`
14990                { echo "$as_me:$LINENO: result: $ac_res" >&5
14991 echo "${ECHO_T}$ac_res" >&6; }
14992 if test `eval echo '${'$as_ac_var'}'` = yes; then
14993   cat >>confdefs.h <<_ACEOF
14994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14995 _ACEOF
14996
14997 fi
14998 done
14999
15000 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
15001 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
15002 if test "${llvm_cv_c_printf_a+set}" = set; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   ac_ext=c
15006 ac_cpp='$CPP $CPPFLAGS'
15007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15010
15011  if test "$cross_compiling" = yes; then
15012   llvmac_cv_c_printf_a=no
15013 else
15014   cat >conftest.$ac_ext <<_ACEOF
15015
15016   /* confdefs.h.  */
15017 _ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h.  */
15021
15022 #include <stdio.h>
15023 #include <stdlib.h>
15024
15025 int
15026 main ()
15027 {
15028
15029 volatile double A, B;
15030 char Buffer[100];
15031 A = 1;
15032 A /= 10.0;
15033 sprintf(Buffer, "%a", A);
15034 B = atof(Buffer);
15035 if (A != B)
15036   return (1);
15037 if (A != 0x1.999999999999ap-4)
15038   return (1);
15039 return (0);
15040   ;
15041   return 0;
15042 }
15043 _ACEOF
15044 rm -f conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048   *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051   (eval "$ac_link") 2>&5
15052   ac_status=$?
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15055   { (case "(($ac_try" in
15056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057   *) ac_try_echo=$ac_try;;
15058 esac
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060   (eval "$ac_try") 2>&5
15061   ac_status=$?
15062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063   (exit $ac_status); }; }; then
15064   llvm_cv_c_printf_a=yes
15065 else
15066   echo "$as_me: program exited with status $ac_status" >&5
15067 echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15069
15070 ( exit $ac_status )
15071 llvmac_cv_c_printf_a=no
15072 fi
15073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15074 fi
15075
15076
15077  ac_ext=c
15078 ac_cpp='$CPP $CPPFLAGS'
15079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15082
15083 fi
15084 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15085 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15086  if test "$llvm_cv_c_printf_a" = "yes"; then
15087
15088 cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_PRINTF_A 1
15090 _ACEOF
15091
15092  fi
15093
15094
15095
15096   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15097 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15098 if test "${ac_cv_func_rand48+set}" = set; then
15099   echo $ECHO_N "(cached) $ECHO_C" >&6
15100 else
15101
15102     ac_ext=cpp
15103 ac_cpp='$CXXCPP $CPPFLAGS'
15104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15107
15108     cat >conftest.$ac_ext <<_ACEOF
15109 /* confdefs.h.  */
15110 _ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h.  */
15114 #include <stdlib.h>
15115 int
15116 main ()
15117 {
15118 srand48(0);lrand48();drand48();
15119   ;
15120   return 0;
15121 }
15122 _ACEOF
15123 rm -f conftest.$ac_objext
15124 if { (ac_try="$ac_compile"
15125 case "(($ac_try" in
15126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127   *) ac_try_echo=$ac_try;;
15128 esac
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130   (eval "$ac_compile") 2>conftest.er1
15131   ac_status=$?
15132   grep -v '^ *+' conftest.er1 >conftest.err
15133   rm -f conftest.er1
15134   cat conftest.err >&5
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); } &&
15137          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15138   { (case "(($ac_try" in
15139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140   *) ac_try_echo=$ac_try;;
15141 esac
15142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15143   (eval "$ac_try") 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); }; } &&
15147          { ac_try='test -s conftest.$ac_objext'
15148   { (case "(($ac_try" in
15149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150   *) ac_try_echo=$ac_try;;
15151 esac
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153   (eval "$ac_try") 2>&5
15154   ac_status=$?
15155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156   (exit $ac_status); }; }; then
15157   ac_cv_func_rand48=yes
15158 else
15159   echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15161
15162         ac_cv_func_rand48=no
15163 fi
15164
15165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15166     ac_ext=c
15167 ac_cpp='$CPP $CPPFLAGS'
15168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15171
15172
15173 fi
15174 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15175 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15176
15177 if test "$ac_cv_func_rand48" = "yes" ; then
15178
15179 cat >>confdefs.h <<\_ACEOF
15180 #define HAVE_RAND48 1
15181 _ACEOF
15182
15183 fi
15184
15185
15186 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15187 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15188 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15189   echo $ECHO_N "(cached) $ECHO_C" >&6
15190 else
15191   cat >conftest.$ac_ext <<_ACEOF
15192 /* confdefs.h.  */
15193 _ACEOF
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h.  */
15197 $ac_includes_default
15198 int
15199 main ()
15200 {
15201 #ifndef arc4random
15202   char *p = (char *) arc4random;
15203   return !p;
15204 #endif
15205
15206   ;
15207   return 0;
15208 }
15209 _ACEOF
15210 rm -f conftest.$ac_objext
15211 if { (ac_try="$ac_compile"
15212 case "(($ac_try" in
15213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214   *) ac_try_echo=$ac_try;;
15215 esac
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217   (eval "$ac_compile") 2>conftest.er1
15218   ac_status=$?
15219   grep -v '^ *+' conftest.er1 >conftest.err
15220   rm -f conftest.er1
15221   cat conftest.err >&5
15222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223   (exit $ac_status); } &&
15224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15225   { (case "(($ac_try" in
15226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227   *) ac_try_echo=$ac_try;;
15228 esac
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230   (eval "$ac_try") 2>&5
15231   ac_status=$?
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); }; } &&
15234          { ac_try='test -s conftest.$ac_objext'
15235   { (case "(($ac_try" in
15236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237   *) ac_try_echo=$ac_try;;
15238 esac
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240   (eval "$ac_try") 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); }; }; then
15244   ac_cv_have_decl_arc4random=yes
15245 else
15246   echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249         ac_cv_have_decl_arc4random=no
15250 fi
15251
15252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15253 fi
15254 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15255 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15256 if test $ac_cv_have_decl_arc4random = yes; then
15257
15258 cat >>confdefs.h <<_ACEOF
15259 #define HAVE_DECL_ARC4RANDOM 1
15260 _ACEOF
15261
15262
15263 else
15264   cat >>confdefs.h <<_ACEOF
15265 #define HAVE_DECL_ARC4RANDOM 0
15266 _ACEOF
15267
15268
15269 fi
15270
15271
15272
15273 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15274 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15275 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15276   echo $ECHO_N "(cached) $ECHO_C" >&6
15277 else
15278   cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h.  */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h.  */
15284 $ac_includes_default
15285 int
15286 main ()
15287 {
15288 #ifndef strerror_s
15289   char *p = (char *) strerror_s;
15290   return !p;
15291 #endif
15292
15293   ;
15294   return 0;
15295 }
15296 _ACEOF
15297 rm -f conftest.$ac_objext
15298 if { (ac_try="$ac_compile"
15299 case "(($ac_try" in
15300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301   *) ac_try_echo=$ac_try;;
15302 esac
15303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304   (eval "$ac_compile") 2>conftest.er1
15305   ac_status=$?
15306   grep -v '^ *+' conftest.er1 >conftest.err
15307   rm -f conftest.er1
15308   cat conftest.err >&5
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); } &&
15311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15312   { (case "(($ac_try" in
15313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314   *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317   (eval "$ac_try") 2>&5
15318   ac_status=$?
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); }; } &&
15321          { ac_try='test -s conftest.$ac_objext'
15322   { (case "(($ac_try" in
15323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15324   *) ac_try_echo=$ac_try;;
15325 esac
15326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15327   (eval "$ac_try") 2>&5
15328   ac_status=$?
15329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330   (exit $ac_status); }; }; then
15331   ac_cv_have_decl_strerror_s=yes
15332 else
15333   echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15335
15336         ac_cv_have_decl_strerror_s=no
15337 fi
15338
15339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15340 fi
15341 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15342 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15343 if test $ac_cv_have_decl_strerror_s = yes; then
15344
15345 cat >>confdefs.h <<_ACEOF
15346 #define HAVE_DECL_STRERROR_S 1
15347 _ACEOF
15348
15349
15350 else
15351   cat >>confdefs.h <<_ACEOF
15352 #define HAVE_DECL_STRERROR_S 0
15353 _ACEOF
15354
15355
15356 fi
15357
15358
15359
15360 if test "$llvm_cv_os_type" = "MingW" ; then
15361   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15362 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15363 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15364   echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366   ac_check_lib_save_LIBS=$LIBS
15367 LIBS="-lgcc  $LIBS"
15368 cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374
15375 /* Override any GCC internal prototype to avoid an error.
15376    Use char because int might match the return type of a GCC
15377    builtin and then its argument prototype would still apply.  */
15378 #ifdef __cplusplus
15379 extern "C"
15380 #endif
15381 char _alloca ();
15382 int
15383 main ()
15384 {
15385 return _alloca ();
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (ac_try="$ac_link"
15392 case "(($ac_try" in
15393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15394   *) ac_try_echo=$ac_try;;
15395 esac
15396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15397   (eval "$ac_link") 2>conftest.er1
15398   ac_status=$?
15399   grep -v '^ *+' conftest.er1 >conftest.err
15400   rm -f conftest.er1
15401   cat conftest.err >&5
15402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403   (exit $ac_status); } &&
15404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15405   { (case "(($ac_try" in
15406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407   *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410   (eval "$ac_try") 2>&5
15411   ac_status=$?
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); }; } &&
15414          { ac_try='test -s conftest$ac_exeext'
15415   { (case "(($ac_try" in
15416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417   *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420   (eval "$ac_try") 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); }; }; then
15424   ac_cv_lib_gcc__alloca=yes
15425 else
15426   echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15428
15429         ac_cv_lib_gcc__alloca=no
15430 fi
15431
15432 rm -f core conftest.err conftest.$ac_objext \
15433       conftest$ac_exeext conftest.$ac_ext
15434 LIBS=$ac_check_lib_save_LIBS
15435 fi
15436 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15437 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15438 if test $ac_cv_lib_gcc__alloca = yes; then
15439
15440 cat >>confdefs.h <<\_ACEOF
15441 #define HAVE__ALLOCA 1
15442 _ACEOF
15443
15444 fi
15445
15446   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15447 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15448 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15449   echo $ECHO_N "(cached) $ECHO_C" >&6
15450 else
15451   ac_check_lib_save_LIBS=$LIBS
15452 LIBS="-lgcc  $LIBS"
15453 cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h.  */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h.  */
15459
15460 /* Override any GCC internal prototype to avoid an error.
15461    Use char because int might match the return type of a GCC
15462    builtin and then its argument prototype would still apply.  */
15463 #ifdef __cplusplus
15464 extern "C"
15465 #endif
15466 char __alloca ();
15467 int
15468 main ()
15469 {
15470 return __alloca ();
15471   ;
15472   return 0;
15473 }
15474 _ACEOF
15475 rm -f conftest.$ac_objext conftest$ac_exeext
15476 if { (ac_try="$ac_link"
15477 case "(($ac_try" in
15478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15479   *) ac_try_echo=$ac_try;;
15480 esac
15481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15482   (eval "$ac_link") 2>conftest.er1
15483   ac_status=$?
15484   grep -v '^ *+' conftest.er1 >conftest.err
15485   rm -f conftest.er1
15486   cat conftest.err >&5
15487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488   (exit $ac_status); } &&
15489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15490   { (case "(($ac_try" in
15491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492   *) ac_try_echo=$ac_try;;
15493 esac
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495   (eval "$ac_try") 2>&5
15496   ac_status=$?
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); }; } &&
15499          { ac_try='test -s conftest$ac_exeext'
15500   { (case "(($ac_try" in
15501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502   *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505   (eval "$ac_try") 2>&5
15506   ac_status=$?
15507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508   (exit $ac_status); }; }; then
15509   ac_cv_lib_gcc___alloca=yes
15510 else
15511   echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15513
15514         ac_cv_lib_gcc___alloca=no
15515 fi
15516
15517 rm -f core conftest.err conftest.$ac_objext \
15518       conftest$ac_exeext conftest.$ac_ext
15519 LIBS=$ac_check_lib_save_LIBS
15520 fi
15521 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15522 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15523 if test $ac_cv_lib_gcc___alloca = yes; then
15524
15525 cat >>confdefs.h <<\_ACEOF
15526 #define HAVE___ALLOCA 1
15527 _ACEOF
15528
15529 fi
15530
15531   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15532 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15533 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15534   echo $ECHO_N "(cached) $ECHO_C" >&6
15535 else
15536   ac_check_lib_save_LIBS=$LIBS
15537 LIBS="-lgcc  $LIBS"
15538 cat >conftest.$ac_ext <<_ACEOF
15539 /* confdefs.h.  */
15540 _ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h.  */
15544
15545 /* Override any GCC internal prototype to avoid an error.
15546    Use char because int might match the return type of a GCC
15547    builtin and then its argument prototype would still apply.  */
15548 #ifdef __cplusplus
15549 extern "C"
15550 #endif
15551 char __chkstk ();
15552 int
15553 main ()
15554 {
15555 return __chkstk ();
15556   ;
15557   return 0;
15558 }
15559 _ACEOF
15560 rm -f conftest.$ac_objext conftest$ac_exeext
15561 if { (ac_try="$ac_link"
15562 case "(($ac_try" in
15563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564   *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567   (eval "$ac_link") 2>conftest.er1
15568   ac_status=$?
15569   grep -v '^ *+' conftest.er1 >conftest.err
15570   rm -f conftest.er1
15571   cat conftest.err >&5
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); } &&
15574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15575   { (case "(($ac_try" in
15576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577   *) ac_try_echo=$ac_try;;
15578 esac
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580   (eval "$ac_try") 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); }; } &&
15584          { ac_try='test -s conftest$ac_exeext'
15585   { (case "(($ac_try" in
15586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587   *) ac_try_echo=$ac_try;;
15588 esac
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590   (eval "$ac_try") 2>&5
15591   ac_status=$?
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); }; }; then
15594   ac_cv_lib_gcc___chkstk=yes
15595 else
15596   echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15598
15599         ac_cv_lib_gcc___chkstk=no
15600 fi
15601
15602 rm -f core conftest.err conftest.$ac_objext \
15603       conftest$ac_exeext conftest.$ac_ext
15604 LIBS=$ac_check_lib_save_LIBS
15605 fi
15606 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15607 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15608 if test $ac_cv_lib_gcc___chkstk = yes; then
15609
15610 cat >>confdefs.h <<\_ACEOF
15611 #define HAVE___CHKSTK 1
15612 _ACEOF
15613
15614 fi
15615
15616   { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15617 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15618 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15619   echo $ECHO_N "(cached) $ECHO_C" >&6
15620 else
15621   ac_check_lib_save_LIBS=$LIBS
15622 LIBS="-lgcc  $LIBS"
15623 cat >conftest.$ac_ext <<_ACEOF
15624 /* confdefs.h.  */
15625 _ACEOF
15626 cat confdefs.h >>conftest.$ac_ext
15627 cat >>conftest.$ac_ext <<_ACEOF
15628 /* end confdefs.h.  */
15629
15630 /* Override any GCC internal prototype to avoid an error.
15631    Use char because int might match the return type of a GCC
15632    builtin and then its argument prototype would still apply.  */
15633 #ifdef __cplusplus
15634 extern "C"
15635 #endif
15636 char __chkstk_ms ();
15637 int
15638 main ()
15639 {
15640 return __chkstk_ms ();
15641   ;
15642   return 0;
15643 }
15644 _ACEOF
15645 rm -f conftest.$ac_objext conftest$ac_exeext
15646 if { (ac_try="$ac_link"
15647 case "(($ac_try" in
15648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649   *) ac_try_echo=$ac_try;;
15650 esac
15651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15652   (eval "$ac_link") 2>conftest.er1
15653   ac_status=$?
15654   grep -v '^ *+' conftest.er1 >conftest.err
15655   rm -f conftest.er1
15656   cat conftest.err >&5
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); } &&
15659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15660   { (case "(($ac_try" in
15661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662   *) ac_try_echo=$ac_try;;
15663 esac
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665   (eval "$ac_try") 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); }; } &&
15669          { ac_try='test -s conftest$ac_exeext'
15670   { (case "(($ac_try" in
15671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672   *) ac_try_echo=$ac_try;;
15673 esac
15674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15675   (eval "$ac_try") 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; }; then
15679   ac_cv_lib_gcc___chkstk_ms=yes
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684         ac_cv_lib_gcc___chkstk_ms=no
15685 fi
15686
15687 rm -f core conftest.err conftest.$ac_objext \
15688       conftest$ac_exeext conftest.$ac_ext
15689 LIBS=$ac_check_lib_save_LIBS
15690 fi
15691 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15692 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15693 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15694
15695 cat >>confdefs.h <<\_ACEOF
15696 #define HAVE___CHKSTK_MS 1
15697 _ACEOF
15698
15699 fi
15700
15701   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15702 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15703 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15704   echo $ECHO_N "(cached) $ECHO_C" >&6
15705 else
15706   ac_check_lib_save_LIBS=$LIBS
15707 LIBS="-lgcc  $LIBS"
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h.  */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h.  */
15714
15715 /* Override any GCC internal prototype to avoid an error.
15716    Use char because int might match the return type of a GCC
15717    builtin and then its argument prototype would still apply.  */
15718 #ifdef __cplusplus
15719 extern "C"
15720 #endif
15721 char ___chkstk ();
15722 int
15723 main ()
15724 {
15725 return ___chkstk ();
15726   ;
15727   return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (ac_try="$ac_link"
15732 case "(($ac_try" in
15733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734   *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737   (eval "$ac_link") 2>conftest.er1
15738   ac_status=$?
15739   grep -v '^ *+' conftest.er1 >conftest.err
15740   rm -f conftest.er1
15741   cat conftest.err >&5
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); } &&
15744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15745   { (case "(($ac_try" in
15746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747   *) ac_try_echo=$ac_try;;
15748 esac
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750   (eval "$ac_try") 2>&5
15751   ac_status=$?
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); }; } &&
15754          { ac_try='test -s conftest$ac_exeext'
15755   { (case "(($ac_try" in
15756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757   *) ac_try_echo=$ac_try;;
15758 esac
15759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15760   (eval "$ac_try") 2>&5
15761   ac_status=$?
15762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763   (exit $ac_status); }; }; then
15764   ac_cv_lib_gcc____chkstk=yes
15765 else
15766   echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15768
15769         ac_cv_lib_gcc____chkstk=no
15770 fi
15771
15772 rm -f core conftest.err conftest.$ac_objext \
15773       conftest$ac_exeext conftest.$ac_ext
15774 LIBS=$ac_check_lib_save_LIBS
15775 fi
15776 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15777 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15778 if test $ac_cv_lib_gcc____chkstk = yes; then
15779
15780 cat >>confdefs.h <<\_ACEOF
15781 #define HAVE____CHKSTK 1
15782 _ACEOF
15783
15784 fi
15785
15786   { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15787 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15788 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15789   echo $ECHO_N "(cached) $ECHO_C" >&6
15790 else
15791   ac_check_lib_save_LIBS=$LIBS
15792 LIBS="-lgcc  $LIBS"
15793 cat >conftest.$ac_ext <<_ACEOF
15794 /* confdefs.h.  */
15795 _ACEOF
15796 cat confdefs.h >>conftest.$ac_ext
15797 cat >>conftest.$ac_ext <<_ACEOF
15798 /* end confdefs.h.  */
15799
15800 /* Override any GCC internal prototype to avoid an error.
15801    Use char because int might match the return type of a GCC
15802    builtin and then its argument prototype would still apply.  */
15803 #ifdef __cplusplus
15804 extern "C"
15805 #endif
15806 char ___chkstk_ms ();
15807 int
15808 main ()
15809 {
15810 return ___chkstk_ms ();
15811   ;
15812   return 0;
15813 }
15814 _ACEOF
15815 rm -f conftest.$ac_objext conftest$ac_exeext
15816 if { (ac_try="$ac_link"
15817 case "(($ac_try" in
15818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819   *) ac_try_echo=$ac_try;;
15820 esac
15821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15822   (eval "$ac_link") 2>conftest.er1
15823   ac_status=$?
15824   grep -v '^ *+' conftest.er1 >conftest.err
15825   rm -f conftest.er1
15826   cat conftest.err >&5
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); } &&
15829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15836   ac_status=$?
15837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838   (exit $ac_status); }; } &&
15839          { ac_try='test -s conftest$ac_exeext'
15840   { (case "(($ac_try" in
15841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15842   *) ac_try_echo=$ac_try;;
15843 esac
15844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15845   (eval "$ac_try") 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); }; }; then
15849   ac_cv_lib_gcc____chkstk_ms=yes
15850 else
15851   echo "$as_me: failed program was:" >&5
15852 sed 's/^/| /' conftest.$ac_ext >&5
15853
15854         ac_cv_lib_gcc____chkstk_ms=no
15855 fi
15856
15857 rm -f core conftest.err conftest.$ac_objext \
15858       conftest$ac_exeext conftest.$ac_ext
15859 LIBS=$ac_check_lib_save_LIBS
15860 fi
15861 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15862 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15863 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15864
15865 cat >>confdefs.h <<\_ACEOF
15866 #define HAVE____CHKSTK_MS 1
15867 _ACEOF
15868
15869 fi
15870
15871
15872   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15873 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15874 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15875   echo $ECHO_N "(cached) $ECHO_C" >&6
15876 else
15877   ac_check_lib_save_LIBS=$LIBS
15878 LIBS="-lgcc  $LIBS"
15879 cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h.  */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h.  */
15885
15886 /* Override any GCC internal prototype to avoid an error.
15887    Use char because int might match the return type of a GCC
15888    builtin and then its argument prototype would still apply.  */
15889 #ifdef __cplusplus
15890 extern "C"
15891 #endif
15892 char __ashldi3 ();
15893 int
15894 main ()
15895 {
15896 return __ashldi3 ();
15897   ;
15898   return 0;
15899 }
15900 _ACEOF
15901 rm -f conftest.$ac_objext conftest$ac_exeext
15902 if { (ac_try="$ac_link"
15903 case "(($ac_try" in
15904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905   *) ac_try_echo=$ac_try;;
15906 esac
15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908   (eval "$ac_link") 2>conftest.er1
15909   ac_status=$?
15910   grep -v '^ *+' conftest.er1 >conftest.err
15911   rm -f conftest.er1
15912   cat conftest.err >&5
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); } &&
15915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15916   { (case "(($ac_try" in
15917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918   *) ac_try_echo=$ac_try;;
15919 esac
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921   (eval "$ac_try") 2>&5
15922   ac_status=$?
15923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924   (exit $ac_status); }; } &&
15925          { ac_try='test -s conftest$ac_exeext'
15926   { (case "(($ac_try" in
15927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928   *) ac_try_echo=$ac_try;;
15929 esac
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931   (eval "$ac_try") 2>&5
15932   ac_status=$?
15933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934   (exit $ac_status); }; }; then
15935   ac_cv_lib_gcc___ashldi3=yes
15936 else
15937   echo "$as_me: failed program was:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15939
15940         ac_cv_lib_gcc___ashldi3=no
15941 fi
15942
15943 rm -f core conftest.err conftest.$ac_objext \
15944       conftest$ac_exeext conftest.$ac_ext
15945 LIBS=$ac_check_lib_save_LIBS
15946 fi
15947 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15948 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15949 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15950
15951 cat >>confdefs.h <<\_ACEOF
15952 #define HAVE___ASHLDI3 1
15953 _ACEOF
15954
15955 fi
15956
15957   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15958 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15959 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15960   echo $ECHO_N "(cached) $ECHO_C" >&6
15961 else
15962   ac_check_lib_save_LIBS=$LIBS
15963 LIBS="-lgcc  $LIBS"
15964 cat >conftest.$ac_ext <<_ACEOF
15965 /* confdefs.h.  */
15966 _ACEOF
15967 cat confdefs.h >>conftest.$ac_ext
15968 cat >>conftest.$ac_ext <<_ACEOF
15969 /* end confdefs.h.  */
15970
15971 /* Override any GCC internal prototype to avoid an error.
15972    Use char because int might match the return type of a GCC
15973    builtin and then its argument prototype would still apply.  */
15974 #ifdef __cplusplus
15975 extern "C"
15976 #endif
15977 char __ashrdi3 ();
15978 int
15979 main ()
15980 {
15981 return __ashrdi3 ();
15982   ;
15983   return 0;
15984 }
15985 _ACEOF
15986 rm -f conftest.$ac_objext conftest$ac_exeext
15987 if { (ac_try="$ac_link"
15988 case "(($ac_try" in
15989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990   *) ac_try_echo=$ac_try;;
15991 esac
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993   (eval "$ac_link") 2>conftest.er1
15994   ac_status=$?
15995   grep -v '^ *+' conftest.er1 >conftest.err
15996   rm -f conftest.er1
15997   cat conftest.err >&5
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); } &&
16000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16001   { (case "(($ac_try" in
16002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003   *) ac_try_echo=$ac_try;;
16004 esac
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006   (eval "$ac_try") 2>&5
16007   ac_status=$?
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); }; } &&
16010          { ac_try='test -s conftest$ac_exeext'
16011   { (case "(($ac_try" in
16012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013   *) ac_try_echo=$ac_try;;
16014 esac
16015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16016   (eval "$ac_try") 2>&5
16017   ac_status=$?
16018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019   (exit $ac_status); }; }; then
16020   ac_cv_lib_gcc___ashrdi3=yes
16021 else
16022   echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16024
16025         ac_cv_lib_gcc___ashrdi3=no
16026 fi
16027
16028 rm -f core conftest.err conftest.$ac_objext \
16029       conftest$ac_exeext conftest.$ac_ext
16030 LIBS=$ac_check_lib_save_LIBS
16031 fi
16032 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
16033 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
16034 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
16035
16036 cat >>confdefs.h <<\_ACEOF
16037 #define HAVE___ASHRDI3 1
16038 _ACEOF
16039
16040 fi
16041
16042   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
16043 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
16044 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
16045   echo $ECHO_N "(cached) $ECHO_C" >&6
16046 else
16047   ac_check_lib_save_LIBS=$LIBS
16048 LIBS="-lgcc  $LIBS"
16049 cat >conftest.$ac_ext <<_ACEOF
16050 /* confdefs.h.  */
16051 _ACEOF
16052 cat confdefs.h >>conftest.$ac_ext
16053 cat >>conftest.$ac_ext <<_ACEOF
16054 /* end confdefs.h.  */
16055
16056 /* Override any GCC internal prototype to avoid an error.
16057    Use char because int might match the return type of a GCC
16058    builtin and then its argument prototype would still apply.  */
16059 #ifdef __cplusplus
16060 extern "C"
16061 #endif
16062 char __divdi3 ();
16063 int
16064 main ()
16065 {
16066 return __divdi3 ();
16067   ;
16068   return 0;
16069 }
16070 _ACEOF
16071 rm -f conftest.$ac_objext conftest$ac_exeext
16072 if { (ac_try="$ac_link"
16073 case "(($ac_try" in
16074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16075   *) ac_try_echo=$ac_try;;
16076 esac
16077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078   (eval "$ac_link") 2>conftest.er1
16079   ac_status=$?
16080   grep -v '^ *+' conftest.er1 >conftest.err
16081   rm -f conftest.er1
16082   cat conftest.err >&5
16083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084   (exit $ac_status); } &&
16085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16086   { (case "(($ac_try" in
16087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088   *) ac_try_echo=$ac_try;;
16089 esac
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091   (eval "$ac_try") 2>&5
16092   ac_status=$?
16093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094   (exit $ac_status); }; } &&
16095          { ac_try='test -s conftest$ac_exeext'
16096   { (case "(($ac_try" in
16097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098   *) ac_try_echo=$ac_try;;
16099 esac
16100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101   (eval "$ac_try") 2>&5
16102   ac_status=$?
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); }; }; then
16105   ac_cv_lib_gcc___divdi3=yes
16106 else
16107   echo "$as_me: failed program was:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16109
16110         ac_cv_lib_gcc___divdi3=no
16111 fi
16112
16113 rm -f core conftest.err conftest.$ac_objext \
16114       conftest$ac_exeext conftest.$ac_ext
16115 LIBS=$ac_check_lib_save_LIBS
16116 fi
16117 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16118 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16119 if test $ac_cv_lib_gcc___divdi3 = yes; then
16120
16121 cat >>confdefs.h <<\_ACEOF
16122 #define HAVE___DIVDI3 1
16123 _ACEOF
16124
16125 fi
16126
16127   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16128 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16129 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16130   echo $ECHO_N "(cached) $ECHO_C" >&6
16131 else
16132   ac_check_lib_save_LIBS=$LIBS
16133 LIBS="-lgcc  $LIBS"
16134 cat >conftest.$ac_ext <<_ACEOF
16135 /* confdefs.h.  */
16136 _ACEOF
16137 cat confdefs.h >>conftest.$ac_ext
16138 cat >>conftest.$ac_ext <<_ACEOF
16139 /* end confdefs.h.  */
16140
16141 /* Override any GCC internal prototype to avoid an error.
16142    Use char because int might match the return type of a GCC
16143    builtin and then its argument prototype would still apply.  */
16144 #ifdef __cplusplus
16145 extern "C"
16146 #endif
16147 char __fixdfdi ();
16148 int
16149 main ()
16150 {
16151 return __fixdfdi ();
16152   ;
16153   return 0;
16154 }
16155 _ACEOF
16156 rm -f conftest.$ac_objext conftest$ac_exeext
16157 if { (ac_try="$ac_link"
16158 case "(($ac_try" in
16159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160   *) ac_try_echo=$ac_try;;
16161 esac
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163   (eval "$ac_link") 2>conftest.er1
16164   ac_status=$?
16165   grep -v '^ *+' conftest.er1 >conftest.err
16166   rm -f conftest.er1
16167   cat conftest.err >&5
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); } &&
16170          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16171   { (case "(($ac_try" in
16172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173   *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176   (eval "$ac_try") 2>&5
16177   ac_status=$?
16178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179   (exit $ac_status); }; } &&
16180          { ac_try='test -s conftest$ac_exeext'
16181   { (case "(($ac_try" in
16182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183   *) ac_try_echo=$ac_try;;
16184 esac
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186   (eval "$ac_try") 2>&5
16187   ac_status=$?
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); }; }; then
16190   ac_cv_lib_gcc___fixdfdi=yes
16191 else
16192   echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16194
16195         ac_cv_lib_gcc___fixdfdi=no
16196 fi
16197
16198 rm -f core conftest.err conftest.$ac_objext \
16199       conftest$ac_exeext conftest.$ac_ext
16200 LIBS=$ac_check_lib_save_LIBS
16201 fi
16202 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16203 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16204 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16205
16206 cat >>confdefs.h <<\_ACEOF
16207 #define HAVE___FIXDFDI 1
16208 _ACEOF
16209
16210 fi
16211
16212   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16213 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16214 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16215   echo $ECHO_N "(cached) $ECHO_C" >&6
16216 else
16217   ac_check_lib_save_LIBS=$LIBS
16218 LIBS="-lgcc  $LIBS"
16219 cat >conftest.$ac_ext <<_ACEOF
16220 /* confdefs.h.  */
16221 _ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h.  */
16225
16226 /* Override any GCC internal prototype to avoid an error.
16227    Use char because int might match the return type of a GCC
16228    builtin and then its argument prototype would still apply.  */
16229 #ifdef __cplusplus
16230 extern "C"
16231 #endif
16232 char __fixsfdi ();
16233 int
16234 main ()
16235 {
16236 return __fixsfdi ();
16237   ;
16238   return 0;
16239 }
16240 _ACEOF
16241 rm -f conftest.$ac_objext conftest$ac_exeext
16242 if { (ac_try="$ac_link"
16243 case "(($ac_try" in
16244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245   *) ac_try_echo=$ac_try;;
16246 esac
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248   (eval "$ac_link") 2>conftest.er1
16249   ac_status=$?
16250   grep -v '^ *+' conftest.er1 >conftest.err
16251   rm -f conftest.er1
16252   cat conftest.err >&5
16253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254   (exit $ac_status); } &&
16255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16256   { (case "(($ac_try" in
16257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258   *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261   (eval "$ac_try") 2>&5
16262   ac_status=$?
16263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264   (exit $ac_status); }; } &&
16265          { ac_try='test -s conftest$ac_exeext'
16266   { (case "(($ac_try" in
16267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268   *) ac_try_echo=$ac_try;;
16269 esac
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271   (eval "$ac_try") 2>&5
16272   ac_status=$?
16273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274   (exit $ac_status); }; }; then
16275   ac_cv_lib_gcc___fixsfdi=yes
16276 else
16277   echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16279
16280         ac_cv_lib_gcc___fixsfdi=no
16281 fi
16282
16283 rm -f core conftest.err conftest.$ac_objext \
16284       conftest$ac_exeext conftest.$ac_ext
16285 LIBS=$ac_check_lib_save_LIBS
16286 fi
16287 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16288 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16289 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16290
16291 cat >>confdefs.h <<\_ACEOF
16292 #define HAVE___FIXSFDI 1
16293 _ACEOF
16294
16295 fi
16296
16297   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16298 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16299 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16300   echo $ECHO_N "(cached) $ECHO_C" >&6
16301 else
16302   ac_check_lib_save_LIBS=$LIBS
16303 LIBS="-lgcc  $LIBS"
16304 cat >conftest.$ac_ext <<_ACEOF
16305 /* confdefs.h.  */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h.  */
16310
16311 /* Override any GCC internal prototype to avoid an error.
16312    Use char because int might match the return type of a GCC
16313    builtin and then its argument prototype would still apply.  */
16314 #ifdef __cplusplus
16315 extern "C"
16316 #endif
16317 char __floatdidf ();
16318 int
16319 main ()
16320 {
16321 return __floatdidf ();
16322   ;
16323   return 0;
16324 }
16325 _ACEOF
16326 rm -f conftest.$ac_objext conftest$ac_exeext
16327 if { (ac_try="$ac_link"
16328 case "(($ac_try" in
16329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330   *) ac_try_echo=$ac_try;;
16331 esac
16332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16333   (eval "$ac_link") 2>conftest.er1
16334   ac_status=$?
16335   grep -v '^ *+' conftest.er1 >conftest.err
16336   rm -f conftest.er1
16337   cat conftest.err >&5
16338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339   (exit $ac_status); } &&
16340          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16341   { (case "(($ac_try" in
16342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343   *) ac_try_echo=$ac_try;;
16344 esac
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346   (eval "$ac_try") 2>&5
16347   ac_status=$?
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); }; } &&
16350          { ac_try='test -s conftest$ac_exeext'
16351   { (case "(($ac_try" in
16352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16353   *) ac_try_echo=$ac_try;;
16354 esac
16355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16356   (eval "$ac_try") 2>&5
16357   ac_status=$?
16358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359   (exit $ac_status); }; }; then
16360   ac_cv_lib_gcc___floatdidf=yes
16361 else
16362   echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16364
16365         ac_cv_lib_gcc___floatdidf=no
16366 fi
16367
16368 rm -f core conftest.err conftest.$ac_objext \
16369       conftest$ac_exeext conftest.$ac_ext
16370 LIBS=$ac_check_lib_save_LIBS
16371 fi
16372 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16373 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16374 if test $ac_cv_lib_gcc___floatdidf = yes; then
16375
16376 cat >>confdefs.h <<\_ACEOF
16377 #define HAVE___FLOATDIDF 1
16378 _ACEOF
16379
16380 fi
16381
16382   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16383 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16384 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16385   echo $ECHO_N "(cached) $ECHO_C" >&6
16386 else
16387   ac_check_lib_save_LIBS=$LIBS
16388 LIBS="-lgcc  $LIBS"
16389 cat >conftest.$ac_ext <<_ACEOF
16390 /* confdefs.h.  */
16391 _ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h.  */
16395
16396 /* Override any GCC internal prototype to avoid an error.
16397    Use char because int might match the return type of a GCC
16398    builtin and then its argument prototype would still apply.  */
16399 #ifdef __cplusplus
16400 extern "C"
16401 #endif
16402 char __lshrdi3 ();
16403 int
16404 main ()
16405 {
16406 return __lshrdi3 ();
16407   ;
16408   return 0;
16409 }
16410 _ACEOF
16411 rm -f conftest.$ac_objext conftest$ac_exeext
16412 if { (ac_try="$ac_link"
16413 case "(($ac_try" in
16414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415   *) ac_try_echo=$ac_try;;
16416 esac
16417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418   (eval "$ac_link") 2>conftest.er1
16419   ac_status=$?
16420   grep -v '^ *+' conftest.er1 >conftest.err
16421   rm -f conftest.er1
16422   cat conftest.err >&5
16423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424   (exit $ac_status); } &&
16425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16426   { (case "(($ac_try" in
16427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428   *) ac_try_echo=$ac_try;;
16429 esac
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431   (eval "$ac_try") 2>&5
16432   ac_status=$?
16433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434   (exit $ac_status); }; } &&
16435          { ac_try='test -s conftest$ac_exeext'
16436   { (case "(($ac_try" in
16437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438   *) ac_try_echo=$ac_try;;
16439 esac
16440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16441   (eval "$ac_try") 2>&5
16442   ac_status=$?
16443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444   (exit $ac_status); }; }; then
16445   ac_cv_lib_gcc___lshrdi3=yes
16446 else
16447   echo "$as_me: failed program was:" >&5
16448 sed 's/^/| /' conftest.$ac_ext >&5
16449
16450         ac_cv_lib_gcc___lshrdi3=no
16451 fi
16452
16453 rm -f core conftest.err conftest.$ac_objext \
16454       conftest$ac_exeext conftest.$ac_ext
16455 LIBS=$ac_check_lib_save_LIBS
16456 fi
16457 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16458 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16459 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16460
16461 cat >>confdefs.h <<\_ACEOF
16462 #define HAVE___LSHRDI3 1
16463 _ACEOF
16464
16465 fi
16466
16467   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16468 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16469 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16470   echo $ECHO_N "(cached) $ECHO_C" >&6
16471 else
16472   ac_check_lib_save_LIBS=$LIBS
16473 LIBS="-lgcc  $LIBS"
16474 cat >conftest.$ac_ext <<_ACEOF
16475 /* confdefs.h.  */
16476 _ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h.  */
16480
16481 /* Override any GCC internal prototype to avoid an error.
16482    Use char because int might match the return type of a GCC
16483    builtin and then its argument prototype would still apply.  */
16484 #ifdef __cplusplus
16485 extern "C"
16486 #endif
16487 char __moddi3 ();
16488 int
16489 main ()
16490 {
16491 return __moddi3 ();
16492   ;
16493   return 0;
16494 }
16495 _ACEOF
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (ac_try="$ac_link"
16498 case "(($ac_try" in
16499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500   *) ac_try_echo=$ac_try;;
16501 esac
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503   (eval "$ac_link") 2>conftest.er1
16504   ac_status=$?
16505   grep -v '^ *+' conftest.er1 >conftest.err
16506   rm -f conftest.er1
16507   cat conftest.err >&5
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } &&
16510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16511   { (case "(($ac_try" in
16512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513   *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516   (eval "$ac_try") 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); }; } &&
16520          { ac_try='test -s conftest$ac_exeext'
16521   { (case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526   (eval "$ac_try") 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; }; then
16530   ac_cv_lib_gcc___moddi3=yes
16531 else
16532   echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16534
16535         ac_cv_lib_gcc___moddi3=no
16536 fi
16537
16538 rm -f core conftest.err conftest.$ac_objext \
16539       conftest$ac_exeext conftest.$ac_ext
16540 LIBS=$ac_check_lib_save_LIBS
16541 fi
16542 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16543 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16544 if test $ac_cv_lib_gcc___moddi3 = yes; then
16545
16546 cat >>confdefs.h <<\_ACEOF
16547 #define HAVE___MODDI3 1
16548 _ACEOF
16549
16550 fi
16551
16552   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16553 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16554 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16555   echo $ECHO_N "(cached) $ECHO_C" >&6
16556 else
16557   ac_check_lib_save_LIBS=$LIBS
16558 LIBS="-lgcc  $LIBS"
16559 cat >conftest.$ac_ext <<_ACEOF
16560 /* confdefs.h.  */
16561 _ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h.  */
16565
16566 /* Override any GCC internal prototype to avoid an error.
16567    Use char because int might match the return type of a GCC
16568    builtin and then its argument prototype would still apply.  */
16569 #ifdef __cplusplus
16570 extern "C"
16571 #endif
16572 char __udivdi3 ();
16573 int
16574 main ()
16575 {
16576 return __udivdi3 ();
16577   ;
16578   return 0;
16579 }
16580 _ACEOF
16581 rm -f conftest.$ac_objext conftest$ac_exeext
16582 if { (ac_try="$ac_link"
16583 case "(($ac_try" in
16584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585   *) ac_try_echo=$ac_try;;
16586 esac
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588   (eval "$ac_link") 2>conftest.er1
16589   ac_status=$?
16590   grep -v '^ *+' conftest.er1 >conftest.err
16591   rm -f conftest.er1
16592   cat conftest.err >&5
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); } &&
16595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16596   { (case "(($ac_try" in
16597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598   *) ac_try_echo=$ac_try;;
16599 esac
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601   (eval "$ac_try") 2>&5
16602   ac_status=$?
16603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604   (exit $ac_status); }; } &&
16605          { ac_try='test -s conftest$ac_exeext'
16606   { (case "(($ac_try" in
16607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608   *) ac_try_echo=$ac_try;;
16609 esac
16610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16611   (eval "$ac_try") 2>&5
16612   ac_status=$?
16613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614   (exit $ac_status); }; }; then
16615   ac_cv_lib_gcc___udivdi3=yes
16616 else
16617   echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16619
16620         ac_cv_lib_gcc___udivdi3=no
16621 fi
16622
16623 rm -f core conftest.err conftest.$ac_objext \
16624       conftest$ac_exeext conftest.$ac_ext
16625 LIBS=$ac_check_lib_save_LIBS
16626 fi
16627 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16628 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16629 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16630
16631 cat >>confdefs.h <<\_ACEOF
16632 #define HAVE___UDIVDI3 1
16633 _ACEOF
16634
16635 fi
16636
16637   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16638 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16639 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16640   echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642   ac_check_lib_save_LIBS=$LIBS
16643 LIBS="-lgcc  $LIBS"
16644 cat >conftest.$ac_ext <<_ACEOF
16645 /* confdefs.h.  */
16646 _ACEOF
16647 cat confdefs.h >>conftest.$ac_ext
16648 cat >>conftest.$ac_ext <<_ACEOF
16649 /* end confdefs.h.  */
16650
16651 /* Override any GCC internal prototype to avoid an error.
16652    Use char because int might match the return type of a GCC
16653    builtin and then its argument prototype would still apply.  */
16654 #ifdef __cplusplus
16655 extern "C"
16656 #endif
16657 char __umoddi3 ();
16658 int
16659 main ()
16660 {
16661 return __umoddi3 ();
16662   ;
16663   return 0;
16664 }
16665 _ACEOF
16666 rm -f conftest.$ac_objext conftest$ac_exeext
16667 if { (ac_try="$ac_link"
16668 case "(($ac_try" in
16669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670   *) ac_try_echo=$ac_try;;
16671 esac
16672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16673   (eval "$ac_link") 2>conftest.er1
16674   ac_status=$?
16675   grep -v '^ *+' conftest.er1 >conftest.err
16676   rm -f conftest.er1
16677   cat conftest.err >&5
16678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); } &&
16680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16687   ac_status=$?
16688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16689   (exit $ac_status); }; } &&
16690          { ac_try='test -s conftest$ac_exeext'
16691   { (case "(($ac_try" in
16692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693   *) ac_try_echo=$ac_try;;
16694 esac
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696   (eval "$ac_try") 2>&5
16697   ac_status=$?
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); }; }; then
16700   ac_cv_lib_gcc___umoddi3=yes
16701 else
16702   echo "$as_me: failed program was:" >&5
16703 sed 's/^/| /' conftest.$ac_ext >&5
16704
16705         ac_cv_lib_gcc___umoddi3=no
16706 fi
16707
16708 rm -f core conftest.err conftest.$ac_objext \
16709       conftest$ac_exeext conftest.$ac_ext
16710 LIBS=$ac_check_lib_save_LIBS
16711 fi
16712 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16713 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16714 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16715
16716 cat >>confdefs.h <<\_ACEOF
16717 #define HAVE___UMODDI3 1
16718 _ACEOF
16719
16720 fi
16721
16722
16723   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16724 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16725 if test "${ac_cv_lib_gcc___main+set}" = set; then
16726   echo $ECHO_N "(cached) $ECHO_C" >&6
16727 else
16728   ac_check_lib_save_LIBS=$LIBS
16729 LIBS="-lgcc  $LIBS"
16730 cat >conftest.$ac_ext <<_ACEOF
16731 /* confdefs.h.  */
16732 _ACEOF
16733 cat confdefs.h >>conftest.$ac_ext
16734 cat >>conftest.$ac_ext <<_ACEOF
16735 /* end confdefs.h.  */
16736
16737 /* Override any GCC internal prototype to avoid an error.
16738    Use char because int might match the return type of a GCC
16739    builtin and then its argument prototype would still apply.  */
16740 #ifdef __cplusplus
16741 extern "C"
16742 #endif
16743 char __main ();
16744 int
16745 main ()
16746 {
16747 return __main ();
16748   ;
16749   return 0;
16750 }
16751 _ACEOF
16752 rm -f conftest.$ac_objext conftest$ac_exeext
16753 if { (ac_try="$ac_link"
16754 case "(($ac_try" in
16755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16756   *) ac_try_echo=$ac_try;;
16757 esac
16758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16759   (eval "$ac_link") 2>conftest.er1
16760   ac_status=$?
16761   grep -v '^ *+' conftest.er1 >conftest.err
16762   rm -f conftest.er1
16763   cat conftest.err >&5
16764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765   (exit $ac_status); } &&
16766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16767   { (case "(($ac_try" in
16768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769   *) ac_try_echo=$ac_try;;
16770 esac
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772   (eval "$ac_try") 2>&5
16773   ac_status=$?
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); }; } &&
16776          { ac_try='test -s conftest$ac_exeext'
16777   { (case "(($ac_try" in
16778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779   *) ac_try_echo=$ac_try;;
16780 esac
16781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16782   (eval "$ac_try") 2>&5
16783   ac_status=$?
16784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785   (exit $ac_status); }; }; then
16786   ac_cv_lib_gcc___main=yes
16787 else
16788   echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16790
16791         ac_cv_lib_gcc___main=no
16792 fi
16793
16794 rm -f core conftest.err conftest.$ac_objext \
16795       conftest$ac_exeext conftest.$ac_ext
16796 LIBS=$ac_check_lib_save_LIBS
16797 fi
16798 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16799 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16800 if test $ac_cv_lib_gcc___main = yes; then
16801
16802 cat >>confdefs.h <<\_ACEOF
16803 #define HAVE___MAIN 1
16804 _ACEOF
16805
16806 fi
16807
16808   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16809 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16810 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16811   echo $ECHO_N "(cached) $ECHO_C" >&6
16812 else
16813   ac_check_lib_save_LIBS=$LIBS
16814 LIBS="-lgcc  $LIBS"
16815 cat >conftest.$ac_ext <<_ACEOF
16816 /* confdefs.h.  */
16817 _ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h.  */
16821
16822 /* Override any GCC internal prototype to avoid an error.
16823    Use char because int might match the return type of a GCC
16824    builtin and then its argument prototype would still apply.  */
16825 #ifdef __cplusplus
16826 extern "C"
16827 #endif
16828 char __cmpdi2 ();
16829 int
16830 main ()
16831 {
16832 return __cmpdi2 ();
16833   ;
16834   return 0;
16835 }
16836 _ACEOF
16837 rm -f conftest.$ac_objext conftest$ac_exeext
16838 if { (ac_try="$ac_link"
16839 case "(($ac_try" in
16840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841   *) ac_try_echo=$ac_try;;
16842 esac
16843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844   (eval "$ac_link") 2>conftest.er1
16845   ac_status=$?
16846   grep -v '^ *+' conftest.er1 >conftest.err
16847   rm -f conftest.er1
16848   cat conftest.err >&5
16849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850   (exit $ac_status); } &&
16851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16852   { (case "(($ac_try" in
16853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854   *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857   (eval "$ac_try") 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }; } &&
16861          { ac_try='test -s conftest$ac_exeext'
16862   { (case "(($ac_try" in
16863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864   *) ac_try_echo=$ac_try;;
16865 esac
16866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16867   (eval "$ac_try") 2>&5
16868   ac_status=$?
16869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870   (exit $ac_status); }; }; then
16871   ac_cv_lib_gcc___cmpdi2=yes
16872 else
16873   echo "$as_me: failed program was:" >&5
16874 sed 's/^/| /' conftest.$ac_ext >&5
16875
16876         ac_cv_lib_gcc___cmpdi2=no
16877 fi
16878
16879 rm -f core conftest.err conftest.$ac_objext \
16880       conftest$ac_exeext conftest.$ac_ext
16881 LIBS=$ac_check_lib_save_LIBS
16882 fi
16883 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16884 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16885 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16886
16887 cat >>confdefs.h <<\_ACEOF
16888 #define HAVE___CMPDI2 1
16889 _ACEOF
16890
16891 fi
16892
16893 fi
16894
16895 if test "$llvm_cv_os_type" = "MingW" ; then
16896   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16897 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16898   cat >conftest.$ac_ext <<_ACEOF
16899
16900   /* confdefs.h.  */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h.  */
16905
16906     #include <windows.h>
16907     #include <imagehlp.h>
16908     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16909     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16910
16911
16912 _ACEOF
16913 rm -f conftest.$ac_objext
16914 if { (ac_try="$ac_compile"
16915 case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920   (eval "$ac_compile") 2>conftest.er1
16921   ac_status=$?
16922   grep -v '^ *+' conftest.er1 >conftest.err
16923   rm -f conftest.er1
16924   cat conftest.err >&5
16925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926   (exit $ac_status); } &&
16927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16934   ac_status=$?
16935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936   (exit $ac_status); }; } &&
16937          { ac_try='test -s conftest.$ac_objext'
16938   { (case "(($ac_try" in
16939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940   *) ac_try_echo=$ac_try;;
16941 esac
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943   (eval "$ac_try") 2>&5
16944   ac_status=$?
16945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); }; }; then
16947
16948   { echo "$as_me:$LINENO: result: yes" >&5
16949 echo "${ECHO_T}yes" >&6; }
16950   llvm_cv_win32_elmcb_pcstr="PCSTR"
16951
16952 else
16953   echo "$as_me: failed program was:" >&5
16954 sed 's/^/| /' conftest.$ac_ext >&5
16955
16956
16957   { echo "$as_me:$LINENO: result: no" >&5
16958 echo "${ECHO_T}no" >&6; }
16959   llvm_cv_win32_elmcb_pcstr="PSTR"
16960
16961 fi
16962
16963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16964
16965 cat >>confdefs.h <<_ACEOF
16966 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16967 _ACEOF
16968
16969 fi
16970
16971 if test "$llvm_cv_platform_type" = "Unix" ; then
16972
16973
16974 for ac_header in stdlib.h unistd.h
16975 do
16976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16978   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16981   echo $ECHO_N "(cached) $ECHO_C" >&6
16982 fi
16983 ac_res=`eval echo '${'$as_ac_Header'}'`
16984                { echo "$as_me:$LINENO: result: $ac_res" >&5
16985 echo "${ECHO_T}$ac_res" >&6; }
16986 else
16987   # Is the header compilable?
16988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16990 cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h.  */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h.  */
16996 $ac_includes_default
16997 #include <$ac_header>
16998 _ACEOF
16999 rm -f conftest.$ac_objext
17000 if { (ac_try="$ac_compile"
17001 case "(($ac_try" in
17002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17003   *) ac_try_echo=$ac_try;;
17004 esac
17005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17006   (eval "$ac_compile") 2>conftest.er1
17007   ac_status=$?
17008   grep -v '^ *+' conftest.er1 >conftest.err
17009   rm -f conftest.er1
17010   cat conftest.err >&5
17011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012   (exit $ac_status); } &&
17013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17014   { (case "(($ac_try" in
17015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016   *) ac_try_echo=$ac_try;;
17017 esac
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019   (eval "$ac_try") 2>&5
17020   ac_status=$?
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); }; } &&
17023          { ac_try='test -s conftest.$ac_objext'
17024   { (case "(($ac_try" in
17025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026   *) ac_try_echo=$ac_try;;
17027 esac
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029   (eval "$ac_try") 2>&5
17030   ac_status=$?
17031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032   (exit $ac_status); }; }; then
17033   ac_header_compiler=yes
17034 else
17035   echo "$as_me: failed program was:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17037
17038         ac_header_compiler=no
17039 fi
17040
17041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17043 echo "${ECHO_T}$ac_header_compiler" >&6; }
17044
17045 # Is the header present?
17046 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17047 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17048 cat >conftest.$ac_ext <<_ACEOF
17049 /* confdefs.h.  */
17050 _ACEOF
17051 cat confdefs.h >>conftest.$ac_ext
17052 cat >>conftest.$ac_ext <<_ACEOF
17053 /* end confdefs.h.  */
17054 #include <$ac_header>
17055 _ACEOF
17056 if { (ac_try="$ac_cpp conftest.$ac_ext"
17057 case "(($ac_try" in
17058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059   *) ac_try_echo=$ac_try;;
17060 esac
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17063   ac_status=$?
17064   grep -v '^ *+' conftest.er1 >conftest.err
17065   rm -f conftest.er1
17066   cat conftest.err >&5
17067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068   (exit $ac_status); } >/dev/null; then
17069   if test -s conftest.err; then
17070     ac_cpp_err=$ac_c_preproc_warn_flag
17071     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17072   else
17073     ac_cpp_err=
17074   fi
17075 else
17076   ac_cpp_err=yes
17077 fi
17078 if test -z "$ac_cpp_err"; then
17079   ac_header_preproc=yes
17080 else
17081   echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17083
17084   ac_header_preproc=no
17085 fi
17086
17087 rm -f conftest.err conftest.$ac_ext
17088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17089 echo "${ECHO_T}$ac_header_preproc" >&6; }
17090
17091 # So?  What about this header?
17092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17093   yes:no: )
17094     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17098     ac_header_preproc=yes
17099     ;;
17100   no:yes:* )
17101     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17103     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17104 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17105     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17107     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17108 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17111     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17113     ( cat <<\_ASBOX
17114 ## ------------------------------------ ##
17115 ## Report this to http://llvm.org/bugs/ ##
17116 ## ------------------------------------ ##
17117 _ASBOX
17118      ) | sed "s/^/$as_me: WARNING:     /" >&2
17119     ;;
17120 esac
17121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17124   echo $ECHO_N "(cached) $ECHO_C" >&6
17125 else
17126   eval "$as_ac_Header=\$ac_header_preproc"
17127 fi
17128 ac_res=`eval echo '${'$as_ac_Header'}'`
17129                { echo "$as_me:$LINENO: result: $ac_res" >&5
17130 echo "${ECHO_T}$ac_res" >&6; }
17131
17132 fi
17133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17134   cat >>confdefs.h <<_ACEOF
17135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17136 _ACEOF
17137
17138 fi
17139
17140 done
17141
17142
17143 for ac_func in getpagesize
17144 do
17145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17149   echo $ECHO_N "(cached) $ECHO_C" >&6
17150 else
17151   cat >conftest.$ac_ext <<_ACEOF
17152 /* confdefs.h.  */
17153 _ACEOF
17154 cat confdefs.h >>conftest.$ac_ext
17155 cat >>conftest.$ac_ext <<_ACEOF
17156 /* end confdefs.h.  */
17157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17159 #define $ac_func innocuous_$ac_func
17160
17161 /* System header to define __stub macros and hopefully few prototypes,
17162     which can conflict with char $ac_func (); below.
17163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17164     <limits.h> exists even on freestanding compilers.  */
17165
17166 #ifdef __STDC__
17167 # include <limits.h>
17168 #else
17169 # include <assert.h>
17170 #endif
17171
17172 #undef $ac_func
17173
17174 /* Override any GCC internal prototype to avoid an error.
17175    Use char because int might match the return type of a GCC
17176    builtin and then its argument prototype would still apply.  */
17177 #ifdef __cplusplus
17178 extern "C"
17179 #endif
17180 char $ac_func ();
17181 /* The GNU C library defines this for functions which it implements
17182     to always fail with ENOSYS.  Some functions are actually named
17183     something starting with __ and the normal name is an alias.  */
17184 #if defined __stub_$ac_func || defined __stub___$ac_func
17185 choke me
17186 #endif
17187
17188 int
17189 main ()
17190 {
17191 return $ac_func ();
17192   ;
17193   return 0;
17194 }
17195 _ACEOF
17196 rm -f conftest.$ac_objext conftest$ac_exeext
17197 if { (ac_try="$ac_link"
17198 case "(($ac_try" in
17199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200   *) ac_try_echo=$ac_try;;
17201 esac
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203   (eval "$ac_link") 2>conftest.er1
17204   ac_status=$?
17205   grep -v '^ *+' conftest.er1 >conftest.err
17206   rm -f conftest.er1
17207   cat conftest.err >&5
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); } &&
17210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17211   { (case "(($ac_try" in
17212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213   *) ac_try_echo=$ac_try;;
17214 esac
17215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17216   (eval "$ac_try") 2>&5
17217   ac_status=$?
17218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219   (exit $ac_status); }; } &&
17220          { ac_try='test -s conftest$ac_exeext'
17221   { (case "(($ac_try" in
17222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223   *) ac_try_echo=$ac_try;;
17224 esac
17225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226   (eval "$ac_try") 2>&5
17227   ac_status=$?
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); }; }; then
17230   eval "$as_ac_var=yes"
17231 else
17232   echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17234
17235         eval "$as_ac_var=no"
17236 fi
17237
17238 rm -f core conftest.err conftest.$ac_objext \
17239       conftest$ac_exeext conftest.$ac_ext
17240 fi
17241 ac_res=`eval echo '${'$as_ac_var'}'`
17242                { echo "$as_me:$LINENO: result: $ac_res" >&5
17243 echo "${ECHO_T}$ac_res" >&6; }
17244 if test `eval echo '${'$as_ac_var'}'` = yes; then
17245   cat >>confdefs.h <<_ACEOF
17246 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17247 _ACEOF
17248
17249 fi
17250 done
17251
17252 { echo "$as_me:$LINENO: checking for working mmap" >&5
17253 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17254 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17255   echo $ECHO_N "(cached) $ECHO_C" >&6
17256 else
17257   if test "$cross_compiling" = yes; then
17258   ac_cv_func_mmap_fixed_mapped=no
17259 else
17260   cat >conftest.$ac_ext <<_ACEOF
17261 /* confdefs.h.  */
17262 _ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h.  */
17266 $ac_includes_default
17267 /* malloc might have been renamed as rpl_malloc. */
17268 #undef malloc
17269
17270 /* Thanks to Mike Haertel and Jim Avera for this test.
17271    Here is a matrix of mmap possibilities:
17272         mmap private not fixed
17273         mmap private fixed at somewhere currently unmapped
17274         mmap private fixed at somewhere already mapped
17275         mmap shared not fixed
17276         mmap shared fixed at somewhere currently unmapped
17277         mmap shared fixed at somewhere already mapped
17278    For private mappings, we should verify that changes cannot be read()
17279    back from the file, nor mmap's back from the file at a different
17280    address.  (There have been systems where private was not correctly
17281    implemented like the infamous i386 svr4.0, and systems where the
17282    VM page cache was not coherent with the file system buffer cache
17283    like early versions of FreeBSD and possibly contemporary NetBSD.)
17284    For shared mappings, we should conversely verify that changes get
17285    propagated back to all the places they're supposed to be.
17286
17287    Grep wants private fixed already mapped.
17288    The main things grep needs to know about mmap are:
17289    * does it exist and is it safe to write into the mmap'd area
17290    * how to use it (BSD variants)  */
17291
17292 #include <fcntl.h>
17293 #include <sys/mman.h>
17294
17295 #if !STDC_HEADERS && !HAVE_STDLIB_H
17296 char *malloc ();
17297 #endif
17298
17299 /* This mess was copied from the GNU getpagesize.h.  */
17300 #if !HAVE_GETPAGESIZE
17301 /* Assume that all systems that can run configure have sys/param.h.  */
17302 # if !HAVE_SYS_PARAM_H
17303 #  define HAVE_SYS_PARAM_H 1
17304 # endif
17305
17306 # ifdef _SC_PAGESIZE
17307 #  define getpagesize() sysconf(_SC_PAGESIZE)
17308 # else /* no _SC_PAGESIZE */
17309 #  if HAVE_SYS_PARAM_H
17310 #   include <sys/param.h>
17311 #   ifdef EXEC_PAGESIZE
17312 #    define getpagesize() EXEC_PAGESIZE
17313 #   else /* no EXEC_PAGESIZE */
17314 #    ifdef NBPG
17315 #     define getpagesize() NBPG * CLSIZE
17316 #     ifndef CLSIZE
17317 #      define CLSIZE 1
17318 #     endif /* no CLSIZE */
17319 #    else /* no NBPG */
17320 #     ifdef NBPC
17321 #      define getpagesize() NBPC
17322 #     else /* no NBPC */
17323 #      ifdef PAGESIZE
17324 #       define getpagesize() PAGESIZE
17325 #      endif /* PAGESIZE */
17326 #     endif /* no NBPC */
17327 #    endif /* no NBPG */
17328 #   endif /* no EXEC_PAGESIZE */
17329 #  else /* no HAVE_SYS_PARAM_H */
17330 #   define getpagesize() 8192   /* punt totally */
17331 #  endif /* no HAVE_SYS_PARAM_H */
17332 # endif /* no _SC_PAGESIZE */
17333
17334 #endif /* no HAVE_GETPAGESIZE */
17335
17336 int
17337 main ()
17338 {
17339   char *data, *data2, *data3;
17340   int i, pagesize;
17341   int fd;
17342
17343   pagesize = getpagesize ();
17344
17345   /* First, make a file with some known garbage in it. */
17346   data = (char *) malloc (pagesize);
17347   if (!data)
17348     return 1;
17349   for (i = 0; i < pagesize; ++i)
17350     *(data + i) = rand ();
17351   umask (0);
17352   fd = creat ("conftest.mmap", 0600);
17353   if (fd < 0)
17354     return 1;
17355   if (write (fd, data, pagesize) != pagesize)
17356     return 1;
17357   close (fd);
17358
17359   /* Next, try to mmap the file at a fixed address which already has
17360      something else allocated at it.  If we can, also make sure that
17361      we see the same garbage.  */
17362   fd = open ("conftest.mmap", O_RDWR);
17363   if (fd < 0)
17364     return 1;
17365   data2 = (char *) malloc (2 * pagesize);
17366   if (!data2)
17367     return 1;
17368   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17369   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17370                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17371     return 1;
17372   for (i = 0; i < pagesize; ++i)
17373     if (*(data + i) != *(data2 + i))
17374       return 1;
17375
17376   /* Finally, make sure that changes to the mapped area do not
17377      percolate back to the file as seen by read().  (This is a bug on
17378      some variants of i386 svr4.0.)  */
17379   for (i = 0; i < pagesize; ++i)
17380     *(data2 + i) = *(data2 + i) + 1;
17381   data3 = (char *) malloc (pagesize);
17382   if (!data3)
17383     return 1;
17384   if (read (fd, data3, pagesize) != pagesize)
17385     return 1;
17386   for (i = 0; i < pagesize; ++i)
17387     if (*(data + i) != *(data3 + i))
17388       return 1;
17389   close (fd);
17390   return 0;
17391 }
17392 _ACEOF
17393 rm -f conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397   *) ac_try_echo=$ac_try;;
17398 esac
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400   (eval "$ac_link") 2>&5
17401   ac_status=$?
17402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17404   { (case "(($ac_try" in
17405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17406   *) ac_try_echo=$ac_try;;
17407 esac
17408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17409   (eval "$ac_try") 2>&5
17410   ac_status=$?
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); }; }; then
17413   ac_cv_func_mmap_fixed_mapped=yes
17414 else
17415   echo "$as_me: program exited with status $ac_status" >&5
17416 echo "$as_me: failed program was:" >&5
17417 sed 's/^/| /' conftest.$ac_ext >&5
17418
17419 ( exit $ac_status )
17420 ac_cv_func_mmap_fixed_mapped=no
17421 fi
17422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17423 fi
17424
17425
17426 fi
17427 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17428 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17429 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17430
17431 cat >>confdefs.h <<\_ACEOF
17432 #define HAVE_MMAP 1
17433 _ACEOF
17434
17435 fi
17436 rm -f conftest.mmap
17437
17438   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17439 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17440 if test "${ac_cv_func_mmap_file+set}" = set; then
17441   echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443    ac_ext=c
17444 ac_cpp='$CPP $CPPFLAGS'
17445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17448
17449   if test "$cross_compiling" = yes; then
17450   ac_cv_func_mmap_file=no
17451 else
17452   cat >conftest.$ac_ext <<_ACEOF
17453
17454     /* confdefs.h.  */
17455 _ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h.  */
17459
17460 #include <sys/types.h>
17461 #include <sys/mman.h>
17462 #include <fcntl.h>
17463
17464 int
17465 main ()
17466 {
17467
17468   int fd;
17469   fd = creat ("foo",0777);
17470   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17471   unlink ("foo");
17472   return (fd != (int) MAP_FAILED);
17473   ;
17474   return 0;
17475 }
17476 _ACEOF
17477 rm -f conftest$ac_exeext
17478 if { (ac_try="$ac_link"
17479 case "(($ac_try" in
17480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481   *) ac_try_echo=$ac_try;;
17482 esac
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484   (eval "$ac_link") 2>&5
17485   ac_status=$?
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17488   { (case "(($ac_try" in
17489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490   *) ac_try_echo=$ac_try;;
17491 esac
17492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493   (eval "$ac_try") 2>&5
17494   ac_status=$?
17495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496   (exit $ac_status); }; }; then
17497   ac_cv_func_mmap_file=yes
17498 else
17499   echo "$as_me: program exited with status $ac_status" >&5
17500 echo "$as_me: failed program was:" >&5
17501 sed 's/^/| /' conftest.$ac_ext >&5
17502
17503 ( exit $ac_status )
17504 ac_cv_func_mmap_file=no
17505 fi
17506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17507 fi
17508
17509
17510   ac_ext=c
17511 ac_cpp='$CPP $CPPFLAGS'
17512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17515
17516
17517 fi
17518 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17519 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17520 if test "$ac_cv_func_mmap_file" = yes; then
17521
17522 cat >>confdefs.h <<\_ACEOF
17523 #define HAVE_MMAP_FILE
17524 _ACEOF
17525
17526    MMAP_FILE=yes
17527
17528 fi
17529
17530   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17531 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17532 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17533   echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535   if test "$llvm_cv_os_type" = "Interix" ; then
17536    ac_cv_need_dev_zero_for_mmap=yes
17537  else
17538    ac_cv_need_dev_zero_for_mmap=no
17539  fi
17540
17541 fi
17542 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17543 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17544 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17545
17546 cat >>confdefs.h <<\_ACEOF
17547 #define NEED_DEV_ZERO_FOR_MMAP 1
17548 _ACEOF
17549
17550 fi
17551
17552   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17553   then
17554     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17555 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17556   fi
17557   if test "$ac_cv_func_mmap_file" = "no"
17558   then
17559     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17560 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17561   fi
17562 fi
17563
17564 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17565 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17566 ac_ext=cpp
17567 ac_cpp='$CXXCPP $CPPFLAGS'
17568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17571
17572 cat >conftest.$ac_ext <<_ACEOF
17573
17574   /* confdefs.h.  */
17575 _ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h.  */
17579
17580     int main() {
17581       volatile unsigned long val = 1;
17582       __sync_synchronize();
17583       __sync_val_compare_and_swap(&val, 1, 0);
17584       __sync_add_and_fetch(&val, 1);
17585       __sync_sub_and_fetch(&val, 1);
17586       return 0;
17587     }
17588
17589
17590 _ACEOF
17591 rm -f conftest.$ac_objext conftest$ac_exeext
17592 if { (ac_try="$ac_link"
17593 case "(($ac_try" in
17594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595   *) ac_try_echo=$ac_try;;
17596 esac
17597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17598   (eval "$ac_link") 2>conftest.er1
17599   ac_status=$?
17600   grep -v '^ *+' conftest.er1 >conftest.err
17601   rm -f conftest.er1
17602   cat conftest.err >&5
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); } &&
17605          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17606   { (case "(($ac_try" in
17607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608   *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611   (eval "$ac_try") 2>&5
17612   ac_status=$?
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); }; } &&
17615          { ac_try='test -s conftest$ac_exeext'
17616   { (case "(($ac_try" in
17617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618   *) ac_try_echo=$ac_try;;
17619 esac
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621   (eval "$ac_try") 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); }; }; then
17625
17626   { echo "$as_me:$LINENO: result: yes" >&5
17627 echo "${ECHO_T}yes" >&6; }
17628
17629 cat >>confdefs.h <<\_ACEOF
17630 #define LLVM_HAS_ATOMICS 1
17631 _ACEOF
17632
17633
17634 else
17635   echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17637
17638
17639   { echo "$as_me:$LINENO: result: no" >&5
17640 echo "${ECHO_T}no" >&6; }
17641
17642 cat >>confdefs.h <<\_ACEOF
17643 #define LLVM_HAS_ATOMICS 0
17644 _ACEOF
17645
17646   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17647 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17648
17649 fi
17650
17651 rm -f core conftest.err conftest.$ac_objext \
17652       conftest$ac_exeext conftest.$ac_ext
17653 ac_ext=c
17654 ac_cpp='$CPP $CPPFLAGS'
17655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17658
17659
17660
17661 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17662   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17663 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17664 if test "${llvm_cv_linux_mixed+set}" = set; then
17665   echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667    ac_ext=c
17668 ac_cpp='$CPP $CPPFLAGS'
17669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17672
17673   cat >conftest.$ac_ext <<_ACEOF
17674 /* confdefs.h.  */
17675 _ACEOF
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h.  */
17679 #ifndef __x86_64__
17680        error: Not x86-64 even if uname says so!
17681       #endif
17682
17683 int
17684 main ()
17685 {
17686
17687   ;
17688   return 0;
17689 }
17690 _ACEOF
17691 rm -f conftest.$ac_objext
17692 if { (ac_try="$ac_compile"
17693 case "(($ac_try" in
17694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17695   *) ac_try_echo=$ac_try;;
17696 esac
17697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17698   (eval "$ac_compile") 2>conftest.er1
17699   ac_status=$?
17700   grep -v '^ *+' conftest.er1 >conftest.err
17701   rm -f conftest.er1
17702   cat conftest.err >&5
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); } &&
17705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17706   { (case "(($ac_try" in
17707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708   *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711   (eval "$ac_try") 2>&5
17712   ac_status=$?
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); }; } &&
17715          { ac_try='test -s conftest.$ac_objext'
17716   { (case "(($ac_try" in
17717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718   *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721   (eval "$ac_try") 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); }; }; then
17725   llvm_cv_linux_mixed=no
17726 else
17727   echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17729
17730         llvm_cv_linux_mixed=yes
17731 fi
17732
17733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17734   ac_ext=c
17735 ac_cpp='$CPP $CPPFLAGS'
17736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17739
17740
17741 fi
17742 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17743 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17744
17745   if test "$llvm_cv_linux_mixed" = "yes"; then
17746     llvm_cv_target_arch="x86"
17747     ARCH="x86"
17748   fi
17749 fi
17750
17751
17752 for ac_func in __dso_handle
17753 do
17754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17758   echo $ECHO_N "(cached) $ECHO_C" >&6
17759 else
17760   cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h.  */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h.  */
17766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17768 #define $ac_func innocuous_$ac_func
17769
17770 /* System header to define __stub macros and hopefully few prototypes,
17771     which can conflict with char $ac_func (); below.
17772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17773     <limits.h> exists even on freestanding compilers.  */
17774
17775 #ifdef __STDC__
17776 # include <limits.h>
17777 #else
17778 # include <assert.h>
17779 #endif
17780
17781 #undef $ac_func
17782
17783 /* Override any GCC internal prototype to avoid an error.
17784    Use char because int might match the return type of a GCC
17785    builtin and then its argument prototype would still apply.  */
17786 #ifdef __cplusplus
17787 extern "C"
17788 #endif
17789 char $ac_func ();
17790 /* The GNU C library defines this for functions which it implements
17791     to always fail with ENOSYS.  Some functions are actually named
17792     something starting with __ and the normal name is an alias.  */
17793 #if defined __stub_$ac_func || defined __stub___$ac_func
17794 choke me
17795 #endif
17796
17797 int
17798 main ()
17799 {
17800 return $ac_func ();
17801   ;
17802   return 0;
17803 }
17804 _ACEOF
17805 rm -f conftest.$ac_objext conftest$ac_exeext
17806 if { (ac_try="$ac_link"
17807 case "(($ac_try" in
17808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809   *) ac_try_echo=$ac_try;;
17810 esac
17811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812   (eval "$ac_link") 2>conftest.er1
17813   ac_status=$?
17814   grep -v '^ *+' conftest.er1 >conftest.err
17815   rm -f conftest.er1
17816   cat conftest.err >&5
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); } &&
17819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17820   { (case "(($ac_try" in
17821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822   *) ac_try_echo=$ac_try;;
17823 esac
17824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825   (eval "$ac_try") 2>&5
17826   ac_status=$?
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); }; } &&
17829          { ac_try='test -s conftest$ac_exeext'
17830   { (case "(($ac_try" in
17831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832   *) ac_try_echo=$ac_try;;
17833 esac
17834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835   (eval "$ac_try") 2>&5
17836   ac_status=$?
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); }; }; then
17839   eval "$as_ac_var=yes"
17840 else
17841   echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17843
17844         eval "$as_ac_var=no"
17845 fi
17846
17847 rm -f core conftest.err conftest.$ac_objext \
17848       conftest$ac_exeext conftest.$ac_ext
17849 fi
17850 ac_res=`eval echo '${'$as_ac_var'}'`
17851                { echo "$as_me:$LINENO: result: $ac_res" >&5
17852 echo "${ECHO_T}$ac_res" >&6; }
17853 if test `eval echo '${'$as_ac_var'}'` = yes; then
17854   cat >>confdefs.h <<_ACEOF
17855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17856 _ACEOF
17857
17858 fi
17859 done
17860
17861
17862 SHLIBEXT=$llvm_shlib_ext
17863
17864
17865 if test "${prefix}" = "NONE" ; then
17866   prefix="/usr/local"
17867 fi
17868 eval LLVM_PREFIX="${prefix}";
17869 eval LLVM_BINDIR="${prefix}/bin";
17870 eval LLVM_DATADIR="${prefix}/share/llvm";
17871 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17872 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17873 eval LLVM_INCLUDEDIR="${prefix}/include";
17874 eval LLVM_INFODIR="${prefix}/info";
17875 eval LLVM_MANDIR="${prefix}/man";
17876 LLVM_CONFIGTIME=`date`
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17888   LLVM_CONFIGTIME="(timestamp not enabled)"
17889 fi
17890
17891
17892 cat >>confdefs.h <<_ACEOF
17893 #define LLVM_PREFIX "$LLVM_PREFIX"
17894 _ACEOF
17895
17896
17897 cat >>confdefs.h <<_ACEOF
17898 #define LLVM_BINDIR "$LLVM_BINDIR"
17899 _ACEOF
17900
17901
17902 cat >>confdefs.h <<_ACEOF
17903 #define LLVM_DATADIR "$LLVM_DATADIR"
17904 _ACEOF
17905
17906
17907 cat >>confdefs.h <<_ACEOF
17908 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17909 _ACEOF
17910
17911
17912 cat >>confdefs.h <<_ACEOF
17913 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17914 _ACEOF
17915
17916
17917 cat >>confdefs.h <<_ACEOF
17918 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17919 _ACEOF
17920
17921
17922 cat >>confdefs.h <<_ACEOF
17923 #define LLVM_INFODIR "$LLVM_INFODIR"
17924 _ACEOF
17925
17926
17927 cat >>confdefs.h <<_ACEOF
17928 #define LLVM_MANDIR "$LLVM_MANDIR"
17929 _ACEOF
17930
17931
17932 cat >>confdefs.h <<_ACEOF
17933 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17934 _ACEOF
17935
17936
17937 cat >>confdefs.h <<_ACEOF
17938 #define LLVM_HOST_TRIPLE "$host"
17939 _ACEOF
17940
17941
17942 cat >>confdefs.h <<_ACEOF
17943 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17944 _ACEOF
17945
17946
17947 if test "$BINDINGS_TO_BUILD" = auto ; then
17948   BINDINGS_TO_BUILD=""
17949   if test "x$OCAMLFIND" != x ; then
17950     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17951   fi
17952   if test "x$GO" != x ; then
17953     if $GO run ${srcdir}/bindings/go/conftest.go ; then
17954       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17955     fi
17956   fi
17957 fi
17958 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17959
17960
17961 binding_prereqs_failed=0
17962 for a_binding in $BINDINGS_TO_BUILD ; do
17963   case "$a_binding" in
17964   ocaml)
17965     if test "x$OCAMLFIND" = x ; then
17966       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17967 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17968       binding_prereqs_failed=1
17969     fi
17970
17971     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17972       HAVE_OCAMLOPT=1
17973     else
17974       HAVE_OCAMLOPT=0
17975     fi
17976
17977
17978     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17979       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17980 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17981       binding_prereqs_failed=1
17982     fi
17983
17984     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17985       HAVE_OCAML_OUNIT=1
17986     else
17987       HAVE_OCAML_OUNIT=0
17988       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17989 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17990           fi
17991
17992
17993     if test "x$with_ocaml_libdir" != xauto ; then
17994       OCAML_LIBDIR=$with_ocaml_libdir
17995
17996     else
17997       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17998       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17999       then
18000         # ocaml stdlib is beneath our prefix; use stdlib
18001         OCAML_LIBDIR=$ocaml_stdlib
18002
18003       else
18004         # ocaml stdlib is outside our prefix; use libdir/ocaml
18005         OCAML_LIBDIR=${prefix}/lib/ocaml
18006
18007       fi
18008     fi
18009     ;;
18010   go)
18011     if test "x$GO" = x ; then
18012       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
18013 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
18014       binding_prereqs_failed=1
18015     else
18016       if $GO run ${srcdir}/bindings/go/conftest.go ; then
18017         :
18018       else
18019         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
18020 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
18021         binding_prereqs_failed=1
18022       fi
18023     fi
18024     ;;
18025   esac
18026 done
18027 if test "$binding_prereqs_failed" = 1 ; then
18028   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
18029 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
18030    { (exit 1); exit 1; }; }
18031 fi
18032
18033 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
18034 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
18035 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
18036   echo $ECHO_N "(cached) $ECHO_C" >&6
18037 else
18038    ac_ext=cpp
18039 ac_cpp='$CXXCPP $CPPFLAGS'
18040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18043
18044   oldcxxflags="$CXXFLAGS"
18045   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
18046   cat >conftest.$ac_ext <<_ACEOF
18047 /* confdefs.h.  */
18048 _ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h.  */
18052 template <typename T> struct X { void __attribute__((noinline)) f() {} };
18053 int
18054 main ()
18055 {
18056 X<int>().f();
18057   ;
18058   return 0;
18059 }
18060 _ACEOF
18061 rm -f conftest.$ac_objext
18062 if { (ac_try="$ac_compile"
18063 case "(($ac_try" in
18064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065   *) ac_try_echo=$ac_try;;
18066 esac
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068   (eval "$ac_compile") 2>conftest.er1
18069   ac_status=$?
18070   grep -v '^ *+' conftest.er1 >conftest.err
18071   rm -f conftest.er1
18072   cat conftest.err >&5
18073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074   (exit $ac_status); } &&
18075          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18076   { (case "(($ac_try" in
18077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078   *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081   (eval "$ac_try") 2>&5
18082   ac_status=$?
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); }; } &&
18085          { ac_try='test -s conftest.$ac_objext'
18086   { (case "(($ac_try" in
18087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088   *) ac_try_echo=$ac_try;;
18089 esac
18090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18091   (eval "$ac_try") 2>&5
18092   ac_status=$?
18093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094   (exit $ac_status); }; }; then
18095   llvm_cv_cxx_visibility_inlines_hidden=yes
18096 else
18097   echo "$as_me: failed program was:" >&5
18098 sed 's/^/| /' conftest.$ac_ext >&5
18099
18100         llvm_cv_cxx_visibility_inlines_hidden=no
18101 fi
18102
18103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18104   CXXFLAGS="$oldcxxflags"
18105   ac_ext=c
18106 ac_cpp='$CPP $CPPFLAGS'
18107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18110
18111
18112 fi
18113 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18114 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18115 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18116   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18117
18118 else
18119   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18120
18121 fi
18122
18123
18124 if test "$llvm_cv_link_use_r" = "yes" ; then
18125   RPATH="-Wl,-R"
18126 else
18127   RPATH="-Wl,-rpath"
18128 fi
18129
18130
18131 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18132   RDYNAMIC="-rdynamic"
18133 else
18134   RDYNAMIC=""
18135 fi
18136
18137
18138
18139 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18140
18141
18142
18143
18144
18145
18146 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18147
18148 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18149
18150 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18151
18152 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18153
18154 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18155
18156
18157 ac_config_files="$ac_config_files Makefile.config"
18158
18159
18160 ac_config_files="$ac_config_files llvm.spec"
18161
18162
18163 ac_config_files="$ac_config_files docs/doxygen.cfg"
18164
18165
18166 if test "${clang_src_root}" = ""; then
18167   clang_src_root="$srcdir/tools/clang"
18168 fi
18169 if test -f ${clang_src_root}/README.txt; then
18170
18171 cat >>confdefs.h <<_ACEOF
18172 #define CLANG_LIBDIR_SUFFIX ""
18173 _ACEOF
18174
18175
18176     configh="include/clang/Config/config.h"
18177   doxy="docs/doxygen.cfg"
18178   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18179
18180   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18181
18182 fi
18183
18184 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18185
18186
18187 test "x$program_prefix" = "xNONE" && program_prefix=""
18188
18189
18190
18191 ac_config_commands="$ac_config_commands setup"
18192
18193 ac_config_commands="$ac_config_commands Makefile"
18194
18195
18196 ac_config_commands="$ac_config_commands Makefile.common"
18197
18198
18199 ac_config_commands="$ac_config_commands examples/Makefile"
18200
18201
18202 ac_config_commands="$ac_config_commands lib/Makefile"
18203
18204
18205 ac_config_commands="$ac_config_commands test/Makefile"
18206
18207
18208 ac_config_commands="$ac_config_commands test/Makefile.tests"
18209
18210
18211 ac_config_commands="$ac_config_commands unittests/Makefile"
18212
18213
18214 ac_config_commands="$ac_config_commands tools/Makefile"
18215
18216
18217 ac_config_commands="$ac_config_commands utils/Makefile"
18218
18219
18220 ac_config_commands="$ac_config_commands projects/Makefile"
18221
18222
18223 ac_config_commands="$ac_config_commands bindings/Makefile"
18224
18225
18226 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18227
18228
18229
18230 cat >confcache <<\_ACEOF
18231 # This file is a shell script that caches the results of configure
18232 # tests run on this system so they can be shared between configure
18233 # scripts and configure runs, see configure's option --config-cache.
18234 # It is not useful on other systems.  If it contains results you don't
18235 # want to keep, you may remove or edit it.
18236 #
18237 # config.status only pays attention to the cache file if you give it
18238 # the --recheck option to rerun configure.
18239 #
18240 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18241 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18242 # following values.
18243
18244 _ACEOF
18245
18246 # The following way of writing the cache mishandles newlines in values,
18247 # but we know of no workaround that is simple, portable, and efficient.
18248 # So, we kill variables containing newlines.
18249 # Ultrix sh set writes to stderr and can't be redirected directly,
18250 # and sets the high bit in the cache file unless we assign to the vars.
18251 (
18252   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18253     eval ac_val=\$$ac_var
18254     case $ac_val in #(
18255     *${as_nl}*)
18256       case $ac_var in #(
18257       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18258 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18259       esac
18260       case $ac_var in #(
18261       _ | IFS | as_nl) ;; #(
18262       *) $as_unset $ac_var ;;
18263       esac ;;
18264     esac
18265   done
18266
18267   (set) 2>&1 |
18268     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18269     *${as_nl}ac_space=\ *)
18270       # `set' does not quote correctly, so add quotes (double-quote
18271       # substitution turns \\\\ into \\, and sed turns \\ into \).
18272       sed -n \
18273         "s/'/'\\\\''/g;
18274           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18275       ;; #(
18276     *)
18277       # `set' quotes correctly as required by POSIX, so do not add quotes.
18278       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18279       ;;
18280     esac |
18281     sort
18282 ) |
18283   sed '
18284      /^ac_cv_env_/b end
18285      t clear
18286      :clear
18287      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18288      t end
18289      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18290      :end' >>confcache
18291 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18292   if test -w "$cache_file"; then
18293     test "x$cache_file" != "x/dev/null" &&
18294       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18295 echo "$as_me: updating cache $cache_file" >&6;}
18296     cat confcache >$cache_file
18297   else
18298     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18299 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18300   fi
18301 fi
18302 rm -f confcache
18303
18304 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18305 # Let make expand exec_prefix.
18306 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18307
18308 DEFS=-DHAVE_CONFIG_H
18309
18310 ac_libobjs=
18311 ac_ltlibobjs=
18312 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18313   # 1. Remove the extension, and $U if already installed.
18314   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18315   ac_i=`echo "$ac_i" | sed "$ac_script"`
18316   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18317   #    will be set to the directory where LIBOBJS objects are built.
18318   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18319   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18320 done
18321 LIBOBJS=$ac_libobjs
18322
18323 LTLIBOBJS=$ac_ltlibobjs
18324
18325
18326
18327 : ${CONFIG_STATUS=./config.status}
18328 ac_clean_files_save=$ac_clean_files
18329 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18330 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18331 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18332 cat >$CONFIG_STATUS <<_ACEOF
18333 #! $SHELL
18334 # Generated by $as_me.
18335 # Run this file to recreate the current configuration.
18336 # Compiler output produced by configure, useful for debugging
18337 # configure, is in config.log if it exists.
18338
18339 debug=false
18340 ac_cs_recheck=false
18341 ac_cs_silent=false
18342 SHELL=\${CONFIG_SHELL-$SHELL}
18343 _ACEOF
18344
18345 cat >>$CONFIG_STATUS <<\_ACEOF
18346 ## --------------------- ##
18347 ## M4sh Initialization.  ##
18348 ## --------------------- ##
18349
18350 # Be Bourne compatible
18351 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18352   emulate sh
18353   NULLCMD=:
18354   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18355   # is contrary to our usage.  Disable this feature.
18356   alias -g '${1+"$@"}'='"$@"'
18357   setopt NO_GLOB_SUBST
18358 else
18359   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18360 fi
18361 BIN_SH=xpg4; export BIN_SH # for Tru64
18362 DUALCASE=1; export DUALCASE # for MKS sh
18363
18364
18365 # PATH needs CR
18366 # Avoid depending upon Character Ranges.
18367 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18368 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18369 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18370 as_cr_digits='0123456789'
18371 as_cr_alnum=$as_cr_Letters$as_cr_digits
18372
18373 # The user is always right.
18374 if test "${PATH_SEPARATOR+set}" != set; then
18375   echo "#! /bin/sh" >conf$$.sh
18376   echo  "exit 0"   >>conf$$.sh
18377   chmod +x conf$$.sh
18378   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18379     PATH_SEPARATOR=';'
18380   else
18381     PATH_SEPARATOR=:
18382   fi
18383   rm -f conf$$.sh
18384 fi
18385
18386 # Support unset when possible.
18387 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18388   as_unset=unset
18389 else
18390   as_unset=false
18391 fi
18392
18393
18394 # IFS
18395 # We need space, tab and new line, in precisely that order.  Quoting is
18396 # there to prevent editors from complaining about space-tab.
18397 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18398 # splitting by setting IFS to empty value.)
18399 as_nl='
18400 '
18401 IFS=" ""        $as_nl"
18402
18403 # Find who we are.  Look in the path if we contain no directory separator.
18404 case $0 in
18405   *[\\/]* ) as_myself=$0 ;;
18406   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18407 for as_dir in $PATH
18408 do
18409   IFS=$as_save_IFS
18410   test -z "$as_dir" && as_dir=.
18411   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18412 done
18413 IFS=$as_save_IFS
18414
18415      ;;
18416 esac
18417 # We did not find ourselves, most probably we were run as `sh COMMAND'
18418 # in which case we are not to be found in the path.
18419 if test "x$as_myself" = x; then
18420   as_myself=$0
18421 fi
18422 if test ! -f "$as_myself"; then
18423   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18424   { (exit 1); exit 1; }
18425 fi
18426
18427 # Work around bugs in pre-3.0 UWIN ksh.
18428 for as_var in ENV MAIL MAILPATH
18429 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18430 done
18431 PS1='$ '
18432 PS2='> '
18433 PS4='+ '
18434
18435 # NLS nuisances.
18436 for as_var in \
18437   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18438   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18439   LC_TELEPHONE LC_TIME
18440 do
18441   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18442     eval $as_var=C; export $as_var
18443   else
18444     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18445   fi
18446 done
18447
18448 # Required to use basename.
18449 if expr a : '\(a\)' >/dev/null 2>&1 &&
18450    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18451   as_expr=expr
18452 else
18453   as_expr=false
18454 fi
18455
18456 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18457   as_basename=basename
18458 else
18459   as_basename=false
18460 fi
18461
18462
18463 # Name of the executable.
18464 as_me=`$as_basename -- "$0" ||
18465 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18466          X"$0" : 'X\(//\)$' \| \
18467          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18468 echo X/"$0" |
18469     sed '/^.*\/\([^/][^/]*\)\/*$/{
18470             s//\1/
18471             q
18472           }
18473           /^X\/\(\/\/\)$/{
18474             s//\1/
18475             q
18476           }
18477           /^X\/\(\/\).*/{
18478             s//\1/
18479             q
18480           }
18481           s/.*/./; q'`
18482
18483 # CDPATH.
18484 $as_unset CDPATH
18485
18486
18487
18488   as_lineno_1=$LINENO
18489   as_lineno_2=$LINENO
18490   test "x$as_lineno_1" != "x$as_lineno_2" &&
18491   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18492
18493   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18494   # uniformly replaced by the line number.  The first 'sed' inserts a
18495   # line-number line after each line using $LINENO; the second 'sed'
18496   # does the real work.  The second script uses 'N' to pair each
18497   # line-number line with the line containing $LINENO, and appends
18498   # trailing '-' during substitution so that $LINENO is not a special
18499   # case at line end.
18500   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18501   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18502   # E. McMahon (1931-1989) for sed's syntax.  :-)
18503   sed -n '
18504     p
18505     /[$]LINENO/=
18506   ' <$as_myself |
18507     sed '
18508       s/[$]LINENO.*/&-/
18509       t lineno
18510       b
18511       :lineno
18512       N
18513       :loop
18514       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18515       t loop
18516       s/-\n.*//
18517     ' >$as_me.lineno &&
18518   chmod +x "$as_me.lineno" ||
18519     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18520    { (exit 1); exit 1; }; }
18521
18522   # Don't try to exec as it changes $[0], causing all sort of problems
18523   # (the dirname of $[0] is not the place where we might find the
18524   # original and so on.  Autoconf is especially sensitive to this).
18525   . "./$as_me.lineno"
18526   # Exit status is that of the last command.
18527   exit
18528 }
18529
18530
18531 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18532   as_dirname=dirname
18533 else
18534   as_dirname=false
18535 fi
18536
18537 ECHO_C= ECHO_N= ECHO_T=
18538 case `echo -n x` in
18539 -n*)
18540   case `echo 'x\c'` in
18541   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18542   *)   ECHO_C='\c';;
18543   esac;;
18544 *)
18545   ECHO_N='-n';;
18546 esac
18547
18548 if expr a : '\(a\)' >/dev/null 2>&1 &&
18549    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18550   as_expr=expr
18551 else
18552   as_expr=false
18553 fi
18554
18555 rm -f conf$$ conf$$.exe conf$$.file
18556 if test -d conf$$.dir; then
18557   rm -f conf$$.dir/conf$$.file
18558 else
18559   rm -f conf$$.dir
18560   mkdir conf$$.dir
18561 fi
18562 echo >conf$$.file
18563 if ln -s conf$$.file conf$$ 2>/dev/null; then
18564   as_ln_s='ln -s'
18565   # ... but there are two gotchas:
18566   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18567   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18568   # In both cases, we have to default to `cp -p'.
18569   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18570     as_ln_s='cp -p'
18571 elif ln conf$$.file conf$$ 2>/dev/null; then
18572   as_ln_s=ln
18573 else
18574   as_ln_s='cp -p'
18575 fi
18576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18577 rmdir conf$$.dir 2>/dev/null
18578
18579 if mkdir -p . 2>/dev/null; then
18580   as_mkdir_p=:
18581 else
18582   test -d ./-p && rmdir ./-p
18583   as_mkdir_p=false
18584 fi
18585
18586 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18587 # systems may use methods other than mode bits to determine executability.
18588 cat >conf$$.file <<_ASEOF
18589 #! /bin/sh
18590 exit 0
18591 _ASEOF
18592 chmod +x conf$$.file
18593 if test -x conf$$.file >/dev/null 2>&1; then
18594   as_executable_p="test -x"
18595 else
18596   as_executable_p=:
18597 fi
18598 rm -f conf$$.file
18599
18600 # Sed expression to map a string onto a valid CPP name.
18601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18602
18603 # Sed expression to map a string onto a valid variable name.
18604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18605
18606
18607 exec 6>&1
18608
18609 # Save the log message, to keep $[0] and so on meaningful, and to
18610 # report actual input values of CONFIG_FILES etc. instead of their
18611 # values after options handling.
18612 ac_log="
18613 This file was extended by LLVM $as_me 3.7.0svn, which was
18614 generated by GNU Autoconf 2.60.  Invocation command line was
18615
18616   CONFIG_FILES    = $CONFIG_FILES
18617   CONFIG_HEADERS  = $CONFIG_HEADERS
18618   CONFIG_LINKS    = $CONFIG_LINKS
18619   CONFIG_COMMANDS = $CONFIG_COMMANDS
18620   $ $0 $@
18621
18622 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18623 "
18624
18625 _ACEOF
18626
18627 cat >>$CONFIG_STATUS <<_ACEOF
18628 # Files that config.status was made for.
18629 config_files="$ac_config_files"
18630 config_headers="$ac_config_headers"
18631 config_commands="$ac_config_commands"
18632
18633 _ACEOF
18634
18635 cat >>$CONFIG_STATUS <<\_ACEOF
18636 ac_cs_usage="\
18637 \`$as_me' instantiates files from templates according to the
18638 current configuration.
18639
18640 Usage: $0 [OPTIONS] [FILE]...
18641
18642   -h, --help       print this help, then exit
18643   -V, --version    print version number, then exit
18644   -q, --quiet      do not print progress messages
18645   -d, --debug      don't remove temporary files
18646       --recheck    update $as_me by reconfiguring in the same conditions
18647   --file=FILE[:TEMPLATE]
18648                    instantiate the configuration file FILE
18649   --header=FILE[:TEMPLATE]
18650                    instantiate the configuration header FILE
18651
18652 Configuration files:
18653 $config_files
18654
18655 Configuration headers:
18656 $config_headers
18657
18658 Configuration commands:
18659 $config_commands
18660
18661 Report bugs to <bug-autoconf@gnu.org>."
18662
18663 _ACEOF
18664 cat >>$CONFIG_STATUS <<_ACEOF
18665 ac_cs_version="\\
18666 LLVM config.status 3.7.0svn
18667 configured by $0, generated by GNU Autoconf 2.60,
18668   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18669
18670 Copyright (C) 2006 Free Software Foundation, Inc.
18671 This config.status script is free software; the Free Software Foundation
18672 gives unlimited permission to copy, distribute and modify it."
18673
18674 ac_pwd='$ac_pwd'
18675 srcdir='$srcdir'
18676 INSTALL='$INSTALL'
18677 _ACEOF
18678
18679 cat >>$CONFIG_STATUS <<\_ACEOF
18680 # If no file are specified by the user, then we need to provide default
18681 # value.  By we need to know if files were specified by the user.
18682 ac_need_defaults=:
18683 while test $# != 0
18684 do
18685   case $1 in
18686   --*=*)
18687     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18688     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18689     ac_shift=:
18690     ;;
18691   *)
18692     ac_option=$1
18693     ac_optarg=$2
18694     ac_shift=shift
18695     ;;
18696   esac
18697
18698   case $ac_option in
18699   # Handling of the options.
18700   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18701     ac_cs_recheck=: ;;
18702   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18703     echo "$ac_cs_version"; exit ;;
18704   --debug | --debu | --deb | --de | --d | -d )
18705     debug=: ;;
18706   --file | --fil | --fi | --f )
18707     $ac_shift
18708     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18709     ac_need_defaults=false;;
18710   --header | --heade | --head | --hea )
18711     $ac_shift
18712     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18713     ac_need_defaults=false;;
18714   --he | --h)
18715     # Conflict between --help and --header
18716     { echo "$as_me: error: ambiguous option: $1
18717 Try \`$0 --help' for more information." >&2
18718    { (exit 1); exit 1; }; };;
18719   --help | --hel | -h )
18720     echo "$ac_cs_usage"; exit ;;
18721   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18722   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18723     ac_cs_silent=: ;;
18724
18725   # This is an error.
18726   -*) { echo "$as_me: error: unrecognized option: $1
18727 Try \`$0 --help' for more information." >&2
18728    { (exit 1); exit 1; }; } ;;
18729
18730   *) ac_config_targets="$ac_config_targets $1"
18731      ac_need_defaults=false ;;
18732
18733   esac
18734   shift
18735 done
18736
18737 ac_configure_extra_args=
18738
18739 if $ac_cs_silent; then
18740   exec 6>/dev/null
18741   ac_configure_extra_args="$ac_configure_extra_args --silent"
18742 fi
18743
18744 _ACEOF
18745 cat >>$CONFIG_STATUS <<_ACEOF
18746 if \$ac_cs_recheck; then
18747   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18748   CONFIG_SHELL=$SHELL
18749   export CONFIG_SHELL
18750   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18751 fi
18752
18753 _ACEOF
18754 cat >>$CONFIG_STATUS <<\_ACEOF
18755 exec 5>>config.log
18756 {
18757   echo
18758   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18759 ## Running $as_me. ##
18760 _ASBOX
18761   echo "$ac_log"
18762 } >&5
18763
18764 _ACEOF
18765 cat >>$CONFIG_STATUS <<_ACEOF
18766 #
18767 # INIT-COMMANDS
18768 #
18769 llvm_src="${srcdir}"
18770
18771 _ACEOF
18772
18773 cat >>$CONFIG_STATUS <<\_ACEOF
18774
18775 # Handling of arguments.
18776 for ac_config_target in $ac_config_targets
18777 do
18778   case $ac_config_target in
18779     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18780     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18781     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18782     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18783     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18784     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18785     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18786     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18787     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18788     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18789     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18790     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18791     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18792     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18793     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18794     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18795     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18796     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18797     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18798     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18799     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18800     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18801     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18802     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18803     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18804     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18805
18806   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18807 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18808    { (exit 1); exit 1; }; };;
18809   esac
18810 done
18811
18812
18813 # If the user did not use the arguments to specify the items to instantiate,
18814 # then the envvar interface is used.  Set only those that are not.
18815 # We use the long form for the default assignment because of an extremely
18816 # bizarre bug on SunOS 4.1.3.
18817 if $ac_need_defaults; then
18818   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18819   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18820   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18821 fi
18822
18823 # Have a temporary directory for convenience.  Make it in the build tree
18824 # simply because there is no reason against having it here, and in addition,
18825 # creating and moving files from /tmp can sometimes cause problems.
18826 # Hook for its removal unless debugging.
18827 # Note that there is a small window in which the directory will not be cleaned:
18828 # after its creation but before its name has been assigned to `$tmp'.
18829 $debug ||
18830 {
18831   tmp=
18832   trap 'exit_status=$?
18833   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18834 ' 0
18835   trap '{ (exit 1); exit 1; }' 1 2 13 15
18836 }
18837 # Create a (secure) tmp directory for tmp files.
18838
18839 {
18840   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18841   test -n "$tmp" && test -d "$tmp"
18842 }  ||
18843 {
18844   tmp=./conf$$-$RANDOM
18845   (umask 077 && mkdir "$tmp")
18846 } ||
18847 {
18848    echo "$me: cannot create a temporary directory in ." >&2
18849    { (exit 1); exit 1; }
18850 }
18851
18852 #
18853 # Set up the sed scripts for CONFIG_FILES section.
18854 #
18855
18856 # No need to generate the scripts if there are no CONFIG_FILES.
18857 # This happens for instance when ./config.status config.h
18858 if test -n "$CONFIG_FILES"; then
18859
18860 _ACEOF
18861
18862
18863
18864 ac_delim='%!_!# '
18865 for ac_last_try in false false false false false :; do
18866   cat >conf$$subs.sed <<_ACEOF
18867 SHELL!$SHELL$ac_delim
18868 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18869 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18870 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18871 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18872 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18873 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18874 exec_prefix!$exec_prefix$ac_delim
18875 prefix!$prefix$ac_delim
18876 program_transform_name!$program_transform_name$ac_delim
18877 bindir!$bindir$ac_delim
18878 sbindir!$sbindir$ac_delim
18879 libexecdir!$libexecdir$ac_delim
18880 datarootdir!$datarootdir$ac_delim
18881 datadir!$datadir$ac_delim
18882 sysconfdir!$sysconfdir$ac_delim
18883 sharedstatedir!$sharedstatedir$ac_delim
18884 localstatedir!$localstatedir$ac_delim
18885 includedir!$includedir$ac_delim
18886 oldincludedir!$oldincludedir$ac_delim
18887 docdir!$docdir$ac_delim
18888 infodir!$infodir$ac_delim
18889 htmldir!$htmldir$ac_delim
18890 dvidir!$dvidir$ac_delim
18891 pdfdir!$pdfdir$ac_delim
18892 psdir!$psdir$ac_delim
18893 libdir!$libdir$ac_delim
18894 localedir!$localedir$ac_delim
18895 mandir!$mandir$ac_delim
18896 DEFS!$DEFS$ac_delim
18897 ECHO_C!$ECHO_C$ac_delim
18898 ECHO_N!$ECHO_N$ac_delim
18899 ECHO_T!$ECHO_T$ac_delim
18900 LIBS!$LIBS$ac_delim
18901 build_alias!$build_alias$ac_delim
18902 host_alias!$host_alias$ac_delim
18903 target_alias!$target_alias$ac_delim
18904 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18905 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18906 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18907 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18908 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18909 CC!$CC$ac_delim
18910 CFLAGS!$CFLAGS$ac_delim
18911 LDFLAGS!$LDFLAGS$ac_delim
18912 CPPFLAGS!$CPPFLAGS$ac_delim
18913 ac_ct_CC!$ac_ct_CC$ac_delim
18914 EXEEXT!$EXEEXT$ac_delim
18915 OBJEXT!$OBJEXT$ac_delim
18916 CXX!$CXX$ac_delim
18917 CXXFLAGS!$CXXFLAGS$ac_delim
18918 ac_ct_CXX!$ac_ct_CXX$ac_delim
18919 CPP!$CPP$ac_delim
18920 subdirs!$subdirs$ac_delim
18921 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18922 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18923 build!$build$ac_delim
18924 build_cpu!$build_cpu$ac_delim
18925 build_vendor!$build_vendor$ac_delim
18926 build_os!$build_os$ac_delim
18927 host!$host$ac_delim
18928 host_cpu!$host_cpu$ac_delim
18929 host_vendor!$host_vendor$ac_delim
18930 host_os!$host_os$ac_delim
18931 target!$target$ac_delim
18932 target_cpu!$target_cpu$ac_delim
18933 target_vendor!$target_vendor$ac_delim
18934 target_os!$target_os$ac_delim
18935 OS!$OS$ac_delim
18936 HOST_OS!$HOST_OS$ac_delim
18937 TARGET_OS!$TARGET_OS$ac_delim
18938 LINKALL!$LINKALL$ac_delim
18939 NOLINKALL!$NOLINKALL$ac_delim
18940 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18941 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18942 ARCH!$ARCH$ac_delim
18943 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18944 HOST_ARCH!$HOST_ARCH$ac_delim
18945 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18946 BUILD_CC!$BUILD_CC$ac_delim
18947 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18948 BUILD_CXX!$BUILD_CXX$ac_delim
18949 CVSBUILD!$CVSBUILD$ac_delim
18950 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18951 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18952 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18953 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18954 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18955 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18956 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18957 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18958 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18959 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18960 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18961 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18962 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18963 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18964 _ACEOF
18965
18966   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18967     break
18968   elif $ac_last_try; then
18969     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18970 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18971    { (exit 1); exit 1; }; }
18972   else
18973     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18974   fi
18975 done
18976
18977 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18978 if test -n "$ac_eof"; then
18979   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18980   ac_eof=`expr $ac_eof + 1`
18981 fi
18982
18983 cat >>$CONFIG_STATUS <<_ACEOF
18984 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18985 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18986 _ACEOF
18987 sed '
18988 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18989 s/^/s,@/; s/!/@,|#_!!_#|/
18990 :n
18991 t n
18992 s/'"$ac_delim"'$/,g/; t
18993 s/$/\\/; p
18994 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18995 ' >>$CONFIG_STATUS <conf$$subs.sed
18996 rm -f conf$$subs.sed
18997 cat >>$CONFIG_STATUS <<_ACEOF
18998 CEOF$ac_eof
18999 _ACEOF
19000
19001
19002 ac_delim='%!_!# '
19003 for ac_last_try in false false false false false :; do
19004   cat >conf$$subs.sed <<_ACEOF
19005 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
19006 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
19007 JIT!$JIT$ac_delim
19008 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
19009 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
19010 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
19011 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
19012 enable_searchengine!$enable_searchengine$ac_delim
19013 enable_external_search!$enable_external_search$ac_delim
19014 enable_server_based_search!$enable_server_based_search$ac_delim
19015 searchengine_url!$searchengine_url$ac_delim
19016 extra_search_mappings!$extra_search_mappings$ac_delim
19017 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
19018 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
19019 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
19020 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
19021 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
19022 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
19023 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
19024 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
19025 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
19026 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
19027 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
19028 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
19029 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
19030 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
19031 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
19032 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
19033 ENABLE_PIC!$ENABLE_PIC$ac_delim
19034 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
19035 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
19036 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
19037 ALL_TARGETS!$ALL_TARGETS$ac_delim
19038 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
19039 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
19040 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
19041 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
19042 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
19043 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
19044 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
19045 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
19046 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
19047 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
19048 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
19049 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
19050 ifGNUmake!$ifGNUmake$ac_delim
19051 LN_S!$LN_S$ac_delim
19052 NM!$NM$ac_delim
19053 CMP!$CMP$ac_delim
19054 CP!$CP$ac_delim
19055 DATE!$DATE$ac_delim
19056 FIND!$FIND$ac_delim
19057 GREP!$GREP$ac_delim
19058 MKDIR!$MKDIR$ac_delim
19059 MV!$MV$ac_delim
19060 RANLIB!$RANLIB$ac_delim
19061 AR!$AR$ac_delim
19062 RM!$RM$ac_delim
19063 SED!$SED$ac_delim
19064 TAR!$TAR$ac_delim
19065 BINPWD!$BINPWD$ac_delim
19066 DOT!$DOT$ac_delim
19067 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19068 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19069 INSTALL_DATA!$INSTALL_DATA$ac_delim
19070 BZIP2!$BZIP2$ac_delim
19071 CAT!$CAT$ac_delim
19072 DOXYGEN!$DOXYGEN$ac_delim
19073 GROFF!$GROFF$ac_delim
19074 GZIPBIN!$GZIPBIN$ac_delim
19075 PDFROFF!$PDFROFF$ac_delim
19076 ZIP!$ZIP$ac_delim
19077 GO!$GO$ac_delim
19078 OCAMLFIND!$OCAMLFIND$ac_delim
19079 GAS!$GAS$ac_delim
19080 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19081 EGREP!$EGREP$ac_delim
19082 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19083 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19084 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19085 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19086 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19087 NO_COMMENT!$NO_COMMENT$ac_delim
19088 PYTHON!$PYTHON$ac_delim
19089 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19090 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19091 USE_OPROFILE!$USE_OPROFILE$ac_delim
19092 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19093 XML2CONFIG!$XML2CONFIG$ac_delim
19094 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19095 LIBXML2_INC!$LIBXML2_INC$ac_delim
19096 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19097 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19098 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19099 MMAP_FILE!$MMAP_FILE$ac_delim
19100 SHLIBEXT!$SHLIBEXT$ac_delim
19101 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19102 _ACEOF
19103
19104   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19105     break
19106   elif $ac_last_try; then
19107     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19108 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19109    { (exit 1); exit 1; }; }
19110   else
19111     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19112   fi
19113 done
19114
19115 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19116 if test -n "$ac_eof"; then
19117   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19118   ac_eof=`expr $ac_eof + 1`
19119 fi
19120
19121 cat >>$CONFIG_STATUS <<_ACEOF
19122 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19124 _ACEOF
19125 sed '
19126 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19127 s/^/s,@/; s/!/@,|#_!!_#|/
19128 :n
19129 t n
19130 s/'"$ac_delim"'$/,g/; t
19131 s/$/\\/; p
19132 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19133 ' >>$CONFIG_STATUS <conf$$subs.sed
19134 rm -f conf$$subs.sed
19135 cat >>$CONFIG_STATUS <<_ACEOF
19136 CEOF$ac_eof
19137 _ACEOF
19138
19139
19140 ac_delim='%!_!# '
19141 for ac_last_try in false false false false false :; do
19142   cat >conf$$subs.sed <<_ACEOF
19143 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19144 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19145 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19146 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19147 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19148 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19149 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19150 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19151 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19152 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19153 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19154 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19155 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19156 RPATH!$RPATH$ac_delim
19157 RDYNAMIC!$RDYNAMIC$ac_delim
19158 program_prefix!$program_prefix$ac_delim
19159 LIBOBJS!$LIBOBJS$ac_delim
19160 LTLIBOBJS!$LTLIBOBJS$ac_delim
19161 _ACEOF
19162
19163   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19164     break
19165   elif $ac_last_try; then
19166     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19167 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19168    { (exit 1); exit 1; }; }
19169   else
19170     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19171   fi
19172 done
19173
19174 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19175 if test -n "$ac_eof"; then
19176   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19177   ac_eof=`expr $ac_eof + 1`
19178 fi
19179
19180 cat >>$CONFIG_STATUS <<_ACEOF
19181 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19183 _ACEOF
19184 sed '
19185 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19186 s/^/s,@/; s/!/@,|#_!!_#|/
19187 :n
19188 t n
19189 s/'"$ac_delim"'$/,g/; t
19190 s/$/\\/; p
19191 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19192 ' >>$CONFIG_STATUS <conf$$subs.sed
19193 rm -f conf$$subs.sed
19194 cat >>$CONFIG_STATUS <<_ACEOF
19195 :end
19196 s/|#_!!_#|//g
19197 CEOF$ac_eof
19198 _ACEOF
19199
19200
19201 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19202 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19203 # trailing colons and then remove the whole line if VPATH becomes empty
19204 # (actually we leave an empty line to preserve line numbers).
19205 if test "x$srcdir" = x.; then
19206   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19207 s/:*\$(srcdir):*/:/
19208 s/:*\${srcdir}:*/:/
19209 s/:*@srcdir@:*/:/
19210 s/^\([^=]*=[     ]*\):*/\1/
19211 s/:*$//
19212 s/^[^=]*=[       ]*$//
19213 }'
19214 fi
19215
19216 cat >>$CONFIG_STATUS <<\_ACEOF
19217 fi # test -n "$CONFIG_FILES"
19218
19219
19220 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19221 do
19222   case $ac_tag in
19223   :[FHLC]) ac_mode=$ac_tag; continue;;
19224   esac
19225   case $ac_mode$ac_tag in
19226   :[FHL]*:*);;
19227   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19228 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19229    { (exit 1); exit 1; }; };;
19230   :[FH]-) ac_tag=-:-;;
19231   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19232   esac
19233   ac_save_IFS=$IFS
19234   IFS=:
19235   set x $ac_tag
19236   IFS=$ac_save_IFS
19237   shift
19238   ac_file=$1
19239   shift
19240
19241   case $ac_mode in
19242   :L) ac_source=$1;;
19243   :[FH])
19244     ac_file_inputs=
19245     for ac_f
19246     do
19247       case $ac_f in
19248       -) ac_f="$tmp/stdin";;
19249       *) # Look for the file first in the build tree, then in the source tree
19250          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19251          # because $ac_f cannot contain `:'.
19252          test -f "$ac_f" ||
19253            case $ac_f in
19254            [\\/$]*) false;;
19255            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19256            esac ||
19257            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19258 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19259    { (exit 1); exit 1; }; };;
19260       esac
19261       ac_file_inputs="$ac_file_inputs $ac_f"
19262     done
19263
19264     # Let's still pretend it is `configure' which instantiates (i.e., don't
19265     # use $as_me), people would be surprised to read:
19266     #    /* config.h.  Generated by config.status.  */
19267     configure_input="Generated from "`IFS=:
19268           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19269     if test x"$ac_file" != x-; then
19270       configure_input="$ac_file.  $configure_input"
19271       { echo "$as_me:$LINENO: creating $ac_file" >&5
19272 echo "$as_me: creating $ac_file" >&6;}
19273     fi
19274
19275     case $ac_tag in
19276     *:-:* | *:-) cat >"$tmp/stdin";;
19277     esac
19278     ;;
19279   esac
19280
19281   ac_dir=`$as_dirname -- "$ac_file" ||
19282 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19283          X"$ac_file" : 'X\(//\)[^/]' \| \
19284          X"$ac_file" : 'X\(//\)$' \| \
19285          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19286 echo X"$ac_file" |
19287     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19288             s//\1/
19289             q
19290           }
19291           /^X\(\/\/\)[^/].*/{
19292             s//\1/
19293             q
19294           }
19295           /^X\(\/\/\)$/{
19296             s//\1/
19297             q
19298           }
19299           /^X\(\/\).*/{
19300             s//\1/
19301             q
19302           }
19303           s/.*/./; q'`
19304   { as_dir="$ac_dir"
19305   case $as_dir in #(
19306   -*) as_dir=./$as_dir;;
19307   esac
19308   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19309     as_dirs=
19310     while :; do
19311       case $as_dir in #(
19312       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19313       *) as_qdir=$as_dir;;
19314       esac
19315       as_dirs="'$as_qdir' $as_dirs"
19316       as_dir=`$as_dirname -- "$as_dir" ||
19317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19318          X"$as_dir" : 'X\(//\)[^/]' \| \
19319          X"$as_dir" : 'X\(//\)$' \| \
19320          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19321 echo X"$as_dir" |
19322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19323             s//\1/
19324             q
19325           }
19326           /^X\(\/\/\)[^/].*/{
19327             s//\1/
19328             q
19329           }
19330           /^X\(\/\/\)$/{
19331             s//\1/
19332             q
19333           }
19334           /^X\(\/\).*/{
19335             s//\1/
19336             q
19337           }
19338           s/.*/./; q'`
19339       test -d "$as_dir" && break
19340     done
19341     test -z "$as_dirs" || eval "mkdir $as_dirs"
19342   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19343 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19344    { (exit 1); exit 1; }; }; }
19345   ac_builddir=.
19346
19347 case "$ac_dir" in
19348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19349 *)
19350   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19351   # A ".." for each directory in $ac_dir_suffix.
19352   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19353   case $ac_top_builddir_sub in
19354   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19355   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19356   esac ;;
19357 esac
19358 ac_abs_top_builddir=$ac_pwd
19359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19360 # for backward compatibility:
19361 ac_top_builddir=$ac_top_build_prefix
19362
19363 case $srcdir in
19364   .)  # We are building in place.
19365     ac_srcdir=.
19366     ac_top_srcdir=$ac_top_builddir_sub
19367     ac_abs_top_srcdir=$ac_pwd ;;
19368   [\\/]* | ?:[\\/]* )  # Absolute name.
19369     ac_srcdir=$srcdir$ac_dir_suffix;
19370     ac_top_srcdir=$srcdir
19371     ac_abs_top_srcdir=$srcdir ;;
19372   *) # Relative name.
19373     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19374     ac_top_srcdir=$ac_top_build_prefix$srcdir
19375     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19376 esac
19377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19378
19379
19380   case $ac_mode in
19381   :F)
19382   #
19383   # CONFIG_FILE
19384   #
19385
19386   case $INSTALL in
19387   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19388   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19389   esac
19390 _ACEOF
19391
19392 cat >>$CONFIG_STATUS <<\_ACEOF
19393 # If the template does not know about datarootdir, expand it.
19394 # FIXME: This hack should be removed a few years after 2.60.
19395 ac_datarootdir_hack=; ac_datarootdir_seen=
19396
19397 case `sed -n '/datarootdir/ {
19398   p
19399   q
19400 }
19401 /@datadir@/p
19402 /@docdir@/p
19403 /@infodir@/p
19404 /@localedir@/p
19405 /@mandir@/p
19406 ' $ac_file_inputs` in
19407 *datarootdir*) ac_datarootdir_seen=yes;;
19408 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19409   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19410 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19411 _ACEOF
19412 cat >>$CONFIG_STATUS <<_ACEOF
19413   ac_datarootdir_hack='
19414   s&@datadir@&$datadir&g
19415   s&@docdir@&$docdir&g
19416   s&@infodir@&$infodir&g
19417   s&@localedir@&$localedir&g
19418   s&@mandir@&$mandir&g
19419     s&\\\${datarootdir}&$datarootdir&g' ;;
19420 esac
19421 _ACEOF
19422
19423 # Neutralize VPATH when `$srcdir' = `.'.
19424 # Shell code in configure.ac might set extrasub.
19425 # FIXME: do we really want to maintain this feature?
19426 cat >>$CONFIG_STATUS <<_ACEOF
19427   sed "$ac_vpsub
19428 $extrasub
19429 _ACEOF
19430 cat >>$CONFIG_STATUS <<\_ACEOF
19431 :t
19432 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19433 s&@configure_input@&$configure_input&;t t
19434 s&@top_builddir@&$ac_top_builddir_sub&;t t
19435 s&@srcdir@&$ac_srcdir&;t t
19436 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19437 s&@top_srcdir@&$ac_top_srcdir&;t t
19438 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19439 s&@builddir@&$ac_builddir&;t t
19440 s&@abs_builddir@&$ac_abs_builddir&;t t
19441 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19442 s&@INSTALL@&$ac_INSTALL&;t t
19443 $ac_datarootdir_hack
19444 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19445
19446 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19447   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19448   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19449   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19450 which seems to be undefined.  Please make sure it is defined." >&5
19451 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19452 which seems to be undefined.  Please make sure it is defined." >&2;}
19453
19454   rm -f "$tmp/stdin"
19455   case $ac_file in
19456   -) cat "$tmp/out"; rm -f "$tmp/out";;
19457   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19458   esac
19459  ;;
19460   :H)
19461   #
19462   # CONFIG_HEADER
19463   #
19464 _ACEOF
19465
19466 # Transform confdefs.h into a sed script `conftest.defines', that
19467 # substitutes the proper values into config.h.in to produce config.h.
19468 rm -f conftest.defines conftest.tail
19469 # First, append a space to every undef/define line, to ease matching.
19470 echo 's/$/ /' >conftest.defines
19471 # Then, protect against being on the right side of a sed subst, or in
19472 # an unquoted here document, in config.status.  If some macros were
19473 # called several times there might be several #defines for the same
19474 # symbol, which is useless.  But do not sort them, since the last
19475 # AC_DEFINE must be honored.
19476 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19477 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19478 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19479 # PARAMS is the parameter list in the macro definition--in most cases, it's
19480 # just an empty string.
19481 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19482 ac_dB='\\)[      (].*,\\1define\\2'
19483 ac_dC=' '
19484 ac_dD=' ,'
19485
19486 uniq confdefs.h |
19487   sed -n '
19488         t rset
19489         :rset
19490         s/^[     ]*#[    ]*define[       ][      ]*//
19491         t ok
19492         d
19493         :ok
19494         s/[\\&,]/\\&/g
19495         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19496         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19497   ' >>conftest.defines
19498
19499 # Remove the space that was appended to ease matching.
19500 # Then replace #undef with comments.  This is necessary, for
19501 # example, in the case of _POSIX_SOURCE, which is predefined and required
19502 # on some systems where configure will not decide to define it.
19503 # (The regexp can be short, since the line contains either #define or #undef.)
19504 echo 's/ $//
19505 s,^[     #]*u.*,/* & */,' >>conftest.defines
19506
19507 # Break up conftest.defines:
19508 ac_max_sed_lines=50
19509
19510 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19511 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19512 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19513 # et cetera.
19514 ac_in='$ac_file_inputs'
19515 ac_out='"$tmp/out1"'
19516 ac_nxt='"$tmp/out2"'
19517
19518 while :
19519 do
19520   # Write a here document:
19521     cat >>$CONFIG_STATUS <<_ACEOF
19522     # First, check the format of the line:
19523     cat >"\$tmp/defines.sed" <<\\CEOF
19524 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19525 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19526 b
19527 :def
19528 _ACEOF
19529   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19530   echo 'CEOF
19531     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19532   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19533   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19534   grep . conftest.tail >/dev/null || break
19535   rm -f conftest.defines
19536   mv conftest.tail conftest.defines
19537 done
19538 rm -f conftest.defines conftest.tail
19539
19540 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19541 cat >>$CONFIG_STATUS <<\_ACEOF
19542   if test x"$ac_file" != x-; then
19543     echo "/* $configure_input  */" >"$tmp/config.h"
19544     cat "$ac_result" >>"$tmp/config.h"
19545     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19546       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19547 echo "$as_me: $ac_file is unchanged" >&6;}
19548     else
19549       rm -f $ac_file
19550       mv "$tmp/config.h" $ac_file
19551     fi
19552   else
19553     echo "/* $configure_input  */"
19554     cat "$ac_result"
19555   fi
19556   rm -f "$tmp/out12"
19557  ;;
19558
19559   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19560 echo "$as_me: executing $ac_file commands" >&6;}
19561  ;;
19562   esac
19563
19564
19565   case $ac_file$ac_mode in
19566     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19567    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19568     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19569    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19570     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19571    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19572     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19573    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19574     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19575    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19576     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19577    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19578     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19579    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19580     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19581    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19582     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19583    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19584     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19585    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19586     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19587    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19588     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19589    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19590
19591   esac
19592 done # for ac_tag
19593
19594
19595 { (exit 0); exit 0; }
19596 _ACEOF
19597 chmod +x $CONFIG_STATUS
19598 ac_clean_files=$ac_clean_files_save
19599
19600
19601 # configure is writing to config.log, and then calls config.status.
19602 # config.status does its own redirection, appending to config.log.
19603 # Unfortunately, on DOS this fails, as config.log is still kept open
19604 # by configure, so config.status won't be able to write to it; its
19605 # output is simply discarded.  So we exec the FD to /dev/null,
19606 # effectively closing config.log, so it can be properly (re)opened and
19607 # appended to by config.status.  When coming back to configure, we
19608 # need to make the FD available again.
19609 if test "$no_create" != yes; then
19610   ac_cs_success=:
19611   ac_config_status_args=
19612   test "$silent" = yes &&
19613     ac_config_status_args="$ac_config_status_args --quiet"
19614   exec 5>/dev/null
19615   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19616   exec 5>>config.log
19617   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19618   # would make configure fail if this is the last instruction.
19619   $ac_cs_success || { (exit 1); exit 1; }
19620 fi
19621
19622 #
19623 # CONFIG_SUBDIRS section.
19624 #
19625 if test "$no_recursion" != yes; then
19626
19627   # Remove --cache-file and --srcdir arguments so they do not pile up.
19628   ac_sub_configure_args=
19629   ac_prev=
19630   eval "set x $ac_configure_args"
19631   shift
19632   for ac_arg
19633   do
19634     if test -n "$ac_prev"; then
19635       ac_prev=
19636       continue
19637     fi
19638     case $ac_arg in
19639     -cache-file | --cache-file | --cache-fil | --cache-fi \
19640     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19641       ac_prev=cache_file ;;
19642     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19643     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19644     | --c=*)
19645       ;;
19646     --config-cache | -C)
19647       ;;
19648     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19649       ac_prev=srcdir ;;
19650     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19651       ;;
19652     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19653       ac_prev=prefix ;;
19654     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19655       ;;
19656     *)
19657       case $ac_arg in
19658       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19659       esac
19660       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19661     esac
19662   done
19663
19664   # Always prepend --prefix to ensure using the same prefix
19665   # in subdir configurations.
19666   ac_arg="--prefix=$prefix"
19667   case $ac_arg in
19668   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19669   esac
19670   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19671
19672   ac_popdir=`pwd`
19673   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19674
19675     # Do not complain, so a configure script can configure whichever
19676     # parts of a large source tree are present.
19677     test -d "$srcdir/$ac_dir" || continue
19678
19679     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19680     echo "$as_me:$LINENO: $ac_msg" >&5
19681     echo "$ac_msg" >&6
19682     { as_dir="$ac_dir"
19683   case $as_dir in #(
19684   -*) as_dir=./$as_dir;;
19685   esac
19686   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19687     as_dirs=
19688     while :; do
19689       case $as_dir in #(
19690       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19691       *) as_qdir=$as_dir;;
19692       esac
19693       as_dirs="'$as_qdir' $as_dirs"
19694       as_dir=`$as_dirname -- "$as_dir" ||
19695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19696          X"$as_dir" : 'X\(//\)[^/]' \| \
19697          X"$as_dir" : 'X\(//\)$' \| \
19698          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19699 echo X"$as_dir" |
19700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19701             s//\1/
19702             q
19703           }
19704           /^X\(\/\/\)[^/].*/{
19705             s//\1/
19706             q
19707           }
19708           /^X\(\/\/\)$/{
19709             s//\1/
19710             q
19711           }
19712           /^X\(\/\).*/{
19713             s//\1/
19714             q
19715           }
19716           s/.*/./; q'`
19717       test -d "$as_dir" && break
19718     done
19719     test -z "$as_dirs" || eval "mkdir $as_dirs"
19720   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19721 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19722    { (exit 1); exit 1; }; }; }
19723     ac_builddir=.
19724
19725 case "$ac_dir" in
19726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19727 *)
19728   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19729   # A ".." for each directory in $ac_dir_suffix.
19730   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19731   case $ac_top_builddir_sub in
19732   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19733   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19734   esac ;;
19735 esac
19736 ac_abs_top_builddir=$ac_pwd
19737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19738 # for backward compatibility:
19739 ac_top_builddir=$ac_top_build_prefix
19740
19741 case $srcdir in
19742   .)  # We are building in place.
19743     ac_srcdir=.
19744     ac_top_srcdir=$ac_top_builddir_sub
19745     ac_abs_top_srcdir=$ac_pwd ;;
19746   [\\/]* | ?:[\\/]* )  # Absolute name.
19747     ac_srcdir=$srcdir$ac_dir_suffix;
19748     ac_top_srcdir=$srcdir
19749     ac_abs_top_srcdir=$srcdir ;;
19750   *) # Relative name.
19751     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19752     ac_top_srcdir=$ac_top_build_prefix$srcdir
19753     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19754 esac
19755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19756
19757
19758     cd "$ac_dir"
19759
19760     # Check for guested configure; otherwise get Cygnus style configure.
19761     if test -f "$ac_srcdir/configure.gnu"; then
19762       ac_sub_configure=$ac_srcdir/configure.gnu
19763     elif test -f "$ac_srcdir/configure"; then
19764       ac_sub_configure=$ac_srcdir/configure
19765     elif test -f "$ac_srcdir/configure.in"; then
19766       # This should be Cygnus configure.
19767       ac_sub_configure=$ac_aux_dir/configure
19768     else
19769       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19770 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19771       ac_sub_configure=
19772     fi
19773
19774     # The recursion is here.
19775     if test -n "$ac_sub_configure"; then
19776       # Make the cache file name correct relative to the subdirectory.
19777       case $cache_file in
19778       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19779       *) # Relative name.
19780         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19781       esac
19782
19783       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19784 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19785       # The eval makes quoting arguments work.
19786       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19787            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19788         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19789 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19790    { (exit 1); exit 1; }; }
19791     fi
19792
19793     cd "$ac_popdir"
19794   done
19795 fi
19796