[CodeGen] Don't attempt a tail-call with implicit sret.
[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 DEBUG_RUNTIME
701 DEBUG_SYMBOLS
702 KEEP_SYMBOLS
703 JIT
704 TARGET_HAS_JIT
705 TARGETS_WITH_JIT
706 ENABLE_DOCS
707 ENABLE_DOXYGEN
708 enable_searchengine
709 enable_external_search
710 enable_server_based_search
711 searchengine_url
712 extra_search_mappings
713 QHELPGENERATOR
714 llvm_doxygen_generate_qhp
715 llvm_doxygen_qch_filename
716 llvm_doxygen_qhp_namespace
717 llvm_doxygen_qhelpgenerator_path
718 llvm_doxygen_qhp_cust_filter_name
719 llvm_doxygen_qhp_cust_filter_attrs
720 clang_doxygen_generate_qhp
721 clang_doxygen_qch_filename
722 clang_doxygen_qhp_namespace
723 clang_doxygen_qhelpgenerator_path
724 clang_doxygen_qhp_cust_filter_name
725 clang_doxygen_qhp_cust_filter_attrs
726 LLVM_ENABLE_THREADS
727 ENABLE_PTHREADS
728 LLVM_ENABLE_ZLIB
729 ENABLE_PIC
730 ENABLE_SHARED
731 ENABLE_EMBED_STDCXX
732 ENABLE_TIMESTAMPS
733 ALL_TARGETS
734 TARGETS_TO_BUILD
735 LLVM_ENUM_TARGETS
736 LLVM_ENUM_ASM_PRINTERS
737 LLVM_ENUM_ASM_PARSERS
738 LLVM_ENUM_DISASSEMBLERS
739 OPTIMIZE_OPTION
740 EXTRA_OPTIONS
741 EXTRA_LD_OPTIONS
742 CLANG_SRC_ROOT
743 BINUTILS_INCDIR
744 ENABLE_TERMINFO
745 INTERNAL_PREFIX
746 ifGNUmake
747 LN_S
748 NM
749 CMP
750 CP
751 DATE
752 FIND
753 GREP
754 MKDIR
755 MV
756 RANLIB
757 AR
758 RM
759 SED
760 TAR
761 BINPWD
762 DOT
763 INSTALL_PROGRAM
764 INSTALL_SCRIPT
765 INSTALL_DATA
766 BZIP2
767 CAT
768 DOXYGEN
769 GROFF
770 GZIPBIN
771 PDFROFF
772 ZIP
773 GO
774 OCAMLFIND
775 GAS
776 HAVE_LINK_VERSION_SCRIPT
777 EGREP
778 NO_VARIADIC_MACROS
779 NO_MISSING_FIELD_INITIALIZERS
780 COVERED_SWITCH_DEFAULT
781 NO_MAYBE_UNINITIALIZED
782 NO_UNINITIALIZED
783 NO_COMMENT
784 PYTHON
785 HAVE_DLOPEN
786 HAVE_TERMINFO
787 USE_OPROFILE
788 USE_INTEL_JITEVENTS
789 XML2CONFIG
790 LIBXML2_LIBS
791 LIBXML2_INC
792 HAVE_PTHREAD
793 HAVE_LIBZ
794 HUGE_VAL_SANITY
795 MMAP_FILE
796 SHLIBEXT
797 LLVM_PREFIX
798 LLVM_BINDIR
799 LLVM_DATADIR
800 LLVM_DOCSDIR
801 LLVM_ETCDIR
802 LLVM_INCLUDEDIR
803 LLVM_INFODIR
804 LLVM_MANDIR
805 LLVM_CONFIGTIME
806 BINDINGS_TO_BUILD
807 HAVE_OCAMLOPT
808 HAVE_OCAML_OUNIT
809 OCAML_LIBDIR
810 ENABLE_VISIBILITY_INLINES_HIDDEN
811 RPATH
812 RDYNAMIC
813 program_prefix
814 LIBOBJS
815 LTLIBOBJS'
816 ac_subst_files=''
817       ac_precious_vars='build_alias
818 host_alias
819 target_alias
820 CC
821 CFLAGS
822 LDFLAGS
823 CPPFLAGS
824 CXX
825 CXXFLAGS
826 CCC
827 CPP'
828 ac_subdirs_all='projects/test-suite
829 projects/llvm-test
830 projects/poolalloc
831 projects/llvm-poolalloc
832 projects/safecode
833 tools/polly'
834
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885   # If the previous option needs an argument, assign it.
886   if test -n "$ac_prev"; then
887     eval $ac_prev=\$ac_option
888     ac_prev=
889     continue
890   fi
891
892   case $ac_option in
893   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894   *)    ac_optarg=yes ;;
895   esac
896
897   # Accept the important Cygnus configure options, so we can diagnose typos.
898
899   case $ac_dashdash$ac_option in
900   --)
901     ac_dashdash=yes ;;
902
903   -bindir | --bindir | --bindi | --bind | --bin | --bi)
904     ac_prev=bindir ;;
905   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
906     bindir=$ac_optarg ;;
907
908   -build | --build | --buil | --bui | --bu)
909     ac_prev=build_alias ;;
910   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
911     build_alias=$ac_optarg ;;
912
913   -cache-file | --cache-file | --cache-fil | --cache-fi \
914   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915     ac_prev=cache_file ;;
916   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
918     cache_file=$ac_optarg ;;
919
920   --config-cache | -C)
921     cache_file=config.cache ;;
922
923   -datadir | --datadir | --datadi | --datad)
924     ac_prev=datadir ;;
925   -datadir=* | --datadir=* | --datadi=* | --datad=*)
926     datadir=$ac_optarg ;;
927
928   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929   | --dataroo | --dataro | --datar)
930     ac_prev=datarootdir ;;
931   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933     datarootdir=$ac_optarg ;;
934
935   -disable-* | --disable-*)
936     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
937     # Reject names that are not valid shell variable names.
938     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
939       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
940    { (exit 1); exit 1; }; }
941     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
942     eval enable_$ac_feature=no ;;
943
944   -docdir | --docdir | --docdi | --doc | --do)
945     ac_prev=docdir ;;
946   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947     docdir=$ac_optarg ;;
948
949   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950     ac_prev=dvidir ;;
951   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952     dvidir=$ac_optarg ;;
953
954   -enable-* | --enable-*)
955     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
958       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
959    { (exit 1); exit 1; }; }
960     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
961     eval enable_$ac_feature=\$ac_optarg ;;
962
963   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965   | --exec | --exe | --ex)
966     ac_prev=exec_prefix ;;
967   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969   | --exec=* | --exe=* | --ex=*)
970     exec_prefix=$ac_optarg ;;
971
972   -gas | --gas | --ga | --g)
973     # Obsolete; use --with-gas.
974     with_gas=yes ;;
975
976   -help | --help | --hel | --he | -h)
977     ac_init_help=long ;;
978   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979     ac_init_help=recursive ;;
980   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981     ac_init_help=short ;;
982
983   -host | --host | --hos | --ho)
984     ac_prev=host_alias ;;
985   -host=* | --host=* | --hos=* | --ho=*)
986     host_alias=$ac_optarg ;;
987
988   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989     ac_prev=htmldir ;;
990   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991   | --ht=*)
992     htmldir=$ac_optarg ;;
993
994   -includedir | --includedir | --includedi | --included | --include \
995   | --includ | --inclu | --incl | --inc)
996     ac_prev=includedir ;;
997   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998   | --includ=* | --inclu=* | --incl=* | --inc=*)
999     includedir=$ac_optarg ;;
1000
1001   -infodir | --infodir | --infodi | --infod | --info | --inf)
1002     ac_prev=infodir ;;
1003   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004     infodir=$ac_optarg ;;
1005
1006   -libdir | --libdir | --libdi | --libd)
1007     ac_prev=libdir ;;
1008   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009     libdir=$ac_optarg ;;
1010
1011   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012   | --libexe | --libex | --libe)
1013     ac_prev=libexecdir ;;
1014   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015   | --libexe=* | --libex=* | --libe=*)
1016     libexecdir=$ac_optarg ;;
1017
1018   -localedir | --localedir | --localedi | --localed | --locale)
1019     ac_prev=localedir ;;
1020   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021     localedir=$ac_optarg ;;
1022
1023   -localstatedir | --localstatedir | --localstatedi | --localstated \
1024   | --localstate | --localstat | --localsta | --localst | --locals)
1025     ac_prev=localstatedir ;;
1026   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028     localstatedir=$ac_optarg ;;
1029
1030   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031     ac_prev=mandir ;;
1032   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033     mandir=$ac_optarg ;;
1034
1035   -nfp | --nfp | --nf)
1036     # Obsolete; use --without-fp.
1037     with_fp=no ;;
1038
1039   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040   | --no-cr | --no-c | -n)
1041     no_create=yes ;;
1042
1043   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045     no_recursion=yes ;;
1046
1047   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049   | --oldin | --oldi | --old | --ol | --o)
1050     ac_prev=oldincludedir ;;
1051   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054     oldincludedir=$ac_optarg ;;
1055
1056   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057     ac_prev=prefix ;;
1058   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059     prefix=$ac_optarg ;;
1060
1061   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062   | --program-pre | --program-pr | --program-p)
1063     ac_prev=program_prefix ;;
1064   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066     program_prefix=$ac_optarg ;;
1067
1068   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069   | --program-suf | --program-su | --program-s)
1070     ac_prev=program_suffix ;;
1071   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073     program_suffix=$ac_optarg ;;
1074
1075   -program-transform-name | --program-transform-name \
1076   | --program-transform-nam | --program-transform-na \
1077   | --program-transform-n | --program-transform- \
1078   | --program-transform | --program-transfor \
1079   | --program-transfo | --program-transf \
1080   | --program-trans | --program-tran \
1081   | --progr-tra | --program-tr | --program-t)
1082     ac_prev=program_transform_name ;;
1083   -program-transform-name=* | --program-transform-name=* \
1084   | --program-transform-nam=* | --program-transform-na=* \
1085   | --program-transform-n=* | --program-transform-=* \
1086   | --program-transform=* | --program-transfor=* \
1087   | --program-transfo=* | --program-transf=* \
1088   | --program-trans=* | --program-tran=* \
1089   | --progr-tra=* | --program-tr=* | --program-t=*)
1090     program_transform_name=$ac_optarg ;;
1091
1092   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093     ac_prev=pdfdir ;;
1094   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095     pdfdir=$ac_optarg ;;
1096
1097   -psdir | --psdir | --psdi | --psd | --ps)
1098     ac_prev=psdir ;;
1099   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100     psdir=$ac_optarg ;;
1101
1102   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103   | -silent | --silent | --silen | --sile | --sil)
1104     silent=yes ;;
1105
1106   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107     ac_prev=sbindir ;;
1108   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109   | --sbi=* | --sb=*)
1110     sbindir=$ac_optarg ;;
1111
1112   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114   | --sharedst | --shareds | --shared | --share | --shar \
1115   | --sha | --sh)
1116     ac_prev=sharedstatedir ;;
1117   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120   | --sha=* | --sh=*)
1121     sharedstatedir=$ac_optarg ;;
1122
1123   -site | --site | --sit)
1124     ac_prev=site ;;
1125   -site=* | --site=* | --sit=*)
1126     site=$ac_optarg ;;
1127
1128   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129     ac_prev=srcdir ;;
1130   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131     srcdir=$ac_optarg ;;
1132
1133   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134   | --syscon | --sysco | --sysc | --sys | --sy)
1135     ac_prev=sysconfdir ;;
1136   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138     sysconfdir=$ac_optarg ;;
1139
1140   -target | --target | --targe | --targ | --tar | --ta | --t)
1141     ac_prev=target_alias ;;
1142   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143     target_alias=$ac_optarg ;;
1144
1145   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146     verbose=yes ;;
1147
1148   -version | --version | --versio | --versi | --vers | -V)
1149     ac_init_version=: ;;
1150
1151   -with-* | --with-*)
1152     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153     # Reject names that are not valid shell variable names.
1154     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1155       { echo "$as_me: error: invalid package name: $ac_package" >&2
1156    { (exit 1); exit 1; }; }
1157     ac_package=`echo $ac_package| sed 's/-/_/g'`
1158     eval with_$ac_package=\$ac_optarg ;;
1159
1160   -without-* | --without-*)
1161     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1162     # Reject names that are not valid shell variable names.
1163     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1164       { echo "$as_me: error: invalid package name: $ac_package" >&2
1165    { (exit 1); exit 1; }; }
1166     ac_package=`echo $ac_package | sed 's/-/_/g'`
1167     eval with_$ac_package=no ;;
1168
1169   --x)
1170     # Obsolete; use --with-x.
1171     with_x=yes ;;
1172
1173   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174   | --x-incl | --x-inc | --x-in | --x-i)
1175     ac_prev=x_includes ;;
1176   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178     x_includes=$ac_optarg ;;
1179
1180   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182     ac_prev=x_libraries ;;
1183   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185     x_libraries=$ac_optarg ;;
1186
1187   -*) { echo "$as_me: error: unrecognized option: $ac_option
1188 Try \`$0 --help' for more information." >&2
1189    { (exit 1); exit 1; }; }
1190     ;;
1191
1192   *=*)
1193     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194     # Reject names that are not valid shell variable names.
1195     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1196       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1197    { (exit 1); exit 1; }; }
1198     eval $ac_envvar=\$ac_optarg
1199     export $ac_envvar ;;
1200
1201   *)
1202     # FIXME: should be removed in autoconf 3.0.
1203     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1207     ;;
1208
1209   esac
1210 done
1211
1212 if test -n "$ac_prev"; then
1213   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214   { echo "$as_me: error: missing argument to $ac_option" >&2
1215    { (exit 1); exit 1; }; }
1216 fi
1217
1218 # Be sure to have absolute directory names.
1219 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220                 datadir sysconfdir sharedstatedir localstatedir includedir \
1221                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222                 libdir localedir mandir
1223 do
1224   eval ac_val=\$$ac_var
1225   case $ac_val in
1226     [\\/$]* | ?:[\\/]* )  continue;;
1227     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1228   esac
1229   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1230    { (exit 1); exit 1; }; }
1231 done
1232
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1239
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242   if test "x$build_alias" = x; then
1243     cross_compiling=maybe
1244     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1245     If a cross compiler is detected then cross compile mode will be used." >&2
1246   elif test "x$build_alias" != "x$host_alias"; then
1247     cross_compiling=yes
1248   fi
1249 fi
1250
1251 ac_tool_prefix=
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1253
1254 test "$silent" = yes && exec 6>/dev/null
1255
1256
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260   { echo "$as_me: error: Working directory cannot be determined" >&2
1261    { (exit 1); exit 1; }; }
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263   { echo "$as_me: error: pwd does not report name of working directory" >&2
1264    { (exit 1); exit 1; }; }
1265
1266
1267 # Find the source files, if location was not specified.
1268 if test -z "$srcdir"; then
1269   ac_srcdir_defaulted=yes
1270   # Try the directory containing this script, then the parent directory.
1271   ac_confdir=`$as_dirname -- "$0" ||
1272 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1273          X"$0" : 'X\(//\)[^/]' \| \
1274          X"$0" : 'X\(//\)$' \| \
1275          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1276 echo X"$0" |
1277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1278             s//\1/
1279             q
1280           }
1281           /^X\(\/\/\)[^/].*/{
1282             s//\1/
1283             q
1284           }
1285           /^X\(\/\/\)$/{
1286             s//\1/
1287             q
1288           }
1289           /^X\(\/\).*/{
1290             s//\1/
1291             q
1292           }
1293           s/.*/./; q'`
1294   srcdir=$ac_confdir
1295   if test ! -r "$srcdir/$ac_unique_file"; then
1296     srcdir=..
1297   fi
1298 else
1299   ac_srcdir_defaulted=no
1300 fi
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1303   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1304    { (exit 1); exit 1; }; }
1305 fi
1306 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1307 ac_abs_confdir=`(
1308         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1309    { (exit 1); exit 1; }; }
1310         pwd)`
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313   srcdir=.
1314 fi
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1318 case $srcdir in
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 esac
1321 for ac_var in $ac_precious_vars; do
1322   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323   eval ac_env_${ac_var}_value=\$${ac_var}
1324   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 done
1327
1328 #
1329 # Report the --help message.
1330 #
1331 if test "$ac_init_help" = "long"; then
1332   # Omit some internal or obsolete options to make the list less imposing.
1333   # This message is too long to be a string in the A/UX 3.1 sh.
1334   cat <<_ACEOF
1335 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1336
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE.  See below for descriptions of some of the useful variables.
1341
1342 Defaults for the options are specified in brackets.
1343
1344 Configuration:
1345   -h, --help              display this help and exit
1346       --help=short        display options specific to this package
1347       --help=recursive    display the short help of all the included packages
1348   -V, --version           display version information and exit
1349   -q, --quiet, --silent   do not print \`checking...' messages
1350       --cache-file=FILE   cache test results in FILE [disabled]
1351   -C, --config-cache      alias for \`--cache-file=config.cache'
1352   -n, --no-create         do not create output files
1353       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1354
1355 Installation directories:
1356   --prefix=PREFIX         install architecture-independent files in PREFIX
1357                           [$ac_default_prefix]
1358   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1359                           [PREFIX]
1360
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1365
1366 For better control, use the options below.
1367
1368 Fine tuning of the installation directories:
1369   --bindir=DIR           user executables [EPREFIX/bin]
1370   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1371   --libexecdir=DIR       program executables [EPREFIX/libexec]
1372   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1373   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1374   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1375   --libdir=DIR           object code libraries [EPREFIX/lib]
1376   --includedir=DIR       C header files [PREFIX/include]
1377   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1378   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1379   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1380   --infodir=DIR          info documentation [DATAROOTDIR/info]
1381   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1382   --mandir=DIR           man documentation [DATAROOTDIR/man]
1383   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1384   --htmldir=DIR          html documentation [DOCDIR]
1385   --dvidir=DIR           dvi documentation [DOCDIR]
1386   --pdfdir=DIR           pdf documentation [DOCDIR]
1387   --psdir=DIR            ps documentation [DOCDIR]
1388 _ACEOF
1389
1390   cat <<\_ACEOF
1391
1392 System types:
1393   --build=BUILD     configure for building on BUILD [guessed]
1394   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1395   --target=TARGET   configure for building compilers for TARGET [HOST]
1396 _ACEOF
1397 fi
1398
1399 if test -n "$ac_init_help"; then
1400   case $ac_init_help in
1401      short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1402    esac
1403   cat <<\_ACEOF
1404
1405 Optional Features:
1406   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1407   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1408   --enable-polly          Use polly if available (default is YES)
1409   --enable-libcpp         Use libc++ if available (default is NO)
1410   --enable-compiler-version-checks
1411                           Check the version of the host compiler (default is
1412                           YES)
1413   --enable-cxx1y          Use c++1y if available (default is NO)
1414   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1415   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1416   --enable-clang-plugin-support
1417                           Enable plugin support in clang (default is YES)
1418   --enable-clang-static-analyzer
1419                           Enable building of clang Static Analyzer (default is
1420                           YES)
1421   --enable-optimized      Compile with optimizations enabled (default is NO)
1422   --enable-profiling      Compile with profiling enabled (default is NO)
1423   --enable-assertions     Compile with assertion checks enabled (default is
1424                           YES)
1425   --enable-werror         Compile with -Werror enabled (default is NO)
1426   --enable-expensive-checks
1427                           Compile with expensive debug checks enabled (default
1428                           is NO)
1429   --enable-abi-breaking-checks
1430                           Compile with abi-breaking asserts support (default
1431                           is with-asserts)
1432   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1433                           NO)
1434   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1435                           optimization is on and YES if it's off)
1436   --enable-keep-symbols   Do not strip installed executables)
1437   --enable-jit            Enable Just In Time Compiling (default is YES)
1438   --enable-docs           Build documents (default is YES)
1439   --enable-doxygen        Build doxygen documentation (default is NO)
1440   --enable-doxygen-search Enable doxygen search support (default is NO)
1441   --enable-doxygen-external-search
1442                           Enable doxygen exteranl search (default is NO)
1443   --enable-doxygen-qt-help
1444                           Build Qt help files (default is NO)
1445   --enable-threads        Use threads if available (default is YES)
1446   --enable-pthreads       Use pthreads if available (default is YES)
1447   --enable-zlib           Use zlib for compression/decompression if available
1448                           (default is YES)
1449   --enable-pic            Build LLVM with Position Independent Code (default
1450                           is YES)
1451   --enable-shared         Build a shared library and link tools against it
1452                           (default is NO)
1453   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1454                           Win32 DLL (default is NO)
1455   --enable-timestamps     Enable embedding timestamp information in build
1456                           (default is YES)
1457   --enable-backtraces     Enable embedding backtraces on crash (default is
1458                           YES)
1459   --enable-crash-overrides
1460                           Enable crash handling overrides (default is YES)
1461   --enable-targets        Build specific host targets: all or
1462                           target1,target2,... Valid targets are: host, x86,
1463                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1464                           hexagon, xcore, msp430, nvptx, systemz, r600, and
1465                           cpp (default=all)
1466   --enable-experimental-targets
1467                           Build experimental host targets: disable or
1468                           target1,target2,... (default=disable)
1469   --enable-bindings       Build specific language bindings:
1470                           all,auto,none,{binding-name} (default=auto)
1471   --enable-terminfo       Query the terminfo database if available (default is
1472                           YES)
1473   --enable-libedit        Use libedit if available (default is YES)
1474   --enable-libffi         Check for the presence of libffi (default is NO)
1475
1476 Optional Packages:
1477   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479   --with-doxygen-search-engine-url
1480                           Specify the external search engine for doxygen
1481   --with-doxygen-search-mappings
1482                           Specify the extra search mapping for doxygen
1483   --with-optimize-option  Select the compiler options to use for optimized
1484                           builds
1485   --with-extra-options    Specify additional options to compile LLVM with
1486   --with-extra-ld-options Specify additional options to link LLVM with
1487   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1488                           is stdlib)
1489   --with-clang-srcdir     Directory to the out-of-tree Clang source
1490   --with-clang-resource-dir
1491                           Relative directory from the Clang binary for
1492                           resource files
1493   --with-c-include-dirs   Colon separated list of directories clang will
1494                           search for headers
1495   --with-gcc-toolchain    Directory where gcc is installed.
1496   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1497   --with-binutils-include Specify path to binutils/include/ containing
1498                           plugin-api.h file for gold plugin.
1499   --with-bug-report-url   Specify the URL where bug reports should be
1500                           submitted (default=http://llvm.org/bugs/)
1501   --with-internal-prefix  Installation directory for internal files
1502   --with-python           path to python
1503   --with-oprofile=<prefix>
1504                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1505   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1506
1507
1508 Some influential environment variables:
1509   CC          C compiler command
1510   CFLAGS      C compiler flags
1511   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1512               nonstandard directory <lib dir>
1513   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1514               you have headers in a nonstandard directory <include dir>
1515   CXX         C++ compiler command
1516   CXXFLAGS    C++ compiler flags
1517   CPP         C preprocessor
1518
1519 Use these variables to override the choices made by `configure' or to help
1520 it to find libraries and programs with nonstandard names/locations.
1521
1522 Report bugs to <http://llvm.org/bugs/>.
1523 _ACEOF
1524 ac_status=$?
1525 fi
1526
1527 if test "$ac_init_help" = "recursive"; then
1528   # If there are subdirs, report their specific --help.
1529   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1530     test -d "$ac_dir" || continue
1531     ac_builddir=.
1532
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *)
1536   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1537   # A ".." for each directory in $ac_dir_suffix.
1538   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1539   case $ac_top_builddir_sub in
1540   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542   esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1548
1549 case $srcdir in
1550   .)  # We are building in place.
1551     ac_srcdir=.
1552     ac_top_srcdir=$ac_top_builddir_sub
1553     ac_abs_top_srcdir=$ac_pwd ;;
1554   [\\/]* | ?:[\\/]* )  # Absolute name.
1555     ac_srcdir=$srcdir$ac_dir_suffix;
1556     ac_top_srcdir=$srcdir
1557     ac_abs_top_srcdir=$srcdir ;;
1558   *) # Relative name.
1559     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560     ac_top_srcdir=$ac_top_build_prefix$srcdir
1561     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1564
1565     cd "$ac_dir" || { ac_status=$?; continue; }
1566     # Check for guested configure.
1567     if test -f "$ac_srcdir/configure.gnu"; then
1568       echo &&
1569       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570     elif test -f "$ac_srcdir/configure"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure" --help=recursive
1573     else
1574       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575     fi || ac_status=$?
1576     cd "$ac_pwd" || { ac_status=$?; break; }
1577   done
1578 fi
1579
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582   cat <<\_ACEOF
1583 LLVM configure 3.7.0svn
1584 generated by GNU Autoconf 2.60
1585
1586 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1587 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1588 This configure script is free software; the Free Software Foundation
1589 gives unlimited permission to copy, distribute and modify it.
1590
1591 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1592 _ACEOF
1593   exit
1594 fi
1595 cat >config.log <<_ACEOF
1596 This file contains any messages produced by compilers while
1597 running configure, to aid debugging if configure makes a mistake.
1598
1599 It was created by LLVM $as_me 3.7.0svn, which was
1600 generated by GNU Autoconf 2.60.  Invocation command line was
1601
1602   $ $0 $@
1603
1604 _ACEOF
1605 exec 5>>config.log
1606 {
1607 cat <<_ASUNAME
1608 ## --------- ##
1609 ## Platform. ##
1610 ## --------- ##
1611
1612 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1613 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1614 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1615 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1616 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1617
1618 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1619 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1620
1621 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1622 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1623 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1624 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1625 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1626 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1627 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1628
1629 _ASUNAME
1630
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 for as_dir in $PATH
1633 do
1634   IFS=$as_save_IFS
1635   test -z "$as_dir" && as_dir=.
1636   echo "PATH: $as_dir"
1637 done
1638 IFS=$as_save_IFS
1639
1640 } >&5
1641
1642 cat >&5 <<_ACEOF
1643
1644
1645 ## ----------- ##
1646 ## Core tests. ##
1647 ## ----------- ##
1648
1649 _ACEOF
1650
1651
1652 # Keep a trace of the command line.
1653 # Strip out --no-create and --no-recursion so they do not pile up.
1654 # Strip out --silent because we don't want to record it for future runs.
1655 # Also quote any args containing shell meta-characters.
1656 # Make two passes to allow for proper duplicate-argument suppression.
1657 ac_configure_args=
1658 ac_configure_args0=
1659 ac_configure_args1=
1660 ac_must_keep_next=false
1661 for ac_pass in 1 2
1662 do
1663   for ac_arg
1664   do
1665     case $ac_arg in
1666     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1667     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1668     | -silent | --silent | --silen | --sile | --sil)
1669       continue ;;
1670     *\'*)
1671       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672     esac
1673     case $ac_pass in
1674     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1675     2)
1676       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1677       if test $ac_must_keep_next = true; then
1678         ac_must_keep_next=false # Got value, back to normal.
1679       else
1680         case $ac_arg in
1681           *=* | --config-cache | -C | -disable-* | --disable-* \
1682           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1683           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1684           | -with-* | --with-* | -without-* | --without-* | --x)
1685             case "$ac_configure_args0 " in
1686               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687             esac
1688             ;;
1689           -* ) ac_must_keep_next=true ;;
1690         esac
1691       fi
1692       ac_configure_args="$ac_configure_args '$ac_arg'"
1693       ;;
1694     esac
1695   done
1696 done
1697 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1698 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1699
1700 # When interrupted or exit'd, cleanup temporary files, and complete
1701 # config.log.  We remove comments because anyway the quotes in there
1702 # would cause problems or look ugly.
1703 # WARNING: Use '\'' to represent an apostrophe within the trap.
1704 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1705 trap 'exit_status=$?
1706   # Save into config.log some information that might help in debugging.
1707   {
1708     echo
1709
1710     cat <<\_ASBOX
1711 ## ---------------- ##
1712 ## Cache variables. ##
1713 ## ---------------- ##
1714 _ASBOX
1715     echo
1716     # The following way of writing the cache mishandles newlines in values,
1717 (
1718   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1719     eval ac_val=\$$ac_var
1720     case $ac_val in #(
1721     *${as_nl}*)
1722       case $ac_var in #(
1723       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1724 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725       esac
1726       case $ac_var in #(
1727       _ | IFS | as_nl) ;; #(
1728       *) $as_unset $ac_var ;;
1729       esac ;;
1730     esac
1731   done
1732   (set) 2>&1 |
1733     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1734     *${as_nl}ac_space=\ *)
1735       sed -n \
1736         "s/'\''/'\''\\\\'\'''\''/g;
1737           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738       ;; #(
1739     *)
1740       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1741       ;;
1742     esac |
1743     sort
1744 )
1745     echo
1746
1747     cat <<\_ASBOX
1748 ## ----------------- ##
1749 ## Output variables. ##
1750 ## ----------------- ##
1751 _ASBOX
1752     echo
1753     for ac_var in $ac_subst_vars
1754     do
1755       eval ac_val=\$$ac_var
1756       case $ac_val in
1757       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758       esac
1759       echo "$ac_var='\''$ac_val'\''"
1760     done | sort
1761     echo
1762
1763     if test -n "$ac_subst_files"; then
1764       cat <<\_ASBOX
1765 ## ------------------- ##
1766 ## File substitutions. ##
1767 ## ------------------- ##
1768 _ASBOX
1769       echo
1770       for ac_var in $ac_subst_files
1771       do
1772         eval ac_val=\$$ac_var
1773         case $ac_val in
1774         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775         esac
1776         echo "$ac_var='\''$ac_val'\''"
1777       done | sort
1778       echo
1779     fi
1780
1781     if test -s confdefs.h; then
1782       cat <<\_ASBOX
1783 ## ----------- ##
1784 ## confdefs.h. ##
1785 ## ----------- ##
1786 _ASBOX
1787       echo
1788       cat confdefs.h
1789       echo
1790     fi
1791     test "$ac_signal" != 0 &&
1792       echo "$as_me: caught signal $ac_signal"
1793     echo "$as_me: exit $exit_status"
1794   } >&5
1795   rm -f core *.core core.conftest.* &&
1796     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797     exit $exit_status
1798 ' 0
1799 for ac_signal in 1 2 13 15; do
1800   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1801 done
1802 ac_signal=0
1803
1804 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1805 rm -f -r conftest* confdefs.h
1806
1807 # Predefined preprocessor variables.
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_NAME "$PACKAGE_NAME"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1816 _ACEOF
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_STRING "$PACKAGE_STRING"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1831 _ACEOF
1832
1833
1834 # Let the site file select an alternate cache file if it wants to.
1835 # Prefer explicitly selected file to automatically selected ones.
1836 if test -n "$CONFIG_SITE"; then
1837   set x "$CONFIG_SITE"
1838 elif test "x$prefix" != xNONE; then
1839   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1840 else
1841   set x "$ac_default_prefix/share/config.site" \
1842         "$ac_default_prefix/etc/config.site"
1843 fi
1844 shift
1845 for ac_site_file
1846 do
1847   if test -r "$ac_site_file"; then
1848     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1849 echo "$as_me: loading site script $ac_site_file" >&6;}
1850     sed 's/^/| /' "$ac_site_file" >&5
1851     . "$ac_site_file"
1852   fi
1853 done
1854
1855 if test -r "$cache_file"; then
1856   # Some versions of bash will fail to source /dev/null (special
1857   # files actually), so we avoid doing that.
1858   if test -f "$cache_file"; then
1859     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1860 echo "$as_me: loading cache $cache_file" >&6;}
1861     case $cache_file in
1862       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1863       *)                      . "./$cache_file";;
1864     esac
1865   fi
1866 else
1867   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1868 echo "$as_me: creating cache $cache_file" >&6;}
1869   >$cache_file
1870 fi
1871
1872 # Check that the precious variables saved in the cache have kept the same
1873 # value.
1874 ac_cache_corrupted=false
1875 for ac_var in $ac_precious_vars; do
1876   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1877   eval ac_new_set=\$ac_env_${ac_var}_set
1878   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1879   eval ac_new_val=\$ac_env_${ac_var}_value
1880   case $ac_old_set,$ac_new_set in
1881     set,)
1882       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1884       ac_cache_corrupted=: ;;
1885     ,set)
1886       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1887 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1888       ac_cache_corrupted=: ;;
1889     ,);;
1890     *)
1891       if test "x$ac_old_val" != "x$ac_new_val"; then
1892         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1893 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1894         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1895 echo "$as_me:   former value:  $ac_old_val" >&2;}
1896         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1897 echo "$as_me:   current value: $ac_new_val" >&2;}
1898         ac_cache_corrupted=:
1899       fi;;
1900   esac
1901   # Pass precious variables to config.status.
1902   if test "$ac_new_set" = set; then
1903     case $ac_new_val in
1904     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1905     *) ac_arg=$ac_var=$ac_new_val ;;
1906     esac
1907     case " $ac_configure_args " in
1908       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1909       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1910     esac
1911   fi
1912 done
1913 if $ac_cache_corrupted; then
1914   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1915 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1916   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1917 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1918    { (exit 1); exit 1; }; }
1919 fi
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945 ac_ext=c
1946 ac_cpp='$CPP $CPPFLAGS'
1947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1950
1951
1952
1953 LLVM_VERSION_MAJOR=3
1954 LLVM_VERSION_MINOR=7
1955 LLVM_VERSION_PATCH=0
1956 LLVM_VERSION_SUFFIX=svn
1957
1958
1959 cat >>confdefs.h <<_ACEOF
1960 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1961 _ACEOF
1962
1963
1964 cat >>confdefs.h <<_ACEOF
1965 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1966 _ACEOF
1967
1968
1969 cat >>confdefs.h <<_ACEOF
1970 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1971 _ACEOF
1972
1973
1974 cat >>confdefs.h <<_ACEOF
1975 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1976 _ACEOF
1977
1978
1979
1980
1981
1982
1983
1984 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1985
1986
1987
1988
1989
1990
1991
1992 ac_aux_dir=
1993 for ac_dir in autoconf "$srcdir"/autoconf; do
1994   if test -f "$ac_dir/install-sh"; then
1995     ac_aux_dir=$ac_dir
1996     ac_install_sh="$ac_aux_dir/install-sh -c"
1997     break
1998   elif test -f "$ac_dir/install.sh"; then
1999     ac_aux_dir=$ac_dir
2000     ac_install_sh="$ac_aux_dir/install.sh -c"
2001     break
2002   elif test -f "$ac_dir/shtool"; then
2003     ac_aux_dir=$ac_dir
2004     ac_install_sh="$ac_aux_dir/shtool install -c"
2005     break
2006   fi
2007 done
2008 if test -z "$ac_aux_dir"; then
2009   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2010 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2011    { (exit 1); exit 1; }; }
2012 fi
2013
2014 # These three variables are undocumented and unsupported,
2015 # and are intended to be withdrawn in a future Autoconf release.
2016 # They can cause serious problems if a builder's source tree is in a directory
2017 # whose full name contains unusual characters.
2018 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2019 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2020 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2021
2022
2023
2024 if test ${srcdir} != "." ; then
2025   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2026     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2027 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2028    { (exit 1); exit 1; }; }
2029   fi
2030 fi
2031
2032 : ${CFLAGS=}
2033 : ${CXXFLAGS=}
2034
2035 ac_ext=c
2036 ac_cpp='$CPP $CPPFLAGS'
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 if test -n "$ac_tool_prefix"; then
2041   for ac_prog in clang gcc
2042   do
2043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2044 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047 if test "${ac_cv_prog_CC+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   if test -n "$CC"; then
2051   ac_cv_prog_CC="$CC" # Let the user override the test.
2052 else
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058   for ac_exec_ext in '' $ac_executable_extensions; do
2059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2060     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063   fi
2064 done
2065 done
2066 IFS=$as_save_IFS
2067
2068 fi
2069 fi
2070 CC=$ac_cv_prog_CC
2071 if test -n "$CC"; then
2072   { echo "$as_me:$LINENO: result: $CC" >&5
2073 echo "${ECHO_T}$CC" >&6; }
2074 else
2075   { echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6; }
2077 fi
2078
2079
2080     test -n "$CC" && break
2081   done
2082 fi
2083 if test -z "$CC"; then
2084   ac_ct_CC=$CC
2085   for ac_prog in clang gcc
2086 do
2087   # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy $ac_prog; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2092   echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094   if test -n "$ac_ct_CC"; then
2095   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2096 else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100   IFS=$as_save_IFS
2101   test -z "$as_dir" && as_dir=.
2102   for ac_exec_ext in '' $ac_executable_extensions; do
2103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2104     ac_cv_prog_ac_ct_CC="$ac_prog"
2105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106     break 2
2107   fi
2108 done
2109 done
2110 IFS=$as_save_IFS
2111
2112 fi
2113 fi
2114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115 if test -n "$ac_ct_CC"; then
2116   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117 echo "${ECHO_T}$ac_ct_CC" >&6; }
2118 else
2119   { echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6; }
2121 fi
2122
2123
2124   test -n "$ac_ct_CC" && break
2125 done
2126
2127   if test "x$ac_ct_CC" = x; then
2128     CC=""
2129   else
2130     case $cross_compiling:$ac_tool_warned in
2131 yes:)
2132 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2133 whose name does not start with the host triplet.  If you think this
2134 configuration is useful to you, please write to autoconf@gnu.org." >&5
2135 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2136 whose name does not start with the host triplet.  If you think this
2137 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2138 ac_tool_warned=yes ;;
2139 esac
2140     CC=$ac_ct_CC
2141   fi
2142 fi
2143
2144
2145 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2146 See \`config.log' for more details." >&5
2147 echo "$as_me: error: no acceptable C compiler found in \$PATH
2148 See \`config.log' for more details." >&2;}
2149    { (exit 1); exit 1; }; }
2150
2151 # Provide some information about the compiler.
2152 echo "$as_me:$LINENO: checking for C compiler version" >&5
2153 ac_compiler=`set X $ac_compile; echo $2`
2154 { (ac_try="$ac_compiler --version >&5"
2155 case "(($ac_try" in
2156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157   *) ac_try_echo=$ac_try;;
2158 esac
2159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2160   (eval "$ac_compiler --version >&5") 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }
2164 { (ac_try="$ac_compiler -v >&5"
2165 case "(($ac_try" in
2166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167   *) ac_try_echo=$ac_try;;
2168 esac
2169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2170   (eval "$ac_compiler -v >&5") 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }
2174 { (ac_try="$ac_compiler -V >&5"
2175 case "(($ac_try" in
2176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177   *) ac_try_echo=$ac_try;;
2178 esac
2179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2180   (eval "$ac_compiler -V >&5") 2>&5
2181   ac_status=$?
2182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183   (exit $ac_status); }
2184
2185 cat >conftest.$ac_ext <<_ACEOF
2186 /* confdefs.h.  */
2187 _ACEOF
2188 cat confdefs.h >>conftest.$ac_ext
2189 cat >>conftest.$ac_ext <<_ACEOF
2190 /* end confdefs.h.  */
2191
2192 int
2193 main ()
2194 {
2195
2196   ;
2197   return 0;
2198 }
2199 _ACEOF
2200 ac_clean_files_save=$ac_clean_files
2201 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2202 # Try to create an executable without -o first, disregard a.out.
2203 # It will help us diagnose broken compilers, and finding out an intuition
2204 # of exeext.
2205 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2206 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2207 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2208 #
2209 # List of possible output files, starting from the most likely.
2210 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2211 # only as a last resort.  b.out is created by i960 compilers.
2212 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2213 #
2214 # The IRIX 6 linker writes into existing files which may not be
2215 # executable, retaining their permissions.  Remove them first so a
2216 # subsequent execution test works.
2217 ac_rmfiles=
2218 for ac_file in $ac_files
2219 do
2220   case $ac_file in
2221     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2222     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2223   esac
2224 done
2225 rm -f $ac_rmfiles
2226
2227 if { (ac_try="$ac_link_default"
2228 case "(($ac_try" in
2229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230   *) ac_try_echo=$ac_try;;
2231 esac
2232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2233   (eval "$ac_link_default") 2>&5
2234   ac_status=$?
2235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2236   (exit $ac_status); }; then
2237   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2238 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2239 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2240 # so that the user can short-circuit this test for compilers unknown to
2241 # Autoconf.
2242 for ac_file in $ac_files
2243 do
2244   test -f "$ac_file" || continue
2245   case $ac_file in
2246     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2247         ;;
2248     [ab].out )
2249         # We found the default executable, but exeext='' is most
2250         # certainly right.
2251         break;;
2252     *.* )
2253         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2254         then :; else
2255            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2256         fi
2257         # We set ac_cv_exeext here because the later test for it is not
2258         # safe: cross compilers may not add the suffix if given an `-o'
2259         # argument, so we may need to know it at that point already.
2260         # Even if this section looks crufty: it has the advantage of
2261         # actually working.
2262         break;;
2263     * )
2264         break;;
2265   esac
2266 done
2267 test "$ac_cv_exeext" = no && ac_cv_exeext=
2268
2269 else
2270   echo "$as_me: failed program was:" >&5
2271 sed 's/^/| /' conftest.$ac_ext >&5
2272
2273 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2274 See \`config.log' for more details." >&5
2275 echo "$as_me: error: C compiler cannot create executables
2276 See \`config.log' for more details." >&2;}
2277    { (exit 77); exit 77; }; }
2278 fi
2279
2280 ac_exeext=$ac_cv_exeext
2281 { echo "$as_me:$LINENO: result: $ac_file" >&5
2282 echo "${ECHO_T}$ac_file" >&6; }
2283
2284 # Check that the compiler produces executables we can run.  If not, either
2285 # the compiler is broken, or we cross compile.
2286 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2287 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2288 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2289 # If not cross compiling, check that we can run a simple program.
2290 if test "$cross_compiling" != yes; then
2291   if { ac_try='./$ac_file'
2292   { (case "(($ac_try" in
2293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294   *) ac_try_echo=$ac_try;;
2295 esac
2296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2297   (eval "$ac_try") 2>&5
2298   ac_status=$?
2299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300   (exit $ac_status); }; }; then
2301     cross_compiling=no
2302   else
2303     if test "$cross_compiling" = maybe; then
2304         cross_compiling=yes
2305     else
2306         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2307 If you meant to cross compile, use \`--host'.
2308 See \`config.log' for more details." >&5
2309 echo "$as_me: error: cannot run C compiled programs.
2310 If you meant to cross compile, use \`--host'.
2311 See \`config.log' for more details." >&2;}
2312    { (exit 1); exit 1; }; }
2313     fi
2314   fi
2315 fi
2316 { echo "$as_me:$LINENO: result: yes" >&5
2317 echo "${ECHO_T}yes" >&6; }
2318
2319 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2320 ac_clean_files=$ac_clean_files_save
2321 # Check that the compiler produces executables we can run.  If not, either
2322 # the compiler is broken, or we cross compile.
2323 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2324 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2325 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2326 echo "${ECHO_T}$cross_compiling" >&6; }
2327
2328 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2329 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2330 if { (ac_try="$ac_link"
2331 case "(($ac_try" in
2332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333   *) ac_try_echo=$ac_try;;
2334 esac
2335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2336   (eval "$ac_link") 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; then
2340   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2341 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2342 # work properly (i.e., refer to `conftest.exe'), while it won't with
2343 # `rm'.
2344 for ac_file in conftest.exe conftest conftest.*; do
2345   test -f "$ac_file" || continue
2346   case $ac_file in
2347     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2348     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2349           break;;
2350     * ) break;;
2351   esac
2352 done
2353 else
2354   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2355 See \`config.log' for more details." >&5
2356 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2357 See \`config.log' for more details." >&2;}
2358    { (exit 1); exit 1; }; }
2359 fi
2360
2361 rm -f conftest$ac_cv_exeext
2362 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2363 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2364
2365 rm -f conftest.$ac_ext
2366 EXEEXT=$ac_cv_exeext
2367 ac_exeext=$EXEEXT
2368 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2369 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2370 if test "${ac_cv_objext+set}" = set; then
2371   echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373   cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h.  */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h.  */
2379
2380 int
2381 main ()
2382 {
2383
2384   ;
2385   return 0;
2386 }
2387 _ACEOF
2388 rm -f conftest.o conftest.obj
2389 if { (ac_try="$ac_compile"
2390 case "(($ac_try" in
2391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392   *) ac_try_echo=$ac_try;;
2393 esac
2394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2395   (eval "$ac_compile") 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; then
2399   for ac_file in conftest.o conftest.obj conftest.*; do
2400   test -f "$ac_file" || continue;
2401   case $ac_file in
2402     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2403     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2404        break;;
2405   esac
2406 done
2407 else
2408   echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2410
2411 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2412 See \`config.log' for more details." >&5
2413 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2414 See \`config.log' for more details." >&2;}
2415    { (exit 1); exit 1; }; }
2416 fi
2417
2418 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2419 fi
2420 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2421 echo "${ECHO_T}$ac_cv_objext" >&6; }
2422 OBJEXT=$ac_cv_objext
2423 ac_objext=$OBJEXT
2424 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2425 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2426 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   cat >conftest.$ac_ext <<_ACEOF
2430 /* confdefs.h.  */
2431 _ACEOF
2432 cat confdefs.h >>conftest.$ac_ext
2433 cat >>conftest.$ac_ext <<_ACEOF
2434 /* end confdefs.h.  */
2435
2436 int
2437 main ()
2438 {
2439 #ifndef __GNUC__
2440        choke me
2441 #endif
2442
2443   ;
2444   return 0;
2445 }
2446 _ACEOF
2447 rm -f conftest.$ac_objext
2448 if { (ac_try="$ac_compile"
2449 case "(($ac_try" in
2450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451   *) ac_try_echo=$ac_try;;
2452 esac
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454   (eval "$ac_compile") 2>conftest.er1
2455   ac_status=$?
2456   grep -v '^ *+' conftest.er1 >conftest.err
2457   rm -f conftest.er1
2458   cat conftest.err >&5
2459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); } &&
2461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2462   { (case "(($ac_try" in
2463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464   *) ac_try_echo=$ac_try;;
2465 esac
2466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2467   (eval "$ac_try") 2>&5
2468   ac_status=$?
2469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470   (exit $ac_status); }; } &&
2471          { ac_try='test -s conftest.$ac_objext'
2472   { (case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2477   (eval "$ac_try") 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; }; then
2481   ac_compiler_gnu=yes
2482 else
2483   echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2485
2486         ac_compiler_gnu=no
2487 fi
2488
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2491
2492 fi
2493 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2494 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2495 GCC=`test $ac_compiler_gnu = yes && echo yes`
2496 ac_test_CFLAGS=${CFLAGS+set}
2497 ac_save_CFLAGS=$CFLAGS
2498 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2499 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2500 if test "${ac_cv_prog_cc_g+set}" = set; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   ac_save_c_werror_flag=$ac_c_werror_flag
2504    ac_c_werror_flag=yes
2505    ac_cv_prog_cc_g=no
2506    CFLAGS="-g"
2507    cat >conftest.$ac_ext <<_ACEOF
2508 /* confdefs.h.  */
2509 _ACEOF
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h.  */
2513
2514 int
2515 main ()
2516 {
2517
2518   ;
2519   return 0;
2520 }
2521 _ACEOF
2522 rm -f conftest.$ac_objext
2523 if { (ac_try="$ac_compile"
2524 case "(($ac_try" in
2525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526   *) ac_try_echo=$ac_try;;
2527 esac
2528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2529   (eval "$ac_compile") 2>conftest.er1
2530   ac_status=$?
2531   grep -v '^ *+' conftest.er1 >conftest.err
2532   rm -f conftest.er1
2533   cat conftest.err >&5
2534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535   (exit $ac_status); } &&
2536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2537   { (case "(($ac_try" in
2538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2539   *) ac_try_echo=$ac_try;;
2540 esac
2541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2542   (eval "$ac_try") 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; } &&
2546          { ac_try='test -s conftest.$ac_objext'
2547   { (case "(($ac_try" in
2548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2549   *) ac_try_echo=$ac_try;;
2550 esac
2551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2552   (eval "$ac_try") 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; }; then
2556   ac_cv_prog_cc_g=yes
2557 else
2558   echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2560
2561         CFLAGS=""
2562       cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h.  */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h.  */
2568
2569 int
2570 main ()
2571 {
2572
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2579 case "(($ac_try" in
2580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581   *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584   (eval "$ac_compile") 2>conftest.er1
2585   ac_status=$?
2586   grep -v '^ *+' conftest.er1 >conftest.err
2587   rm -f conftest.er1
2588   cat conftest.err >&5
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); } &&
2591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2592   { (case "(($ac_try" in
2593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2594   *) ac_try_echo=$ac_try;;
2595 esac
2596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2597   (eval "$ac_try") 2>&5
2598   ac_status=$?
2599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600   (exit $ac_status); }; } &&
2601          { ac_try='test -s conftest.$ac_objext'
2602   { (case "(($ac_try" in
2603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2604   *) ac_try_echo=$ac_try;;
2605 esac
2606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2607   (eval "$ac_try") 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; }; then
2611   :
2612 else
2613   echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2615
2616         ac_c_werror_flag=$ac_save_c_werror_flag
2617          CFLAGS="-g"
2618          cat >conftest.$ac_ext <<_ACEOF
2619 /* confdefs.h.  */
2620 _ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h.  */
2624
2625 int
2626 main ()
2627 {
2628
2629   ;
2630   return 0;
2631 }
2632 _ACEOF
2633 rm -f conftest.$ac_objext
2634 if { (ac_try="$ac_compile"
2635 case "(($ac_try" in
2636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637   *) ac_try_echo=$ac_try;;
2638 esac
2639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640   (eval "$ac_compile") 2>conftest.er1
2641   ac_status=$?
2642   grep -v '^ *+' conftest.er1 >conftest.err
2643   rm -f conftest.er1
2644   cat conftest.err >&5
2645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646   (exit $ac_status); } &&
2647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2648   { (case "(($ac_try" in
2649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2650   *) ac_try_echo=$ac_try;;
2651 esac
2652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2653   (eval "$ac_try") 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; } &&
2657          { ac_try='test -s conftest.$ac_objext'
2658   { (case "(($ac_try" in
2659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2660   *) ac_try_echo=$ac_try;;
2661 esac
2662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2663   (eval "$ac_try") 2>&5
2664   ac_status=$?
2665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666   (exit $ac_status); }; }; then
2667   ac_cv_prog_cc_g=yes
2668 else
2669   echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672
2673 fi
2674
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676 fi
2677
2678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 fi
2680
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682    ac_c_werror_flag=$ac_save_c_werror_flag
2683 fi
2684 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2685 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2686 if test "$ac_test_CFLAGS" = set; then
2687   CFLAGS=$ac_save_CFLAGS
2688 elif test $ac_cv_prog_cc_g = yes; then
2689   if test "$GCC" = yes; then
2690     CFLAGS="-g -O2"
2691   else
2692     CFLAGS="-g"
2693   fi
2694 else
2695   if test "$GCC" = yes; then
2696     CFLAGS="-O2"
2697   else
2698     CFLAGS=
2699   fi
2700 fi
2701 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2702 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2703 if test "${ac_cv_prog_cc_c89+set}" = set; then
2704   echo $ECHO_N "(cached) $ECHO_C" >&6
2705 else
2706   ac_cv_prog_cc_c89=no
2707 ac_save_CC=$CC
2708 cat >conftest.$ac_ext <<_ACEOF
2709 /* confdefs.h.  */
2710 _ACEOF
2711 cat confdefs.h >>conftest.$ac_ext
2712 cat >>conftest.$ac_ext <<_ACEOF
2713 /* end confdefs.h.  */
2714 #include <stdarg.h>
2715 #include <stdio.h>
2716 #include <sys/types.h>
2717 #include <sys/stat.h>
2718 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2719 struct buf { int x; };
2720 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2721 static char *e (p, i)
2722      char **p;
2723      int i;
2724 {
2725   return p[i];
2726 }
2727 static char *f (char * (*g) (char **, int), char **p, ...)
2728 {
2729   char *s;
2730   va_list v;
2731   va_start (v,p);
2732   s = g (p, va_arg (v,int));
2733   va_end (v);
2734   return s;
2735 }
2736
2737 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2738    function prototypes and stuff, but not '\xHH' hex character constants.
2739    These don't provoke an error unfortunately, instead are silently treated
2740    as 'x'.  The following induces an error, until -std is added to get
2741    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2742    array size at least.  It's necessary to write '\x00'==0 to get something
2743    that's true only with -std.  */
2744 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2745
2746 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2747    inside strings and character constants.  */
2748 #define FOO(x) 'x'
2749 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2750
2751 int test (int i, double x);
2752 struct s1 {int (*f) (int a);};
2753 struct s2 {int (*f) (double a);};
2754 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2755 int argc;
2756 char **argv;
2757 int
2758 main ()
2759 {
2760 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2761   ;
2762   return 0;
2763 }
2764 _ACEOF
2765 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2766         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2767 do
2768   CC="$ac_save_CC $ac_arg"
2769   rm -f conftest.$ac_objext
2770 if { (ac_try="$ac_compile"
2771 case "(($ac_try" in
2772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773   *) ac_try_echo=$ac_try;;
2774 esac
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776   (eval "$ac_compile") 2>conftest.er1
2777   ac_status=$?
2778   grep -v '^ *+' conftest.er1 >conftest.err
2779   rm -f conftest.er1
2780   cat conftest.err >&5
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); } &&
2783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2784   { (case "(($ac_try" in
2785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786   *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789   (eval "$ac_try") 2>&5
2790   ac_status=$?
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); }; } &&
2793          { ac_try='test -s conftest.$ac_objext'
2794   { (case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799   (eval "$ac_try") 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; }; then
2803   ac_cv_prog_cc_c89=$ac_arg
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808
2809 fi
2810
2811 rm -f core conftest.err conftest.$ac_objext
2812   test "x$ac_cv_prog_cc_c89" != "xno" && break
2813 done
2814 rm -f conftest.$ac_ext
2815 CC=$ac_save_CC
2816
2817 fi
2818 # AC_CACHE_VAL
2819 case "x$ac_cv_prog_cc_c89" in
2820   x)
2821     { echo "$as_me:$LINENO: result: none needed" >&5
2822 echo "${ECHO_T}none needed" >&6; } ;;
2823   xno)
2824     { echo "$as_me:$LINENO: result: unsupported" >&5
2825 echo "${ECHO_T}unsupported" >&6; } ;;
2826   *)
2827     CC="$CC $ac_cv_prog_cc_c89"
2828     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2829 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2830 esac
2831
2832
2833 ac_ext=c
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838
2839 ac_ext=cpp
2840 ac_cpp='$CXXCPP $CPPFLAGS'
2841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2844 if test -z "$CXX"; then
2845   if test -n "$CCC"; then
2846     CXX=$CCC
2847   else
2848     if test -n "$ac_tool_prefix"; then
2849   for ac_prog in clang++ g++
2850   do
2851     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2855 if test "${ac_cv_prog_CXX+set}" = set; then
2856   echo $ECHO_N "(cached) $ECHO_C" >&6
2857 else
2858   if test -n "$CXX"; then
2859   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864   IFS=$as_save_IFS
2865   test -z "$as_dir" && as_dir=.
2866   for ac_exec_ext in '' $ac_executable_extensions; do
2867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2868     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870     break 2
2871   fi
2872 done
2873 done
2874 IFS=$as_save_IFS
2875
2876 fi
2877 fi
2878 CXX=$ac_cv_prog_CXX
2879 if test -n "$CXX"; then
2880   { echo "$as_me:$LINENO: result: $CXX" >&5
2881 echo "${ECHO_T}$CXX" >&6; }
2882 else
2883   { echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6; }
2885 fi
2886
2887
2888     test -n "$CXX" && break
2889   done
2890 fi
2891 if test -z "$CXX"; then
2892   ac_ct_CXX=$CXX
2893   for ac_prog in clang++ g++
2894 do
2895   # Extract the first word of "$ac_prog", so it can be a program name with args.
2896 set dummy $ac_prog; ac_word=$2
2897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2899 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2900   echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902   if test -n "$ac_ct_CXX"; then
2903   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908   IFS=$as_save_IFS
2909   test -z "$as_dir" && as_dir=.
2910   for ac_exec_ext in '' $ac_executable_extensions; do
2911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2912     ac_cv_prog_ac_ct_CXX="$ac_prog"
2913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914     break 2
2915   fi
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2923 if test -n "$ac_ct_CXX"; then
2924   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2925 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2926 else
2927   { echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6; }
2929 fi
2930
2931
2932   test -n "$ac_ct_CXX" && break
2933 done
2934
2935   if test "x$ac_ct_CXX" = x; then
2936     CXX="g++"
2937   else
2938     case $cross_compiling:$ac_tool_warned in
2939 yes:)
2940 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2941 whose name does not start with the host triplet.  If you think this
2942 configuration is useful to you, please write to autoconf@gnu.org." >&5
2943 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2944 whose name does not start with the host triplet.  If you think this
2945 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2946 ac_tool_warned=yes ;;
2947 esac
2948     CXX=$ac_ct_CXX
2949   fi
2950 fi
2951
2952   fi
2953 fi
2954 # Provide some information about the compiler.
2955 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2956 ac_compiler=`set X $ac_compile; echo $2`
2957 { (ac_try="$ac_compiler --version >&5"
2958 case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963   (eval "$ac_compiler --version >&5") 2>&5
2964   ac_status=$?
2965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966   (exit $ac_status); }
2967 { (ac_try="$ac_compiler -v >&5"
2968 case "(($ac_try" in
2969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970   *) ac_try_echo=$ac_try;;
2971 esac
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973   (eval "$ac_compiler -v >&5") 2>&5
2974   ac_status=$?
2975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976   (exit $ac_status); }
2977 { (ac_try="$ac_compiler -V >&5"
2978 case "(($ac_try" in
2979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980   *) ac_try_echo=$ac_try;;
2981 esac
2982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983   (eval "$ac_compiler -V >&5") 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }
2987
2988 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2989 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2990 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2991   echo $ECHO_N "(cached) $ECHO_C" >&6
2992 else
2993   cat >conftest.$ac_ext <<_ACEOF
2994 /* confdefs.h.  */
2995 _ACEOF
2996 cat confdefs.h >>conftest.$ac_ext
2997 cat >>conftest.$ac_ext <<_ACEOF
2998 /* end confdefs.h.  */
2999
3000 int
3001 main ()
3002 {
3003 #ifndef __GNUC__
3004        choke me
3005 #endif
3006
3007   ;
3008   return 0;
3009 }
3010 _ACEOF
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3013 case "(($ac_try" in
3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015   *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018   (eval "$ac_compile") 2>conftest.er1
3019   ac_status=$?
3020   grep -v '^ *+' conftest.er1 >conftest.err
3021   rm -f conftest.er1
3022   cat conftest.err >&5
3023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024   (exit $ac_status); } &&
3025          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3026   { (case "(($ac_try" in
3027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028   *) ac_try_echo=$ac_try;;
3029 esac
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031   (eval "$ac_try") 2>&5
3032   ac_status=$?
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); }; } &&
3035          { ac_try='test -s conftest.$ac_objext'
3036   { (case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_try") 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; }; then
3045   ac_compiler_gnu=yes
3046 else
3047   echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050         ac_compiler_gnu=no
3051 fi
3052
3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3055
3056 fi
3057 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3058 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3059 GXX=`test $ac_compiler_gnu = yes && echo yes`
3060 ac_test_CXXFLAGS=${CXXFLAGS+set}
3061 ac_save_CXXFLAGS=$CXXFLAGS
3062 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3063 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_cxx_g+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3068    ac_cxx_werror_flag=yes
3069    ac_cv_prog_cxx_g=no
3070    CXXFLAGS="-g"
3071    cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h.  */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h.  */
3077
3078 int
3079 main ()
3080 {
3081
3082   ;
3083   return 0;
3084 }
3085 _ACEOF
3086 rm -f conftest.$ac_objext
3087 if { (ac_try="$ac_compile"
3088 case "(($ac_try" in
3089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090   *) ac_try_echo=$ac_try;;
3091 esac
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093   (eval "$ac_compile") 2>conftest.er1
3094   ac_status=$?
3095   grep -v '^ *+' conftest.er1 >conftest.err
3096   rm -f conftest.er1
3097   cat conftest.err >&5
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); } &&
3100          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3101   { (case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_try") 2>&5
3107   ac_status=$?
3108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109   (exit $ac_status); }; } &&
3110          { ac_try='test -s conftest.$ac_objext'
3111   { (case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116   (eval "$ac_try") 2>&5
3117   ac_status=$?
3118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119   (exit $ac_status); }; }; then
3120   ac_cv_prog_cxx_g=yes
3121 else
3122   echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125         CXXFLAGS=""
3126       cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h.  */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h.  */
3132
3133 int
3134 main ()
3135 {
3136
3137   ;
3138   return 0;
3139 }
3140 _ACEOF
3141 rm -f conftest.$ac_objext
3142 if { (ac_try="$ac_compile"
3143 case "(($ac_try" in
3144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145   *) ac_try_echo=$ac_try;;
3146 esac
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148   (eval "$ac_compile") 2>conftest.er1
3149   ac_status=$?
3150   grep -v '^ *+' conftest.er1 >conftest.err
3151   rm -f conftest.er1
3152   cat conftest.err >&5
3153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154   (exit $ac_status); } &&
3155          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3156   { (case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161   (eval "$ac_try") 2>&5
3162   ac_status=$?
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); }; } &&
3165          { ac_try='test -s conftest.$ac_objext'
3166   { (case "(($ac_try" in
3167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168   *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171   (eval "$ac_try") 2>&5
3172   ac_status=$?
3173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174   (exit $ac_status); }; }; then
3175   :
3176 else
3177   echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3179
3180         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3181          CXXFLAGS="-g"
3182          cat >conftest.$ac_ext <<_ACEOF
3183 /* confdefs.h.  */
3184 _ACEOF
3185 cat confdefs.h >>conftest.$ac_ext
3186 cat >>conftest.$ac_ext <<_ACEOF
3187 /* end confdefs.h.  */
3188
3189 int
3190 main ()
3191 {
3192
3193   ;
3194   return 0;
3195 }
3196 _ACEOF
3197 rm -f conftest.$ac_objext
3198 if { (ac_try="$ac_compile"
3199 case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204   (eval "$ac_compile") 2>conftest.er1
3205   ac_status=$?
3206   grep -v '^ *+' conftest.er1 >conftest.err
3207   rm -f conftest.er1
3208   cat conftest.err >&5
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } &&
3211          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3212   { (case "(($ac_try" in
3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214   *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217   (eval "$ac_try") 2>&5
3218   ac_status=$?
3219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220   (exit $ac_status); }; } &&
3221          { ac_try='test -s conftest.$ac_objext'
3222   { (case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227   (eval "$ac_try") 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }; }; then
3231   ac_cv_prog_cxx_g=yes
3232 else
3233   echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 fi
3241
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 fi
3244
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3247 fi
3248 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3249 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3250 if test "$ac_test_CXXFLAGS" = set; then
3251   CXXFLAGS=$ac_save_CXXFLAGS
3252 elif test $ac_cv_prog_cxx_g = yes; then
3253   if test "$GXX" = yes; then
3254     CXXFLAGS="-g -O2"
3255   else
3256     CXXFLAGS="-g"
3257   fi
3258 else
3259   if test "$GXX" = yes; then
3260     CXXFLAGS="-O2"
3261   else
3262     CXXFLAGS=
3263   fi
3264 fi
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270
3271 ac_ext=c
3272 ac_cpp='$CPP $CPPFLAGS'
3273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3276 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3277 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3278 # On Suns, sometimes $CPP names a directory.
3279 if test -n "$CPP" && test -d "$CPP"; then
3280   CPP=
3281 fi
3282 if test -z "$CPP"; then
3283   if test "${ac_cv_prog_CPP+set}" = set; then
3284   echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286       # Double quotes because CPP needs to be expanded
3287     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3288     do
3289       ac_preproc_ok=false
3290 for ac_c_preproc_warn_flag in '' yes
3291 do
3292   # Use a header file that comes with gcc, so configuring glibc
3293   # with a fresh cross-compiler works.
3294   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3295   # <limits.h> exists even on freestanding compilers.
3296   # On the NeXT, cc -E runs the code through the compiler's parser,
3297   # not just through cpp. "Syntax error" is here to catch this case.
3298   cat >conftest.$ac_ext <<_ACEOF
3299 /* confdefs.h.  */
3300 _ACEOF
3301 cat confdefs.h >>conftest.$ac_ext
3302 cat >>conftest.$ac_ext <<_ACEOF
3303 /* end confdefs.h.  */
3304 #ifdef __STDC__
3305 # include <limits.h>
3306 #else
3307 # include <assert.h>
3308 #endif
3309                      Syntax error
3310 _ACEOF
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3318   ac_status=$?
3319   grep -v '^ *+' conftest.er1 >conftest.err
3320   rm -f conftest.er1
3321   cat conftest.err >&5
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); } >/dev/null; then
3324   if test -s conftest.err; then
3325     ac_cpp_err=$ac_c_preproc_warn_flag
3326     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3327   else
3328     ac_cpp_err=
3329   fi
3330 else
3331   ac_cpp_err=yes
3332 fi
3333 if test -z "$ac_cpp_err"; then
3334   :
3335 else
3336   echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3338
3339   # Broken: fails on valid input.
3340 continue
3341 fi
3342
3343 rm -f conftest.err conftest.$ac_ext
3344
3345   # OK, works on sane cases.  Now check whether nonexistent headers
3346   # can be detected and how.
3347   cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h.  */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h.  */
3353 #include <ac_nonexistent.h>
3354 _ACEOF
3355 if { (ac_try="$ac_cpp conftest.$ac_ext"
3356 case "(($ac_try" in
3357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358   *) ac_try_echo=$ac_try;;
3359 esac
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3362   ac_status=$?
3363   grep -v '^ *+' conftest.er1 >conftest.err
3364   rm -f conftest.er1
3365   cat conftest.err >&5
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); } >/dev/null; then
3368   if test -s conftest.err; then
3369     ac_cpp_err=$ac_c_preproc_warn_flag
3370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3371   else
3372     ac_cpp_err=
3373   fi
3374 else
3375   ac_cpp_err=yes
3376 fi
3377 if test -z "$ac_cpp_err"; then
3378   # Broken: success on invalid input.
3379 continue
3380 else
3381   echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384   # Passes both tests.
3385 ac_preproc_ok=:
3386 break
3387 fi
3388
3389 rm -f conftest.err conftest.$ac_ext
3390
3391 done
3392 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3393 rm -f conftest.err conftest.$ac_ext
3394 if $ac_preproc_ok; then
3395   break
3396 fi
3397
3398     done
3399     ac_cv_prog_CPP=$CPP
3400
3401 fi
3402   CPP=$ac_cv_prog_CPP
3403 else
3404   ac_cv_prog_CPP=$CPP
3405 fi
3406 { echo "$as_me:$LINENO: result: $CPP" >&5
3407 echo "${ECHO_T}$CPP" >&6; }
3408 ac_preproc_ok=false
3409 for ac_c_preproc_warn_flag in '' yes
3410 do
3411   # Use a header file that comes with gcc, so configuring glibc
3412   # with a fresh cross-compiler works.
3413   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414   # <limits.h> exists even on freestanding compilers.
3415   # On the NeXT, cc -E runs the code through the compiler's parser,
3416   # not just through cpp. "Syntax error" is here to catch this case.
3417   cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #ifdef __STDC__
3424 # include <limits.h>
3425 #else
3426 # include <assert.h>
3427 #endif
3428                      Syntax error
3429 _ACEOF
3430 if { (ac_try="$ac_cpp conftest.$ac_ext"
3431 case "(($ac_try" in
3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433   *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437   ac_status=$?
3438   grep -v '^ *+' conftest.er1 >conftest.err
3439   rm -f conftest.er1
3440   cat conftest.err >&5
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); } >/dev/null; then
3443   if test -s conftest.err; then
3444     ac_cpp_err=$ac_c_preproc_warn_flag
3445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3446   else
3447     ac_cpp_err=
3448   fi
3449 else
3450   ac_cpp_err=yes
3451 fi
3452 if test -z "$ac_cpp_err"; then
3453   :
3454 else
3455   echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458   # Broken: fails on valid input.
3459 continue
3460 fi
3461
3462 rm -f conftest.err conftest.$ac_ext
3463
3464   # OK, works on sane cases.  Now check whether nonexistent headers
3465   # can be detected and how.
3466   cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472 #include <ac_nonexistent.h>
3473 _ACEOF
3474 if { (ac_try="$ac_cpp conftest.$ac_ext"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3481   ac_status=$?
3482   grep -v '^ *+' conftest.er1 >conftest.err
3483   rm -f conftest.er1
3484   cat conftest.err >&5
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } >/dev/null; then
3487   if test -s conftest.err; then
3488     ac_cpp_err=$ac_c_preproc_warn_flag
3489     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3490   else
3491     ac_cpp_err=
3492   fi
3493 else
3494   ac_cpp_err=yes
3495 fi
3496 if test -z "$ac_cpp_err"; then
3497   # Broken: success on invalid input.
3498 continue
3499 else
3500   echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503   # Passes both tests.
3504 ac_preproc_ok=:
3505 break
3506 fi
3507
3508 rm -f conftest.err conftest.$ac_ext
3509
3510 done
3511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512 rm -f conftest.err conftest.$ac_ext
3513 if $ac_preproc_ok; then
3514   :
3515 else
3516   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3517 See \`config.log' for more details." >&5
3518 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3519 See \`config.log' for more details." >&2;}
3520    { (exit 1); exit 1; }; }
3521 fi
3522
3523 ac_ext=c
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528
3529
3530 if test "$CXX" = "clang++" ; then
3531   { echo "$as_me:$LINENO: checking whether clang works" >&5
3532 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3533   ac_ext=cpp
3534 ac_cpp='$CXXCPP $CPPFLAGS'
3535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3538
3539
3540 cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h.  */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h.  */
3546 #include <limits>
3547 #if __has_include (<cxxabi.h>)
3548 #include <cxxabi.h>
3549 #endif
3550 #if __has_include (<unwind.h>)
3551 #include <unwind.h>
3552 #endif
3553
3554 int
3555 main ()
3556 {
3557
3558   ;
3559   return 0;
3560 }
3561 _ACEOF
3562 rm -f conftest.$ac_objext
3563 if { (ac_try="$ac_compile"
3564 case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569   (eval "$ac_compile") 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } &&
3576          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3577   { (case "(($ac_try" in
3578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579   *) ac_try_echo=$ac_try;;
3580 esac
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582   (eval "$ac_try") 2>&5
3583   ac_status=$?
3584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585   (exit $ac_status); }; } &&
3586          { ac_try='test -s conftest.$ac_objext'
3587   { (case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592   (eval "$ac_try") 2>&5
3593   ac_status=$?
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); }; }; then
3596
3597   { echo "$as_me:$LINENO: result: yes" >&5
3598 echo "${ECHO_T}yes" >&6; }
3599
3600 else
3601   echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.$ac_ext >&5
3603
3604
3605   { echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6; }
3607   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3608 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3609    { (exit 1); exit 1; }; }
3610
3611 fi
3612
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614   ac_ext=c
3615 ac_cpp='$CPP $CPPFLAGS'
3616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619
3620 fi
3621
3622 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3623 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3624 ac_ext=cpp
3625 ac_cpp='$CXXCPP $CPPFLAGS'
3626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3629
3630 llvm_cv_cxx_compiler=unknown
3631 cat >conftest.$ac_ext <<_ACEOF
3632 /* confdefs.h.  */
3633 _ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h.  */
3637 #if ! __clang__
3638                                     #error
3639                                     #endif
3640
3641 _ACEOF
3642 rm -f conftest.$ac_objext
3643 if { (ac_try="$ac_compile"
3644 case "(($ac_try" in
3645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646   *) ac_try_echo=$ac_try;;
3647 esac
3648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3649   (eval "$ac_compile") 2>conftest.er1
3650   ac_status=$?
3651   grep -v '^ *+' conftest.er1 >conftest.err
3652   rm -f conftest.er1
3653   cat conftest.err >&5
3654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655   (exit $ac_status); } &&
3656          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3657   { (case "(($ac_try" in
3658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659   *) ac_try_echo=$ac_try;;
3660 esac
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662   (eval "$ac_try") 2>&5
3663   ac_status=$?
3664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665   (exit $ac_status); }; } &&
3666          { ac_try='test -s conftest.$ac_objext'
3667   { (case "(($ac_try" in
3668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669   *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672   (eval "$ac_try") 2>&5
3673   ac_status=$?
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); }; }; then
3676   llvm_cv_cxx_compiler=clang
3677 else
3678   echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681         cat >conftest.$ac_ext <<_ACEOF
3682 /* confdefs.h.  */
3683 _ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h.  */
3687 #if ! __GNUC__
3688                                                        #error
3689                                                        #endif
3690
3691 _ACEOF
3692 rm -f conftest.$ac_objext
3693 if { (ac_try="$ac_compile"
3694 case "(($ac_try" in
3695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696   *) ac_try_echo=$ac_try;;
3697 esac
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699   (eval "$ac_compile") 2>conftest.er1
3700   ac_status=$?
3701   grep -v '^ *+' conftest.er1 >conftest.err
3702   rm -f conftest.er1
3703   cat conftest.err >&5
3704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705   (exit $ac_status); } &&
3706          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3707   { (case "(($ac_try" in
3708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709   *) ac_try_echo=$ac_try;;
3710 esac
3711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3712   (eval "$ac_try") 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); }; } &&
3716          { ac_try='test -s conftest.$ac_objext'
3717   { (case "(($ac_try" in
3718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719   *) ac_try_echo=$ac_try;;
3720 esac
3721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3722   (eval "$ac_try") 2>&5
3723   ac_status=$?
3724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725   (exit $ac_status); }; }; then
3726   llvm_cv_cxx_compiler=gcc
3727 else
3728   echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3730
3731
3732 fi
3733
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 fi
3736
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 ac_ext=c
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3745 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3746
3747
3748
3749 if test -d ${srcdir}/projects/test-suite ; then
3750   subdirs="$subdirs projects/test-suite"
3751
3752 fi
3753
3754 if test -d ${srcdir}/projects/llvm-test ; then
3755   subdirs="$subdirs projects/llvm-test"
3756
3757 fi
3758
3759 if test -d ${srcdir}/projects/poolalloc ; then
3760   subdirs="$subdirs projects/poolalloc"
3761
3762 fi
3763
3764 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3765   subdirs="$subdirs projects/llvm-poolalloc"
3766
3767 fi
3768
3769 for i in `ls ${srcdir}/projects`
3770 do
3771   if test -d ${srcdir}/projects/${i} ; then
3772     case ${i} in
3773       safecode)     subdirs="$subdirs projects/safecode"
3774  ;;
3775       compiler-rt)       ;;
3776       test-suite)     ;;
3777       llvm-test)      ;;
3778       poolalloc)      ;;
3779       llvm-poolalloc) ;;
3780       *)
3781         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3782 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3783         ;;
3784     esac
3785   fi
3786 done
3787
3788 # Check whether --enable-polly was given.
3789 if test "${enable_polly+set}" = set; then
3790   enableval=$enable_polly;
3791 else
3792   enableval=default
3793 fi
3794
3795 case "$enableval" in
3796   yes) ENABLE_POLLY=1
3797  ;;
3798   no)  ENABLE_POLLY=0
3799  ;;
3800   default) ENABLE_POLLY=1
3801  ;;
3802   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3803 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3804    { (exit 1); exit 1; }; } ;;
3805 esac
3806
3807
3808 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3809   LLVM_HAS_POLLY=1
3810
3811   subdirs="$subdirs tools/polly"
3812
3813 fi
3814
3815
3816 # Make sure we can run config.sub.
3817 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3818   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3819 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3820    { (exit 1); exit 1; }; }
3821
3822 { echo "$as_me:$LINENO: checking build system type" >&5
3823 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3824 if test "${ac_cv_build+set}" = set; then
3825   echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827   ac_build_alias=$build_alias
3828 test "x$ac_build_alias" = x &&
3829   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3830 test "x$ac_build_alias" = x &&
3831   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3832 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3833    { (exit 1); exit 1; }; }
3834 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3835   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3836 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3837    { (exit 1); exit 1; }; }
3838
3839 fi
3840 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3841 echo "${ECHO_T}$ac_cv_build" >&6; }
3842 case $ac_cv_build in
3843 *-*-*) ;;
3844 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3845 echo "$as_me: error: invalid value of canonical build" >&2;}
3846    { (exit 1); exit 1; }; };;
3847 esac
3848 build=$ac_cv_build
3849 ac_save_IFS=$IFS; IFS='-'
3850 set x $ac_cv_build
3851 shift
3852 build_cpu=$1
3853 build_vendor=$2
3854 shift; shift
3855 # Remember, the first character of IFS is used to create $*,
3856 # except with old shells:
3857 build_os=$*
3858 IFS=$ac_save_IFS
3859 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3860
3861
3862 { echo "$as_me:$LINENO: checking host system type" >&5
3863 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3864 if test "${ac_cv_host+set}" = set; then
3865   echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867   if test "x$host_alias" = x; then
3868   ac_cv_host=$ac_cv_build
3869 else
3870   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3871     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3872 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3873    { (exit 1); exit 1; }; }
3874 fi
3875
3876 fi
3877 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3878 echo "${ECHO_T}$ac_cv_host" >&6; }
3879 case $ac_cv_host in
3880 *-*-*) ;;
3881 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3882 echo "$as_me: error: invalid value of canonical host" >&2;}
3883    { (exit 1); exit 1; }; };;
3884 esac
3885 host=$ac_cv_host
3886 ac_save_IFS=$IFS; IFS='-'
3887 set x $ac_cv_host
3888 shift
3889 host_cpu=$1
3890 host_vendor=$2
3891 shift; shift
3892 # Remember, the first character of IFS is used to create $*,
3893 # except with old shells:
3894 host_os=$*
3895 IFS=$ac_save_IFS
3896 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3897
3898
3899 { echo "$as_me:$LINENO: checking target system type" >&5
3900 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3901 if test "${ac_cv_target+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   if test "x$target_alias" = x; then
3905   ac_cv_target=$ac_cv_host
3906 else
3907   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3908     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3909 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3910    { (exit 1); exit 1; }; }
3911 fi
3912
3913 fi
3914 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3915 echo "${ECHO_T}$ac_cv_target" >&6; }
3916 case $ac_cv_target in
3917 *-*-*) ;;
3918 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3919 echo "$as_me: error: invalid value of canonical target" >&2;}
3920    { (exit 1); exit 1; }; };;
3921 esac
3922 target=$ac_cv_target
3923 ac_save_IFS=$IFS; IFS='-'
3924 set x $ac_cv_target
3925 shift
3926 target_cpu=$1
3927 target_vendor=$2
3928 shift; shift
3929 # Remember, the first character of IFS is used to create $*,
3930 # except with old shells:
3931 target_os=$*
3932 IFS=$ac_save_IFS
3933 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3934
3935
3936 # The aliases save the names the user supplied, while $host etc.
3937 # will get canonicalized.
3938 test -n "$target_alias" &&
3939   test "$program_prefix$program_suffix$program_transform_name" = \
3940     NONENONEs,x,x, &&
3941   program_prefix=${target_alias}-
3942
3943 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3944 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3945 if test "${llvm_cv_os_type+set}" = set; then
3946   echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948   case $host in
3949   *-*-aix*)
3950     llvm_cv_link_all_option="-Wl,--whole-archive"
3951     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3952     llvm_cv_os_type="AIX"
3953     llvm_cv_platform_type="Unix" ;;
3954   *-*-irix*)
3955     llvm_cv_link_all_option="-Wl,--whole-archive"
3956     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3957     llvm_cv_os_type="IRIX"
3958     llvm_cv_platform_type="Unix" ;;
3959   *-*-cygwin*)
3960     llvm_cv_link_all_option="-Wl,--whole-archive"
3961     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3962     llvm_cv_os_type="Cygwin"
3963     llvm_cv_platform_type="Unix" ;;
3964   *-*-darwin*)
3965     llvm_cv_link_all_option="-Wl,-all_load"
3966     llvm_cv_no_link_all_option="-Wl,-noall_load"
3967     llvm_cv_os_type="Darwin"
3968     llvm_cv_platform_type="Unix" ;;
3969   *-*-minix*)
3970     llvm_cv_link_all_option="-Wl,-all_load"
3971     llvm_cv_no_link_all_option="-Wl,-noall_load"
3972     llvm_cv_os_type="Minix"
3973     llvm_cv_platform_type="Unix" ;;
3974   *-*-freebsd*)
3975     llvm_cv_link_all_option="-Wl,--whole-archive"
3976     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3977     llvm_cv_os_type="FreeBSD"
3978     llvm_cv_platform_type="Unix" ;;
3979   *-*-kfreebsd-gnu)
3980     llvm_cv_link_all_option="-Wl,--whole-archive"
3981     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3982     llvm_cv_os_type="GNU/kFreeBSD"
3983     llvm_cv_platform_type="Unix" ;;
3984   *-*-openbsd*)
3985     llvm_cv_link_all_option="-Wl,--whole-archive"
3986     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3987     llvm_cv_os_type="OpenBSD"
3988     llvm_cv_platform_type="Unix" ;;
3989   *-*-netbsd*)
3990     llvm_cv_link_all_option="-Wl,--whole-archive"
3991     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3992     llvm_cv_os_type="NetBSD"
3993     llvm_cv_platform_type="Unix" ;;
3994   *-*-dragonfly*)
3995     llvm_cv_link_all_option="-Wl,--whole-archive"
3996     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3997     llvm_cv_os_type="DragonFly"
3998     llvm_cv_platform_type="Unix" ;;
3999   *-*-bitrig*)
4000     llvm_cv_link_all_option="-Wl,--whole-archive"
4001     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4002     llvm_cv_os_type="Bitrig"
4003     llvm_cv_platform_type="Unix" ;;
4004   *-*-hpux*)
4005     llvm_cv_link_all_option="-Wl,--whole-archive"
4006     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4007     llvm_cv_os_type="HP-UX"
4008     llvm_cv_platform_type="Unix" ;;
4009   *-*-interix*)
4010     llvm_cv_link_all_option="-Wl,--whole-archive"
4011     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4012     llvm_cv_os_type="Interix"
4013     llvm_cv_platform_type="Unix" ;;
4014   *-*-linux*)
4015     llvm_cv_link_all_option="-Wl,--whole-archive"
4016     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4017     llvm_cv_os_type="Linux"
4018     llvm_cv_platform_type="Unix" ;;
4019   *-*-gnu*)
4020     llvm_cv_link_all_option="-Wl,--whole-archive"
4021     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4022     llvm_cv_os_type="GNU"
4023     llvm_cv_platform_type="Unix" ;;
4024   *-*-solaris*)
4025     llvm_cv_link_all_option="-Wl,-z,allextract"
4026     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4027     llvm_cv_os_type="SunOS"
4028     llvm_cv_platform_type="Unix" ;;
4029   *-*-win32*)
4030     llvm_cv_link_all_option="-Wl,--whole-archive"
4031     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4032     llvm_cv_os_type="Win32"
4033     llvm_cv_platform_type="Win32" ;;
4034   *-*-mingw*)
4035     llvm_cv_link_all_option="-Wl,--whole-archive"
4036     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4037     llvm_cv_os_type="MingW"
4038     llvm_cv_platform_type="Win32" ;;
4039   *-*-haiku*)
4040     llvm_cv_link_all_option="-Wl,--whole-archive"
4041     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4042     llvm_cv_os_type="Haiku"
4043     llvm_cv_platform_type="Unix" ;;
4044   *-unknown-eabi*)
4045     llvm_cv_link_all_option="-Wl,--whole-archive"
4046     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4047     llvm_cv_os_type="Freestanding"
4048     llvm_cv_platform_type="Unix" ;;
4049   *-unknown-elf*)
4050     llvm_cv_link_all_option="-Wl,--whole-archive"
4051     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4052     llvm_cv_os_type="Freestanding"
4053     llvm_cv_platform_type="Unix" ;;
4054   *)
4055     llvm_cv_link_all_option=""
4056     llvm_cv_no_link_all_option=""
4057     llvm_cv_os_type="Unknown"
4058     llvm_cv_platform_type="Unknown" ;;
4059 esac
4060 fi
4061 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4062 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4063
4064 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4065 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4066 if test "${llvm_cv_target_os_type+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   case $target in
4070   *-*-aix*)
4071     llvm_cv_target_os_type="AIX" ;;
4072   *-*-irix*)
4073     llvm_cv_target_os_type="IRIX" ;;
4074   *-*-cygwin*)
4075     llvm_cv_target_os_type="Cygwin" ;;
4076   *-*-darwin*)
4077     llvm_cv_target_os_type="Darwin" ;;
4078   *-*-minix*)
4079     llvm_cv_target_os_type="Minix" ;;
4080   *-*-freebsd*)
4081     llvm_cv_target_os_type="FreeBSD" ;;
4082   *-*-kfreebsd-gnu)
4083     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4084   *-*-openbsd*)
4085     llvm_cv_target_os_type="OpenBSD" ;;
4086   *-*-netbsd*)
4087     llvm_cv_target_os_type="NetBSD" ;;
4088   *-*-dragonfly*)
4089     llvm_cv_target_os_type="DragonFly" ;;
4090   *-*-bitrig*)
4091     llvm_cv_target_os_type="Bitrig" ;;
4092   *-*-hpux*)
4093     llvm_cv_target_os_type="HP-UX" ;;
4094   *-*-interix*)
4095     llvm_cv_target_os_type="Interix" ;;
4096   *-*-linux*)
4097     llvm_cv_target_os_type="Linux" ;;
4098   *-*-gnu*)
4099     llvm_cv_target_os_type="GNU" ;;
4100   *-*-solaris*)
4101     llvm_cv_target_os_type="SunOS" ;;
4102   *-*-win32*)
4103     llvm_cv_target_os_type="Win32" ;;
4104   *-*-mingw*)
4105     llvm_cv_target_os_type="MingW" ;;
4106   *-*-haiku*)
4107     llvm_cv_target_os_type="Haiku" ;;
4108   *-*-rtems*)
4109     llvm_cv_target_os_type="RTEMS" ;;
4110   *-*-nacl*)
4111     llvm_cv_target_os_type="NativeClient" ;;
4112   *-unknown-eabi*)
4113     llvm_cv_target_os_type="Freestanding" ;;
4114   *-*-ps4)
4115     llvm_cv_target_os_type="PS4" ;;
4116   *)
4117     llvm_cv_target_os_type="Unknown" ;;
4118 esac
4119 fi
4120 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4121 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4122
4123 if test "$llvm_cv_os_type" = "Unknown" ; then
4124   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4125 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4126    { (exit 1); exit 1; }; }
4127 fi
4128
4129 OS=$llvm_cv_os_type
4130
4131 HOST_OS=$llvm_cv_os_type
4132
4133 TARGET_OS=$llvm_cv_target_os_type
4134
4135
4136 LINKALL=$llvm_cv_link_all_option
4137
4138 NOLINKALL=$llvm_cv_no_link_all_option
4139
4140
4141 case $llvm_cv_platform_type in
4142   Unix)
4143
4144 cat >>confdefs.h <<\_ACEOF
4145 #define LLVM_ON_UNIX 1
4146 _ACEOF
4147
4148     LLVM_ON_UNIX=1
4149
4150     LLVM_ON_WIN32=0
4151
4152     ;;
4153   Win32)
4154
4155 cat >>confdefs.h <<\_ACEOF
4156 #define LLVM_ON_WIN32 1
4157 _ACEOF
4158
4159     LLVM_ON_UNIX=0
4160
4161     LLVM_ON_WIN32=1
4162
4163     ;;
4164 esac
4165
4166 { echo "$as_me:$LINENO: checking target architecture" >&5
4167 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4168 if test "${llvm_cv_target_arch+set}" = set; then
4169   echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171   case $target in
4172   i?86-*)                 llvm_cv_target_arch="x86" ;;
4173   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4174   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4175   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4176   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4177   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4178   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4179   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4180   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4181   xcore-*)                llvm_cv_target_arch="XCore" ;;
4182   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4183   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4184   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4185   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4186   *)                      llvm_cv_target_arch="Unknown" ;;
4187 esac
4188 fi
4189 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4190 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4191
4192 if test "$llvm_cv_target_arch" = "Unknown" ; then
4193   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4194 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4195 fi
4196
4197 case "$llvm_cv_target_arch" in
4198     x86)     LLVM_NATIVE_ARCH="X86" ;;
4199     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4200     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4201 esac
4202
4203 ARCH=$llvm_cv_target_arch
4204
4205 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4206
4207
4208 case $host in
4209   i?86-*)                 host_arch="x86" ;;
4210   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4211   sparc*-*)               host_arch="Sparc" ;;
4212   powerpc*-*)             host_arch="PowerPC" ;;
4213   arm64*-*)               host_arch="AArch64" ;;
4214   arm*-*)                 host_arch="ARM" ;;
4215   aarch64*-*)             host_arch="AArch64" ;;
4216   mips-* | mips64-*)      host_arch="Mips" ;;
4217   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4218   xcore-*)                host_arch="XCore" ;;
4219   msp430-*)               host_arch="MSP430" ;;
4220   hexagon-*)              host_arch="Hexagon" ;;
4221   s390x-*)                host_arch="SystemZ" ;;
4222   *)                      host_arch="Unknown" ;;
4223 esac
4224
4225 if test "$host_arch" = "Unknown" ; then
4226   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4227 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4228 fi
4229
4230 HOST_ARCH=$host_arch
4231
4232
4233 if test "$cross_compiling" = yes; then
4234   LLVM_CROSS_COMPILING=1
4235
4236
4237 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4238 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4239 if test "${ac_cv_build_exeext+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4243   ac_cv_build_exeext=.exe
4244 else
4245   ac_build_prefix=${build_alias}-
4246
4247   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4248 set dummy ${ac_build_prefix}gcc; ac_word=$2
4249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4251 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4252   echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254   if test -n "$BUILD_CC"; then
4255   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260   IFS=$as_save_IFS
4261   test -z "$as_dir" && as_dir=.
4262   for ac_exec_ext in '' $ac_executable_extensions; do
4263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4264     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266     break 2
4267   fi
4268 done
4269 done
4270 IFS=$as_save_IFS
4271
4272 fi
4273 fi
4274 BUILD_CC=$ac_cv_prog_BUILD_CC
4275 if test -n "$BUILD_CC"; then
4276   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4277 echo "${ECHO_T}$BUILD_CC" >&6; }
4278 else
4279   { echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6; }
4281 fi
4282
4283
4284   if test -z "$BUILD_CC"; then
4285      # Extract the first word of "gcc", so it can be a program name with args.
4286 set dummy gcc; ac_word=$2
4287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4289 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   if test -n "$BUILD_CC"; then
4293   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300   for ac_exec_ext in '' $ac_executable_extensions; do
4301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4302     ac_cv_prog_BUILD_CC="gcc"
4303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304     break 2
4305   fi
4306 done
4307 done
4308 IFS=$as_save_IFS
4309
4310 fi
4311 fi
4312 BUILD_CC=$ac_cv_prog_BUILD_CC
4313 if test -n "$BUILD_CC"; then
4314   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4315 echo "${ECHO_T}$BUILD_CC" >&6; }
4316 else
4317   { echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6; }
4319 fi
4320
4321
4322      if test -z "$BUILD_CC"; then
4323        # Extract the first word of "cc", so it can be a program name with args.
4324 set dummy cc; ac_word=$2
4325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4327 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   if test -n "$BUILD_CC"; then
4331   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4332 else
4333   ac_prog_rejected=no
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4336 do
4337   IFS=$as_save_IFS
4338   test -z "$as_dir" && as_dir=.
4339   for ac_exec_ext in '' $ac_executable_extensions; do
4340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4341     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4342        ac_prog_rejected=yes
4343        continue
4344      fi
4345     ac_cv_prog_BUILD_CC="cc"
4346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350 done
4351 IFS=$as_save_IFS
4352
4353 if test $ac_prog_rejected = yes; then
4354   # We found a bogon in the path, so make sure we never use it.
4355   set dummy $ac_cv_prog_BUILD_CC
4356   shift
4357   if test $# != 0; then
4358     # We chose a different compiler from the bogus one.
4359     # However, it has the same basename, so the bogon will be chosen
4360     # first if we set BUILD_CC to just the basename; use the full file name.
4361     shift
4362     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4363   fi
4364 fi
4365 fi
4366 fi
4367 BUILD_CC=$ac_cv_prog_BUILD_CC
4368 if test -n "$BUILD_CC"; then
4369   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4370 echo "${ECHO_T}$BUILD_CC" >&6; }
4371 else
4372   { echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6; }
4374 fi
4375
4376
4377      fi
4378   fi
4379   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4380 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4381    { (exit 1); exit 1; }; }
4382   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4383   rm -f conftest*
4384   echo 'int main () { return 0; }' > conftest.$ac_ext
4385   ac_cv_build_exeext=
4386   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4387   (eval $ac_build_link) 2>&5
4388   ac_status=$?
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); }; then
4391     for file in conftest.*; do
4392       case $file in
4393       *.c | *.o | *.obj | *.dSYM) ;;
4394       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4395       esac
4396     done
4397   else
4398     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4399 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4400    { (exit 1); exit 1; }; }
4401   fi
4402   rm -f conftest*
4403   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4404 fi
4405 fi
4406
4407 BUILD_EXEEXT=""
4408 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4409 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4410 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4411 ac_build_exeext=$BUILD_EXEEXT
4412
4413   ac_build_prefix=${build_alias}-
4414   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4415 set dummy ${ac_build_prefix}g++; ac_word=$2
4416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4418 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4419   echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421   if test -n "$BUILD_CXX"; then
4422   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427   IFS=$as_save_IFS
4428   test -z "$as_dir" && as_dir=.
4429   for ac_exec_ext in '' $ac_executable_extensions; do
4430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4431     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433     break 2
4434   fi
4435 done
4436 done
4437 IFS=$as_save_IFS
4438
4439 fi
4440 fi
4441 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4442 if test -n "$BUILD_CXX"; then
4443   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4444 echo "${ECHO_T}$BUILD_CXX" >&6; }
4445 else
4446   { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4448 fi
4449
4450
4451   if test -z "$BUILD_CXX"; then
4452      # Extract the first word of "g++", so it can be a program name with args.
4453 set dummy g++; ac_word=$2
4454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4456 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4457   echo $ECHO_N "(cached) $ECHO_C" >&6
4458 else
4459   if test -n "$BUILD_CXX"; then
4460   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465   IFS=$as_save_IFS
4466   test -z "$as_dir" && as_dir=.
4467   for ac_exec_ext in '' $ac_executable_extensions; do
4468   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4469     ac_cv_prog_BUILD_CXX="g++"
4470     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471     break 2
4472   fi
4473 done
4474 done
4475 IFS=$as_save_IFS
4476
4477 fi
4478 fi
4479 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4480 if test -n "$BUILD_CXX"; then
4481   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4482 echo "${ECHO_T}$BUILD_CXX" >&6; }
4483 else
4484   { echo "$as_me:$LINENO: result: no" >&5
4485 echo "${ECHO_T}no" >&6; }
4486 fi
4487
4488
4489      if test -z "$BUILD_CXX"; then
4490        # Extract the first word of "c++", so it can be a program name with args.
4491 set dummy c++; ac_word=$2
4492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4494 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4495   echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497   if test -n "$BUILD_CXX"; then
4498   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4499 else
4500   ac_prog_rejected=no
4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 for as_dir in $PATH
4503 do
4504   IFS=$as_save_IFS
4505   test -z "$as_dir" && as_dir=.
4506   for ac_exec_ext in '' $ac_executable_extensions; do
4507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4508     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4509        ac_prog_rejected=yes
4510        continue
4511      fi
4512     ac_cv_prog_BUILD_CXX="c++"
4513     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514     break 2
4515   fi
4516 done
4517 done
4518 IFS=$as_save_IFS
4519
4520 if test $ac_prog_rejected = yes; then
4521   # We found a bogon in the path, so make sure we never use it.
4522   set dummy $ac_cv_prog_BUILD_CXX
4523   shift
4524   if test $# != 0; then
4525     # We chose a different compiler from the bogus one.
4526     # However, it has the same basename, so the bogon will be chosen
4527     # first if we set BUILD_CXX to just the basename; use the full file name.
4528     shift
4529     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4530   fi
4531 fi
4532 fi
4533 fi
4534 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4535 if test -n "$BUILD_CXX"; then
4536   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4537 echo "${ECHO_T}$BUILD_CXX" >&6; }
4538 else
4539   { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4541 fi
4542
4543
4544      fi
4545   fi
4546 else
4547   LLVM_CROSS_COMPILING=0
4548
4549 fi
4550
4551 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4552   cvsbuild="yes"
4553   optimize="no"
4554   CVSBUILD=CVSBUILD=1
4555
4556 else
4557   cvsbuild="no"
4558   optimize="yes"
4559 fi
4560
4561
4562 # Check whether --enable-libcpp was given.
4563 if test "${enable_libcpp+set}" = set; then
4564   enableval=$enable_libcpp;
4565 else
4566   enableval=default
4567 fi
4568
4569 case "$enableval" in
4570   yes) ENABLE_LIBCPP=1
4571  ;;
4572   no)  ENABLE_LIBCPP=0
4573  ;;
4574   default) ENABLE_LIBCPP=0
4575 ;;
4576   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4577 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4578    { (exit 1); exit 1; }; } ;;
4579 esac
4580
4581 # Check whether --enable-compiler-version-checks was given.
4582 if test "${enable_compiler_version_checks+set}" = set; then
4583   enableval=$enable_compiler_version_checks;
4584 else
4585   enableval=default
4586 fi
4587
4588 case "$enableval" in
4589   no)
4590     ;;
4591   yes|default)
4592     ac_ext=cpp
4593 ac_cpp='$CXXCPP $CPPFLAGS'
4594 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4595 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4596 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4597
4598     case "$llvm_cv_cxx_compiler" in
4599     clang)
4600       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4601 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4602       cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h.  */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h.  */
4608
4609 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4610 #error This version of Clang is too old to build LLVM
4611 #endif
4612
4613 _ACEOF
4614 rm -f conftest.$ac_objext
4615 if { (ac_try="$ac_compile"
4616 case "(($ac_try" in
4617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618   *) ac_try_echo=$ac_try;;
4619 esac
4620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4621   (eval "$ac_compile") 2>conftest.er1
4622   ac_status=$?
4623   grep -v '^ *+' conftest.er1 >conftest.err
4624   rm -f conftest.er1
4625   cat conftest.err >&5
4626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627   (exit $ac_status); } &&
4628          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4629   { (case "(($ac_try" in
4630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631   *) ac_try_echo=$ac_try;;
4632 esac
4633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4634   (eval "$ac_try") 2>&5
4635   ac_status=$?
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); }; } &&
4638          { ac_try='test -s conftest.$ac_objext'
4639   { (case "(($ac_try" in
4640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641   *) ac_try_echo=$ac_try;;
4642 esac
4643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4644   (eval "$ac_try") 2>&5
4645   ac_status=$?
4646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647   (exit $ac_status); }; }; then
4648   { echo "$as_me:$LINENO: result: yes" >&5
4649 echo "${ECHO_T}yes" >&6; }
4650 else
4651   echo "$as_me: failed program was:" >&5
4652 sed 's/^/| /' conftest.$ac_ext >&5
4653
4654         { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4656            { { echo "$as_me:$LINENO: error:
4657 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4658 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4659 bypass these sanity checks." >&5
4660 echo "$as_me: error:
4661 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4662 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4663 bypass these sanity checks." >&2;}
4664    { (exit 1); exit 1; }; }
4665 fi
4666
4667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668
4669                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4670         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4671 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4672         llvm_cv_old_cxxflags="$CXXFLAGS"
4673         CXXFLAGS="$CXXFLAGS -std=c++0x"
4674         cat >conftest.$ac_ext <<_ACEOF
4675 /* confdefs.h.  */
4676 _ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h.  */
4680
4681 #include <atomic>
4682 std::atomic<float> x(0.0f);
4683 int main() { return (float)x; }
4684
4685 _ACEOF
4686 rm -f conftest.$ac_objext conftest$ac_exeext
4687 if { (ac_try="$ac_link"
4688 case "(($ac_try" in
4689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4690   *) ac_try_echo=$ac_try;;
4691 esac
4692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4693   (eval "$ac_link") 2>conftest.er1
4694   ac_status=$?
4695   grep -v '^ *+' conftest.er1 >conftest.err
4696   rm -f conftest.er1
4697   cat conftest.err >&5
4698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4699   (exit $ac_status); } &&
4700          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4701   { (case "(($ac_try" in
4702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703   *) ac_try_echo=$ac_try;;
4704 esac
4705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4706   (eval "$ac_try") 2>&5
4707   ac_status=$?
4708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709   (exit $ac_status); }; } &&
4710          { ac_try='test -s conftest$ac_exeext'
4711   { (case "(($ac_try" in
4712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713   *) ac_try_echo=$ac_try;;
4714 esac
4715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4716   (eval "$ac_try") 2>&5
4717   ac_status=$?
4718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719   (exit $ac_status); }; }; then
4720   { echo "$as_me:$LINENO: result: yes" >&5
4721 echo "${ECHO_T}yes" >&6; }
4722 else
4723   echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4725
4726         { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728              { { echo "$as_me:$LINENO: error:
4729 We detected a missing feature in the standard C++ library that was known to be
4730 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4731 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4732 than 4.7. You will need to update your system and ensure Clang uses the newer
4733 standard library.
4734
4735 If this error is incorrect or you need to force things to work, you may pass
4736 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4737 echo "$as_me: error:
4738 We detected a missing feature in the standard C++ library that was known to be
4739 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4740 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4741 than 4.7. You will need to update your system and ensure Clang uses the newer
4742 standard library.
4743
4744 If this error is incorrect or you need to force things to work, you may pass
4745 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4746    { (exit 1); exit 1; }; }
4747 fi
4748
4749 rm -f core conftest.err conftest.$ac_objext \
4750       conftest$ac_exeext conftest.$ac_ext
4751         CXXFLAGS="$llvm_cv_old_cxxflags"
4752       fi
4753       ;;
4754     gcc)
4755       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4756 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4757       cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h.  */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h.  */
4763
4764 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4765 #error This version of GCC is too old to build LLVM
4766 #endif
4767
4768 _ACEOF
4769 rm -f conftest.$ac_objext
4770 if { (ac_try="$ac_compile"
4771 case "(($ac_try" in
4772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4773   *) ac_try_echo=$ac_try;;
4774 esac
4775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4776   (eval "$ac_compile") 2>conftest.er1
4777   ac_status=$?
4778   grep -v '^ *+' conftest.er1 >conftest.err
4779   rm -f conftest.er1
4780   cat conftest.err >&5
4781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782   (exit $ac_status); } &&
4783          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4784   { (case "(($ac_try" in
4785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786   *) ac_try_echo=$ac_try;;
4787 esac
4788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4789   (eval "$ac_try") 2>&5
4790   ac_status=$?
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); }; } &&
4793          { ac_try='test -s conftest.$ac_objext'
4794   { (case "(($ac_try" in
4795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796   *) ac_try_echo=$ac_try;;
4797 esac
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799   (eval "$ac_try") 2>&5
4800   ac_status=$?
4801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802   (exit $ac_status); }; }; then
4803   { echo "$as_me:$LINENO: result: yes" >&5
4804 echo "${ECHO_T}yes" >&6; }
4805 else
4806   echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4808
4809         { echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6; }
4811            { { echo "$as_me:$LINENO: error:
4812 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4813 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4814 bypass these sanity checks." >&5
4815 echo "$as_me: error:
4816 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4817 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4818 bypass these sanity checks." >&2;}
4819    { (exit 1); exit 1; }; }
4820 fi
4821
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823       ;;
4824     unknown)
4825       ;;
4826     esac
4827     ac_ext=c
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832
4833     ;;
4834   *)
4835     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4836 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4837    { (exit 1); exit 1; }; }
4838     ;;
4839 esac
4840
4841 # Check whether --enable-cxx1y was given.
4842 if test "${enable_cxx1y+set}" = set; then
4843   enableval=$enable_cxx1y;
4844 else
4845   enableval=default
4846 fi
4847
4848 case "$enableval" in
4849   yes) ENABLE_CXX1Y=1
4850  ;;
4851   no)  ENABLE_CXX1Y=0
4852  ;;
4853   default) ENABLE_CXX1Y=0
4854 ;;
4855   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4856 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4857    { (exit 1); exit 1; }; } ;;
4858 esac
4859
4860 # Check whether --enable-split-dwarf was given.
4861 if test "${enable_split_dwarf+set}" = set; then
4862   enableval=$enable_split_dwarf;
4863 else
4864   enableval=default
4865 fi
4866
4867 case "$enableval" in
4868   yes) ENABLE_SPLIT_DWARF=1
4869  ;;
4870   no)  ENABLE_SPLIT_DWARF=0
4871  ;;
4872   default) ENABLE_SPLIT_DWARF=0
4873 ;;
4874   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4875 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4876    { (exit 1); exit 1; }; } ;;
4877 esac
4878
4879 clang_arcmt="yes"
4880 # Check whether --enable-clang-arcmt was given.
4881 if test "${enable_clang_arcmt+set}" = set; then
4882   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4883 else
4884   enableval="yes"
4885 fi
4886
4887 case "$enableval" in
4888   yes) ENABLE_CLANG_ARCMT=1
4889  ;;
4890   no)  ENABLE_CLANG_ARCMT=0
4891  ;;
4892   default) ENABLE_CLANG_ARCMT=1
4893 ;;
4894   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4895 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4896    { (exit 1); exit 1; }; } ;;
4897 esac
4898
4899 clang_plugin_support="yes"
4900 # Check whether --enable-clang-plugin-support was given.
4901 if test "${enable_clang_plugin_support+set}" = set; then
4902   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4903 else
4904   enableval="yes"
4905 fi
4906
4907 case "$enableval" in
4908   yes) CLANG_PLUGIN_SUPPORT=1
4909  ;;
4910   no)  CLANG_PLUGIN_SUPPORT=0
4911  ;;
4912   default) CLANG_PLUGIN_SUPPORT=1
4913 ;;
4914   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4915 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4916    { (exit 1); exit 1; }; } ;;
4917 esac
4918
4919 clang_static_analyzer="yes"
4920 # Check whether --enable-clang-static-analyzer was given.
4921 if test "${enable_clang_static_analyzer+set}" = set; then
4922   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4923 else
4924   enableval="yes"
4925 fi
4926
4927 case "$enableval" in
4928   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4929  ;;
4930   no)
4931     if test ${clang_arcmt} != "no" ; then
4932       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4933 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4934    { (exit 1); exit 1; }; }
4935     fi
4936     ENABLE_CLANG_STATIC_ANALYZER=0
4937
4938     ;;
4939   default) ENABLE_CLANG_STATIC_ANALYZER=1
4940 ;;
4941   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4942 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4943    { (exit 1); exit 1; }; } ;;
4944 esac
4945
4946 # Check whether --enable-optimized was given.
4947 if test "${enable_optimized+set}" = set; then
4948   enableval=$enable_optimized;
4949 else
4950   enableval=$optimize
4951 fi
4952
4953 if test ${enableval} = "no" ; then
4954   ENABLE_OPTIMIZED=
4955
4956 else
4957   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4958
4959 fi
4960
4961 # Check whether --enable-profiling was given.
4962 if test "${enable_profiling+set}" = set; then
4963   enableval=$enable_profiling;
4964 else
4965   enableval="no"
4966 fi
4967
4968 if test ${enableval} = "no" ; then
4969   ENABLE_PROFILING=
4970
4971 else
4972   ENABLE_PROFILING=ENABLE_PROFILING=1
4973
4974 fi
4975
4976 # Check whether --enable-assertions was given.
4977 if test "${enable_assertions+set}" = set; then
4978   enableval=$enable_assertions;
4979 else
4980   enableval="yes"
4981 fi
4982
4983 if test ${enableval} = "yes" ; then
4984   DISABLE_ASSERTIONS=
4985
4986   assertions_enabled="yes"
4987 else
4988   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4989
4990   assertions_enabled="no"
4991 fi
4992
4993 # Check whether --enable-werror was given.
4994 if test "${enable_werror+set}" = set; then
4995   enableval=$enable_werror;
4996 else
4997   enableval="no"
4998 fi
4999
5000 case "$enableval" in
5001   yes) ENABLE_WERROR=1
5002  ;;
5003   no)  ENABLE_WERROR=0
5004  ;;
5005   default) ENABLE_WERROR=0
5006 ;;
5007   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5008 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5009    { (exit 1); exit 1; }; } ;;
5010 esac
5011
5012 # Check whether --enable-expensive-checks was given.
5013 if test "${enable_expensive_checks+set}" = set; then
5014   enableval=$enable_expensive_checks;
5015 else
5016   enableval="no"
5017 fi
5018
5019 if test ${enableval} = "yes" ; then
5020   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5021
5022   EXPENSIVE_CHECKS=yes
5023
5024 else
5025   ENABLE_EXPENSIVE_CHECKS=
5026
5027   EXPENSIVE_CHECKS=no
5028
5029 fi
5030
5031 # Check whether --enable-abi-breaking-checks was given.
5032 if test "${enable_abi_breaking_checks+set}" = set; then
5033   enableval=$enable_abi_breaking_checks;
5034 else
5035   enableval="with-asserts"
5036 fi
5037
5038 case "$enableval" in
5039   with-asserts)  if test ${assertions_enabled} = "yes" ; then
5040
5041 cat >>confdefs.h <<\_ACEOF
5042 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5043 _ACEOF
5044
5045                  fi ;;
5046   yes)
5047 cat >>confdefs.h <<\_ACEOF
5048 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5049 _ACEOF
5050  ;;
5051   no) ;;
5052   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&5
5053 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5054    { (exit 1); exit 1; }; }
5055 esac
5056
5057 # Check whether --enable-debug-runtime was given.
5058 if test "${enable_debug_runtime+set}" = set; then
5059   enableval=$enable_debug_runtime;
5060 else
5061   enableval=no
5062 fi
5063
5064 if test ${enableval} = "no" ; then
5065   DEBUG_RUNTIME=
5066
5067 else
5068   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5069
5070 fi
5071
5072 # Check whether --enable-debug-symbols was given.
5073 if test "${enable_debug_symbols+set}" = set; then
5074   enableval=$enable_debug_symbols;
5075 else
5076   enableval=no
5077 fi
5078
5079 if test ${enableval} = "no" ; then
5080   DEBUG_SYMBOLS=
5081
5082 else
5083   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5084
5085 fi
5086
5087 # Check whether --enable-keep-symbols was given.
5088 if test "${enable_keep_symbols+set}" = set; then
5089   enableval=$enable_keep_symbols;
5090 else
5091   enableval=no
5092 fi
5093
5094 if test ${enableval} = "no" ; then
5095   KEEP_SYMBOLS=
5096
5097 else
5098   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5099
5100 fi
5101
5102 # Check whether --enable-jit was given.
5103 if test "${enable_jit+set}" = set; then
5104   enableval=$enable_jit;
5105 else
5106   enableval=default
5107 fi
5108
5109 if test ${enableval} = "no"
5110 then
5111   JIT=
5112
5113 else
5114   case "$llvm_cv_target_arch" in
5115     x86)         TARGET_HAS_JIT=1
5116  ;;
5117     Sparc)       TARGET_HAS_JIT=0
5118  ;;
5119     PowerPC)     TARGET_HAS_JIT=1
5120  ;;
5121     x86_64)      TARGET_HAS_JIT=1
5122  ;;
5123     ARM)         TARGET_HAS_JIT=1
5124  ;;
5125     Mips)        TARGET_HAS_JIT=1
5126  ;;
5127     XCore)       TARGET_HAS_JIT=0
5128  ;;
5129     MSP430)      TARGET_HAS_JIT=0
5130  ;;
5131     Hexagon)     TARGET_HAS_JIT=0
5132  ;;
5133     NVPTX)       TARGET_HAS_JIT=0
5134  ;;
5135     SystemZ)     TARGET_HAS_JIT=1
5136  ;;
5137     *)           TARGET_HAS_JIT=0
5138  ;;
5139   esac
5140 fi
5141
5142 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5143 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5144
5145
5146 # Check whether --enable-docs was given.
5147 if test "${enable_docs+set}" = set; then
5148   enableval=$enable_docs;
5149 else
5150   enableval=default
5151 fi
5152
5153 case "$enableval" in
5154   yes) ENABLE_DOCS=1
5155  ;;
5156   no)  ENABLE_DOCS=0
5157  ;;
5158   default) ENABLE_DOCS=1
5159  ;;
5160   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5161 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5162    { (exit 1); exit 1; }; } ;;
5163 esac
5164
5165 # Check whether --enable-doxygen was given.
5166 if test "${enable_doxygen+set}" = set; then
5167   enableval=$enable_doxygen;
5168 else
5169   enableval=default
5170 fi
5171
5172 case "$enableval" in
5173   yes) ENABLE_DOXYGEN=1
5174  ;;
5175   no|default) ENABLE_DOXYGEN=0
5176  ;;
5177   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5178 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5179    { (exit 1); exit 1; }; } ;;
5180 esac
5181
5182 # Check whether --enable-doxygen-search was given.
5183 if test "${enable_doxygen_search+set}" = set; then
5184   enableval=$enable_doxygen_search;
5185 else
5186   enableval=default
5187 fi
5188
5189 ENABLE_DOXYGEN_SEARCH="$enableval"
5190
5191 case "$enableval" in
5192   yes|no|default) ;;
5193   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5194 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5195    { (exit 1); exit 1; }; } ;;
5196 esac
5197
5198 # Check whether --enable-doxygen-external-search was given.
5199 if test "${enable_doxygen_external_search+set}" = set; then
5200   enableval=$enable_doxygen_external_search;
5201 else
5202   enableval=default
5203 fi
5204
5205 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5206
5207 case "$enableval" in
5208   yes)
5209             case "$ENABLE_DOXYGEN_SEARCH" in
5210       yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5211       no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5212 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5213    { (exit 1); exit 1; }; } ;;
5214     esac
5215     ;;
5216   no|default) ;;
5217   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5218 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5219    { (exit 1); exit 1; }; } ;;
5220 esac
5221
5222
5223 # Check whether --with-doxygen-search-engine-url was given.
5224 if test "${with_doxygen_search_engine_url+set}" = set; then
5225   withval=$with_doxygen_search_engine_url;
5226 fi
5227
5228 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5229
5230
5231 # Check whether --with-doxygen-search-mappings was given.
5232 if test "${with_doxygen_search_mappings+set}" = set; then
5233   withval=$with_doxygen_search_mappings;
5234 fi
5235
5236 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5237
5238 case "$ENABLE_DOXYGEN_SEARCH" in
5239   yes)
5240     if test "$ENABLE_DOXYGEN" = "0" ; then
5241       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5242 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5243    { (exit 1); exit 1; }; }
5244     fi
5245
5246     enable_searchengine=YES
5247
5248
5249     case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5250       yes)
5251         enable_external_search=YES
5252
5253         enable_server_based_search=YES
5254
5255         searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5256
5257         extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5258
5259         ;;
5260
5261       no|default)
5262         enable_external_search=NO
5263
5264         enable_server_based_search=NO
5265
5266
5267
5268         ;;
5269     esac
5270     ;;
5271
5272   no|default)
5273     enable_searchengine=NO
5274
5275
5276     enable_server_based_search=NO
5277
5278     enable_external_search=NO
5279
5280
5281     ;;
5282
5283   *)
5284     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5285 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5286    { (exit 1); exit 1; }; }
5287     ;;
5288 esac
5289
5290 # Check whether --enable-doxygen-qt-help was given.
5291 if test "${enable_doxygen_qt_help+set}" = set; then
5292   enableval=$enable_doxygen_qt_help;
5293 else
5294   enableval=default
5295 fi
5296
5297 case "$enableval" in
5298   yes)
5299     if test "$ENABLE_DOXYGEN" = "0" ; then
5300       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5301 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5302    { (exit 1); exit 1; }; }
5303     fi
5304
5305     # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5306 set dummy qhelpgenerator; ac_word=$2
5307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5309 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5310   echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312   case $QHELPGENERATOR in
5313   [\\/]* | ?:[\\/]*)
5314   ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5315   ;;
5316   *)
5317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
5320   IFS=$as_save_IFS
5321   test -z "$as_dir" && as_dir=.
5322   for ac_exec_ext in '' $ac_executable_extensions; do
5323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5324     ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326     break 2
5327   fi
5328 done
5329 done
5330 IFS=$as_save_IFS
5331
5332   test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5333   ;;
5334 esac
5335 fi
5336 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5337 if test -n "$QHELPGENERATOR"; then
5338   { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5339 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5340 else
5341   { echo "$as_me:$LINENO: result: no" >&5
5342 echo "${ECHO_T}no" >&6; }
5343 fi
5344
5345
5346
5347         llvm_doxygen_generate_qhp=YES
5348
5349     llvm_doxygen_qch_filename=org.llvm.qch
5350
5351     llvm_doxygen_qhp_namespace=org.llvm
5352
5353     llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5354
5355     llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5356
5357     llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5358
5359
5360         clang_doxygen_generate_qhp=YES
5361
5362     clang_doxygen_qch_filename=org.llvm.clang.qch
5363
5364     clang_doxygen_qhp_namespace=org.llvm.clang
5365
5366     clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5367
5368     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5369
5370     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5371
5372     ;;
5373
5374   no|default)
5375     llvm_doxygen_generate_qhp=NO
5376
5377
5378
5379
5380
5381
5382
5383     clang_doxygen_generate_qhp=NO
5384
5385
5386
5387
5388     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5389
5390     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5391
5392     ;;
5393
5394   *)
5395     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5396 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5397    { (exit 1); exit 1; }; } ;;
5398 esac
5399
5400 # Check whether --enable-threads was given.
5401 if test "${enable_threads+set}" = set; then
5402   enableval=$enable_threads;
5403 else
5404   enableval=default
5405 fi
5406
5407 case "$enableval" in
5408   yes) LLVM_ENABLE_THREADS=1
5409  ;;
5410   no)  LLVM_ENABLE_THREADS=0
5411  ;;
5412   default) LLVM_ENABLE_THREADS=1
5413  ;;
5414   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5415 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5416    { (exit 1); exit 1; }; } ;;
5417 esac
5418
5419 cat >>confdefs.h <<_ACEOF
5420 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5421 _ACEOF
5422
5423
5424 # Check whether --enable-pthreads was given.
5425 if test "${enable_pthreads+set}" = set; then
5426   enableval=$enable_pthreads;
5427 else
5428   enableval=default
5429 fi
5430
5431 case "$enableval" in
5432   yes) ENABLE_PTHREADS=1
5433  ;;
5434   no)  ENABLE_PTHREADS=0
5435  ;;
5436   default) ENABLE_PTHREADS=1
5437  ;;
5438   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5439 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5440    { (exit 1); exit 1; }; } ;;
5441 esac
5442
5443 # Check whether --enable-zlib was given.
5444 if test "${enable_zlib+set}" = set; then
5445   enableval=$enable_zlib;
5446 else
5447   enableval=default
5448 fi
5449
5450 case "$enableval" in
5451   yes) LLVM_ENABLE_ZLIB=1
5452  ;;
5453   no)  LLVM_ENABLE_ZLIB=0
5454  ;;
5455   default) LLVM_ENABLE_ZLIB=1
5456  ;;
5457   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5458 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5459    { (exit 1); exit 1; }; } ;;
5460 esac
5461
5462 cat >>confdefs.h <<_ACEOF
5463 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5464 _ACEOF
5465
5466
5467 # Check whether --enable-pic was given.
5468 if test "${enable_pic+set}" = set; then
5469   enableval=$enable_pic;
5470 else
5471   enableval=default
5472 fi
5473
5474 case "$enableval" in
5475   yes) ENABLE_PIC=1
5476  ;;
5477   no)  ENABLE_PIC=0
5478  ;;
5479   default) ENABLE_PIC=1
5480  ;;
5481   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5482 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5483    { (exit 1); exit 1; }; } ;;
5484 esac
5485
5486 cat >>confdefs.h <<_ACEOF
5487 #define ENABLE_PIC $ENABLE_PIC
5488 _ACEOF
5489
5490
5491 # Check whether --enable-shared was given.
5492 if test "${enable_shared+set}" = set; then
5493   enableval=$enable_shared;
5494 else
5495   enableval=default
5496 fi
5497
5498 case "$enableval" in
5499   yes) ENABLE_SHARED=1
5500  ;;
5501   no)  ENABLE_SHARED=0
5502  ;;
5503   default) ENABLE_SHARED=0
5504  ;;
5505   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5506 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5507    { (exit 1); exit 1; }; } ;;
5508 esac
5509
5510 # Check whether --enable-embed-stdcxx was given.
5511 if test "${enable_embed_stdcxx+set}" = set; then
5512   enableval=$enable_embed_stdcxx;
5513 else
5514   enableval=default
5515 fi
5516
5517 case "$enableval" in
5518   yes) ENABLE_EMBED_STDCXX=1
5519  ;;
5520   no)  ENABLE_EMBED_STDCXX=0
5521  ;;
5522   default) ENABLE_EMBED_STDCXX=0
5523  ;;
5524   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5525 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5526    { (exit 1); exit 1; }; } ;;
5527 esac
5528
5529 # Check whether --enable-timestamps was given.
5530 if test "${enable_timestamps+set}" = set; then
5531   enableval=$enable_timestamps;
5532 else
5533   enableval=default
5534 fi
5535
5536 case "$enableval" in
5537   yes) ENABLE_TIMESTAMPS=1
5538  ;;
5539   no)  ENABLE_TIMESTAMPS=0
5540  ;;
5541   default) ENABLE_TIMESTAMPS=1
5542  ;;
5543   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5544 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5545    { (exit 1); exit 1; }; } ;;
5546 esac
5547
5548 cat >>confdefs.h <<_ACEOF
5549 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5550 _ACEOF
5551
5552
5553 # Check whether --enable-backtraces was given.
5554 if test "${enable_backtraces+set}" = set; then
5555   enableval=$enable_backtraces; case "$enableval" in
5556     yes) llvm_cv_enable_backtraces="yes" ;;
5557     no)  llvm_cv_enable_backtraces="no"  ;;
5558     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5559 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5560    { (exit 1); exit 1; }; } ;;
5561   esac
5562 else
5563   llvm_cv_enable_backtraces="yes"
5564 fi
5565
5566 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5567
5568 cat >>confdefs.h <<\_ACEOF
5569 #define ENABLE_BACKTRACES 1
5570 _ACEOF
5571
5572 fi
5573
5574 # Check whether --enable-crash-overrides was given.
5575 if test "${enable_crash_overrides+set}" = set; then
5576   enableval=$enable_crash_overrides; case "$enableval" in
5577     yes) llvm_cv_enable_crash_overrides="yes" ;;
5578     no)  llvm_cv_enable_crash_overrides="no"  ;;
5579     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5580 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5581    { (exit 1); exit 1; }; } ;;
5582   esac
5583 else
5584   llvm_cv_enable_crash_overrides="yes"
5585 fi
5586
5587 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5588
5589 cat >>confdefs.h <<\_ACEOF
5590 #define ENABLE_CRASH_OVERRIDES 1
5591 _ACEOF
5592
5593 fi
5594
5595 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5596 ALL_TARGETS=$ALL_TARGETS
5597
5598
5599 TARGETS_TO_BUILD=""
5600 # Check whether --enable-targets was given.
5601 if test "${enable_targets+set}" = set; then
5602   enableval=$enable_targets;
5603 else
5604   enableval=all
5605 fi
5606
5607 if test "$enableval" = host-only ; then
5608   enableval=host
5609 fi
5610 case "$enableval" in
5611   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5612   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5613       case "$a_target" in
5614         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5615         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5616         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5617         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5618         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5619         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5620         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5621         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5622         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5623         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5624         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5625         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5626         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5627         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5628         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5629         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5630         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5631         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5632         host) case "$llvm_cv_target_arch" in
5633             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5634             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5635             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5636             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5637             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5638             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5639             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5640             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5641             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5642             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5643             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5644             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5645             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5646 echo "$as_me: error: Can not set target to build" >&2;}
5647    { (exit 1); exit 1; }; } ;;
5648           esac ;;
5649         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5650 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5651    { (exit 1); exit 1; }; } ;;
5652       esac
5653   done
5654   ;;
5655 esac
5656
5657 # Check whether --enable-experimental-targets was given.
5658 if test "${enable_experimental_targets+set}" = set; then
5659   enableval=$enable_experimental_targets;
5660 else
5661   enableval=disable
5662 fi
5663
5664
5665 if test ${enableval} != "disable"
5666 then
5667   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5668 fi
5669
5670 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5671
5672
5673 for a_target in $TARGETS_TO_BUILD; do
5674   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5675
5676 cat >>confdefs.h <<_ACEOF
5677 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5678 _ACEOF
5679
5680     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5681     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5682     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5683     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5684     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5685       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5686     fi
5687     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5688       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5689     fi
5690
5691 cat >>confdefs.h <<_ACEOF
5692 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5693 _ACEOF
5694
5695
5696 cat >>confdefs.h <<_ACEOF
5697 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5698 _ACEOF
5699
5700
5701 cat >>confdefs.h <<_ACEOF
5702 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5703 _ACEOF
5704
5705
5706 cat >>confdefs.h <<_ACEOF
5707 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5708 _ACEOF
5709
5710     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5711
5712 cat >>confdefs.h <<_ACEOF
5713 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5714 _ACEOF
5715
5716     fi
5717     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5718
5719 cat >>confdefs.h <<_ACEOF
5720 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5721 _ACEOF
5722
5723     fi
5724   fi
5725 done
5726
5727 LLVM_ENUM_TARGETS=""
5728 LLVM_ENUM_ASM_PRINTERS=""
5729 LLVM_ENUM_ASM_PARSERS=""
5730 LLVM_ENUM_DISASSEMBLERS=""
5731 for target_to_build in $TARGETS_TO_BUILD; do
5732   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5733   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5734     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5735   fi
5736   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5737     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5738   fi
5739   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5740     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5741   fi
5742 done
5743
5744
5745
5746
5747
5748
5749 # Check whether --with-optimize-option was given.
5750 if test "${with_optimize_option+set}" = set; then
5751   withval=$with_optimize_option;
5752 else
5753   withval=default
5754 fi
5755
5756 { echo "$as_me:$LINENO: checking optimization flags" >&5
5757 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5758 case "$withval" in
5759   default)
5760     case "$llvm_cv_os_type" in
5761     FreeBSD) optimize_option=-O2 ;;
5762     MingW) optimize_option=-O2 ;;
5763     *)     optimize_option=-O3 ;;
5764     esac ;;
5765   *) optimize_option="$withval" ;;
5766 esac
5767 OPTIMIZE_OPTION=$optimize_option
5768
5769 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5770 echo "${ECHO_T}$optimize_option" >&6; }
5771
5772
5773 # Check whether --with-extra-options was given.
5774 if test "${with_extra_options+set}" = set; then
5775   withval=$with_extra_options;
5776 else
5777   withval=default
5778 fi
5779
5780 case "$withval" in
5781   default) EXTRA_OPTIONS= ;;
5782   *) EXTRA_OPTIONS=$withval ;;
5783 esac
5784 EXTRA_OPTIONS=$EXTRA_OPTIONS
5785
5786
5787
5788 # Check whether --with-extra-ld-options was given.
5789 if test "${with_extra_ld_options+set}" = set; then
5790   withval=$with_extra_ld_options;
5791 else
5792   withval=default
5793 fi
5794
5795 case "$withval" in
5796   default) EXTRA_LD_OPTIONS= ;;
5797   *) EXTRA_LD_OPTIONS=$withval ;;
5798 esac
5799 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5800
5801
5802 # Check whether --enable-bindings was given.
5803 if test "${enable_bindings+set}" = set; then
5804   enableval=$enable_bindings;
5805 else
5806   enableval=default
5807 fi
5808
5809 BINDINGS_TO_BUILD=""
5810 case "$enableval" in
5811   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5812   all ) BINDINGS_TO_BUILD="ocaml" ;;
5813   none | no) BINDINGS_TO_BUILD="" ;;
5814   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5815       case "$a_binding" in
5816         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5817         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5818 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5819    { (exit 1); exit 1; }; } ;;
5820       esac
5821   done
5822   ;;
5823 esac
5824
5825
5826 # Check whether --with-ocaml-libdir was given.
5827 if test "${with_ocaml_libdir+set}" = set; then
5828   withval=$with_ocaml_libdir;
5829 else
5830   withval=auto
5831 fi
5832
5833 case "$withval" in
5834   auto) with_ocaml_libdir="$withval" ;;
5835   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5836   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5837 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5838    { (exit 1); exit 1; }; } ;;
5839 esac
5840
5841
5842 # Check whether --with-clang-srcdir was given.
5843 if test "${with_clang_srcdir+set}" = set; then
5844   withval=$with_clang_srcdir;
5845 else
5846   withval="-"
5847 fi
5848
5849 case "$withval" in
5850   -) clang_src_root="" ;;
5851   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5852   *) clang_src_root="$ac_pwd/$withval" ;;
5853 esac
5854 CLANG_SRC_ROOT=$clang_src_root
5855
5856
5857
5858 # Check whether --with-clang-resource-dir was given.
5859 if test "${with_clang_resource_dir+set}" = set; then
5860   withval=$with_clang_resource_dir;
5861 else
5862   withval=""
5863 fi
5864
5865
5866 cat >>confdefs.h <<_ACEOF
5867 #define CLANG_RESOURCE_DIR "$withval"
5868 _ACEOF
5869
5870
5871
5872 # Check whether --with-c-include-dirs was given.
5873 if test "${with_c_include_dirs+set}" = set; then
5874   withval=$with_c_include_dirs;
5875 else
5876   withval=""
5877 fi
5878
5879
5880 cat >>confdefs.h <<_ACEOF
5881 #define C_INCLUDE_DIRS "$withval"
5882 _ACEOF
5883
5884
5885 # Clang normally uses the system c++ headers and libraries. With this option,
5886 # clang will use the ones provided by a gcc installation instead. This option should
5887 # be passed the same value that was used with --prefix when configuring gcc.
5888
5889 # Check whether --with-gcc-toolchain was given.
5890 if test "${with_gcc_toolchain+set}" = set; then
5891   withval=$with_gcc_toolchain;
5892 else
5893   withval=""
5894 fi
5895
5896
5897 cat >>confdefs.h <<_ACEOF
5898 #define GCC_INSTALL_PREFIX "$withval"
5899 _ACEOF
5900
5901
5902
5903 # Check whether --with-default-sysroot was given.
5904 if test "${with_default_sysroot+set}" = set; then
5905   withval=$with_default_sysroot;
5906 else
5907   withval=""
5908 fi
5909
5910
5911 cat >>confdefs.h <<_ACEOF
5912 #define DEFAULT_SYSROOT "$withval"
5913 _ACEOF
5914
5915
5916
5917 # Check whether --with-binutils-include was given.
5918 if test "${with_binutils_include+set}" = set; then
5919   withval=$with_binutils_include;
5920 else
5921   withval=default
5922 fi
5923
5924 case "$withval" in
5925   default) WITH_BINUTILS_INCDIR=default ;;
5926   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5927   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5928 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5929    { (exit 1); exit 1; }; } ;;
5930 esac
5931 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5932   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5933
5934   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5935      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5936      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5937 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5938    { (exit 1); exit 1; }; };
5939   fi
5940 fi
5941
5942
5943 # Check whether --with-bug-report-url was given.
5944 if test "${with_bug_report_url+set}" = set; then
5945   withval=$with_bug_report_url;
5946 else
5947   withval="http://llvm.org/bugs/"
5948 fi
5949
5950
5951 cat >>confdefs.h <<_ACEOF
5952 #define BUG_REPORT_URL "$withval"
5953 _ACEOF
5954
5955
5956 # Check whether --enable-terminfo was given.
5957 if test "${enable_terminfo+set}" = set; then
5958   enableval=$enable_terminfo; case "$enableval" in
5959     yes) llvm_cv_enable_terminfo="yes" ;;
5960     no)  llvm_cv_enable_terminfo="no"  ;;
5961     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5962 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5963    { (exit 1); exit 1; }; } ;;
5964   esac
5965 else
5966   llvm_cv_enable_terminfo="yes"
5967 fi
5968
5969 case "$llvm_cv_enable_terminfo" in
5970   yes) ENABLE_TERMINFO=1
5971  ;;
5972   no)  ENABLE_TERMINFO=0
5973  ;;
5974 esac
5975
5976 # Check whether --enable-libedit was given.
5977 if test "${enable_libedit+set}" = set; then
5978   enableval=$enable_libedit; case "$enableval" in
5979     yes) llvm_cv_enable_libedit="yes" ;;
5980     no)  llvm_cv_enable_libedit="no"  ;;
5981     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
5982 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
5983    { (exit 1); exit 1; }; } ;;
5984   esac
5985 else
5986   llvm_cv_enable_libedit="yes"
5987 fi
5988
5989
5990 # Check whether --enable-libffi was given.
5991 if test "${enable_libffi+set}" = set; then
5992   enableval=$enable_libffi; case "$enableval" in
5993     yes) llvm_cv_enable_libffi="yes" ;;
5994     no)  llvm_cv_enable_libffi="no"  ;;
5995     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5996 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5997    { (exit 1); exit 1; }; } ;;
5998   esac
5999 else
6000   llvm_cv_enable_libffi=no
6001 fi
6002
6003
6004
6005 # Check whether --with-internal-prefix was given.
6006 if test "${with_internal_prefix+set}" = set; then
6007   withval=$with_internal_prefix;
6008 else
6009   withval=""
6010 fi
6011
6012 INTERNAL_PREFIX=$withval
6013
6014
6015
6016 { echo "$as_me:$LINENO: checking for GNU make" >&5
6017 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6018 if test "${llvm_cv_gnu_make_command+set}" = set; then
6019   echo $ECHO_N "(cached) $ECHO_C" >&6
6020 else
6021   llvm_cv_gnu_make_command=''
6022  for a in "$MAKE" make gmake gnumake ; do
6023   if test -z "$a" ; then continue ; fi ;
6024   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6025   then
6026    llvm_cv_gnu_make_command=$a ;
6027    break;
6028   fi
6029  done
6030 fi
6031 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6032 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6033  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6034    ifGNUmake='' ;
6035  else
6036    ifGNUmake='#' ;
6037    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6038 echo "${ECHO_T}\"Not found\"" >&6; };
6039  fi
6040
6041
6042 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6043 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6044 LN_S=$as_ln_s
6045 if test "$LN_S" = "ln -s"; then
6046   { echo "$as_me:$LINENO: result: yes" >&5
6047 echo "${ECHO_T}yes" >&6; }
6048 else
6049   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6050 echo "${ECHO_T}no, using $LN_S" >&6; }
6051 fi
6052
6053 # Extract the first word of "nm", so it can be a program name with args.
6054 set dummy nm; ac_word=$2
6055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6057 if test "${ac_cv_path_NM+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   case $NM in
6061   [\\/]* | ?:[\\/]*)
6062   ac_cv_path_NM="$NM" # Let the user override the test with a path.
6063   ;;
6064   *)
6065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066 for as_dir in $PATH
6067 do
6068   IFS=$as_save_IFS
6069   test -z "$as_dir" && as_dir=.
6070   for ac_exec_ext in '' $ac_executable_extensions; do
6071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6072     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074     break 2
6075   fi
6076 done
6077 done
6078 IFS=$as_save_IFS
6079
6080   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6081   ;;
6082 esac
6083 fi
6084 NM=$ac_cv_path_NM
6085 if test -n "$NM"; then
6086   { echo "$as_me:$LINENO: result: $NM" >&5
6087 echo "${ECHO_T}$NM" >&6; }
6088 else
6089   { echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6; }
6091 fi
6092
6093
6094 # Extract the first word of "cmp", so it can be a program name with args.
6095 set dummy cmp; ac_word=$2
6096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6098 if test "${ac_cv_path_CMP+set}" = set; then
6099   echo $ECHO_N "(cached) $ECHO_C" >&6
6100 else
6101   case $CMP in
6102   [\\/]* | ?:[\\/]*)
6103   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6104   ;;
6105   *)
6106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6108 do
6109   IFS=$as_save_IFS
6110   test -z "$as_dir" && as_dir=.
6111   for ac_exec_ext in '' $ac_executable_extensions; do
6112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6113     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6114     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6115     break 2
6116   fi
6117 done
6118 done
6119 IFS=$as_save_IFS
6120
6121   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6122   ;;
6123 esac
6124 fi
6125 CMP=$ac_cv_path_CMP
6126 if test -n "$CMP"; then
6127   { echo "$as_me:$LINENO: result: $CMP" >&5
6128 echo "${ECHO_T}$CMP" >&6; }
6129 else
6130   { echo "$as_me:$LINENO: result: no" >&5
6131 echo "${ECHO_T}no" >&6; }
6132 fi
6133
6134
6135 # Extract the first word of "cp", so it can be a program name with args.
6136 set dummy cp; ac_word=$2
6137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6139 if test "${ac_cv_path_CP+set}" = set; then
6140   echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142   case $CP in
6143   [\\/]* | ?:[\\/]*)
6144   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6145   ;;
6146   *)
6147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6149 do
6150   IFS=$as_save_IFS
6151   test -z "$as_dir" && as_dir=.
6152   for ac_exec_ext in '' $ac_executable_extensions; do
6153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6154     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156     break 2
6157   fi
6158 done
6159 done
6160 IFS=$as_save_IFS
6161
6162   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6163   ;;
6164 esac
6165 fi
6166 CP=$ac_cv_path_CP
6167 if test -n "$CP"; then
6168   { echo "$as_me:$LINENO: result: $CP" >&5
6169 echo "${ECHO_T}$CP" >&6; }
6170 else
6171   { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6173 fi
6174
6175
6176 # Extract the first word of "date", so it can be a program name with args.
6177 set dummy date; ac_word=$2
6178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6180 if test "${ac_cv_path_DATE+set}" = set; then
6181   echo $ECHO_N "(cached) $ECHO_C" >&6
6182 else
6183   case $DATE in
6184   [\\/]* | ?:[\\/]*)
6185   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6186   ;;
6187   *)
6188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191   IFS=$as_save_IFS
6192   test -z "$as_dir" && as_dir=.
6193   for ac_exec_ext in '' $ac_executable_extensions; do
6194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6195     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6197     break 2
6198   fi
6199 done
6200 done
6201 IFS=$as_save_IFS
6202
6203   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6204   ;;
6205 esac
6206 fi
6207 DATE=$ac_cv_path_DATE
6208 if test -n "$DATE"; then
6209   { echo "$as_me:$LINENO: result: $DATE" >&5
6210 echo "${ECHO_T}$DATE" >&6; }
6211 else
6212   { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6214 fi
6215
6216
6217 # Extract the first word of "find", so it can be a program name with args.
6218 set dummy find; ac_word=$2
6219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6221 if test "${ac_cv_path_FIND+set}" = set; then
6222   echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224   case $FIND in
6225   [\\/]* | ?:[\\/]*)
6226   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6227   ;;
6228   *)
6229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230 for as_dir in $PATH
6231 do
6232   IFS=$as_save_IFS
6233   test -z "$as_dir" && as_dir=.
6234   for ac_exec_ext in '' $ac_executable_extensions; do
6235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6236     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6238     break 2
6239   fi
6240 done
6241 done
6242 IFS=$as_save_IFS
6243
6244   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6245   ;;
6246 esac
6247 fi
6248 FIND=$ac_cv_path_FIND
6249 if test -n "$FIND"; then
6250   { echo "$as_me:$LINENO: result: $FIND" >&5
6251 echo "${ECHO_T}$FIND" >&6; }
6252 else
6253   { echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6; }
6255 fi
6256
6257
6258 # Extract the first word of "grep", so it can be a program name with args.
6259 set dummy grep; ac_word=$2
6260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6262 if test "${ac_cv_path_GREP+set}" = set; then
6263   echo $ECHO_N "(cached) $ECHO_C" >&6
6264 else
6265   case $GREP in
6266   [\\/]* | ?:[\\/]*)
6267   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6268   ;;
6269   *)
6270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271 for as_dir in $PATH
6272 do
6273   IFS=$as_save_IFS
6274   test -z "$as_dir" && as_dir=.
6275   for ac_exec_ext in '' $ac_executable_extensions; do
6276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6277     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279     break 2
6280   fi
6281 done
6282 done
6283 IFS=$as_save_IFS
6284
6285   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6286   ;;
6287 esac
6288 fi
6289 GREP=$ac_cv_path_GREP
6290 if test -n "$GREP"; then
6291   { echo "$as_me:$LINENO: result: $GREP" >&5
6292 echo "${ECHO_T}$GREP" >&6; }
6293 else
6294   { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6296 fi
6297
6298
6299 # Extract the first word of "mkdir", so it can be a program name with args.
6300 set dummy mkdir; ac_word=$2
6301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303 if test "${ac_cv_path_MKDIR+set}" = set; then
6304   echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306   case $MKDIR in
6307   [\\/]* | ?:[\\/]*)
6308   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6309   ;;
6310   *)
6311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314   IFS=$as_save_IFS
6315   test -z "$as_dir" && as_dir=.
6316   for ac_exec_ext in '' $ac_executable_extensions; do
6317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6318     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320     break 2
6321   fi
6322 done
6323 done
6324 IFS=$as_save_IFS
6325
6326   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6327   ;;
6328 esac
6329 fi
6330 MKDIR=$ac_cv_path_MKDIR
6331 if test -n "$MKDIR"; then
6332   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6333 echo "${ECHO_T}$MKDIR" >&6; }
6334 else
6335   { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6337 fi
6338
6339
6340 # Extract the first word of "mv", so it can be a program name with args.
6341 set dummy mv; ac_word=$2
6342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6344 if test "${ac_cv_path_MV+set}" = set; then
6345   echo $ECHO_N "(cached) $ECHO_C" >&6
6346 else
6347   case $MV in
6348   [\\/]* | ?:[\\/]*)
6349   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6350   ;;
6351   *)
6352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357   for ac_exec_ext in '' $ac_executable_extensions; do
6358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6359     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364 done
6365 IFS=$as_save_IFS
6366
6367   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6368   ;;
6369 esac
6370 fi
6371 MV=$ac_cv_path_MV
6372 if test -n "$MV"; then
6373   { echo "$as_me:$LINENO: result: $MV" >&5
6374 echo "${ECHO_T}$MV" >&6; }
6375 else
6376   { echo "$as_me:$LINENO: result: no" >&5
6377 echo "${ECHO_T}no" >&6; }
6378 fi
6379
6380
6381 if test -n "$ac_tool_prefix"; then
6382   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6383 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386 if test "${ac_cv_prog_RANLIB+set}" = set; then
6387   echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389   if test -n "$RANLIB"; then
6390   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395   IFS=$as_save_IFS
6396   test -z "$as_dir" && as_dir=.
6397   for ac_exec_ext in '' $ac_executable_extensions; do
6398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6399     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401     break 2
6402   fi
6403 done
6404 done
6405 IFS=$as_save_IFS
6406
6407 fi
6408 fi
6409 RANLIB=$ac_cv_prog_RANLIB
6410 if test -n "$RANLIB"; then
6411   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6412 echo "${ECHO_T}$RANLIB" >&6; }
6413 else
6414   { echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6; }
6416 fi
6417
6418
6419 fi
6420 if test -z "$ac_cv_prog_RANLIB"; then
6421   ac_ct_RANLIB=$RANLIB
6422   # Extract the first word of "ranlib", so it can be a program name with args.
6423 set dummy ranlib; ac_word=$2
6424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6426 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6427   echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429   if test -n "$ac_ct_RANLIB"; then
6430   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6431 else
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 for as_dir in $PATH
6434 do
6435   IFS=$as_save_IFS
6436   test -z "$as_dir" && as_dir=.
6437   for ac_exec_ext in '' $ac_executable_extensions; do
6438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6439     ac_cv_prog_ac_ct_RANLIB="ranlib"
6440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6441     break 2
6442   fi
6443 done
6444 done
6445 IFS=$as_save_IFS
6446
6447 fi
6448 fi
6449 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6450 if test -n "$ac_ct_RANLIB"; then
6451   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6452 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6453 else
6454   { echo "$as_me:$LINENO: result: no" >&5
6455 echo "${ECHO_T}no" >&6; }
6456 fi
6457
6458   if test "x$ac_ct_RANLIB" = x; then
6459     RANLIB=":"
6460   else
6461     case $cross_compiling:$ac_tool_warned in
6462 yes:)
6463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6464 whose name does not start with the host triplet.  If you think this
6465 configuration is useful to you, please write to autoconf@gnu.org." >&5
6466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6467 whose name does not start with the host triplet.  If you think this
6468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6469 ac_tool_warned=yes ;;
6470 esac
6471     RANLIB=$ac_ct_RANLIB
6472   fi
6473 else
6474   RANLIB="$ac_cv_prog_RANLIB"
6475 fi
6476
6477 if test -n "$ac_tool_prefix"; then
6478   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6479 set dummy ${ac_tool_prefix}ar; ac_word=$2
6480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6482 if test "${ac_cv_prog_AR+set}" = set; then
6483   echo $ECHO_N "(cached) $ECHO_C" >&6
6484 else
6485   if test -n "$AR"; then
6486   ac_cv_prog_AR="$AR" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491   IFS=$as_save_IFS
6492   test -z "$as_dir" && as_dir=.
6493   for ac_exec_ext in '' $ac_executable_extensions; do
6494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6495     ac_cv_prog_AR="${ac_tool_prefix}ar"
6496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6497     break 2
6498   fi
6499 done
6500 done
6501 IFS=$as_save_IFS
6502
6503 fi
6504 fi
6505 AR=$ac_cv_prog_AR
6506 if test -n "$AR"; then
6507   { echo "$as_me:$LINENO: result: $AR" >&5
6508 echo "${ECHO_T}$AR" >&6; }
6509 else
6510   { echo "$as_me:$LINENO: result: no" >&5
6511 echo "${ECHO_T}no" >&6; }
6512 fi
6513
6514
6515 fi
6516 if test -z "$ac_cv_prog_AR"; then
6517   ac_ct_AR=$AR
6518   # Extract the first word of "ar", so it can be a program name with args.
6519 set dummy ar; ac_word=$2
6520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6522 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6523   echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525   if test -n "$ac_ct_AR"; then
6526   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533   for ac_exec_ext in '' $ac_executable_extensions; do
6534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6535     ac_cv_prog_ac_ct_AR="ar"
6536     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6537     break 2
6538   fi
6539 done
6540 done
6541 IFS=$as_save_IFS
6542
6543 fi
6544 fi
6545 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6546 if test -n "$ac_ct_AR"; then
6547   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6548 echo "${ECHO_T}$ac_ct_AR" >&6; }
6549 else
6550   { echo "$as_me:$LINENO: result: no" >&5
6551 echo "${ECHO_T}no" >&6; }
6552 fi
6553
6554   if test "x$ac_ct_AR" = x; then
6555     AR="false"
6556   else
6557     case $cross_compiling:$ac_tool_warned in
6558 yes:)
6559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6560 whose name does not start with the host triplet.  If you think this
6561 configuration is useful to you, please write to autoconf@gnu.org." >&5
6562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6563 whose name does not start with the host triplet.  If you think this
6564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6565 ac_tool_warned=yes ;;
6566 esac
6567     AR=$ac_ct_AR
6568   fi
6569 else
6570   AR="$ac_cv_prog_AR"
6571 fi
6572
6573 # Extract the first word of "rm", so it can be a program name with args.
6574 set dummy rm; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_RM+set}" = set; then
6578   echo $ECHO_N "(cached) $ECHO_C" >&6
6579 else
6580   case $RM in
6581   [\\/]* | ?:[\\/]*)
6582   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6583   ;;
6584   *)
6585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586 for as_dir in $PATH
6587 do
6588   IFS=$as_save_IFS
6589   test -z "$as_dir" && as_dir=.
6590   for ac_exec_ext in '' $ac_executable_extensions; do
6591   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6593     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594     break 2
6595   fi
6596 done
6597 done
6598 IFS=$as_save_IFS
6599
6600   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6601   ;;
6602 esac
6603 fi
6604 RM=$ac_cv_path_RM
6605 if test -n "$RM"; then
6606   { echo "$as_me:$LINENO: result: $RM" >&5
6607 echo "${ECHO_T}$RM" >&6; }
6608 else
6609   { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6611 fi
6612
6613
6614 # Extract the first word of "sed", so it can be a program name with args.
6615 set dummy sed; ac_word=$2
6616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6618 if test "${ac_cv_path_SED+set}" = set; then
6619   echo $ECHO_N "(cached) $ECHO_C" >&6
6620 else
6621   case $SED in
6622   [\\/]* | ?:[\\/]*)
6623   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6624   ;;
6625   *)
6626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 for as_dir in $PATH
6628 do
6629   IFS=$as_save_IFS
6630   test -z "$as_dir" && as_dir=.
6631   for ac_exec_ext in '' $ac_executable_extensions; do
6632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6633     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635     break 2
6636   fi
6637 done
6638 done
6639 IFS=$as_save_IFS
6640
6641   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6642   ;;
6643 esac
6644 fi
6645 SED=$ac_cv_path_SED
6646 if test -n "$SED"; then
6647   { echo "$as_me:$LINENO: result: $SED" >&5
6648 echo "${ECHO_T}$SED" >&6; }
6649 else
6650   { echo "$as_me:$LINENO: result: no" >&5
6651 echo "${ECHO_T}no" >&6; }
6652 fi
6653
6654
6655 # Extract the first word of "tar", so it can be a program name with args.
6656 set dummy tar; ac_word=$2
6657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6659 if test "${ac_cv_path_TAR+set}" = set; then
6660   echo $ECHO_N "(cached) $ECHO_C" >&6
6661 else
6662   case $TAR in
6663   [\\/]* | ?:[\\/]*)
6664   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6665   ;;
6666   *)
6667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6668 for as_dir in $PATH
6669 do
6670   IFS=$as_save_IFS
6671   test -z "$as_dir" && as_dir=.
6672   for ac_exec_ext in '' $ac_executable_extensions; do
6673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6674     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6676     break 2
6677   fi
6678 done
6679 done
6680 IFS=$as_save_IFS
6681
6682   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6683   ;;
6684 esac
6685 fi
6686 TAR=$ac_cv_path_TAR
6687 if test -n "$TAR"; then
6688   { echo "$as_me:$LINENO: result: $TAR" >&5
6689 echo "${ECHO_T}$TAR" >&6; }
6690 else
6691   { echo "$as_me:$LINENO: result: no" >&5
6692 echo "${ECHO_T}no" >&6; }
6693 fi
6694
6695
6696 # Extract the first word of "pwd", so it can be a program name with args.
6697 set dummy pwd; ac_word=$2
6698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6700 if test "${ac_cv_path_BINPWD+set}" = set; then
6701   echo $ECHO_N "(cached) $ECHO_C" >&6
6702 else
6703   case $BINPWD in
6704   [\\/]* | ?:[\\/]*)
6705   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6706   ;;
6707   *)
6708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711   IFS=$as_save_IFS
6712   test -z "$as_dir" && as_dir=.
6713   for ac_exec_ext in '' $ac_executable_extensions; do
6714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6715     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717     break 2
6718   fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6724   ;;
6725 esac
6726 fi
6727 BINPWD=$ac_cv_path_BINPWD
6728 if test -n "$BINPWD"; then
6729   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6730 echo "${ECHO_T}$BINPWD" >&6; }
6731 else
6732   { echo "$as_me:$LINENO: result: no" >&5
6733 echo "${ECHO_T}no" >&6; }
6734 fi
6735
6736
6737
6738 # Extract the first word of "dot", so it can be a program name with args.
6739 set dummy dot; ac_word=$2
6740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742 if test "${ac_cv_path_DOT+set}" = set; then
6743   echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745   case $DOT in
6746   [\\/]* | ?:[\\/]*)
6747   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6748   ;;
6749   *)
6750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751 for as_dir in $PATH
6752 do
6753   IFS=$as_save_IFS
6754   test -z "$as_dir" && as_dir=.
6755   for ac_exec_ext in '' $ac_executable_extensions; do
6756   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6757     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759     break 2
6760   fi
6761 done
6762 done
6763 IFS=$as_save_IFS
6764
6765   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6766   ;;
6767 esac
6768 fi
6769 DOT=$ac_cv_path_DOT
6770 if test -n "$DOT"; then
6771   { echo "$as_me:$LINENO: result: $DOT" >&5
6772 echo "${ECHO_T}$DOT" >&6; }
6773 else
6774   { echo "$as_me:$LINENO: result: no" >&5
6775 echo "${ECHO_T}no" >&6; }
6776 fi
6777
6778
6779 if test "$DOT" != "echo dot" ; then
6780
6781 cat >>confdefs.h <<\_ACEOF
6782 #define HAVE_DOT 1
6783 _ACEOF
6784
6785     if test "$llvm_cv_os_type" = "MingW" ; then
6786     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6787   fi
6788
6789 cat >>confdefs.h <<_ACEOF
6790 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6791 _ACEOF
6792
6793 fi
6794
6795 # Find a good install program.  We prefer a C program (faster),
6796 # so one script is as good as another.  But avoid the broken or
6797 # incompatible versions:
6798 # SysV /etc/install, /usr/sbin/install
6799 # SunOS /usr/etc/install
6800 # IRIX /sbin/install
6801 # AIX /bin/install
6802 # AmigaOS /C/install, which installs bootblocks on floppy discs
6803 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6804 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6805 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6806 # OS/2's system install, which has a completely different semantic
6807 # ./install, which can be erroneously created by make from ./install.sh.
6808 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6809 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6810 if test -z "$INSTALL"; then
6811 if test "${ac_cv_path_install+set}" = set; then
6812   echo $ECHO_N "(cached) $ECHO_C" >&6
6813 else
6814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819   # Account for people who put trailing slashes in PATH elements.
6820 case $as_dir/ in
6821   ./ | .// | /cC/* | \
6822   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6823   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6824   /usr/ucb/* ) ;;
6825   *)
6826     # OSF1 and SCO ODT 3.0 have their own names for install.
6827     # Don't use installbsd from OSF since it installs stuff as root
6828     # by default.
6829     for ac_prog in ginstall scoinst install; do
6830       for ac_exec_ext in '' $ac_executable_extensions; do
6831         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6832           if test $ac_prog = install &&
6833             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6834             # AIX install.  It has an incompatible calling convention.
6835             :
6836           elif test $ac_prog = install &&
6837             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6838             # program-specific install script used by HP pwplus--don't use.
6839             :
6840           else
6841             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6842             break 3
6843           fi
6844         fi
6845       done
6846     done
6847     ;;
6848 esac
6849 done
6850 IFS=$as_save_IFS
6851
6852
6853 fi
6854   if test "${ac_cv_path_install+set}" = set; then
6855     INSTALL=$ac_cv_path_install
6856   else
6857     # As a last resort, use the slow shell script.  Don't cache a
6858     # value for INSTALL within a source directory, because that will
6859     # break other packages using the cache if that directory is
6860     # removed, or if the value is a relative name.
6861     INSTALL=$ac_install_sh
6862   fi
6863 fi
6864 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6865 echo "${ECHO_T}$INSTALL" >&6; }
6866
6867 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6868 # It thinks the first close brace ends the variable substitution.
6869 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6870
6871 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6872
6873 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6874
6875 case "$INSTALL" in
6876  [\\/$]* | ?:[\\/]* ) ;;
6877  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6878 esac
6879
6880 # Extract the first word of "bzip2", so it can be a program name with args.
6881 set dummy bzip2; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_BZIP2+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   case $BZIP2 in
6888   [\\/]* | ?:[\\/]*)
6889   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6890   ;;
6891   *)
6892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897   for ac_exec_ext in '' $ac_executable_extensions; do
6898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907   ;;
6908 esac
6909 fi
6910 BZIP2=$ac_cv_path_BZIP2
6911 if test -n "$BZIP2"; then
6912   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6913 echo "${ECHO_T}$BZIP2" >&6; }
6914 else
6915   { echo "$as_me:$LINENO: result: no" >&5
6916 echo "${ECHO_T}no" >&6; }
6917 fi
6918
6919
6920 # Extract the first word of "cat", so it can be a program name with args.
6921 set dummy cat; ac_word=$2
6922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6924 if test "${ac_cv_path_CAT+set}" = set; then
6925   echo $ECHO_N "(cached) $ECHO_C" >&6
6926 else
6927   case $CAT in
6928   [\\/]* | ?:[\\/]*)
6929   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6930   ;;
6931   *)
6932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935   IFS=$as_save_IFS
6936   test -z "$as_dir" && as_dir=.
6937   for ac_exec_ext in '' $ac_executable_extensions; do
6938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6939     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6941     break 2
6942   fi
6943 done
6944 done
6945 IFS=$as_save_IFS
6946
6947   ;;
6948 esac
6949 fi
6950 CAT=$ac_cv_path_CAT
6951 if test -n "$CAT"; then
6952   { echo "$as_me:$LINENO: result: $CAT" >&5
6953 echo "${ECHO_T}$CAT" >&6; }
6954 else
6955   { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6957 fi
6958
6959
6960 # Extract the first word of "doxygen", so it can be a program name with args.
6961 set dummy doxygen; ac_word=$2
6962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6964 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6965   echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967   case $DOXYGEN in
6968   [\\/]* | ?:[\\/]*)
6969   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
6970   ;;
6971   *)
6972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975   IFS=$as_save_IFS
6976   test -z "$as_dir" && as_dir=.
6977   for ac_exec_ext in '' $ac_executable_extensions; do
6978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6979     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
6980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6981     break 2
6982   fi
6983 done
6984 done
6985 IFS=$as_save_IFS
6986
6987   ;;
6988 esac
6989 fi
6990 DOXYGEN=$ac_cv_path_DOXYGEN
6991 if test -n "$DOXYGEN"; then
6992   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
6993 echo "${ECHO_T}$DOXYGEN" >&6; }
6994 else
6995   { echo "$as_me:$LINENO: result: no" >&5
6996 echo "${ECHO_T}no" >&6; }
6997 fi
6998
6999
7000 # Extract the first word of "groff", so it can be a program name with args.
7001 set dummy groff; ac_word=$2
7002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004 if test "${ac_cv_path_GROFF+set}" = set; then
7005   echo $ECHO_N "(cached) $ECHO_C" >&6
7006 else
7007   case $GROFF in
7008   [\\/]* | ?:[\\/]*)
7009   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7010   ;;
7011   *)
7012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015   IFS=$as_save_IFS
7016   test -z "$as_dir" && as_dir=.
7017   for ac_exec_ext in '' $ac_executable_extensions; do
7018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7019     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021     break 2
7022   fi
7023 done
7024 done
7025 IFS=$as_save_IFS
7026
7027   ;;
7028 esac
7029 fi
7030 GROFF=$ac_cv_path_GROFF
7031 if test -n "$GROFF"; then
7032   { echo "$as_me:$LINENO: result: $GROFF" >&5
7033 echo "${ECHO_T}$GROFF" >&6; }
7034 else
7035   { echo "$as_me:$LINENO: result: no" >&5
7036 echo "${ECHO_T}no" >&6; }
7037 fi
7038
7039
7040 # Extract the first word of "gzip", so it can be a program name with args.
7041 set dummy gzip; ac_word=$2
7042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7044 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7045   echo $ECHO_N "(cached) $ECHO_C" >&6
7046 else
7047   case $GZIPBIN in
7048   [\\/]* | ?:[\\/]*)
7049   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7050   ;;
7051   *)
7052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055   IFS=$as_save_IFS
7056   test -z "$as_dir" && as_dir=.
7057   for ac_exec_ext in '' $ac_executable_extensions; do
7058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7059     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061     break 2
7062   fi
7063 done
7064 done
7065 IFS=$as_save_IFS
7066
7067   ;;
7068 esac
7069 fi
7070 GZIPBIN=$ac_cv_path_GZIPBIN
7071 if test -n "$GZIPBIN"; then
7072   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7073 echo "${ECHO_T}$GZIPBIN" >&6; }
7074 else
7075   { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7077 fi
7078
7079
7080 # Extract the first word of "pdfroff", so it can be a program name with args.
7081 set dummy pdfroff; ac_word=$2
7082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084 if test "${ac_cv_path_PDFROFF+set}" = set; then
7085   echo $ECHO_N "(cached) $ECHO_C" >&6
7086 else
7087   case $PDFROFF in
7088   [\\/]* | ?:[\\/]*)
7089   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7090   ;;
7091   *)
7092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097   for ac_exec_ext in '' $ac_executable_extensions; do
7098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7099     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104 done
7105 IFS=$as_save_IFS
7106
7107   ;;
7108 esac
7109 fi
7110 PDFROFF=$ac_cv_path_PDFROFF
7111 if test -n "$PDFROFF"; then
7112   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7113 echo "${ECHO_T}$PDFROFF" >&6; }
7114 else
7115   { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7117 fi
7118
7119
7120 # Extract the first word of "zip", so it can be a program name with args.
7121 set dummy zip; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_ZIP+set}" = set; then
7125   echo $ECHO_N "(cached) $ECHO_C" >&6
7126 else
7127   case $ZIP in
7128   [\\/]* | ?:[\\/]*)
7129   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7130   ;;
7131   *)
7132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137   for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144 done
7145 IFS=$as_save_IFS
7146
7147   ;;
7148 esac
7149 fi
7150 ZIP=$ac_cv_path_ZIP
7151 if test -n "$ZIP"; then
7152   { echo "$as_me:$LINENO: result: $ZIP" >&5
7153 echo "${ECHO_T}$ZIP" >&6; }
7154 else
7155   { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7157 fi
7158
7159
7160 # Extract the first word of "go", so it can be a program name with args.
7161 set dummy go; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_GO+set}" = set; then
7165   echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167   case $GO in
7168   [\\/]* | ?:[\\/]*)
7169   ac_cv_path_GO="$GO" # Let the user override the test with a path.
7170   ;;
7171   *)
7172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177   for ac_exec_ext in '' $ac_executable_extensions; do
7178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184 done
7185 IFS=$as_save_IFS
7186
7187   ;;
7188 esac
7189 fi
7190 GO=$ac_cv_path_GO
7191 if test -n "$GO"; then
7192   { echo "$as_me:$LINENO: result: $GO" >&5
7193 echo "${ECHO_T}$GO" >&6; }
7194 else
7195   { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7197 fi
7198
7199
7200 for ac_prog in ocamlfind
7201 do
7202   # Extract the first word of "$ac_prog", so it can be a program name with args.
7203 set dummy $ac_prog; ac_word=$2
7204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7207   echo $ECHO_N "(cached) $ECHO_C" >&6
7208 else
7209   case $OCAMLFIND in
7210   [\\/]* | ?:[\\/]*)
7211   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7212   ;;
7213   *)
7214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219   for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7222     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226 done
7227 IFS=$as_save_IFS
7228
7229   ;;
7230 esac
7231 fi
7232 OCAMLFIND=$ac_cv_path_OCAMLFIND
7233 if test -n "$OCAMLFIND"; then
7234   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7235 echo "${ECHO_T}$OCAMLFIND" >&6; }
7236 else
7237   { echo "$as_me:$LINENO: result: no" >&5
7238 echo "${ECHO_T}no" >&6; }
7239 fi
7240
7241
7242   test -n "$OCAMLFIND" && break
7243 done
7244
7245 for ac_prog in gas as
7246 do
7247   # Extract the first word of "$ac_prog", so it can be a program name with args.
7248 set dummy $ac_prog; ac_word=$2
7249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7251 if test "${ac_cv_path_GAS+set}" = set; then
7252   echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254   case $GAS in
7255   [\\/]* | ?:[\\/]*)
7256   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7257   ;;
7258   *)
7259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 for as_dir in $PATH
7261 do
7262   IFS=$as_save_IFS
7263   test -z "$as_dir" && as_dir=.
7264   for ac_exec_ext in '' $ac_executable_extensions; do
7265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7266     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7267     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268     break 2
7269   fi
7270 done
7271 done
7272 IFS=$as_save_IFS
7273
7274   ;;
7275 esac
7276 fi
7277 GAS=$ac_cv_path_GAS
7278 if test -n "$GAS"; then
7279   { echo "$as_me:$LINENO: result: $GAS" >&5
7280 echo "${ECHO_T}$GAS" >&6; }
7281 else
7282   { echo "$as_me:$LINENO: result: no" >&5
7283 echo "${ECHO_T}no" >&6; }
7284 fi
7285
7286
7287   test -n "$GAS" && break
7288 done
7289
7290
7291 { echo "$as_me:$LINENO: checking for linker version" >&5
7292 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7293 if test "${llvm_cv_link_version+set}" = set; then
7294   echo $ECHO_N "(cached) $ECHO_C" >&6
7295 else
7296
7297    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7298
7299    # Check for ld64.
7300    if (echo "$version_string" | grep -q "ld64"); then
7301      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7302    else
7303      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7304    fi
7305
7306 fi
7307 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7308 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7309
7310 cat >>confdefs.h <<_ACEOF
7311 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7312 _ACEOF
7313
7314
7315
7316
7317 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7318 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7319 if test "${llvm_cv_link_use_r+set}" = set; then
7320   echo $ECHO_N "(cached) $ECHO_C" >&6
7321 else
7322    ac_ext=c
7323 ac_cpp='$CPP $CPPFLAGS'
7324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7327
7328   oldcflags="$CFLAGS"
7329   CFLAGS="$CFLAGS -Wl,-R."
7330   cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h.  */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h.  */
7336
7337 int
7338 main ()
7339 {
7340
7341   ;
7342   return 0;
7343 }
7344 _ACEOF
7345 rm -f conftest.$ac_objext conftest$ac_exeext
7346 if { (ac_try="$ac_link"
7347 case "(($ac_try" in
7348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349   *) ac_try_echo=$ac_try;;
7350 esac
7351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7352   (eval "$ac_link") 2>conftest.er1
7353   ac_status=$?
7354   grep -v '^ *+' conftest.er1 >conftest.err
7355   rm -f conftest.er1
7356   cat conftest.err >&5
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); } &&
7359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7360   { (case "(($ac_try" in
7361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362   *) ac_try_echo=$ac_try;;
7363 esac
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365   (eval "$ac_try") 2>&5
7366   ac_status=$?
7367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368   (exit $ac_status); }; } &&
7369          { ac_try='test -s conftest$ac_exeext'
7370   { (case "(($ac_try" in
7371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7372   *) ac_try_echo=$ac_try;;
7373 esac
7374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7375   (eval "$ac_try") 2>&5
7376   ac_status=$?
7377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378   (exit $ac_status); }; }; then
7379   llvm_cv_link_use_r=yes
7380 else
7381   echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7383
7384         llvm_cv_link_use_r=no
7385 fi
7386
7387 rm -f core conftest.err conftest.$ac_objext \
7388       conftest$ac_exeext conftest.$ac_ext
7389   CFLAGS="$oldcflags"
7390   ac_ext=c
7391 ac_cpp='$CPP $CPPFLAGS'
7392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7395
7396
7397 fi
7398 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7399 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7400 if test "$llvm_cv_link_use_r" = yes ; then
7401
7402 cat >>confdefs.h <<\_ACEOF
7403 #define HAVE_LINK_R 1
7404 _ACEOF
7405
7406   fi
7407
7408
7409 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7410 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7411 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7412   echo $ECHO_N "(cached) $ECHO_C" >&6
7413 else
7414    ac_ext=c
7415 ac_cpp='$CPP $CPPFLAGS'
7416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7419
7420   oldcflags="$CFLAGS"
7421   CFLAGS="$CFLAGS -rdynamic"
7422   cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h.  */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h.  */
7428
7429 int
7430 main ()
7431 {
7432
7433   ;
7434   return 0;
7435 }
7436 _ACEOF
7437 rm -f conftest.$ac_objext conftest$ac_exeext
7438 if { (ac_try="$ac_link"
7439 case "(($ac_try" in
7440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7441   *) ac_try_echo=$ac_try;;
7442 esac
7443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7444   (eval "$ac_link") 2>conftest.er1
7445   ac_status=$?
7446   grep -v '^ *+' conftest.er1 >conftest.err
7447   rm -f conftest.er1
7448   cat conftest.err >&5
7449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } &&
7451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7452   { (case "(($ac_try" in
7453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454   *) ac_try_echo=$ac_try;;
7455 esac
7456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457   (eval "$ac_try") 2>&5
7458   ac_status=$?
7459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); }; } &&
7461          { ac_try='test -s conftest$ac_exeext'
7462   { (case "(($ac_try" in
7463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464   *) ac_try_echo=$ac_try;;
7465 esac
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467   (eval "$ac_try") 2>&5
7468   ac_status=$?
7469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470   (exit $ac_status); }; }; then
7471   llvm_cv_link_use_export_dynamic=yes
7472 else
7473   echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7475
7476         llvm_cv_link_use_export_dynamic=no
7477 fi
7478
7479 rm -f core conftest.err conftest.$ac_objext \
7480       conftest$ac_exeext conftest.$ac_ext
7481   CFLAGS="$oldcflags"
7482   ac_ext=c
7483 ac_cpp='$CPP $CPPFLAGS'
7484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7487
7488
7489 fi
7490 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7491 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7492 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7493
7494 cat >>confdefs.h <<\_ACEOF
7495 #define HAVE_LINK_EXPORT_DYNAMIC 1
7496 _ACEOF
7497
7498   fi
7499
7500
7501 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7502 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7503 if test "${llvm_cv_link_use_version_script+set}" = set; then
7504   echo $ECHO_N "(cached) $ECHO_C" >&6
7505 else
7506    ac_ext=c
7507 ac_cpp='$CPP $CPPFLAGS'
7508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7511
7512   oldcflags="$CFLAGS"
7513
7514   # The following code is from the autoconf manual,
7515   # "11.13: Limitations of Usual Tools".
7516   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7517   # Use mktemp if possible; otherwise fall back on mkdir,
7518   # with $RANDOM to make collisions less likely.
7519   : ${TMPDIR=/tmp}
7520   {
7521     tmp=`
7522       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7523     ` &&
7524     test -n "$tmp" && test -d "$tmp"
7525   } || {
7526     tmp=$TMPDIR/foo$$-$RANDOM
7527     (umask 077 && mkdir "$tmp")
7528   } || exit $?
7529
7530   echo "{" > "$tmp/export.map"
7531   echo "  global: main;" >> "$tmp/export.map"
7532   echo "  local: *;" >> "$tmp/export.map"
7533   echo "};" >> "$tmp/export.map"
7534
7535   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7536   cat >conftest.$ac_ext <<_ACEOF
7537 /* confdefs.h.  */
7538 _ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h.  */
7542
7543 int
7544 main ()
7545 {
7546
7547   ;
7548   return 0;
7549 }
7550 _ACEOF
7551 rm -f conftest.$ac_objext conftest$ac_exeext
7552 if { (ac_try="$ac_link"
7553 case "(($ac_try" in
7554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555   *) ac_try_echo=$ac_try;;
7556 esac
7557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558   (eval "$ac_link") 2>conftest.er1
7559   ac_status=$?
7560   grep -v '^ *+' conftest.er1 >conftest.err
7561   rm -f conftest.er1
7562   cat conftest.err >&5
7563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564   (exit $ac_status); } &&
7565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7566   { (case "(($ac_try" in
7567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568   *) ac_try_echo=$ac_try;;
7569 esac
7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571   (eval "$ac_try") 2>&5
7572   ac_status=$?
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); }; } &&
7575          { ac_try='test -s conftest$ac_exeext'
7576   { (case "(($ac_try" in
7577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578   *) ac_try_echo=$ac_try;;
7579 esac
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581   (eval "$ac_try") 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); }; }; then
7585   llvm_cv_link_use_version_script=yes
7586 else
7587   echo "$as_me: failed program was:" >&5
7588 sed 's/^/| /' conftest.$ac_ext >&5
7589
7590         llvm_cv_link_use_version_script=no
7591 fi
7592
7593 rm -f core conftest.err conftest.$ac_objext \
7594       conftest$ac_exeext conftest.$ac_ext
7595   rm "$tmp/export.map"
7596   rmdir "$tmp"
7597   CFLAGS="$oldcflags"
7598   ac_ext=c
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603
7604
7605 fi
7606 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7607 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7608 if test "$llvm_cv_link_use_version_script" = yes ; then
7609   HAVE_LINK_VERSION_SCRIPT=1
7610
7611   fi
7612
7613
7614
7615 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7616 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7617 if test "${ac_cv_path_GREP+set}" = set; then
7618   echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620   # Extract the first word of "grep ggrep" to use in msg output
7621 if test -z "$GREP"; then
7622 set dummy grep ggrep; ac_prog_name=$2
7623 if test "${ac_cv_path_GREP+set}" = set; then
7624   echo $ECHO_N "(cached) $ECHO_C" >&6
7625 else
7626   ac_path_GREP_found=false
7627 # Loop through the user's path and test for each of PROGNAME-LIST
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7630 do
7631   IFS=$as_save_IFS
7632   test -z "$as_dir" && as_dir=.
7633   for ac_prog in grep ggrep; do
7634   for ac_exec_ext in '' $ac_executable_extensions; do
7635     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7636     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7637     # Check for GNU ac_path_GREP and select it if it is found.
7638   # Check for GNU $ac_path_GREP
7639 case `"$ac_path_GREP" --version 2>&1` in
7640 *GNU*)
7641   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7642 *)
7643   ac_count=0
7644   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7645   while :
7646   do
7647     cat "conftest.in" "conftest.in" >"conftest.tmp"
7648     mv "conftest.tmp" "conftest.in"
7649     cp "conftest.in" "conftest.nl"
7650     echo 'GREP' >> "conftest.nl"
7651     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7652     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7653     ac_count=`expr $ac_count + 1`
7654     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7655       # Best one so far, save it but keep looking for a better one
7656       ac_cv_path_GREP="$ac_path_GREP"
7657       ac_path_GREP_max=$ac_count
7658     fi
7659     # 10*(2^10) chars as input seems more than enough
7660     test $ac_count -gt 10 && break
7661   done
7662   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7663 esac
7664
7665
7666     $ac_path_GREP_found && break 3
7667   done
7668 done
7669
7670 done
7671 IFS=$as_save_IFS
7672
7673
7674 fi
7675
7676 GREP="$ac_cv_path_GREP"
7677 if test -z "$GREP"; then
7678   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7679 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7680    { (exit 1); exit 1; }; }
7681 fi
7682
7683 else
7684   ac_cv_path_GREP=$GREP
7685 fi
7686
7687
7688 fi
7689 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7690 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7691  GREP="$ac_cv_path_GREP"
7692
7693
7694 { echo "$as_me:$LINENO: checking for egrep" >&5
7695 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7696 if test "${ac_cv_path_EGREP+set}" = set; then
7697   echo $ECHO_N "(cached) $ECHO_C" >&6
7698 else
7699   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7700    then ac_cv_path_EGREP="$GREP -E"
7701    else
7702      # Extract the first word of "egrep" to use in msg output
7703 if test -z "$EGREP"; then
7704 set dummy egrep; ac_prog_name=$2
7705 if test "${ac_cv_path_EGREP+set}" = set; then
7706   echo $ECHO_N "(cached) $ECHO_C" >&6
7707 else
7708   ac_path_EGREP_found=false
7709 # Loop through the user's path and test for each of PROGNAME-LIST
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7712 do
7713   IFS=$as_save_IFS
7714   test -z "$as_dir" && as_dir=.
7715   for ac_prog in egrep; do
7716   for ac_exec_ext in '' $ac_executable_extensions; do
7717     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7718     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7719     # Check for GNU ac_path_EGREP and select it if it is found.
7720   # Check for GNU $ac_path_EGREP
7721 case `"$ac_path_EGREP" --version 2>&1` in
7722 *GNU*)
7723   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7724 *)
7725   ac_count=0
7726   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7727   while :
7728   do
7729     cat "conftest.in" "conftest.in" >"conftest.tmp"
7730     mv "conftest.tmp" "conftest.in"
7731     cp "conftest.in" "conftest.nl"
7732     echo 'EGREP' >> "conftest.nl"
7733     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7734     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7735     ac_count=`expr $ac_count + 1`
7736     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7737       # Best one so far, save it but keep looking for a better one
7738       ac_cv_path_EGREP="$ac_path_EGREP"
7739       ac_path_EGREP_max=$ac_count
7740     fi
7741     # 10*(2^10) chars as input seems more than enough
7742     test $ac_count -gt 10 && break
7743   done
7744   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7745 esac
7746
7747
7748     $ac_path_EGREP_found && break 3
7749   done
7750 done
7751
7752 done
7753 IFS=$as_save_IFS
7754
7755
7756 fi
7757
7758 EGREP="$ac_cv_path_EGREP"
7759 if test -z "$EGREP"; then
7760   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7761 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7762    { (exit 1); exit 1; }; }
7763 fi
7764
7765 else
7766   ac_cv_path_EGREP=$EGREP
7767 fi
7768
7769
7770    fi
7771 fi
7772 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7773 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7774  EGREP="$ac_cv_path_EGREP"
7775
7776
7777 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7778 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7779 if test "${ac_cv_header_stdc+set}" = set; then
7780   echo $ECHO_N "(cached) $ECHO_C" >&6
7781 else
7782   cat >conftest.$ac_ext <<_ACEOF
7783 /* confdefs.h.  */
7784 _ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h.  */
7788 #include <stdlib.h>
7789 #include <stdarg.h>
7790 #include <string.h>
7791 #include <float.h>
7792
7793 int
7794 main ()
7795 {
7796
7797   ;
7798   return 0;
7799 }
7800 _ACEOF
7801 rm -f conftest.$ac_objext
7802 if { (ac_try="$ac_compile"
7803 case "(($ac_try" in
7804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805   *) ac_try_echo=$ac_try;;
7806 esac
7807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808   (eval "$ac_compile") 2>conftest.er1
7809   ac_status=$?
7810   grep -v '^ *+' conftest.er1 >conftest.err
7811   rm -f conftest.er1
7812   cat conftest.err >&5
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); } &&
7815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7816   { (case "(($ac_try" in
7817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818   *) ac_try_echo=$ac_try;;
7819 esac
7820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7821   (eval "$ac_try") 2>&5
7822   ac_status=$?
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); }; } &&
7825          { ac_try='test -s conftest.$ac_objext'
7826   { (case "(($ac_try" in
7827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7828   *) ac_try_echo=$ac_try;;
7829 esac
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831   (eval "$ac_try") 2>&5
7832   ac_status=$?
7833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834   (exit $ac_status); }; }; then
7835   ac_cv_header_stdc=yes
7836 else
7837   echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7839
7840         ac_cv_header_stdc=no
7841 fi
7842
7843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844
7845 if test $ac_cv_header_stdc = yes; then
7846   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7847   cat >conftest.$ac_ext <<_ACEOF
7848 /* confdefs.h.  */
7849 _ACEOF
7850 cat confdefs.h >>conftest.$ac_ext
7851 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h.  */
7853 #include <string.h>
7854
7855 _ACEOF
7856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7857   $EGREP "memchr" >/dev/null 2>&1; then
7858   :
7859 else
7860   ac_cv_header_stdc=no
7861 fi
7862 rm -f conftest*
7863
7864 fi
7865
7866 if test $ac_cv_header_stdc = yes; then
7867   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7868   cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874 #include <stdlib.h>
7875
7876 _ACEOF
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878   $EGREP "free" >/dev/null 2>&1; then
7879   :
7880 else
7881   ac_cv_header_stdc=no
7882 fi
7883 rm -f conftest*
7884
7885 fi
7886
7887 if test $ac_cv_header_stdc = yes; then
7888   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7889   if test "$cross_compiling" = yes; then
7890   :
7891 else
7892   cat >conftest.$ac_ext <<_ACEOF
7893 /* confdefs.h.  */
7894 _ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h.  */
7898 #include <ctype.h>
7899 #include <stdlib.h>
7900 #if ((' ' & 0x0FF) == 0x020)
7901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7903 #else
7904 # define ISLOWER(c) \
7905                    (('a' <= (c) && (c) <= 'i') \
7906                      || ('j' <= (c) && (c) <= 'r') \
7907                      || ('s' <= (c) && (c) <= 'z'))
7908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7909 #endif
7910
7911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7912 int
7913 main ()
7914 {
7915   int i;
7916   for (i = 0; i < 256; i++)
7917     if (XOR (islower (i), ISLOWER (i))
7918         || toupper (i) != TOUPPER (i))
7919       return 2;
7920   return 0;
7921 }
7922 _ACEOF
7923 rm -f conftest$ac_exeext
7924 if { (ac_try="$ac_link"
7925 case "(($ac_try" in
7926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927   *) ac_try_echo=$ac_try;;
7928 esac
7929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930   (eval "$ac_link") 2>&5
7931   ac_status=$?
7932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7934   { (case "(($ac_try" in
7935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936   *) ac_try_echo=$ac_try;;
7937 esac
7938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7939   (eval "$ac_try") 2>&5
7940   ac_status=$?
7941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942   (exit $ac_status); }; }; then
7943   :
7944 else
7945   echo "$as_me: program exited with status $ac_status" >&5
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7948
7949 ( exit $ac_status )
7950 ac_cv_header_stdc=no
7951 fi
7952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7953 fi
7954
7955
7956 fi
7957 fi
7958 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7959 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7960 if test $ac_cv_header_stdc = yes; then
7961
7962 cat >>confdefs.h <<\_ACEOF
7963 #define STDC_HEADERS 1
7964 _ACEOF
7965
7966 fi
7967
7968 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7979                   inttypes.h stdint.h unistd.h
7980 do
7981 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7985   echo $ECHO_N "(cached) $ECHO_C" >&6
7986 else
7987   cat >conftest.$ac_ext <<_ACEOF
7988 /* confdefs.h.  */
7989 _ACEOF
7990 cat confdefs.h >>conftest.$ac_ext
7991 cat >>conftest.$ac_ext <<_ACEOF
7992 /* end confdefs.h.  */
7993 $ac_includes_default
7994
7995 #include <$ac_header>
7996 _ACEOF
7997 rm -f conftest.$ac_objext
7998 if { (ac_try="$ac_compile"
7999 case "(($ac_try" in
8000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8001   *) ac_try_echo=$ac_try;;
8002 esac
8003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8004   (eval "$ac_compile") 2>conftest.er1
8005   ac_status=$?
8006   grep -v '^ *+' conftest.er1 >conftest.err
8007   rm -f conftest.er1
8008   cat conftest.err >&5
8009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8010   (exit $ac_status); } &&
8011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8012   { (case "(($ac_try" in
8013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014   *) ac_try_echo=$ac_try;;
8015 esac
8016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8017   (eval "$ac_try") 2>&5
8018   ac_status=$?
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); }; } &&
8021          { ac_try='test -s conftest.$ac_objext'
8022   { (case "(($ac_try" in
8023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024   *) ac_try_echo=$ac_try;;
8025 esac
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027   (eval "$ac_try") 2>&5
8028   ac_status=$?
8029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030   (exit $ac_status); }; }; then
8031   eval "$as_ac_Header=yes"
8032 else
8033   echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8035
8036         eval "$as_ac_Header=no"
8037 fi
8038
8039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 fi
8041 ac_res=`eval echo '${'$as_ac_Header'}'`
8042                { echo "$as_me:$LINENO: result: $ac_res" >&5
8043 echo "${ECHO_T}$ac_res" >&6; }
8044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8045   cat >>confdefs.h <<_ACEOF
8046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8047 _ACEOF
8048
8049 fi
8050
8051 done
8052
8053
8054
8055 for ac_header in errno.h
8056 do
8057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8059   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8062   echo $ECHO_N "(cached) $ECHO_C" >&6
8063 fi
8064 ac_res=`eval echo '${'$as_ac_Header'}'`
8065                { echo "$as_me:$LINENO: result: $ac_res" >&5
8066 echo "${ECHO_T}$ac_res" >&6; }
8067 else
8068   # Is the header compilable?
8069 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h.  */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h.  */
8077 $ac_includes_default
8078 #include <$ac_header>
8079 _ACEOF
8080 rm -f conftest.$ac_objext
8081 if { (ac_try="$ac_compile"
8082 case "(($ac_try" in
8083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8084   *) ac_try_echo=$ac_try;;
8085 esac
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087   (eval "$ac_compile") 2>conftest.er1
8088   ac_status=$?
8089   grep -v '^ *+' conftest.er1 >conftest.err
8090   rm -f conftest.er1
8091   cat conftest.err >&5
8092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); } &&
8094          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8095   { (case "(($ac_try" in
8096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097   *) ac_try_echo=$ac_try;;
8098 esac
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100   (eval "$ac_try") 2>&5
8101   ac_status=$?
8102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103   (exit $ac_status); }; } &&
8104          { ac_try='test -s conftest.$ac_objext'
8105   { (case "(($ac_try" in
8106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107   *) ac_try_echo=$ac_try;;
8108 esac
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110   (eval "$ac_try") 2>&5
8111   ac_status=$?
8112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113   (exit $ac_status); }; }; then
8114   ac_header_compiler=yes
8115 else
8116   echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8118
8119         ac_header_compiler=no
8120 fi
8121
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8124 echo "${ECHO_T}$ac_header_compiler" >&6; }
8125
8126 # Is the header present?
8127 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8128 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8129 cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h.  */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h.  */
8135 #include <$ac_header>
8136 _ACEOF
8137 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
8144   ac_status=$?
8145   grep -v '^ *+' conftest.er1 >conftest.err
8146   rm -f conftest.er1
8147   cat conftest.err >&5
8148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149   (exit $ac_status); } >/dev/null; then
8150   if test -s conftest.err; then
8151     ac_cpp_err=$ac_c_preproc_warn_flag
8152     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8153   else
8154     ac_cpp_err=
8155   fi
8156 else
8157   ac_cpp_err=yes
8158 fi
8159 if test -z "$ac_cpp_err"; then
8160   ac_header_preproc=yes
8161 else
8162   echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8164
8165   ac_header_preproc=no
8166 fi
8167
8168 rm -f conftest.err conftest.$ac_ext
8169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8170 echo "${ECHO_T}$ac_header_preproc" >&6; }
8171
8172 # So?  What about this header?
8173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8174   yes:no: )
8175     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8177     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8179     ac_header_preproc=yes
8180     ;;
8181   no:yes:* )
8182     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8184     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8185 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8186     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8188     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8189 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8190     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8192     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8194     ( cat <<\_ASBOX
8195 ## ------------------------------------ ##
8196 ## Report this to http://llvm.org/bugs/ ##
8197 ## ------------------------------------ ##
8198 _ASBOX
8199      ) | sed "s/^/$as_me: WARNING:     /" >&2
8200     ;;
8201 esac
8202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8205   echo $ECHO_N "(cached) $ECHO_C" >&6
8206 else
8207   eval "$as_ac_Header=\$ac_header_preproc"
8208 fi
8209 ac_res=`eval echo '${'$as_ac_Header'}'`
8210                { echo "$as_me:$LINENO: result: $ac_res" >&5
8211 echo "${ECHO_T}$ac_res" >&6; }
8212
8213 fi
8214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8215   cat >>confdefs.h <<_ACEOF
8216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8217 _ACEOF
8218
8219 fi
8220
8221 done
8222
8223
8224 case "$llvm_cv_os_type" in
8225   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8226   Darwin) llvm_shlib_ext=.dylib ;;
8227   *) llvm_shlib_ext=.so ;;
8228 esac
8229
8230
8231 cat >>confdefs.h <<_ACEOF
8232 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8233 _ACEOF
8234
8235
8236 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8237 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8238
8239 ICC=no
8240 IXX=no
8241 case $CC in
8242   icc*|icpc*)
8243     ICC=yes
8244     IXX=yes
8245     ;;
8246    *)
8247     ;;
8248 esac
8249
8250 if test "$GCC" != "yes" && test "$ICC" != "yes"
8251 then
8252   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8253 echo "$as_me: error: gcc|icc required but not found" >&2;}
8254    { (exit 1); exit 1; }; }
8255 fi
8256
8257 if test "$GXX" != "yes" && test "$IXX" != "yes"
8258 then
8259   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8260 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8261    { (exit 1); exit 1; }; }
8262 fi
8263
8264 if test "$GCC" = "yes"
8265 then
8266   cat >conftest.$ac_ext <<_ACEOF
8267
8268   /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8273
8274     #if !defined(__GNUC__) || __GNUC__ < 3
8275     #error Unsupported GCC version
8276     #endif
8277
8278
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8282 case "(($ac_try" in
8283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284   *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287   (eval "$ac_compile") 2>conftest.er1
8288   ac_status=$?
8289   grep -v '^ *+' conftest.er1 >conftest.err
8290   rm -f conftest.er1
8291   cat conftest.err >&5
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); } &&
8294          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8295   { (case "(($ac_try" in
8296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297   *) ac_try_echo=$ac_try;;
8298 esac
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300   (eval "$ac_try") 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; } &&
8304          { ac_try='test -s conftest.$ac_objext'
8305   { (case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310   (eval "$ac_try") 2>&5
8311   ac_status=$?
8312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313   (exit $ac_status); }; }; then
8314   :
8315 else
8316   echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8318
8319         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8320 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8321    { (exit 1); exit 1; }; }
8322 fi
8323
8324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 fi
8326
8327 if test -z "$llvm_cv_gnu_make_command"
8328 then
8329   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8330 echo "$as_me: error: GNU Make required but not found" >&2;}
8331    { (exit 1); exit 1; }; }
8332 fi
8333
8334 { echo "$as_me:$LINENO: result: ok" >&5
8335 echo "${ECHO_T}ok" >&6; }
8336
8337 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8338 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8339 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8340
8341 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8342
8343 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8344
8345
8346 NO_UNINITIALIZED=
8347 NO_MAYBE_UNINITIALIZED=
8348 if test "$GXX" = "yes"
8349 then
8350   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8351
8352         if test -z "$NO_MAYBE_UNINITIALIZED"
8353   then
8354     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8355
8356   fi
8357 fi
8358
8359 no_comment=
8360 llvm_cv_old_cxxflags="$CXXFLAGS"
8361 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8362 cat >conftest.$ac_ext <<_ACEOF
8363
8364   /* confdefs.h.  */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h.  */
8369 // Comment \o\
8370 // Another comment
8371 int main() { return 0; }
8372
8373
8374 _ACEOF
8375 rm -f conftest.$ac_objext
8376 if { (ac_try="$ac_compile"
8377 case "(($ac_try" in
8378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379   *) ac_try_echo=$ac_try;;
8380 esac
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382   (eval "$ac_compile") 2>conftest.er1
8383   ac_status=$?
8384   grep -v '^ *+' conftest.er1 >conftest.err
8385   rm -f conftest.er1
8386   cat conftest.err >&5
8387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388   (exit $ac_status); } &&
8389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8390   { (case "(($ac_try" in
8391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392   *) ac_try_echo=$ac_try;;
8393 esac
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395   (eval "$ac_try") 2>&5
8396   ac_status=$?
8397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398   (exit $ac_status); }; } &&
8399          { ac_try='test -s conftest.$ac_objext'
8400   { (case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405   (eval "$ac_try") 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; }; then
8409
8410   no_comment=-Wno-comment
8411
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416
8417 fi
8418
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 NO_COMMENT=$no_comment
8421
8422 CXXFLAGS="$llvm_cv_old_cxxflags"
8423
8424 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8425 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8426
8427
8428 # Check whether --with-python was given.
8429 if test "${with_python+set}" = set; then
8430   withval=$with_python; PYTHON="$withval"
8431 fi
8432
8433
8434 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8435   { echo "$as_me:$LINENO: checking for python" >&5
8436 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8437   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8438 echo "${ECHO_T}user defined: $with_python" >&6; }
8439 else
8440   if test -n "$PYTHON" ; then
8441     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8442 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8443   fi
8444
8445   # Extract the first word of "python python2 python27", so it can be a program name with args.
8446 set dummy python python2 python27; ac_word=$2
8447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8449 if test "${ac_cv_path_PYTHON+set}" = set; then
8450   echo $ECHO_N "(cached) $ECHO_C" >&6
8451 else
8452   case $PYTHON in
8453   [\\/]* | ?:[\\/]*)
8454   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8455   ;;
8456   *)
8457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458 for as_dir in $PATH
8459 do
8460   IFS=$as_save_IFS
8461   test -z "$as_dir" && as_dir=.
8462   for ac_exec_ext in '' $ac_executable_extensions; do
8463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8464     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8466     break 2
8467   fi
8468 done
8469 done
8470 IFS=$as_save_IFS
8471
8472   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8473 echo "${ECHO_T}not found" >&6; }
8474                 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8475 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8476    { (exit 1); exit 1; }; }"
8477   ;;
8478 esac
8479 fi
8480 PYTHON=$ac_cv_path_PYTHON
8481 if test -n "$PYTHON"; then
8482   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8483 echo "${ECHO_T}$PYTHON" >&6; }
8484 else
8485   { echo "$as_me:$LINENO: result: no" >&5
8486 echo "${ECHO_T}no" >&6; }
8487 fi
8488
8489
8490 fi
8491
8492 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8493 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8494 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8495 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8496 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8497 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8498 if test "$ac_python_version_major" -gt "2" || \
8499    (test "$ac_python_version_major" -eq "2" && \
8500     test "$ac_python_version_minor" -ge "7") ; then
8501   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8502 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8503 else
8504   { echo "$as_me:$LINENO: result: not found" >&5
8505 echo "${ECHO_T}not found" >&6; }
8506   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8507 See \`config.log' for more details." >&5
8508 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8509 See \`config.log' for more details." >&2;}
8510    { (exit 1); exit 1; }; }
8511 fi
8512
8513
8514
8515 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8516 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8517 if test "${ac_cv_lib_m_sin+set}" = set; then
8518   echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520   ac_check_lib_save_LIBS=$LIBS
8521 LIBS="-lm  $LIBS"
8522 cat >conftest.$ac_ext <<_ACEOF
8523 /* confdefs.h.  */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h.  */
8528
8529 /* Override any GCC internal prototype to avoid an error.
8530    Use char because int might match the return type of a GCC
8531    builtin and then its argument prototype would still apply.  */
8532 #ifdef __cplusplus
8533 extern "C"
8534 #endif
8535 char sin ();
8536 int
8537 main ()
8538 {
8539 return sin ();
8540   ;
8541   return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (ac_try="$ac_link"
8546 case "(($ac_try" in
8547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8548   *) ac_try_echo=$ac_try;;
8549 esac
8550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8551   (eval "$ac_link") 2>conftest.er1
8552   ac_status=$?
8553   grep -v '^ *+' conftest.er1 >conftest.err
8554   rm -f conftest.er1
8555   cat conftest.err >&5
8556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557   (exit $ac_status); } &&
8558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8559   { (case "(($ac_try" in
8560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8561   *) ac_try_echo=$ac_try;;
8562 esac
8563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8564   (eval "$ac_try") 2>&5
8565   ac_status=$?
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); }; } &&
8568          { ac_try='test -s conftest$ac_exeext'
8569   { (case "(($ac_try" in
8570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571   *) ac_try_echo=$ac_try;;
8572 esac
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574   (eval "$ac_try") 2>&5
8575   ac_status=$?
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); }; }; then
8578   ac_cv_lib_m_sin=yes
8579 else
8580   echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8582
8583         ac_cv_lib_m_sin=no
8584 fi
8585
8586 rm -f core conftest.err conftest.$ac_objext \
8587       conftest$ac_exeext conftest.$ac_ext
8588 LIBS=$ac_check_lib_save_LIBS
8589 fi
8590 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8591 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8592 if test $ac_cv_lib_m_sin = yes; then
8593   cat >>confdefs.h <<_ACEOF
8594 #define HAVE_LIBM 1
8595 _ACEOF
8596
8597   LIBS="-lm $LIBS"
8598
8599 fi
8600
8601 if test "$llvm_cv_os_type" = "MingW" ; then
8602
8603 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8604 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8605 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8606   echo $ECHO_N "(cached) $ECHO_C" >&6
8607 else
8608   ac_check_lib_save_LIBS=$LIBS
8609 LIBS="-limagehlp  $LIBS"
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h.  */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h.  */
8616
8617
8618 int
8619 main ()
8620 {
8621 return main ();
8622   ;
8623   return 0;
8624 }
8625 _ACEOF
8626 rm -f conftest.$ac_objext conftest$ac_exeext
8627 if { (ac_try="$ac_link"
8628 case "(($ac_try" in
8629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630   *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633   (eval "$ac_link") 2>conftest.er1
8634   ac_status=$?
8635   grep -v '^ *+' conftest.er1 >conftest.err
8636   rm -f conftest.er1
8637   cat conftest.err >&5
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } &&
8640          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8641   { (case "(($ac_try" in
8642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643   *) ac_try_echo=$ac_try;;
8644 esac
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646   (eval "$ac_try") 2>&5
8647   ac_status=$?
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); }; } &&
8650          { ac_try='test -s conftest$ac_exeext'
8651   { (case "(($ac_try" in
8652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653   *) ac_try_echo=$ac_try;;
8654 esac
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656   (eval "$ac_try") 2>&5
8657   ac_status=$?
8658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659   (exit $ac_status); }; }; then
8660   ac_cv_lib_imagehlp_main=yes
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8664
8665         ac_cv_lib_imagehlp_main=no
8666 fi
8667
8668 rm -f core conftest.err conftest.$ac_objext \
8669       conftest$ac_exeext conftest.$ac_ext
8670 LIBS=$ac_check_lib_save_LIBS
8671 fi
8672 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8673 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8674 if test $ac_cv_lib_imagehlp_main = yes; then
8675   cat >>confdefs.h <<_ACEOF
8676 #define HAVE_LIBIMAGEHLP 1
8677 _ACEOF
8678
8679   LIBS="-limagehlp $LIBS"
8680
8681 fi
8682
8683
8684 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8685 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8686 if test "${ac_cv_lib_psapi_main+set}" = set; then
8687   echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689   ac_check_lib_save_LIBS=$LIBS
8690 LIBS="-lpsapi  $LIBS"
8691 cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h.  */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h.  */
8697
8698
8699 int
8700 main ()
8701 {
8702 return main ();
8703   ;
8704   return 0;
8705 }
8706 _ACEOF
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (ac_try="$ac_link"
8709 case "(($ac_try" in
8710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711   *) ac_try_echo=$ac_try;;
8712 esac
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714   (eval "$ac_link") 2>conftest.er1
8715   ac_status=$?
8716   grep -v '^ *+' conftest.er1 >conftest.err
8717   rm -f conftest.er1
8718   cat conftest.err >&5
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); } &&
8721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8722   { (case "(($ac_try" in
8723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724   *) ac_try_echo=$ac_try;;
8725 esac
8726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8727   (eval "$ac_try") 2>&5
8728   ac_status=$?
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); }; } &&
8731          { ac_try='test -s conftest$ac_exeext'
8732   { (case "(($ac_try" in
8733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8734   *) ac_try_echo=$ac_try;;
8735 esac
8736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8737   (eval "$ac_try") 2>&5
8738   ac_status=$?
8739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740   (exit $ac_status); }; }; then
8741   ac_cv_lib_psapi_main=yes
8742 else
8743   echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746         ac_cv_lib_psapi_main=no
8747 fi
8748
8749 rm -f core conftest.err conftest.$ac_objext \
8750       conftest$ac_exeext conftest.$ac_ext
8751 LIBS=$ac_check_lib_save_LIBS
8752 fi
8753 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8754 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8755 if test $ac_cv_lib_psapi_main = yes; then
8756   cat >>confdefs.h <<_ACEOF
8757 #define HAVE_LIBPSAPI 1
8758 _ACEOF
8759
8760   LIBS="-lpsapi $LIBS"
8761
8762 fi
8763
8764
8765 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8766 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8767 if test "${ac_cv_lib_shell32_main+set}" = set; then
8768   echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770   ac_check_lib_save_LIBS=$LIBS
8771 LIBS="-lshell32  $LIBS"
8772 cat >conftest.$ac_ext <<_ACEOF
8773 /* confdefs.h.  */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h.  */
8778
8779
8780 int
8781 main ()
8782 {
8783 return main ();
8784   ;
8785   return 0;
8786 }
8787 _ACEOF
8788 rm -f conftest.$ac_objext conftest$ac_exeext
8789 if { (ac_try="$ac_link"
8790 case "(($ac_try" in
8791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792   *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795   (eval "$ac_link") 2>conftest.er1
8796   ac_status=$?
8797   grep -v '^ *+' conftest.er1 >conftest.err
8798   rm -f conftest.er1
8799   cat conftest.err >&5
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); } &&
8802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8803   { (case "(($ac_try" in
8804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805   *) ac_try_echo=$ac_try;;
8806 esac
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808   (eval "$ac_try") 2>&5
8809   ac_status=$?
8810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); }; } &&
8812          { ac_try='test -s conftest$ac_exeext'
8813   { (case "(($ac_try" in
8814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815   *) ac_try_echo=$ac_try;;
8816 esac
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818   (eval "$ac_try") 2>&5
8819   ac_status=$?
8820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821   (exit $ac_status); }; }; then
8822   ac_cv_lib_shell32_main=yes
8823 else
8824   echo "$as_me: failed program was:" >&5
8825 sed 's/^/| /' conftest.$ac_ext >&5
8826
8827         ac_cv_lib_shell32_main=no
8828 fi
8829
8830 rm -f core conftest.err conftest.$ac_objext \
8831       conftest$ac_exeext conftest.$ac_ext
8832 LIBS=$ac_check_lib_save_LIBS
8833 fi
8834 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8835 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8836 if test $ac_cv_lib_shell32_main = yes; then
8837   cat >>confdefs.h <<_ACEOF
8838 #define HAVE_LIBSHELL32 1
8839 _ACEOF
8840
8841   LIBS="-lshell32 $LIBS"
8842
8843 fi
8844
8845 fi
8846
8847 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8848 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8849 if test "${ac_cv_search_dlopen+set}" = set; then
8850   echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852   ac_func_search_save_LIBS=$LIBS
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h.  */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h.  */
8859
8860 /* Override any GCC internal prototype to avoid an error.
8861    Use char because int might match the return type of a GCC
8862    builtin and then its argument prototype would still apply.  */
8863 #ifdef __cplusplus
8864 extern "C"
8865 #endif
8866 char dlopen ();
8867 int
8868 main ()
8869 {
8870 return dlopen ();
8871   ;
8872   return 0;
8873 }
8874 _ACEOF
8875 for ac_lib in '' dl; do
8876   if test -z "$ac_lib"; then
8877     ac_res="none required"
8878   else
8879     ac_res=-l$ac_lib
8880     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8881   fi
8882   rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (ac_try="$ac_link"
8884 case "(($ac_try" in
8885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8886   *) ac_try_echo=$ac_try;;
8887 esac
8888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8889   (eval "$ac_link") 2>conftest.er1
8890   ac_status=$?
8891   grep -v '^ *+' conftest.er1 >conftest.err
8892   rm -f conftest.er1
8893   cat conftest.err >&5
8894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895   (exit $ac_status); } &&
8896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8897   { (case "(($ac_try" in
8898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899   *) ac_try_echo=$ac_try;;
8900 esac
8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902   (eval "$ac_try") 2>&5
8903   ac_status=$?
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); }; } &&
8906          { ac_try='test -s conftest$ac_exeext'
8907   { (case "(($ac_try" in
8908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909   *) ac_try_echo=$ac_try;;
8910 esac
8911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912   (eval "$ac_try") 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   ac_cv_search_dlopen=$ac_res
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921
8922 fi
8923
8924 rm -f core conftest.err conftest.$ac_objext \
8925       conftest$ac_exeext
8926   if test "${ac_cv_search_dlopen+set}" = set; then
8927   break
8928 fi
8929 done
8930 if test "${ac_cv_search_dlopen+set}" = set; then
8931   :
8932 else
8933   ac_cv_search_dlopen=no
8934 fi
8935 rm conftest.$ac_ext
8936 LIBS=$ac_func_search_save_LIBS
8937 fi
8938 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8939 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8940 ac_res=$ac_cv_search_dlopen
8941 if test "$ac_res" != no; then
8942   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8943
8944
8945 cat >>confdefs.h <<\_ACEOF
8946 #define HAVE_DLOPEN 1
8947 _ACEOF
8948
8949 HAVE_DLOPEN='1'
8950
8951
8952 else
8953   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8954 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8955 fi
8956
8957
8958 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8959 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8960 if test "${ac_cv_search_clock_gettime+set}" = set; then
8961   echo $ECHO_N "(cached) $ECHO_C" >&6
8962 else
8963   ac_func_search_save_LIBS=$LIBS
8964 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h.  */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h.  */
8970
8971 /* Override any GCC internal prototype to avoid an error.
8972    Use char because int might match the return type of a GCC
8973    builtin and then its argument prototype would still apply.  */
8974 #ifdef __cplusplus
8975 extern "C"
8976 #endif
8977 char clock_gettime ();
8978 int
8979 main ()
8980 {
8981 return clock_gettime ();
8982   ;
8983   return 0;
8984 }
8985 _ACEOF
8986 for ac_lib in '' rt; do
8987   if test -z "$ac_lib"; then
8988     ac_res="none required"
8989   else
8990     ac_res=-l$ac_lib
8991     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8992   fi
8993   rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (ac_try="$ac_link"
8995 case "(($ac_try" in
8996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997   *) ac_try_echo=$ac_try;;
8998 esac
8999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000   (eval "$ac_link") 2>conftest.er1
9001   ac_status=$?
9002   grep -v '^ *+' conftest.er1 >conftest.err
9003   rm -f conftest.er1
9004   cat conftest.err >&5
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); } &&
9007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); }; } &&
9017          { ac_try='test -s conftest$ac_exeext'
9018   { (case "(($ac_try" in
9019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9020   *) ac_try_echo=$ac_try;;
9021 esac
9022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9023   (eval "$ac_try") 2>&5
9024   ac_status=$?
9025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); }; }; then
9027   ac_cv_search_clock_gettime=$ac_res
9028 else
9029   echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9031
9032
9033 fi
9034
9035 rm -f core conftest.err conftest.$ac_objext \
9036       conftest$ac_exeext
9037   if test "${ac_cv_search_clock_gettime+set}" = set; then
9038   break
9039 fi
9040 done
9041 if test "${ac_cv_search_clock_gettime+set}" = set; then
9042   :
9043 else
9044   ac_cv_search_clock_gettime=no
9045 fi
9046 rm conftest.$ac_ext
9047 LIBS=$ac_func_search_save_LIBS
9048 fi
9049 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9050 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9051 ac_res=$ac_cv_search_clock_gettime
9052 if test "$ac_res" != no; then
9053   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9054
9055 fi
9056
9057
9058 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9059     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9060 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9061 if test "${ac_cv_search_setupterm+set}" = set; then
9062   echo $ECHO_N "(cached) $ECHO_C" >&6
9063 else
9064   ac_func_search_save_LIBS=$LIBS
9065 cat >conftest.$ac_ext <<_ACEOF
9066 /* confdefs.h.  */
9067 _ACEOF
9068 cat confdefs.h >>conftest.$ac_ext
9069 cat >>conftest.$ac_ext <<_ACEOF
9070 /* end confdefs.h.  */
9071
9072 /* Override any GCC internal prototype to avoid an error.
9073    Use char because int might match the return type of a GCC
9074    builtin and then its argument prototype would still apply.  */
9075 #ifdef __cplusplus
9076 extern "C"
9077 #endif
9078 char setupterm ();
9079 int
9080 main ()
9081 {
9082 return setupterm ();
9083   ;
9084   return 0;
9085 }
9086 _ACEOF
9087 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9088   if test -z "$ac_lib"; then
9089     ac_res="none required"
9090   else
9091     ac_res=-l$ac_lib
9092     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9093   fi
9094   rm -f conftest.$ac_objext conftest$ac_exeext
9095 if { (ac_try="$ac_link"
9096 case "(($ac_try" in
9097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098   *) ac_try_echo=$ac_try;;
9099 esac
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101   (eval "$ac_link") 2>conftest.er1
9102   ac_status=$?
9103   grep -v '^ *+' conftest.er1 >conftest.err
9104   rm -f conftest.er1
9105   cat conftest.err >&5
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); } &&
9108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9109   { (case "(($ac_try" in
9110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111   *) ac_try_echo=$ac_try;;
9112 esac
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114   (eval "$ac_try") 2>&5
9115   ac_status=$?
9116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117   (exit $ac_status); }; } &&
9118          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
9125   ac_status=$?
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); }; }; then
9128   ac_cv_search_setupterm=$ac_res
9129 else
9130   echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9132
9133
9134 fi
9135
9136 rm -f core conftest.err conftest.$ac_objext \
9137       conftest$ac_exeext
9138   if test "${ac_cv_search_setupterm+set}" = set; then
9139   break
9140 fi
9141 done
9142 if test "${ac_cv_search_setupterm+set}" = set; then
9143   :
9144 else
9145   ac_cv_search_setupterm=no
9146 fi
9147 rm conftest.$ac_ext
9148 LIBS=$ac_func_search_save_LIBS
9149 fi
9150 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9151 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9152 ac_res=$ac_cv_search_setupterm
9153 if test "$ac_res" != no; then
9154   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9155
9156
9157 cat >>confdefs.h <<\_ACEOF
9158 #define HAVE_TERMINFO 1
9159 _ACEOF
9160
9161 HAVE_TERMINFO='1'
9162
9163
9164 fi
9165
9166 fi
9167
9168 if test "$llvm_cv_enable_libedit" = "yes" ; then
9169   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9170 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9171 if test "${ac_cv_search_el_init+set}" = set; then
9172   echo $ECHO_N "(cached) $ECHO_C" >&6
9173 else
9174   ac_func_search_save_LIBS=$LIBS
9175 cat >conftest.$ac_ext <<_ACEOF
9176 /* confdefs.h.  */
9177 _ACEOF
9178 cat confdefs.h >>conftest.$ac_ext
9179 cat >>conftest.$ac_ext <<_ACEOF
9180 /* end confdefs.h.  */
9181
9182 /* Override any GCC internal prototype to avoid an error.
9183    Use char because int might match the return type of a GCC
9184    builtin and then its argument prototype would still apply.  */
9185 #ifdef __cplusplus
9186 extern "C"
9187 #endif
9188 char el_init ();
9189 int
9190 main ()
9191 {
9192 return el_init ();
9193   ;
9194   return 0;
9195 }
9196 _ACEOF
9197 for ac_lib in '' edit; do
9198   if test -z "$ac_lib"; then
9199     ac_res="none required"
9200   else
9201     ac_res=-l$ac_lib
9202     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9203   fi
9204   rm -f conftest.$ac_objext conftest$ac_exeext
9205 if { (ac_try="$ac_link"
9206 case "(($ac_try" in
9207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9208   *) ac_try_echo=$ac_try;;
9209 esac
9210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9211   (eval "$ac_link") 2>conftest.er1
9212   ac_status=$?
9213   grep -v '^ *+' conftest.er1 >conftest.err
9214   rm -f conftest.er1
9215   cat conftest.err >&5
9216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217   (exit $ac_status); } &&
9218          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9219   { (case "(($ac_try" in
9220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9221   *) ac_try_echo=$ac_try;;
9222 esac
9223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224   (eval "$ac_try") 2>&5
9225   ac_status=$?
9226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227   (exit $ac_status); }; } &&
9228          { ac_try='test -s conftest$ac_exeext'
9229   { (case "(($ac_try" in
9230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231   *) ac_try_echo=$ac_try;;
9232 esac
9233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234   (eval "$ac_try") 2>&5
9235   ac_status=$?
9236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237   (exit $ac_status); }; }; then
9238   ac_cv_search_el_init=$ac_res
9239 else
9240   echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9242
9243
9244 fi
9245
9246 rm -f core conftest.err conftest.$ac_objext \
9247       conftest$ac_exeext
9248   if test "${ac_cv_search_el_init+set}" = set; then
9249   break
9250 fi
9251 done
9252 if test "${ac_cv_search_el_init+set}" = set; then
9253   :
9254 else
9255   ac_cv_search_el_init=no
9256 fi
9257 rm conftest.$ac_ext
9258 LIBS=$ac_func_search_save_LIBS
9259 fi
9260 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9261 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9262 ac_res=$ac_cv_search_el_init
9263 if test "$ac_res" != no; then
9264   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9265
9266 cat >>confdefs.h <<\_ACEOF
9267 #define HAVE_LIBEDIT 1
9268 _ACEOF
9269
9270 fi
9271
9272 fi
9273
9274 if test "$llvm_cv_enable_libffi" = "yes" ; then
9275   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9276 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9277 if test "${ac_cv_search_ffi_call+set}" = set; then
9278   echo $ECHO_N "(cached) $ECHO_C" >&6
9279 else
9280   ac_func_search_save_LIBS=$LIBS
9281 cat >conftest.$ac_ext <<_ACEOF
9282 /* confdefs.h.  */
9283 _ACEOF
9284 cat confdefs.h >>conftest.$ac_ext
9285 cat >>conftest.$ac_ext <<_ACEOF
9286 /* end confdefs.h.  */
9287
9288 /* Override any GCC internal prototype to avoid an error.
9289    Use char because int might match the return type of a GCC
9290    builtin and then its argument prototype would still apply.  */
9291 #ifdef __cplusplus
9292 extern "C"
9293 #endif
9294 char ffi_call ();
9295 int
9296 main ()
9297 {
9298 return ffi_call ();
9299   ;
9300   return 0;
9301 }
9302 _ACEOF
9303 for ac_lib in '' ffi; do
9304   if test -z "$ac_lib"; then
9305     ac_res="none required"
9306   else
9307     ac_res=-l$ac_lib
9308     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9309   fi
9310   rm -f conftest.$ac_objext conftest$ac_exeext
9311 if { (ac_try="$ac_link"
9312 case "(($ac_try" in
9313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9314   *) ac_try_echo=$ac_try;;
9315 esac
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317   (eval "$ac_link") 2>conftest.er1
9318   ac_status=$?
9319   grep -v '^ *+' conftest.er1 >conftest.err
9320   rm -f conftest.er1
9321   cat conftest.err >&5
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); } &&
9324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9325   { (case "(($ac_try" in
9326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9327   *) ac_try_echo=$ac_try;;
9328 esac
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330   (eval "$ac_try") 2>&5
9331   ac_status=$?
9332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333   (exit $ac_status); }; } &&
9334          { ac_try='test -s conftest$ac_exeext'
9335   { (case "(($ac_try" in
9336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337   *) ac_try_echo=$ac_try;;
9338 esac
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340   (eval "$ac_try") 2>&5
9341   ac_status=$?
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); }; }; then
9344   ac_cv_search_ffi_call=$ac_res
9345 else
9346   echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9348
9349
9350 fi
9351
9352 rm -f core conftest.err conftest.$ac_objext \
9353       conftest$ac_exeext
9354   if test "${ac_cv_search_ffi_call+set}" = set; then
9355   break
9356 fi
9357 done
9358 if test "${ac_cv_search_ffi_call+set}" = set; then
9359   :
9360 else
9361   ac_cv_search_ffi_call=no
9362 fi
9363 rm conftest.$ac_ext
9364 LIBS=$ac_func_search_save_LIBS
9365 fi
9366 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9367 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9368 ac_res=$ac_cv_search_ffi_call
9369 if test "$ac_res" != no; then
9370   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9371
9372 cat >>confdefs.h <<\_ACEOF
9373 #define HAVE_FFI_CALL 1
9374 _ACEOF
9375
9376 else
9377   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9378 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9379    { (exit 1); exit 1; }; }
9380 fi
9381
9382 fi
9383
9384 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9385 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9386 if test "${ac_cv_search_mallinfo+set}" = set; then
9387   echo $ECHO_N "(cached) $ECHO_C" >&6
9388 else
9389   ac_func_search_save_LIBS=$LIBS
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h.  */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h.  */
9396
9397 /* Override any GCC internal prototype to avoid an error.
9398    Use char because int might match the return type of a GCC
9399    builtin and then its argument prototype would still apply.  */
9400 #ifdef __cplusplus
9401 extern "C"
9402 #endif
9403 char mallinfo ();
9404 int
9405 main ()
9406 {
9407 return mallinfo ();
9408   ;
9409   return 0;
9410 }
9411 _ACEOF
9412 for ac_lib in '' malloc; do
9413   if test -z "$ac_lib"; then
9414     ac_res="none required"
9415   else
9416     ac_res=-l$ac_lib
9417     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9418   fi
9419   rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (ac_try="$ac_link"
9421 case "(($ac_try" in
9422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9423   *) ac_try_echo=$ac_try;;
9424 esac
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426   (eval "$ac_link") 2>conftest.er1
9427   ac_status=$?
9428   grep -v '^ *+' conftest.er1 >conftest.err
9429   rm -f conftest.er1
9430   cat conftest.err >&5
9431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432   (exit $ac_status); } &&
9433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9434   { (case "(($ac_try" in
9435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9436   *) ac_try_echo=$ac_try;;
9437 esac
9438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9439   (eval "$ac_try") 2>&5
9440   ac_status=$?
9441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442   (exit $ac_status); }; } &&
9443          { ac_try='test -s conftest$ac_exeext'
9444   { (case "(($ac_try" in
9445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446   *) ac_try_echo=$ac_try;;
9447 esac
9448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9449   (eval "$ac_try") 2>&5
9450   ac_status=$?
9451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452   (exit $ac_status); }; }; then
9453   ac_cv_search_mallinfo=$ac_res
9454 else
9455   echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458
9459 fi
9460
9461 rm -f core conftest.err conftest.$ac_objext \
9462       conftest$ac_exeext
9463   if test "${ac_cv_search_mallinfo+set}" = set; then
9464   break
9465 fi
9466 done
9467 if test "${ac_cv_search_mallinfo+set}" = set; then
9468   :
9469 else
9470   ac_cv_search_mallinfo=no
9471 fi
9472 rm conftest.$ac_ext
9473 LIBS=$ac_func_search_save_LIBS
9474 fi
9475 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9476 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9477 ac_res=$ac_cv_search_mallinfo
9478 if test "$ac_res" != no; then
9479   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9480
9481 cat >>confdefs.h <<\_ACEOF
9482 #define HAVE_MALLINFO 1
9483 _ACEOF
9484
9485 fi
9486
9487
9488 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9489
9490 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9491 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9492 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9493   echo $ECHO_N "(cached) $ECHO_C" >&6
9494 else
9495   ac_check_lib_save_LIBS=$LIBS
9496 LIBS="-lpthread  $LIBS"
9497 cat >conftest.$ac_ext <<_ACEOF
9498 /* confdefs.h.  */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h.  */
9503
9504 /* Override any GCC internal prototype to avoid an error.
9505    Use char because int might match the return type of a GCC
9506    builtin and then its argument prototype would still apply.  */
9507 #ifdef __cplusplus
9508 extern "C"
9509 #endif
9510 char pthread_mutex_init ();
9511 int
9512 main ()
9513 {
9514 return pthread_mutex_init ();
9515   ;
9516   return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (ac_try="$ac_link"
9521 case "(($ac_try" in
9522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9523   *) ac_try_echo=$ac_try;;
9524 esac
9525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9526   (eval "$ac_link") 2>conftest.er1
9527   ac_status=$?
9528   grep -v '^ *+' conftest.er1 >conftest.err
9529   rm -f conftest.er1
9530   cat conftest.err >&5
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); } &&
9533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9534   { (case "(($ac_try" in
9535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536   *) ac_try_echo=$ac_try;;
9537 esac
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539   (eval "$ac_try") 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); }; } &&
9543          { ac_try='test -s conftest$ac_exeext'
9544   { (case "(($ac_try" in
9545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546   *) ac_try_echo=$ac_try;;
9547 esac
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549   (eval "$ac_try") 2>&5
9550   ac_status=$?
9551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552   (exit $ac_status); }; }; then
9553   ac_cv_lib_pthread_pthread_mutex_init=yes
9554 else
9555   echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9557
9558         ac_cv_lib_pthread_pthread_mutex_init=no
9559 fi
9560
9561 rm -f core conftest.err conftest.$ac_objext \
9562       conftest$ac_exeext conftest.$ac_ext
9563 LIBS=$ac_check_lib_save_LIBS
9564 fi
9565 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9566 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9567 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9568   cat >>confdefs.h <<_ACEOF
9569 #define HAVE_LIBPTHREAD 1
9570 _ACEOF
9571
9572   LIBS="-lpthread $LIBS"
9573
9574 fi
9575
9576   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9577 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9578 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9579   echo $ECHO_N "(cached) $ECHO_C" >&6
9580 else
9581   ac_func_search_save_LIBS=$LIBS
9582 cat >conftest.$ac_ext <<_ACEOF
9583 /* confdefs.h.  */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h.  */
9588
9589 /* Override any GCC internal prototype to avoid an error.
9590    Use char because int might match the return type of a GCC
9591    builtin and then its argument prototype would still apply.  */
9592 #ifdef __cplusplus
9593 extern "C"
9594 #endif
9595 char pthread_mutex_lock ();
9596 int
9597 main ()
9598 {
9599 return pthread_mutex_lock ();
9600   ;
9601   return 0;
9602 }
9603 _ACEOF
9604 for ac_lib in '' pthread; do
9605   if test -z "$ac_lib"; then
9606     ac_res="none required"
9607   else
9608     ac_res=-l$ac_lib
9609     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9610   fi
9611   rm -f conftest.$ac_objext conftest$ac_exeext
9612 if { (ac_try="$ac_link"
9613 case "(($ac_try" in
9614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615   *) ac_try_echo=$ac_try;;
9616 esac
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618   (eval "$ac_link") 2>conftest.er1
9619   ac_status=$?
9620   grep -v '^ *+' conftest.er1 >conftest.err
9621   rm -f conftest.er1
9622   cat conftest.err >&5
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); } &&
9625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9626   { (case "(($ac_try" in
9627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628   *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631   (eval "$ac_try") 2>&5
9632   ac_status=$?
9633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634   (exit $ac_status); }; } &&
9635          { ac_try='test -s conftest$ac_exeext'
9636   { (case "(($ac_try" in
9637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638   *) ac_try_echo=$ac_try;;
9639 esac
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641   (eval "$ac_try") 2>&5
9642   ac_status=$?
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); }; }; then
9645   ac_cv_search_pthread_mutex_lock=$ac_res
9646 else
9647   echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9649
9650
9651 fi
9652
9653 rm -f core conftest.err conftest.$ac_objext \
9654       conftest$ac_exeext
9655   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9656   break
9657 fi
9658 done
9659 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9660   :
9661 else
9662   ac_cv_search_pthread_mutex_lock=no
9663 fi
9664 rm conftest.$ac_ext
9665 LIBS=$ac_func_search_save_LIBS
9666 fi
9667 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9668 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9669 ac_res=$ac_cv_search_pthread_mutex_lock
9670 if test "$ac_res" != no; then
9671   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9672
9673 cat >>confdefs.h <<\_ACEOF
9674 #define HAVE_PTHREAD_MUTEX_LOCK 1
9675 _ACEOF
9676
9677 fi
9678
9679   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9680 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9681 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9682   echo $ECHO_N "(cached) $ECHO_C" >&6
9683 else
9684   ac_func_search_save_LIBS=$LIBS
9685 cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h.  */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h.  */
9691
9692 /* Override any GCC internal prototype to avoid an error.
9693    Use char because int might match the return type of a GCC
9694    builtin and then its argument prototype would still apply.  */
9695 #ifdef __cplusplus
9696 extern "C"
9697 #endif
9698 char pthread_rwlock_init ();
9699 int
9700 main ()
9701 {
9702 return pthread_rwlock_init ();
9703   ;
9704   return 0;
9705 }
9706 _ACEOF
9707 for ac_lib in '' pthread; do
9708   if test -z "$ac_lib"; then
9709     ac_res="none required"
9710   else
9711     ac_res=-l$ac_lib
9712     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9713   fi
9714   rm -f conftest.$ac_objext conftest$ac_exeext
9715 if { (ac_try="$ac_link"
9716 case "(($ac_try" in
9717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718   *) ac_try_echo=$ac_try;;
9719 esac
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721   (eval "$ac_link") 2>conftest.er1
9722   ac_status=$?
9723   grep -v '^ *+' conftest.er1 >conftest.err
9724   rm -f conftest.er1
9725   cat conftest.err >&5
9726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727   (exit $ac_status); } &&
9728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9729   { (case "(($ac_try" in
9730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731   *) ac_try_echo=$ac_try;;
9732 esac
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734   (eval "$ac_try") 2>&5
9735   ac_status=$?
9736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737   (exit $ac_status); }; } &&
9738          { ac_try='test -s conftest$ac_exeext'
9739   { (case "(($ac_try" in
9740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9741   *) ac_try_echo=$ac_try;;
9742 esac
9743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9744   (eval "$ac_try") 2>&5
9745   ac_status=$?
9746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747   (exit $ac_status); }; }; then
9748   ac_cv_search_pthread_rwlock_init=$ac_res
9749 else
9750   echo "$as_me: failed program was:" >&5
9751 sed 's/^/| /' conftest.$ac_ext >&5
9752
9753
9754 fi
9755
9756 rm -f core conftest.err conftest.$ac_objext \
9757       conftest$ac_exeext
9758   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9759   break
9760 fi
9761 done
9762 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9763   :
9764 else
9765   ac_cv_search_pthread_rwlock_init=no
9766 fi
9767 rm conftest.$ac_ext
9768 LIBS=$ac_func_search_save_LIBS
9769 fi
9770 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9771 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9772 ac_res=$ac_cv_search_pthread_rwlock_init
9773 if test "$ac_res" != no; then
9774   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9775
9776 cat >>confdefs.h <<\_ACEOF
9777 #define HAVE_PTHREAD_RWLOCK_INIT 1
9778 _ACEOF
9779
9780 fi
9781
9782   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9783 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9784 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   ac_func_search_save_LIBS=$LIBS
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h.  */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h.  */
9794
9795 /* Override any GCC internal prototype to avoid an error.
9796    Use char because int might match the return type of a GCC
9797    builtin and then its argument prototype would still apply.  */
9798 #ifdef __cplusplus
9799 extern "C"
9800 #endif
9801 char pthread_getspecific ();
9802 int
9803 main ()
9804 {
9805 return pthread_getspecific ();
9806   ;
9807   return 0;
9808 }
9809 _ACEOF
9810 for ac_lib in '' pthread; do
9811   if test -z "$ac_lib"; then
9812     ac_res="none required"
9813   else
9814     ac_res=-l$ac_lib
9815     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9816   fi
9817   rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9819 case "(($ac_try" in
9820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821   *) ac_try_echo=$ac_try;;
9822 esac
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824   (eval "$ac_link") 2>conftest.er1
9825   ac_status=$?
9826   grep -v '^ *+' conftest.er1 >conftest.err
9827   rm -f conftest.er1
9828   cat conftest.err >&5
9829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } &&
9831          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9832   { (case "(($ac_try" in
9833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834   *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837   (eval "$ac_try") 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); }; } &&
9841          { ac_try='test -s conftest$ac_exeext'
9842   { (case "(($ac_try" in
9843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9844   *) ac_try_echo=$ac_try;;
9845 esac
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847   (eval "$ac_try") 2>&5
9848   ac_status=$?
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); }; }; then
9851   ac_cv_search_pthread_getspecific=$ac_res
9852 else
9853   echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856
9857 fi
9858
9859 rm -f core conftest.err conftest.$ac_objext \
9860       conftest$ac_exeext
9861   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9862   break
9863 fi
9864 done
9865 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9866   :
9867 else
9868   ac_cv_search_pthread_getspecific=no
9869 fi
9870 rm conftest.$ac_ext
9871 LIBS=$ac_func_search_save_LIBS
9872 fi
9873 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9874 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9875 ac_res=$ac_cv_search_pthread_getspecific
9876 if test "$ac_res" != no; then
9877   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9878
9879 cat >>confdefs.h <<\_ACEOF
9880 #define HAVE_PTHREAD_GETSPECIFIC 1
9881 _ACEOF
9882
9883 fi
9884
9885 fi
9886
9887 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9888
9889 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9890 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9891 if test "${ac_cv_lib_z_compress2+set}" = set; then
9892   echo $ECHO_N "(cached) $ECHO_C" >&6
9893 else
9894   ac_check_lib_save_LIBS=$LIBS
9895 LIBS="-lz  $LIBS"
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h.  */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h.  */
9902
9903 /* Override any GCC internal prototype to avoid an error.
9904    Use char because int might match the return type of a GCC
9905    builtin and then its argument prototype would still apply.  */
9906 #ifdef __cplusplus
9907 extern "C"
9908 #endif
9909 char compress2 ();
9910 int
9911 main ()
9912 {
9913 return compress2 ();
9914   ;
9915   return 0;
9916 }
9917 _ACEOF
9918 rm -f conftest.$ac_objext conftest$ac_exeext
9919 if { (ac_try="$ac_link"
9920 case "(($ac_try" in
9921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9922   *) ac_try_echo=$ac_try;;
9923 esac
9924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9925   (eval "$ac_link") 2>conftest.er1
9926   ac_status=$?
9927   grep -v '^ *+' conftest.er1 >conftest.err
9928   rm -f conftest.er1
9929   cat conftest.err >&5
9930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931   (exit $ac_status); } &&
9932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9933   { (case "(($ac_try" in
9934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9935   *) ac_try_echo=$ac_try;;
9936 esac
9937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9938   (eval "$ac_try") 2>&5
9939   ac_status=$?
9940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941   (exit $ac_status); }; } &&
9942          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
9949   ac_status=$?
9950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951   (exit $ac_status); }; }; then
9952   ac_cv_lib_z_compress2=yes
9953 else
9954   echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9956
9957         ac_cv_lib_z_compress2=no
9958 fi
9959
9960 rm -f core conftest.err conftest.$ac_objext \
9961       conftest$ac_exeext conftest.$ac_ext
9962 LIBS=$ac_check_lib_save_LIBS
9963 fi
9964 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9965 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
9966 if test $ac_cv_lib_z_compress2 = yes; then
9967   cat >>confdefs.h <<_ACEOF
9968 #define HAVE_LIBZ 1
9969 _ACEOF
9970
9971   LIBS="-lz $LIBS"
9972
9973 fi
9974
9975 fi
9976
9977
9978 # Check whether --with-oprofile was given.
9979 if test "${with_oprofile+set}" = set; then
9980   withval=$with_oprofile;
9981       USE_OPROFILE=1
9982
9983       case "$withval" in
9984         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
9985         no) llvm_cv_oppath=
9986             USE_OPROFILE=0
9987  ;;
9988         *) llvm_cv_oppath="${withval}/lib/oprofile"
9989            CPPFLAGS="-I${withval}/include";;
9990       esac
9991       case $llvm_cv_os_type in
9992         Linux)
9993           if test -n "$llvm_cv_oppath" ; then
9994             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
9995                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
9996 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
9997 if test "${ac_cv_search_bfd_init+set}" = set; then
9998   echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000   ac_func_search_save_LIBS=$LIBS
10001 cat >conftest.$ac_ext <<_ACEOF
10002 /* confdefs.h.  */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h.  */
10007
10008 /* Override any GCC internal prototype to avoid an error.
10009    Use char because int might match the return type of a GCC
10010    builtin and then its argument prototype would still apply.  */
10011 #ifdef __cplusplus
10012 extern "C"
10013 #endif
10014 char bfd_init ();
10015 int
10016 main ()
10017 {
10018 return bfd_init ();
10019   ;
10020   return 0;
10021 }
10022 _ACEOF
10023 for ac_lib in '' bfd; do
10024   if test -z "$ac_lib"; then
10025     ac_res="none required"
10026   else
10027     ac_res=-l$ac_lib
10028     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10029   fi
10030   rm -f conftest.$ac_objext conftest$ac_exeext
10031 if { (ac_try="$ac_link"
10032 case "(($ac_try" in
10033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10034   *) ac_try_echo=$ac_try;;
10035 esac
10036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10037   (eval "$ac_link") 2>conftest.er1
10038   ac_status=$?
10039   grep -v '^ *+' conftest.er1 >conftest.err
10040   rm -f conftest.er1
10041   cat conftest.err >&5
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); } &&
10044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10045   { (case "(($ac_try" in
10046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047   *) ac_try_echo=$ac_try;;
10048 esac
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050   (eval "$ac_try") 2>&5
10051   ac_status=$?
10052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053   (exit $ac_status); }; } &&
10054          { ac_try='test -s conftest$ac_exeext'
10055   { (case "(($ac_try" in
10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057   *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060   (eval "$ac_try") 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   ac_cv_search_bfd_init=$ac_res
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069
10070 fi
10071
10072 rm -f core conftest.err conftest.$ac_objext \
10073       conftest$ac_exeext
10074   if test "${ac_cv_search_bfd_init+set}" = set; then
10075   break
10076 fi
10077 done
10078 if test "${ac_cv_search_bfd_init+set}" = set; then
10079   :
10080 else
10081   ac_cv_search_bfd_init=no
10082 fi
10083 rm conftest.$ac_ext
10084 LIBS=$ac_func_search_save_LIBS
10085 fi
10086 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10087 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10088 ac_res=$ac_cv_search_bfd_init
10089 if test "$ac_res" != no; then
10090   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10091
10092 fi
10093
10094             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10095 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10096 if test "${ac_cv_search_op_open_agent+set}" = set; then
10097   echo $ECHO_N "(cached) $ECHO_C" >&6
10098 else
10099   ac_func_search_save_LIBS=$LIBS
10100 cat >conftest.$ac_ext <<_ACEOF
10101 /* confdefs.h.  */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h.  */
10106
10107 /* Override any GCC internal prototype to avoid an error.
10108    Use char because int might match the return type of a GCC
10109    builtin and then its argument prototype would still apply.  */
10110 #ifdef __cplusplus
10111 extern "C"
10112 #endif
10113 char op_open_agent ();
10114 int
10115 main ()
10116 {
10117 return op_open_agent ();
10118   ;
10119   return 0;
10120 }
10121 _ACEOF
10122 for ac_lib in '' opagent; do
10123   if test -z "$ac_lib"; then
10124     ac_res="none required"
10125   else
10126     ac_res=-l$ac_lib
10127     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10128   fi
10129   rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (ac_try="$ac_link"
10131 case "(($ac_try" in
10132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133   *) ac_try_echo=$ac_try;;
10134 esac
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136   (eval "$ac_link") 2>conftest.er1
10137   ac_status=$?
10138   grep -v '^ *+' conftest.er1 >conftest.err
10139   rm -f conftest.er1
10140   cat conftest.err >&5
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); } &&
10143          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144   { (case "(($ac_try" in
10145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146   *) ac_try_echo=$ac_try;;
10147 esac
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149   (eval "$ac_try") 2>&5
10150   ac_status=$?
10151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152   (exit $ac_status); }; } &&
10153          { ac_try='test -s conftest$ac_exeext'
10154   { (case "(($ac_try" in
10155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156   *) ac_try_echo=$ac_try;;
10157 esac
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159   (eval "$ac_try") 2>&5
10160   ac_status=$?
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   (exit $ac_status); }; }; then
10163   ac_cv_search_op_open_agent=$ac_res
10164 else
10165   echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10167
10168
10169 fi
10170
10171 rm -f core conftest.err conftest.$ac_objext \
10172       conftest$ac_exeext
10173   if test "${ac_cv_search_op_open_agent+set}" = set; then
10174   break
10175 fi
10176 done
10177 if test "${ac_cv_search_op_open_agent+set}" = set; then
10178   :
10179 else
10180   ac_cv_search_op_open_agent=no
10181 fi
10182 rm conftest.$ac_ext
10183 LIBS=$ac_func_search_save_LIBS
10184 fi
10185 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10186 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10187 ac_res=$ac_cv_search_op_open_agent
10188 if test "$ac_res" != no; then
10189   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10190
10191 else
10192
10193               echo "Error! You need to have libopagent around."
10194               exit 1
10195
10196 fi
10197
10198             if test "${ac_cv_header_opagent_h+set}" = set; then
10199   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10200 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10201 if test "${ac_cv_header_opagent_h+set}" = set; then
10202   echo $ECHO_N "(cached) $ECHO_C" >&6
10203 fi
10204 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10205 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10206 else
10207   # Is the header compilable?
10208 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10209 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10210 cat >conftest.$ac_ext <<_ACEOF
10211 /* confdefs.h.  */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h.  */
10216 $ac_includes_default
10217 #include <opagent.h>
10218 _ACEOF
10219 rm -f conftest.$ac_objext
10220 if { (ac_try="$ac_compile"
10221 case "(($ac_try" in
10222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10223   *) ac_try_echo=$ac_try;;
10224 esac
10225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226   (eval "$ac_compile") 2>conftest.er1
10227   ac_status=$?
10228   grep -v '^ *+' conftest.er1 >conftest.err
10229   rm -f conftest.er1
10230   cat conftest.err >&5
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); } &&
10233          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10234   { (case "(($ac_try" in
10235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10236   *) ac_try_echo=$ac_try;;
10237 esac
10238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10239   (eval "$ac_try") 2>&5
10240   ac_status=$?
10241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242   (exit $ac_status); }; } &&
10243          { ac_try='test -s conftest.$ac_objext'
10244   { (case "(($ac_try" in
10245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246   *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249   (eval "$ac_try") 2>&5
10250   ac_status=$?
10251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252   (exit $ac_status); }; }; then
10253   ac_header_compiler=yes
10254 else
10255   echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10257
10258         ac_header_compiler=no
10259 fi
10260
10261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10263 echo "${ECHO_T}$ac_header_compiler" >&6; }
10264
10265 # Is the header present?
10266 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10267 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10268 cat >conftest.$ac_ext <<_ACEOF
10269 /* confdefs.h.  */
10270 _ACEOF
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h.  */
10274 #include <opagent.h>
10275 _ACEOF
10276 if { (ac_try="$ac_cpp conftest.$ac_ext"
10277 case "(($ac_try" in
10278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279   *) ac_try_echo=$ac_try;;
10280 esac
10281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10282   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10283   ac_status=$?
10284   grep -v '^ *+' conftest.er1 >conftest.err
10285   rm -f conftest.er1
10286   cat conftest.err >&5
10287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288   (exit $ac_status); } >/dev/null; then
10289   if test -s conftest.err; then
10290     ac_cpp_err=$ac_c_preproc_warn_flag
10291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10292   else
10293     ac_cpp_err=
10294   fi
10295 else
10296   ac_cpp_err=yes
10297 fi
10298 if test -z "$ac_cpp_err"; then
10299   ac_header_preproc=yes
10300 else
10301   echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304   ac_header_preproc=no
10305 fi
10306
10307 rm -f conftest.err conftest.$ac_ext
10308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10309 echo "${ECHO_T}$ac_header_preproc" >&6; }
10310
10311 # So?  What about this header?
10312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10313   yes:no: )
10314     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10315 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10316     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10317 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10318     ac_header_preproc=yes
10319     ;;
10320   no:yes:* )
10321     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10322 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10323     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10324 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10325     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10326 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10327     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10328 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10329     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10330 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10331     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10332 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10333     ( cat <<\_ASBOX
10334 ## ------------------------------------ ##
10335 ## Report this to http://llvm.org/bugs/ ##
10336 ## ------------------------------------ ##
10337 _ASBOX
10338      ) | sed "s/^/$as_me: WARNING:     /" >&2
10339     ;;
10340 esac
10341 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10342 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10343 if test "${ac_cv_header_opagent_h+set}" = set; then
10344   echo $ECHO_N "(cached) $ECHO_C" >&6
10345 else
10346   ac_cv_header_opagent_h=$ac_header_preproc
10347 fi
10348 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10349 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10350
10351 fi
10352 if test $ac_cv_header_opagent_h = yes; then
10353   :
10354 else
10355
10356               echo "Error! You need to have opagent.h around."
10357               exit 1
10358
10359 fi
10360
10361
10362           fi ;;
10363         *)
10364           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10365 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10366    { (exit 1); exit 1; }; } ;;
10367       esac
10368
10369 else
10370
10371       USE_OPROFILE=0
10372
10373
10374 fi
10375
10376
10377 cat >>confdefs.h <<_ACEOF
10378 #define LLVM_USE_OPROFILE $USE_OPROFILE
10379 _ACEOF
10380
10381
10382
10383 # Check whether --with-intel-jitevents was given.
10384 if test "${with_intel_jitevents+set}" = set; then
10385   withval=$with_intel_jitevents;
10386        case "$withval" in
10387           yes) USE_INTEL_JITEVENTS=1
10388 ;;
10389           no)  USE_INTEL_JITEVENTS=0
10390 ;;
10391           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10392 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10393    { (exit 1); exit 1; }; };;
10394        esac
10395
10396       case $llvm_cv_os_type in
10397         Linux|Win32|Cygwin|MingW) ;;
10398         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10399 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10400    { (exit 1); exit 1; }; };;
10401       esac
10402
10403       case "$llvm_cv_target_arch" in
10404         x86|x86_64) ;;
10405         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10406 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10407    { (exit 1); exit 1; }; };;
10408       esac
10409
10410 else
10411
10412       USE_INTEL_JITEVENTS=0
10413
10414
10415 fi
10416
10417
10418 cat >>confdefs.h <<_ACEOF
10419 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10420 _ACEOF
10421
10422
10423 for ac_prog in xml2-config
10424 do
10425   # Extract the first word of "$ac_prog", so it can be a program name with args.
10426 set dummy $ac_prog; ac_word=$2
10427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10429 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10430   echo $ECHO_N "(cached) $ECHO_C" >&6
10431 else
10432   if test -n "$XML2CONFIG"; then
10433   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10434 else
10435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436 for as_dir in $PATH
10437 do
10438   IFS=$as_save_IFS
10439   test -z "$as_dir" && as_dir=.
10440   for ac_exec_ext in '' $ac_executable_extensions; do
10441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10442     ac_cv_prog_XML2CONFIG="$ac_prog"
10443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10444     break 2
10445   fi
10446 done
10447 done
10448 IFS=$as_save_IFS
10449
10450 fi
10451 fi
10452 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10453 if test -n "$XML2CONFIG"; then
10454   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10455 echo "${ECHO_T}$XML2CONFIG" >&6; }
10456 else
10457   { echo "$as_me:$LINENO: result: no" >&5
10458 echo "${ECHO_T}no" >&6; }
10459 fi
10460
10461
10462   test -n "$XML2CONFIG" && break
10463 done
10464
10465
10466 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10467 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10468 if test "x$XML2CONFIG" = "x"; then
10469  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10470 echo "${ECHO_T}xml2-config not found" >&6; }
10471 else
10472  LIBXML2_INC=`$XML2CONFIG --cflags`
10473  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10474 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10475  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10476 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10477 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10478   echo $ECHO_N "(cached) $ECHO_C" >&6
10479 else
10480   ac_check_lib_save_LIBS=$LIBS
10481 LIBS="-lxml2  $LIBS"
10482 cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h.  */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h.  */
10488
10489 /* Override any GCC internal prototype to avoid an error.
10490    Use char because int might match the return type of a GCC
10491    builtin and then its argument prototype would still apply.  */
10492 #ifdef __cplusplus
10493 extern "C"
10494 #endif
10495 char xmlReadFile ();
10496 int
10497 main ()
10498 {
10499 return xmlReadFile ();
10500   ;
10501   return 0;
10502 }
10503 _ACEOF
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (ac_try="$ac_link"
10506 case "(($ac_try" in
10507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508   *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511   (eval "$ac_link") 2>conftest.er1
10512   ac_status=$?
10513   grep -v '^ *+' conftest.er1 >conftest.err
10514   rm -f conftest.er1
10515   cat conftest.err >&5
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); } &&
10518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10519   { (case "(($ac_try" in
10520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521   *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524   (eval "$ac_try") 2>&5
10525   ac_status=$?
10526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527   (exit $ac_status); }; } &&
10528          { ac_try='test -s conftest$ac_exeext'
10529   { (case "(($ac_try" in
10530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531   *) ac_try_echo=$ac_try;;
10532 esac
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534   (eval "$ac_try") 2>&5
10535   ac_status=$?
10536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537   (exit $ac_status); }; }; then
10538   ac_cv_lib_xml2_xmlReadFile=yes
10539 else
10540   echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10542
10543         ac_cv_lib_xml2_xmlReadFile=no
10544 fi
10545
10546 rm -f core conftest.err conftest.$ac_objext \
10547       conftest$ac_exeext conftest.$ac_ext
10548 LIBS=$ac_check_lib_save_LIBS
10549 fi
10550 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10551 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10552 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10553
10554 cat >>confdefs.h <<\_ACEOF
10555 #define CLANG_HAVE_LIBXML 1
10556 _ACEOF
10557
10558                                 LIBXML2_LIBS="-lxml2"
10559 fi
10560
10561 fi
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571 ac_header_dirent=no
10572 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10573   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10574 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10575 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10577   echo $ECHO_N "(cached) $ECHO_C" >&6
10578 else
10579   cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h.  */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h.  */
10585 #include <sys/types.h>
10586 #include <$ac_hdr>
10587
10588 int
10589 main ()
10590 {
10591 if ((DIR *) 0)
10592 return 0;
10593   ;
10594   return 0;
10595 }
10596 _ACEOF
10597 rm -f conftest.$ac_objext
10598 if { (ac_try="$ac_compile"
10599 case "(($ac_try" in
10600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10601   *) ac_try_echo=$ac_try;;
10602 esac
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604   (eval "$ac_compile") 2>conftest.er1
10605   ac_status=$?
10606   grep -v '^ *+' conftest.er1 >conftest.err
10607   rm -f conftest.er1
10608   cat conftest.err >&5
10609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610   (exit $ac_status); } &&
10611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10612   { (case "(($ac_try" in
10613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614   *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617   (eval "$ac_try") 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); }; } &&
10621          { ac_try='test -s conftest.$ac_objext'
10622   { (case "(($ac_try" in
10623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624   *) ac_try_echo=$ac_try;;
10625 esac
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627   (eval "$ac_try") 2>&5
10628   ac_status=$?
10629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630   (exit $ac_status); }; }; then
10631   eval "$as_ac_Header=yes"
10632 else
10633   echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636         eval "$as_ac_Header=no"
10637 fi
10638
10639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10640 fi
10641 ac_res=`eval echo '${'$as_ac_Header'}'`
10642                { echo "$as_me:$LINENO: result: $ac_res" >&5
10643 echo "${ECHO_T}$ac_res" >&6; }
10644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10645   cat >>confdefs.h <<_ACEOF
10646 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10647 _ACEOF
10648
10649 ac_header_dirent=$ac_hdr; break
10650 fi
10651
10652 done
10653 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10654 if test $ac_header_dirent = dirent.h; then
10655   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10656 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10657 if test "${ac_cv_search_opendir+set}" = set; then
10658   echo $ECHO_N "(cached) $ECHO_C" >&6
10659 else
10660   ac_func_search_save_LIBS=$LIBS
10661 cat >conftest.$ac_ext <<_ACEOF
10662 /* confdefs.h.  */
10663 _ACEOF
10664 cat confdefs.h >>conftest.$ac_ext
10665 cat >>conftest.$ac_ext <<_ACEOF
10666 /* end confdefs.h.  */
10667
10668 /* Override any GCC internal prototype to avoid an error.
10669    Use char because int might match the return type of a GCC
10670    builtin and then its argument prototype would still apply.  */
10671 #ifdef __cplusplus
10672 extern "C"
10673 #endif
10674 char opendir ();
10675 int
10676 main ()
10677 {
10678 return opendir ();
10679   ;
10680   return 0;
10681 }
10682 _ACEOF
10683 for ac_lib in '' dir; do
10684   if test -z "$ac_lib"; then
10685     ac_res="none required"
10686   else
10687     ac_res=-l$ac_lib
10688     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10689   fi
10690   rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (ac_try="$ac_link"
10692 case "(($ac_try" in
10693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694   *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697   (eval "$ac_link") 2>conftest.er1
10698   ac_status=$?
10699   grep -v '^ *+' conftest.er1 >conftest.err
10700   rm -f conftest.er1
10701   cat conftest.err >&5
10702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703   (exit $ac_status); } &&
10704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10705   { (case "(($ac_try" in
10706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707   *) ac_try_echo=$ac_try;;
10708 esac
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710   (eval "$ac_try") 2>&5
10711   ac_status=$?
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); }; } &&
10714          { ac_try='test -s conftest$ac_exeext'
10715   { (case "(($ac_try" in
10716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717   *) ac_try_echo=$ac_try;;
10718 esac
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720   (eval "$ac_try") 2>&5
10721   ac_status=$?
10722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723   (exit $ac_status); }; }; then
10724   ac_cv_search_opendir=$ac_res
10725 else
10726   echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10728
10729
10730 fi
10731
10732 rm -f core conftest.err conftest.$ac_objext \
10733       conftest$ac_exeext
10734   if test "${ac_cv_search_opendir+set}" = set; then
10735   break
10736 fi
10737 done
10738 if test "${ac_cv_search_opendir+set}" = set; then
10739   :
10740 else
10741   ac_cv_search_opendir=no
10742 fi
10743 rm conftest.$ac_ext
10744 LIBS=$ac_func_search_save_LIBS
10745 fi
10746 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10747 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10748 ac_res=$ac_cv_search_opendir
10749 if test "$ac_res" != no; then
10750   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10751
10752 fi
10753
10754 else
10755   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10756 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10757 if test "${ac_cv_search_opendir+set}" = set; then
10758   echo $ECHO_N "(cached) $ECHO_C" >&6
10759 else
10760   ac_func_search_save_LIBS=$LIBS
10761 cat >conftest.$ac_ext <<_ACEOF
10762 /* confdefs.h.  */
10763 _ACEOF
10764 cat confdefs.h >>conftest.$ac_ext
10765 cat >>conftest.$ac_ext <<_ACEOF
10766 /* end confdefs.h.  */
10767
10768 /* Override any GCC internal prototype to avoid an error.
10769    Use char because int might match the return type of a GCC
10770    builtin and then its argument prototype would still apply.  */
10771 #ifdef __cplusplus
10772 extern "C"
10773 #endif
10774 char opendir ();
10775 int
10776 main ()
10777 {
10778 return opendir ();
10779   ;
10780   return 0;
10781 }
10782 _ACEOF
10783 for ac_lib in '' x; do
10784   if test -z "$ac_lib"; then
10785     ac_res="none required"
10786   else
10787     ac_res=-l$ac_lib
10788     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10789   fi
10790   rm -f conftest.$ac_objext conftest$ac_exeext
10791 if { (ac_try="$ac_link"
10792 case "(($ac_try" in
10793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10794   *) ac_try_echo=$ac_try;;
10795 esac
10796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10797   (eval "$ac_link") 2>conftest.er1
10798   ac_status=$?
10799   grep -v '^ *+' conftest.er1 >conftest.err
10800   rm -f conftest.er1
10801   cat conftest.err >&5
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); } &&
10804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10805   { (case "(($ac_try" in
10806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10807   *) ac_try_echo=$ac_try;;
10808 esac
10809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10810   (eval "$ac_try") 2>&5
10811   ac_status=$?
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); }; } &&
10814          { ac_try='test -s conftest$ac_exeext'
10815   { (case "(($ac_try" in
10816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817   *) ac_try_echo=$ac_try;;
10818 esac
10819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820   (eval "$ac_try") 2>&5
10821   ac_status=$?
10822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10823   (exit $ac_status); }; }; then
10824   ac_cv_search_opendir=$ac_res
10825 else
10826   echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10828
10829
10830 fi
10831
10832 rm -f core conftest.err conftest.$ac_objext \
10833       conftest$ac_exeext
10834   if test "${ac_cv_search_opendir+set}" = set; then
10835   break
10836 fi
10837 done
10838 if test "${ac_cv_search_opendir+set}" = set; then
10839   :
10840 else
10841   ac_cv_search_opendir=no
10842 fi
10843 rm conftest.$ac_ext
10844 LIBS=$ac_func_search_save_LIBS
10845 fi
10846 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10847 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10848 ac_res=$ac_cv_search_opendir
10849 if test "$ac_res" != no; then
10850   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10851
10852 fi
10853
10854 fi
10855
10856 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10857 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10858 if test "${ac_cv_header_mmap_anon+set}" = set; then
10859   echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861    ac_ext=c
10862 ac_cpp='$CPP $CPPFLAGS'
10863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10866
10867   cat >conftest.$ac_ext <<_ACEOF
10868 /* confdefs.h.  */
10869 _ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h.  */
10873 #include <sys/mman.h>
10874 #include <unistd.h>
10875 #include <fcntl.h>
10876 int
10877 main ()
10878 {
10879 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10880   ;
10881   return 0;
10882 }
10883 _ACEOF
10884 rm -f conftest.$ac_objext
10885 if { (ac_try="$ac_compile"
10886 case "(($ac_try" in
10887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888   *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891   (eval "$ac_compile") 2>conftest.er1
10892   ac_status=$?
10893   grep -v '^ *+' conftest.er1 >conftest.err
10894   rm -f conftest.er1
10895   cat conftest.err >&5
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); } &&
10898          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10899   { (case "(($ac_try" in
10900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901   *) ac_try_echo=$ac_try;;
10902 esac
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904   (eval "$ac_try") 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; } &&
10908          { ac_try='test -s conftest.$ac_objext'
10909   { (case "(($ac_try" in
10910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911   *) ac_try_echo=$ac_try;;
10912 esac
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914   (eval "$ac_try") 2>&5
10915   ac_status=$?
10916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917   (exit $ac_status); }; }; then
10918   ac_cv_header_mmap_anon=yes
10919 else
10920   echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10922
10923         ac_cv_header_mmap_anon=no
10924 fi
10925
10926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10927   ac_ext=c
10928 ac_cpp='$CPP $CPPFLAGS'
10929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10932
10933
10934 fi
10935 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10936 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10937 if test "$ac_cv_header_mmap_anon" = yes; then
10938
10939 cat >>confdefs.h <<\_ACEOF
10940 #define HAVE_MMAP_ANONYMOUS 1
10941 _ACEOF
10942
10943 fi
10944
10945 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10946 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10947 if test "${ac_cv_header_stat_broken+set}" = set; then
10948   echo $ECHO_N "(cached) $ECHO_C" >&6
10949 else
10950   cat >conftest.$ac_ext <<_ACEOF
10951 /* confdefs.h.  */
10952 _ACEOF
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h.  */
10956 #include <sys/types.h>
10957 #include <sys/stat.h>
10958
10959 #if defined S_ISBLK && defined S_IFDIR
10960 # if S_ISBLK (S_IFDIR)
10961 You lose.
10962 # endif
10963 #endif
10964
10965 #if defined S_ISBLK && defined S_IFCHR
10966 # if S_ISBLK (S_IFCHR)
10967 You lose.
10968 # endif
10969 #endif
10970
10971 #if defined S_ISLNK && defined S_IFREG
10972 # if S_ISLNK (S_IFREG)
10973 You lose.
10974 # endif
10975 #endif
10976
10977 #if defined S_ISSOCK && defined S_IFREG
10978 # if S_ISSOCK (S_IFREG)
10979 You lose.
10980 # endif
10981 #endif
10982
10983 _ACEOF
10984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10985   $EGREP "You lose" >/dev/null 2>&1; then
10986   ac_cv_header_stat_broken=yes
10987 else
10988   ac_cv_header_stat_broken=no
10989 fi
10990 rm -f conftest*
10991
10992 fi
10993 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10994 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
10995 if test $ac_cv_header_stat_broken = yes; then
10996
10997 cat >>confdefs.h <<\_ACEOF
10998 #define STAT_MACROS_BROKEN 1
10999 _ACEOF
11000
11001 fi
11002
11003 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11004 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11005 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11006   echo $ECHO_N "(cached) $ECHO_C" >&6
11007 else
11008   cat >conftest.$ac_ext <<_ACEOF
11009 /* confdefs.h.  */
11010 _ACEOF
11011 cat confdefs.h >>conftest.$ac_ext
11012 cat >>conftest.$ac_ext <<_ACEOF
11013 /* end confdefs.h.  */
11014 #include <sys/types.h>
11015 #include <sys/wait.h>
11016 #ifndef WEXITSTATUS
11017 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11018 #endif
11019 #ifndef WIFEXITED
11020 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11021 #endif
11022
11023 int
11024 main ()
11025 {
11026   int s;
11027   wait (&s);
11028   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11029   ;
11030   return 0;
11031 }
11032 _ACEOF
11033 rm -f conftest.$ac_objext
11034 if { (ac_try="$ac_compile"
11035 case "(($ac_try" in
11036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11037   *) ac_try_echo=$ac_try;;
11038 esac
11039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11040   (eval "$ac_compile") 2>conftest.er1
11041   ac_status=$?
11042   grep -v '^ *+' conftest.er1 >conftest.err
11043   rm -f conftest.er1
11044   cat conftest.err >&5
11045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046   (exit $ac_status); } &&
11047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11048   { (case "(($ac_try" in
11049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050   *) ac_try_echo=$ac_try;;
11051 esac
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053   (eval "$ac_try") 2>&5
11054   ac_status=$?
11055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056   (exit $ac_status); }; } &&
11057          { ac_try='test -s conftest.$ac_objext'
11058   { (case "(($ac_try" in
11059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060   *) ac_try_echo=$ac_try;;
11061 esac
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063   (eval "$ac_try") 2>&5
11064   ac_status=$?
11065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066   (exit $ac_status); }; }; then
11067   ac_cv_header_sys_wait_h=yes
11068 else
11069   echo "$as_me: failed program was:" >&5
11070 sed 's/^/| /' conftest.$ac_ext >&5
11071
11072         ac_cv_header_sys_wait_h=no
11073 fi
11074
11075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11076 fi
11077 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11078 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11079 if test $ac_cv_header_sys_wait_h = yes; then
11080
11081 cat >>confdefs.h <<\_ACEOF
11082 #define HAVE_SYS_WAIT_H 1
11083 _ACEOF
11084
11085 fi
11086
11087 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11088 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11089 if test "${ac_cv_header_time+set}" = set; then
11090   echo $ECHO_N "(cached) $ECHO_C" >&6
11091 else
11092   cat >conftest.$ac_ext <<_ACEOF
11093 /* confdefs.h.  */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
11097 /* end confdefs.h.  */
11098 #include <sys/types.h>
11099 #include <sys/time.h>
11100 #include <time.h>
11101
11102 int
11103 main ()
11104 {
11105 if ((struct tm *) 0)
11106 return 0;
11107   ;
11108   return 0;
11109 }
11110 _ACEOF
11111 rm -f conftest.$ac_objext
11112 if { (ac_try="$ac_compile"
11113 case "(($ac_try" in
11114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11115   *) ac_try_echo=$ac_try;;
11116 esac
11117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11118   (eval "$ac_compile") 2>conftest.er1
11119   ac_status=$?
11120   grep -v '^ *+' conftest.er1 >conftest.err
11121   rm -f conftest.er1
11122   cat conftest.err >&5
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); } &&
11125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11126   { (case "(($ac_try" in
11127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128   *) ac_try_echo=$ac_try;;
11129 esac
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131   (eval "$ac_try") 2>&5
11132   ac_status=$?
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); }; } &&
11135          { ac_try='test -s conftest.$ac_objext'
11136   { (case "(($ac_try" in
11137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11138   *) ac_try_echo=$ac_try;;
11139 esac
11140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11141   (eval "$ac_try") 2>&5
11142   ac_status=$?
11143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144   (exit $ac_status); }; }; then
11145   ac_cv_header_time=yes
11146 else
11147   echo "$as_me: failed program was:" >&5
11148 sed 's/^/| /' conftest.$ac_ext >&5
11149
11150         ac_cv_header_time=no
11151 fi
11152
11153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11154 fi
11155 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11156 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11157 if test $ac_cv_header_time = yes; then
11158
11159 cat >>confdefs.h <<\_ACEOF
11160 #define TIME_WITH_SYS_TIME 1
11161 _ACEOF
11162
11163 fi
11164
11165
11166 ac_ext=cpp
11167 ac_cpp='$CXXCPP $CPPFLAGS'
11168 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11169 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11170 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11171
11172
11173 for ac_header in cxxabi.h
11174 do
11175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11179   echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181   cat >conftest.$ac_ext <<_ACEOF
11182 /* confdefs.h.  */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h.  */
11187 #include <stddef.h>
11188
11189
11190 #include <$ac_header>
11191 _ACEOF
11192 rm -f conftest.$ac_objext
11193 if { (ac_try="$ac_compile"
11194 case "(($ac_try" in
11195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11196   *) ac_try_echo=$ac_try;;
11197 esac
11198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11199   (eval "$ac_compile") 2>conftest.er1
11200   ac_status=$?
11201   grep -v '^ *+' conftest.er1 >conftest.err
11202   rm -f conftest.er1
11203   cat conftest.err >&5
11204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205   (exit $ac_status); } &&
11206          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11207   { (case "(($ac_try" in
11208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209   *) ac_try_echo=$ac_try;;
11210 esac
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212   (eval "$ac_try") 2>&5
11213   ac_status=$?
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); }; } &&
11216          { ac_try='test -s conftest.$ac_objext'
11217   { (case "(($ac_try" in
11218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11219   *) ac_try_echo=$ac_try;;
11220 esac
11221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11222   (eval "$ac_try") 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); }; }; then
11226   eval "$as_ac_Header=yes"
11227 else
11228   echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231         eval "$as_ac_Header=no"
11232 fi
11233
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235 fi
11236 ac_res=`eval echo '${'$as_ac_Header'}'`
11237                { echo "$as_me:$LINENO: result: $ac_res" >&5
11238 echo "${ECHO_T}$ac_res" >&6; }
11239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240   cat >>confdefs.h <<_ACEOF
11241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11242 _ACEOF
11243
11244 fi
11245
11246 done
11247
11248 ac_ext=c
11249 ac_cpp='$CPP $CPPFLAGS'
11250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11253
11254
11255
11256
11257
11258
11259
11260 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11261 do
11262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11264   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267   echo $ECHO_N "(cached) $ECHO_C" >&6
11268 fi
11269 ac_res=`eval echo '${'$as_ac_Header'}'`
11270                { echo "$as_me:$LINENO: result: $ac_res" >&5
11271 echo "${ECHO_T}$ac_res" >&6; }
11272 else
11273   # Is the header compilable?
11274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11276 cat >conftest.$ac_ext <<_ACEOF
11277 /* confdefs.h.  */
11278 _ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h.  */
11282 $ac_includes_default
11283 #include <$ac_header>
11284 _ACEOF
11285 rm -f conftest.$ac_objext
11286 if { (ac_try="$ac_compile"
11287 case "(($ac_try" in
11288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289   *) ac_try_echo=$ac_try;;
11290 esac
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292   (eval "$ac_compile") 2>conftest.er1
11293   ac_status=$?
11294   grep -v '^ *+' conftest.er1 >conftest.err
11295   rm -f conftest.er1
11296   cat conftest.err >&5
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); } &&
11299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11300   { (case "(($ac_try" in
11301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302   *) ac_try_echo=$ac_try;;
11303 esac
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305   (eval "$ac_try") 2>&5
11306   ac_status=$?
11307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308   (exit $ac_status); }; } &&
11309          { ac_try='test -s conftest.$ac_objext'
11310   { (case "(($ac_try" in
11311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312   *) ac_try_echo=$ac_try;;
11313 esac
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315   (eval "$ac_try") 2>&5
11316   ac_status=$?
11317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318   (exit $ac_status); }; }; then
11319   ac_header_compiler=yes
11320 else
11321   echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11323
11324         ac_header_compiler=no
11325 fi
11326
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11329 echo "${ECHO_T}$ac_header_compiler" >&6; }
11330
11331 # Is the header present?
11332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h.  */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h.  */
11340 #include <$ac_header>
11341 _ACEOF
11342 if { (ac_try="$ac_cpp conftest.$ac_ext"
11343 case "(($ac_try" in
11344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345   *) ac_try_echo=$ac_try;;
11346 esac
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11349   ac_status=$?
11350   grep -v '^ *+' conftest.er1 >conftest.err
11351   rm -f conftest.er1
11352   cat conftest.err >&5
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); } >/dev/null; then
11355   if test -s conftest.err; then
11356     ac_cpp_err=$ac_c_preproc_warn_flag
11357     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11358   else
11359     ac_cpp_err=
11360   fi
11361 else
11362   ac_cpp_err=yes
11363 fi
11364 if test -z "$ac_cpp_err"; then
11365   ac_header_preproc=yes
11366 else
11367   echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11369
11370   ac_header_preproc=no
11371 fi
11372
11373 rm -f conftest.err conftest.$ac_ext
11374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11375 echo "${ECHO_T}$ac_header_preproc" >&6; }
11376
11377 # So?  What about this header?
11378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11379   yes:no: )
11380     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11384     ac_header_preproc=yes
11385     ;;
11386   no:yes:* )
11387     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11389     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11390 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11391     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11393     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11394 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11395     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11397     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11399     ( cat <<\_ASBOX
11400 ## ------------------------------------ ##
11401 ## Report this to http://llvm.org/bugs/ ##
11402 ## ------------------------------------ ##
11403 _ASBOX
11404      ) | sed "s/^/$as_me: WARNING:     /" >&2
11405     ;;
11406 esac
11407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11410   echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412   eval "$as_ac_Header=\$ac_header_preproc"
11413 fi
11414 ac_res=`eval echo '${'$as_ac_Header'}'`
11415                { echo "$as_me:$LINENO: result: $ac_res" >&5
11416 echo "${ECHO_T}$ac_res" >&6; }
11417
11418 fi
11419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11420   cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11422 _ACEOF
11423
11424 fi
11425
11426 done
11427
11428
11429
11430
11431
11432
11433
11434 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11435 do
11436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11438   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11441   echo $ECHO_N "(cached) $ECHO_C" >&6
11442 fi
11443 ac_res=`eval echo '${'$as_ac_Header'}'`
11444                { echo "$as_me:$LINENO: result: $ac_res" >&5
11445 echo "${ECHO_T}$ac_res" >&6; }
11446 else
11447   # Is the header compilable?
11448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11450 cat >conftest.$ac_ext <<_ACEOF
11451 /* confdefs.h.  */
11452 _ACEOF
11453 cat confdefs.h >>conftest.$ac_ext
11454 cat >>conftest.$ac_ext <<_ACEOF
11455 /* end confdefs.h.  */
11456 $ac_includes_default
11457 #include <$ac_header>
11458 _ACEOF
11459 rm -f conftest.$ac_objext
11460 if { (ac_try="$ac_compile"
11461 case "(($ac_try" in
11462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463   *) ac_try_echo=$ac_try;;
11464 esac
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466   (eval "$ac_compile") 2>conftest.er1
11467   ac_status=$?
11468   grep -v '^ *+' conftest.er1 >conftest.err
11469   rm -f conftest.er1
11470   cat conftest.err >&5
11471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472   (exit $ac_status); } &&
11473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11474   { (case "(($ac_try" in
11475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476   *) ac_try_echo=$ac_try;;
11477 esac
11478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479   (eval "$ac_try") 2>&5
11480   ac_status=$?
11481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482   (exit $ac_status); }; } &&
11483          { ac_try='test -s conftest.$ac_objext'
11484   { (case "(($ac_try" in
11485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486   *) ac_try_echo=$ac_try;;
11487 esac
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489   (eval "$ac_try") 2>&5
11490   ac_status=$?
11491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); }; }; then
11493   ac_header_compiler=yes
11494 else
11495   echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11497
11498         ac_header_compiler=no
11499 fi
11500
11501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11503 echo "${ECHO_T}$ac_header_compiler" >&6; }
11504
11505 # Is the header present?
11506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11508 cat >conftest.$ac_ext <<_ACEOF
11509 /* confdefs.h.  */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h.  */
11514 #include <$ac_header>
11515 _ACEOF
11516 if { (ac_try="$ac_cpp conftest.$ac_ext"
11517 case "(($ac_try" in
11518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11519   *) ac_try_echo=$ac_try;;
11520 esac
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11523   ac_status=$?
11524   grep -v '^ *+' conftest.er1 >conftest.err
11525   rm -f conftest.er1
11526   cat conftest.err >&5
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); } >/dev/null; then
11529   if test -s conftest.err; then
11530     ac_cpp_err=$ac_c_preproc_warn_flag
11531     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11532   else
11533     ac_cpp_err=
11534   fi
11535 else
11536   ac_cpp_err=yes
11537 fi
11538 if test -z "$ac_cpp_err"; then
11539   ac_header_preproc=yes
11540 else
11541   echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11543
11544   ac_header_preproc=no
11545 fi
11546
11547 rm -f conftest.err conftest.$ac_ext
11548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11549 echo "${ECHO_T}$ac_header_preproc" >&6; }
11550
11551 # So?  What about this header?
11552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11553   yes:no: )
11554     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11556     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11558     ac_header_preproc=yes
11559     ;;
11560   no:yes:* )
11561     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11563     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11564 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11565     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11567     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11568 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11571     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11573     ( cat <<\_ASBOX
11574 ## ------------------------------------ ##
11575 ## Report this to http://llvm.org/bugs/ ##
11576 ## ------------------------------------ ##
11577 _ASBOX
11578      ) | sed "s/^/$as_me: WARNING:     /" >&2
11579     ;;
11580 esac
11581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11584   echo $ECHO_N "(cached) $ECHO_C" >&6
11585 else
11586   eval "$as_ac_Header=\$ac_header_preproc"
11587 fi
11588 ac_res=`eval echo '${'$as_ac_Header'}'`
11589                { echo "$as_me:$LINENO: result: $ac_res" >&5
11590 echo "${ECHO_T}$ac_res" >&6; }
11591
11592 fi
11593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11594   cat >>confdefs.h <<_ACEOF
11595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11596 _ACEOF
11597
11598 fi
11599
11600 done
11601
11602
11603 for ac_header in utime.h
11604 do
11605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11607   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11610   echo $ECHO_N "(cached) $ECHO_C" >&6
11611 fi
11612 ac_res=`eval echo '${'$as_ac_Header'}'`
11613                { echo "$as_me:$LINENO: result: $ac_res" >&5
11614 echo "${ECHO_T}$ac_res" >&6; }
11615 else
11616   # Is the header compilable?
11617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11619 cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h.  */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h.  */
11625 $ac_includes_default
11626 #include <$ac_header>
11627 _ACEOF
11628 rm -f conftest.$ac_objext
11629 if { (ac_try="$ac_compile"
11630 case "(($ac_try" in
11631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632   *) ac_try_echo=$ac_try;;
11633 esac
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635   (eval "$ac_compile") 2>conftest.er1
11636   ac_status=$?
11637   grep -v '^ *+' conftest.er1 >conftest.err
11638   rm -f conftest.er1
11639   cat conftest.err >&5
11640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641   (exit $ac_status); } &&
11642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11643   { (case "(($ac_try" in
11644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645   *) ac_try_echo=$ac_try;;
11646 esac
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648   (eval "$ac_try") 2>&5
11649   ac_status=$?
11650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651   (exit $ac_status); }; } &&
11652          { ac_try='test -s conftest.$ac_objext'
11653   { (case "(($ac_try" in
11654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655   *) ac_try_echo=$ac_try;;
11656 esac
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658   (eval "$ac_try") 2>&5
11659   ac_status=$?
11660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661   (exit $ac_status); }; }; then
11662   ac_header_compiler=yes
11663 else
11664   echo "$as_me: failed program was:" >&5
11665 sed 's/^/| /' conftest.$ac_ext >&5
11666
11667         ac_header_compiler=no
11668 fi
11669
11670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11672 echo "${ECHO_T}$ac_header_compiler" >&6; }
11673
11674 # Is the header present?
11675 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11677 cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h.  */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h.  */
11683 #include <$ac_header>
11684 _ACEOF
11685 if { (ac_try="$ac_cpp conftest.$ac_ext"
11686 case "(($ac_try" in
11687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688   *) ac_try_echo=$ac_try;;
11689 esac
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11692   ac_status=$?
11693   grep -v '^ *+' conftest.er1 >conftest.err
11694   rm -f conftest.er1
11695   cat conftest.err >&5
11696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697   (exit $ac_status); } >/dev/null; then
11698   if test -s conftest.err; then
11699     ac_cpp_err=$ac_c_preproc_warn_flag
11700     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11701   else
11702     ac_cpp_err=
11703   fi
11704 else
11705   ac_cpp_err=yes
11706 fi
11707 if test -z "$ac_cpp_err"; then
11708   ac_header_preproc=yes
11709 else
11710   echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11712
11713   ac_header_preproc=no
11714 fi
11715
11716 rm -f conftest.err conftest.$ac_ext
11717 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11718 echo "${ECHO_T}$ac_header_preproc" >&6; }
11719
11720 # So?  What about this header?
11721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11722   yes:no: )
11723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11727     ac_header_preproc=yes
11728     ;;
11729   no:yes:* )
11730     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11732     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11733 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11734     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11736     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11737 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11740     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11742     ( cat <<\_ASBOX
11743 ## ------------------------------------ ##
11744 ## Report this to http://llvm.org/bugs/ ##
11745 ## ------------------------------------ ##
11746 _ASBOX
11747      ) | sed "s/^/$as_me: WARNING:     /" >&2
11748     ;;
11749 esac
11750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11753   echo $ECHO_N "(cached) $ECHO_C" >&6
11754 else
11755   eval "$as_ac_Header=\$ac_header_preproc"
11756 fi
11757 ac_res=`eval echo '${'$as_ac_Header'}'`
11758                { echo "$as_me:$LINENO: result: $ac_res" >&5
11759 echo "${ECHO_T}$ac_res" >&6; }
11760
11761 fi
11762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11763   cat >>confdefs.h <<_ACEOF
11764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11765 _ACEOF
11766
11767 fi
11768
11769 done
11770
11771
11772
11773
11774
11775
11776 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11777 do
11778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11780   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11783   echo $ECHO_N "(cached) $ECHO_C" >&6
11784 fi
11785 ac_res=`eval echo '${'$as_ac_Header'}'`
11786                { echo "$as_me:$LINENO: result: $ac_res" >&5
11787 echo "${ECHO_T}$ac_res" >&6; }
11788 else
11789   # Is the header compilable?
11790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11792 cat >conftest.$ac_ext <<_ACEOF
11793 /* confdefs.h.  */
11794 _ACEOF
11795 cat confdefs.h >>conftest.$ac_ext
11796 cat >>conftest.$ac_ext <<_ACEOF
11797 /* end confdefs.h.  */
11798 $ac_includes_default
11799 #include <$ac_header>
11800 _ACEOF
11801 rm -f conftest.$ac_objext
11802 if { (ac_try="$ac_compile"
11803 case "(($ac_try" in
11804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805   *) ac_try_echo=$ac_try;;
11806 esac
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808   (eval "$ac_compile") 2>conftest.er1
11809   ac_status=$?
11810   grep -v '^ *+' conftest.er1 >conftest.err
11811   rm -f conftest.er1
11812   cat conftest.err >&5
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); } &&
11815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11816   { (case "(($ac_try" in
11817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818   *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821   (eval "$ac_try") 2>&5
11822   ac_status=$?
11823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824   (exit $ac_status); }; } &&
11825          { ac_try='test -s conftest.$ac_objext'
11826   { (case "(($ac_try" in
11827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828   *) ac_try_echo=$ac_try;;
11829 esac
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831   (eval "$ac_try") 2>&5
11832   ac_status=$?
11833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834   (exit $ac_status); }; }; then
11835   ac_header_compiler=yes
11836 else
11837   echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840         ac_header_compiler=no
11841 fi
11842
11843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11845 echo "${ECHO_T}$ac_header_compiler" >&6; }
11846
11847 # Is the header present?
11848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h.  */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h.  */
11856 #include <$ac_header>
11857 _ACEOF
11858 if { (ac_try="$ac_cpp conftest.$ac_ext"
11859 case "(($ac_try" in
11860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861   *) ac_try_echo=$ac_try;;
11862 esac
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11865   ac_status=$?
11866   grep -v '^ *+' conftest.er1 >conftest.err
11867   rm -f conftest.er1
11868   cat conftest.err >&5
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } >/dev/null; then
11871   if test -s conftest.err; then
11872     ac_cpp_err=$ac_c_preproc_warn_flag
11873     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11874   else
11875     ac_cpp_err=
11876   fi
11877 else
11878   ac_cpp_err=yes
11879 fi
11880 if test -z "$ac_cpp_err"; then
11881   ac_header_preproc=yes
11882 else
11883   echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11885
11886   ac_header_preproc=no
11887 fi
11888
11889 rm -f conftest.err conftest.$ac_ext
11890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11891 echo "${ECHO_T}$ac_header_preproc" >&6; }
11892
11893 # So?  What about this header?
11894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11895   yes:no: )
11896     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11898     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11900     ac_header_preproc=yes
11901     ;;
11902   no:yes:* )
11903     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11905     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11906 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11907     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11909     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11910 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11913     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11915     ( cat <<\_ASBOX
11916 ## ------------------------------------ ##
11917 ## Report this to http://llvm.org/bugs/ ##
11918 ## ------------------------------------ ##
11919 _ASBOX
11920      ) | sed "s/^/$as_me: WARNING:     /" >&2
11921     ;;
11922 esac
11923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11926   echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928   eval "$as_ac_Header=\$ac_header_preproc"
11929 fi
11930 ac_res=`eval echo '${'$as_ac_Header'}'`
11931                { echo "$as_me:$LINENO: result: $ac_res" >&5
11932 echo "${ECHO_T}$ac_res" >&6; }
11933
11934 fi
11935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11936   cat >>confdefs.h <<_ACEOF
11937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11938 _ACEOF
11939
11940 fi
11941
11942 done
11943
11944
11945
11946
11947 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11948 do
11949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11951   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11954   echo $ECHO_N "(cached) $ECHO_C" >&6
11955 fi
11956 ac_res=`eval echo '${'$as_ac_Header'}'`
11957                { echo "$as_me:$LINENO: result: $ac_res" >&5
11958 echo "${ECHO_T}$ac_res" >&6; }
11959 else
11960   # Is the header compilable?
11961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11963 cat >conftest.$ac_ext <<_ACEOF
11964 /* confdefs.h.  */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h.  */
11969 $ac_includes_default
11970 #include <$ac_header>
11971 _ACEOF
11972 rm -f conftest.$ac_objext
11973 if { (ac_try="$ac_compile"
11974 case "(($ac_try" in
11975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976   *) ac_try_echo=$ac_try;;
11977 esac
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979   (eval "$ac_compile") 2>conftest.er1
11980   ac_status=$?
11981   grep -v '^ *+' conftest.er1 >conftest.err
11982   rm -f conftest.er1
11983   cat conftest.err >&5
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); } &&
11986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11987   { (case "(($ac_try" in
11988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989   *) ac_try_echo=$ac_try;;
11990 esac
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992   (eval "$ac_try") 2>&5
11993   ac_status=$?
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); }; } &&
11996          { ac_try='test -s conftest.$ac_objext'
11997   { (case "(($ac_try" in
11998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999   *) ac_try_echo=$ac_try;;
12000 esac
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002   (eval "$ac_try") 2>&5
12003   ac_status=$?
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); }; }; then
12006   ac_header_compiler=yes
12007 else
12008   echo "$as_me: failed program was:" >&5
12009 sed 's/^/| /' conftest.$ac_ext >&5
12010
12011         ac_header_compiler=no
12012 fi
12013
12014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12016 echo "${ECHO_T}$ac_header_compiler" >&6; }
12017
12018 # Is the header present?
12019 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12021 cat >conftest.$ac_ext <<_ACEOF
12022 /* confdefs.h.  */
12023 _ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h.  */
12027 #include <$ac_header>
12028 _ACEOF
12029 if { (ac_try="$ac_cpp conftest.$ac_ext"
12030 case "(($ac_try" in
12031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12032   *) ac_try_echo=$ac_try;;
12033 esac
12034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12036   ac_status=$?
12037   grep -v '^ *+' conftest.er1 >conftest.err
12038   rm -f conftest.er1
12039   cat conftest.err >&5
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); } >/dev/null; then
12042   if test -s conftest.err; then
12043     ac_cpp_err=$ac_c_preproc_warn_flag
12044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12045   else
12046     ac_cpp_err=
12047   fi
12048 else
12049   ac_cpp_err=yes
12050 fi
12051 if test -z "$ac_cpp_err"; then
12052   ac_header_preproc=yes
12053 else
12054   echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12056
12057   ac_header_preproc=no
12058 fi
12059
12060 rm -f conftest.err conftest.$ac_ext
12061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12062 echo "${ECHO_T}$ac_header_preproc" >&6; }
12063
12064 # So?  What about this header?
12065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12066   yes:no: )
12067     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12071     ac_header_preproc=yes
12072     ;;
12073   no:yes:* )
12074     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12076     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12077 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12078     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12080     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12081 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12082     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12084     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12086     ( cat <<\_ASBOX
12087 ## ------------------------------------ ##
12088 ## Report this to http://llvm.org/bugs/ ##
12089 ## ------------------------------------ ##
12090 _ASBOX
12091      ) | sed "s/^/$as_me: WARNING:     /" >&2
12092     ;;
12093 esac
12094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12097   echo $ECHO_N "(cached) $ECHO_C" >&6
12098 else
12099   eval "$as_ac_Header=\$ac_header_preproc"
12100 fi
12101 ac_res=`eval echo '${'$as_ac_Header'}'`
12102                { echo "$as_me:$LINENO: result: $ac_res" >&5
12103 echo "${ECHO_T}$ac_res" >&6; }
12104
12105 fi
12106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12107   cat >>confdefs.h <<_ACEOF
12108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12109 _ACEOF
12110
12111 fi
12112
12113 done
12114
12115
12116 for ac_header in valgrind/valgrind.h
12117 do
12118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12120   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 fi
12125 ac_res=`eval echo '${'$as_ac_Header'}'`
12126                { echo "$as_me:$LINENO: result: $ac_res" >&5
12127 echo "${ECHO_T}$ac_res" >&6; }
12128 else
12129   # Is the header compilable?
12130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12132 cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h.  */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h.  */
12138 $ac_includes_default
12139 #include <$ac_header>
12140 _ACEOF
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145   *) ac_try_echo=$ac_try;;
12146 esac
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148   (eval "$ac_compile") 2>conftest.er1
12149   ac_status=$?
12150   grep -v '^ *+' conftest.er1 >conftest.err
12151   rm -f conftest.er1
12152   cat conftest.err >&5
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); } &&
12155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156   { (case "(($ac_try" in
12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158   *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161   (eval "$ac_try") 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; } &&
12165          { ac_try='test -s conftest.$ac_objext'
12166   { (case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_try") 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); }; }; then
12175   ac_header_compiler=yes
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180         ac_header_compiler=no
12181 fi
12182
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185 echo "${ECHO_T}$ac_header_compiler" >&6; }
12186
12187 # Is the header present?
12188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h.  */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h.  */
12196 #include <$ac_header>
12197 _ACEOF
12198 if { (ac_try="$ac_cpp conftest.$ac_ext"
12199 case "(($ac_try" in
12200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201   *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12205   ac_status=$?
12206   grep -v '^ *+' conftest.er1 >conftest.err
12207   rm -f conftest.er1
12208   cat conftest.err >&5
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } >/dev/null; then
12211   if test -s conftest.err; then
12212     ac_cpp_err=$ac_c_preproc_warn_flag
12213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12214   else
12215     ac_cpp_err=
12216   fi
12217 else
12218   ac_cpp_err=yes
12219 fi
12220 if test -z "$ac_cpp_err"; then
12221   ac_header_preproc=yes
12222 else
12223   echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226   ac_header_preproc=no
12227 fi
12228
12229 rm -f conftest.err conftest.$ac_ext
12230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 echo "${ECHO_T}$ac_header_preproc" >&6; }
12232
12233 # So?  What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12235   yes:no: )
12236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12240     ac_header_preproc=yes
12241     ;;
12242   no:yes:* )
12243     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12245     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12246 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12247     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12249     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12250 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12253     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12255     ( cat <<\_ASBOX
12256 ## ------------------------------------ ##
12257 ## Report this to http://llvm.org/bugs/ ##
12258 ## ------------------------------------ ##
12259 _ASBOX
12260      ) | sed "s/^/$as_me: WARNING:     /" >&2
12261     ;;
12262 esac
12263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266   echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268   eval "$as_ac_Header=\$ac_header_preproc"
12269 fi
12270 ac_res=`eval echo '${'$as_ac_Header'}'`
12271                { echo "$as_me:$LINENO: result: $ac_res" >&5
12272 echo "${ECHO_T}$ac_res" >&6; }
12273
12274 fi
12275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12276   cat >>confdefs.h <<_ACEOF
12277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12278 _ACEOF
12279
12280 fi
12281
12282 done
12283
12284
12285 for ac_header in fenv.h
12286 do
12287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12289   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12292   echo $ECHO_N "(cached) $ECHO_C" >&6
12293 fi
12294 ac_res=`eval echo '${'$as_ac_Header'}'`
12295                { echo "$as_me:$LINENO: result: $ac_res" >&5
12296 echo "${ECHO_T}$ac_res" >&6; }
12297 else
12298   # Is the header compilable?
12299 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12300 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12301 cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h.  */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h.  */
12307 $ac_includes_default
12308 #include <$ac_header>
12309 _ACEOF
12310 rm -f conftest.$ac_objext
12311 if { (ac_try="$ac_compile"
12312 case "(($ac_try" in
12313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314   *) ac_try_echo=$ac_try;;
12315 esac
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317   (eval "$ac_compile") 2>conftest.er1
12318   ac_status=$?
12319   grep -v '^ *+' conftest.er1 >conftest.err
12320   rm -f conftest.er1
12321   cat conftest.err >&5
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); } &&
12324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325   { (case "(($ac_try" in
12326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327   *) ac_try_echo=$ac_try;;
12328 esac
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330   (eval "$ac_try") 2>&5
12331   ac_status=$?
12332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333   (exit $ac_status); }; } &&
12334          { ac_try='test -s conftest.$ac_objext'
12335   { (case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_try") 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); }; }; then
12344   ac_header_compiler=yes
12345 else
12346   echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349         ac_header_compiler=no
12350 fi
12351
12352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12354 echo "${ECHO_T}$ac_header_compiler" >&6; }
12355
12356 # Is the header present?
12357 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12359 cat >conftest.$ac_ext <<_ACEOF
12360 /* confdefs.h.  */
12361 _ACEOF
12362 cat confdefs.h >>conftest.$ac_ext
12363 cat >>conftest.$ac_ext <<_ACEOF
12364 /* end confdefs.h.  */
12365 #include <$ac_header>
12366 _ACEOF
12367 if { (ac_try="$ac_cpp conftest.$ac_ext"
12368 case "(($ac_try" in
12369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12370   *) ac_try_echo=$ac_try;;
12371 esac
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12374   ac_status=$?
12375   grep -v '^ *+' conftest.er1 >conftest.err
12376   rm -f conftest.er1
12377   cat conftest.err >&5
12378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379   (exit $ac_status); } >/dev/null; then
12380   if test -s conftest.err; then
12381     ac_cpp_err=$ac_c_preproc_warn_flag
12382     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12383   else
12384     ac_cpp_err=
12385   fi
12386 else
12387   ac_cpp_err=yes
12388 fi
12389 if test -z "$ac_cpp_err"; then
12390   ac_header_preproc=yes
12391 else
12392   echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12394
12395   ac_header_preproc=no
12396 fi
12397
12398 rm -f conftest.err conftest.$ac_ext
12399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12400 echo "${ECHO_T}$ac_header_preproc" >&6; }
12401
12402 # So?  What about this header?
12403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12404   yes:no: )
12405     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12409     ac_header_preproc=yes
12410     ;;
12411   no:yes:* )
12412     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12414     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12415 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12416     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12418     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12419 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12422     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12424     ( cat <<\_ASBOX
12425 ## ------------------------------------ ##
12426 ## Report this to http://llvm.org/bugs/ ##
12427 ## ------------------------------------ ##
12428 _ASBOX
12429      ) | sed "s/^/$as_me: WARNING:     /" >&2
12430     ;;
12431 esac
12432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12435   echo $ECHO_N "(cached) $ECHO_C" >&6
12436 else
12437   eval "$as_ac_Header=\$ac_header_preproc"
12438 fi
12439 ac_res=`eval echo '${'$as_ac_Header'}'`
12440                { echo "$as_me:$LINENO: result: $ac_res" >&5
12441 echo "${ECHO_T}$ac_res" >&6; }
12442
12443 fi
12444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12445   cat >>confdefs.h <<_ACEOF
12446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12447 _ACEOF
12448
12449 fi
12450
12451 done
12452
12453 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12454 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12455 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12456   echo $ECHO_N "(cached) $ECHO_C" >&6
12457 else
12458   cat >conftest.$ac_ext <<_ACEOF
12459 /* confdefs.h.  */
12460 _ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h.  */
12464 #include <fenv.h>
12465
12466 int
12467 main ()
12468 {
12469 #ifndef FE_ALL_EXCEPT
12470   char *p = (char *) FE_ALL_EXCEPT;
12471   return !p;
12472 #endif
12473
12474   ;
12475   return 0;
12476 }
12477 _ACEOF
12478 rm -f conftest.$ac_objext
12479 if { (ac_try="$ac_compile"
12480 case "(($ac_try" in
12481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12482   *) ac_try_echo=$ac_try;;
12483 esac
12484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12485   (eval "$ac_compile") 2>conftest.er1
12486   ac_status=$?
12487   grep -v '^ *+' conftest.er1 >conftest.err
12488   rm -f conftest.er1
12489   cat conftest.err >&5
12490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491   (exit $ac_status); } &&
12492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12493   { (case "(($ac_try" in
12494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495   *) ac_try_echo=$ac_try;;
12496 esac
12497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12498   (eval "$ac_try") 2>&5
12499   ac_status=$?
12500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501   (exit $ac_status); }; } &&
12502          { ac_try='test -s conftest.$ac_objext'
12503   { (case "(($ac_try" in
12504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505   *) ac_try_echo=$ac_try;;
12506 esac
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508   (eval "$ac_try") 2>&5
12509   ac_status=$?
12510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511   (exit $ac_status); }; }; then
12512   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12513 else
12514   echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12516
12517         ac_cv_have_decl_FE_ALL_EXCEPT=no
12518 fi
12519
12520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12521 fi
12522 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12523 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12524 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12525
12526 cat >>confdefs.h <<_ACEOF
12527 #define HAVE_DECL_FE_ALL_EXCEPT 1
12528 _ACEOF
12529
12530
12531 else
12532   cat >>confdefs.h <<_ACEOF
12533 #define HAVE_DECL_FE_ALL_EXCEPT 0
12534 _ACEOF
12535
12536
12537 fi
12538 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12539 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12540 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12541   echo $ECHO_N "(cached) $ECHO_C" >&6
12542 else
12543   cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h.  */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h.  */
12549 #include <fenv.h>
12550
12551 int
12552 main ()
12553 {
12554 #ifndef FE_INEXACT
12555   char *p = (char *) FE_INEXACT;
12556   return !p;
12557 #endif
12558
12559   ;
12560   return 0;
12561 }
12562 _ACEOF
12563 rm -f conftest.$ac_objext
12564 if { (ac_try="$ac_compile"
12565 case "(($ac_try" in
12566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12567   *) ac_try_echo=$ac_try;;
12568 esac
12569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12570   (eval "$ac_compile") 2>conftest.er1
12571   ac_status=$?
12572   grep -v '^ *+' conftest.er1 >conftest.err
12573   rm -f conftest.er1
12574   cat conftest.err >&5
12575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576   (exit $ac_status); } &&
12577          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12578   { (case "(($ac_try" in
12579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580   *) ac_try_echo=$ac_try;;
12581 esac
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583   (eval "$ac_try") 2>&5
12584   ac_status=$?
12585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586   (exit $ac_status); }; } &&
12587          { ac_try='test -s conftest.$ac_objext'
12588   { (case "(($ac_try" in
12589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590   *) ac_try_echo=$ac_try;;
12591 esac
12592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593   (eval "$ac_try") 2>&5
12594   ac_status=$?
12595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12596   (exit $ac_status); }; }; then
12597   ac_cv_have_decl_FE_INEXACT=yes
12598 else
12599   echo "$as_me: failed program was:" >&5
12600 sed 's/^/| /' conftest.$ac_ext >&5
12601
12602         ac_cv_have_decl_FE_INEXACT=no
12603 fi
12604
12605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12606 fi
12607 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12608 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12609 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12610
12611 cat >>confdefs.h <<_ACEOF
12612 #define HAVE_DECL_FE_INEXACT 1
12613 _ACEOF
12614
12615
12616 else
12617   cat >>confdefs.h <<_ACEOF
12618 #define HAVE_DECL_FE_INEXACT 0
12619 _ACEOF
12620
12621
12622 fi
12623
12624
12625 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12626
12627 for ac_header in pthread.h
12628 do
12629 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12631   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12634   echo $ECHO_N "(cached) $ECHO_C" >&6
12635 fi
12636 ac_res=`eval echo '${'$as_ac_Header'}'`
12637                { echo "$as_me:$LINENO: result: $ac_res" >&5
12638 echo "${ECHO_T}$ac_res" >&6; }
12639 else
12640   # Is the header compilable?
12641 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12643 cat >conftest.$ac_ext <<_ACEOF
12644 /* confdefs.h.  */
12645 _ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h.  */
12649 $ac_includes_default
12650 #include <$ac_header>
12651 _ACEOF
12652 rm -f conftest.$ac_objext
12653 if { (ac_try="$ac_compile"
12654 case "(($ac_try" in
12655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12656   *) ac_try_echo=$ac_try;;
12657 esac
12658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12659   (eval "$ac_compile") 2>conftest.er1
12660   ac_status=$?
12661   grep -v '^ *+' conftest.er1 >conftest.err
12662   rm -f conftest.er1
12663   cat conftest.err >&5
12664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665   (exit $ac_status); } &&
12666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12667   { (case "(($ac_try" in
12668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669   *) ac_try_echo=$ac_try;;
12670 esac
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672   (eval "$ac_try") 2>&5
12673   ac_status=$?
12674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675   (exit $ac_status); }; } &&
12676          { ac_try='test -s conftest.$ac_objext'
12677   { (case "(($ac_try" in
12678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679   *) ac_try_echo=$ac_try;;
12680 esac
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682   (eval "$ac_try") 2>&5
12683   ac_status=$?
12684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685   (exit $ac_status); }; }; then
12686   ac_header_compiler=yes
12687 else
12688   echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12690
12691         ac_header_compiler=no
12692 fi
12693
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12696 echo "${ECHO_T}$ac_header_compiler" >&6; }
12697
12698 # Is the header present?
12699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h.  */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h.  */
12707 #include <$ac_header>
12708 _ACEOF
12709 if { (ac_try="$ac_cpp conftest.$ac_ext"
12710 case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12716   ac_status=$?
12717   grep -v '^ *+' conftest.er1 >conftest.err
12718   rm -f conftest.er1
12719   cat conftest.err >&5
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); } >/dev/null; then
12722   if test -s conftest.err; then
12723     ac_cpp_err=$ac_c_preproc_warn_flag
12724     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12725   else
12726     ac_cpp_err=
12727   fi
12728 else
12729   ac_cpp_err=yes
12730 fi
12731 if test -z "$ac_cpp_err"; then
12732   ac_header_preproc=yes
12733 else
12734   echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12736
12737   ac_header_preproc=no
12738 fi
12739
12740 rm -f conftest.err conftest.$ac_ext
12741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12742 echo "${ECHO_T}$ac_header_preproc" >&6; }
12743
12744 # So?  What about this header?
12745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12746   yes:no: )
12747     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12749     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12751     ac_header_preproc=yes
12752     ;;
12753   no:yes:* )
12754     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12756     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12757 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12758     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12760     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12761 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12762     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12764     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12766     ( cat <<\_ASBOX
12767 ## ------------------------------------ ##
12768 ## Report this to http://llvm.org/bugs/ ##
12769 ## ------------------------------------ ##
12770 _ASBOX
12771      ) | sed "s/^/$as_me: WARNING:     /" >&2
12772     ;;
12773 esac
12774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12777   echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779   eval "$as_ac_Header=\$ac_header_preproc"
12780 fi
12781 ac_res=`eval echo '${'$as_ac_Header'}'`
12782                { echo "$as_me:$LINENO: result: $ac_res" >&5
12783 echo "${ECHO_T}$ac_res" >&6; }
12784
12785 fi
12786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12787   cat >>confdefs.h <<_ACEOF
12788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12789 _ACEOF
12790  HAVE_PTHREAD=1
12791
12792 else
12793   HAVE_PTHREAD=0
12794
12795 fi
12796
12797 done
12798
12799 else
12800   HAVE_PTHREAD=0
12801
12802 fi
12803 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12804
12805 for ac_header in zlib.h
12806 do
12807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12809   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12812   echo $ECHO_N "(cached) $ECHO_C" >&6
12813 fi
12814 ac_res=`eval echo '${'$as_ac_Header'}'`
12815                { echo "$as_me:$LINENO: result: $ac_res" >&5
12816 echo "${ECHO_T}$ac_res" >&6; }
12817 else
12818   # Is the header compilable?
12819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12821 cat >conftest.$ac_ext <<_ACEOF
12822 /* confdefs.h.  */
12823 _ACEOF
12824 cat confdefs.h >>conftest.$ac_ext
12825 cat >>conftest.$ac_ext <<_ACEOF
12826 /* end confdefs.h.  */
12827 $ac_includes_default
12828 #include <$ac_header>
12829 _ACEOF
12830 rm -f conftest.$ac_objext
12831 if { (ac_try="$ac_compile"
12832 case "(($ac_try" in
12833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834   *) ac_try_echo=$ac_try;;
12835 esac
12836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837   (eval "$ac_compile") 2>conftest.er1
12838   ac_status=$?
12839   grep -v '^ *+' conftest.er1 >conftest.err
12840   rm -f conftest.er1
12841   cat conftest.err >&5
12842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843   (exit $ac_status); } &&
12844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12845   { (case "(($ac_try" in
12846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847   *) ac_try_echo=$ac_try;;
12848 esac
12849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12850   (eval "$ac_try") 2>&5
12851   ac_status=$?
12852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853   (exit $ac_status); }; } &&
12854          { ac_try='test -s conftest.$ac_objext'
12855   { (case "(($ac_try" in
12856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857   *) ac_try_echo=$ac_try;;
12858 esac
12859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12860   (eval "$ac_try") 2>&5
12861   ac_status=$?
12862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); }; }; then
12864   ac_header_compiler=yes
12865 else
12866   echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12868
12869         ac_header_compiler=no
12870 fi
12871
12872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12874 echo "${ECHO_T}$ac_header_compiler" >&6; }
12875
12876 # Is the header present?
12877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12879 cat >conftest.$ac_ext <<_ACEOF
12880 /* confdefs.h.  */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h.  */
12885 #include <$ac_header>
12886 _ACEOF
12887 if { (ac_try="$ac_cpp conftest.$ac_ext"
12888 case "(($ac_try" in
12889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12890   *) ac_try_echo=$ac_try;;
12891 esac
12892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12894   ac_status=$?
12895   grep -v '^ *+' conftest.er1 >conftest.err
12896   rm -f conftest.er1
12897   cat conftest.err >&5
12898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899   (exit $ac_status); } >/dev/null; then
12900   if test -s conftest.err; then
12901     ac_cpp_err=$ac_c_preproc_warn_flag
12902     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12903   else
12904     ac_cpp_err=
12905   fi
12906 else
12907   ac_cpp_err=yes
12908 fi
12909 if test -z "$ac_cpp_err"; then
12910   ac_header_preproc=yes
12911 else
12912   echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12914
12915   ac_header_preproc=no
12916 fi
12917
12918 rm -f conftest.err conftest.$ac_ext
12919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12920 echo "${ECHO_T}$ac_header_preproc" >&6; }
12921
12922 # So?  What about this header?
12923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12924   yes:no: )
12925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12929     ac_header_preproc=yes
12930     ;;
12931   no:yes:* )
12932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12934     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12935 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12936     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12938     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12939 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12942     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12944     ( cat <<\_ASBOX
12945 ## ------------------------------------ ##
12946 ## Report this to http://llvm.org/bugs/ ##
12947 ## ------------------------------------ ##
12948 _ASBOX
12949      ) | sed "s/^/$as_me: WARNING:     /" >&2
12950     ;;
12951 esac
12952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12955   echo $ECHO_N "(cached) $ECHO_C" >&6
12956 else
12957   eval "$as_ac_Header=\$ac_header_preproc"
12958 fi
12959 ac_res=`eval echo '${'$as_ac_Header'}'`
12960                { echo "$as_me:$LINENO: result: $ac_res" >&5
12961 echo "${ECHO_T}$ac_res" >&6; }
12962
12963 fi
12964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12965   cat >>confdefs.h <<_ACEOF
12966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12967 _ACEOF
12968  HAVE_LIBZ=1
12969
12970 else
12971   HAVE_LIBZ=0
12972
12973 fi
12974
12975 done
12976
12977 else
12978   HAVE_LIBZ=0
12979
12980 fi
12981
12982 if test "$llvm_cv_enable_libffi" = "yes" ; then
12983
12984
12985 for ac_header in ffi.h ffi/ffi.h
12986 do
12987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12989   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12992   echo $ECHO_N "(cached) $ECHO_C" >&6
12993 fi
12994 ac_res=`eval echo '${'$as_ac_Header'}'`
12995                { echo "$as_me:$LINENO: result: $ac_res" >&5
12996 echo "${ECHO_T}$ac_res" >&6; }
12997 else
12998   # Is the header compilable?
12999 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h.  */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h.  */
13007 $ac_includes_default
13008 #include <$ac_header>
13009 _ACEOF
13010 rm -f conftest.$ac_objext
13011 if { (ac_try="$ac_compile"
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_compile") 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); } &&
13024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13025   { (case "(($ac_try" in
13026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027   *) ac_try_echo=$ac_try;;
13028 esac
13029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13030   (eval "$ac_try") 2>&5
13031   ac_status=$?
13032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033   (exit $ac_status); }; } &&
13034          { ac_try='test -s conftest.$ac_objext'
13035   { (case "(($ac_try" in
13036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037   *) ac_try_echo=$ac_try;;
13038 esac
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040   (eval "$ac_try") 2>&5
13041   ac_status=$?
13042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043   (exit $ac_status); }; }; then
13044   ac_header_compiler=yes
13045 else
13046   echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13048
13049         ac_header_compiler=no
13050 fi
13051
13052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13053 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13054 echo "${ECHO_T}$ac_header_compiler" >&6; }
13055
13056 # Is the header present?
13057 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13058 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13059 cat >conftest.$ac_ext <<_ACEOF
13060 /* confdefs.h.  */
13061 _ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h.  */
13065 #include <$ac_header>
13066 _ACEOF
13067 if { (ac_try="$ac_cpp conftest.$ac_ext"
13068 case "(($ac_try" in
13069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13070   *) ac_try_echo=$ac_try;;
13071 esac
13072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13073   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13074   ac_status=$?
13075   grep -v '^ *+' conftest.er1 >conftest.err
13076   rm -f conftest.er1
13077   cat conftest.err >&5
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); } >/dev/null; then
13080   if test -s conftest.err; then
13081     ac_cpp_err=$ac_c_preproc_warn_flag
13082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13083   else
13084     ac_cpp_err=
13085   fi
13086 else
13087   ac_cpp_err=yes
13088 fi
13089 if test -z "$ac_cpp_err"; then
13090   ac_header_preproc=yes
13091 else
13092   echo "$as_me: failed program was:" >&5
13093 sed 's/^/| /' conftest.$ac_ext >&5
13094
13095   ac_header_preproc=no
13096 fi
13097
13098 rm -f conftest.err conftest.$ac_ext
13099 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13100 echo "${ECHO_T}$ac_header_preproc" >&6; }
13101
13102 # So?  What about this header?
13103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13104   yes:no: )
13105     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13106 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13107     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13108 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13109     ac_header_preproc=yes
13110     ;;
13111   no:yes:* )
13112     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13113 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13114     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13115 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13116     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13117 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13118     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13119 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13121 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13122     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13123 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13124     ( cat <<\_ASBOX
13125 ## ------------------------------------ ##
13126 ## Report this to http://llvm.org/bugs/ ##
13127 ## ------------------------------------ ##
13128 _ASBOX
13129      ) | sed "s/^/$as_me: WARNING:     /" >&2
13130     ;;
13131 esac
13132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13135   echo $ECHO_N "(cached) $ECHO_C" >&6
13136 else
13137   eval "$as_ac_Header=\$ac_header_preproc"
13138 fi
13139 ac_res=`eval echo '${'$as_ac_Header'}'`
13140                { echo "$as_me:$LINENO: result: $ac_res" >&5
13141 echo "${ECHO_T}$ac_res" >&6; }
13142
13143 fi
13144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13145   cat >>confdefs.h <<_ACEOF
13146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13147 _ACEOF
13148
13149 fi
13150
13151 done
13152
13153 fi
13154
13155
13156 for ac_header in CrashReporterClient.h
13157 do
13158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13160   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13163   echo $ECHO_N "(cached) $ECHO_C" >&6
13164 fi
13165 ac_res=`eval echo '${'$as_ac_Header'}'`
13166                { echo "$as_me:$LINENO: result: $ac_res" >&5
13167 echo "${ECHO_T}$ac_res" >&6; }
13168 else
13169   # Is the header compilable?
13170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13172 cat >conftest.$ac_ext <<_ACEOF
13173 /* confdefs.h.  */
13174 _ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h.  */
13178 $ac_includes_default
13179 #include <$ac_header>
13180 _ACEOF
13181 rm -f conftest.$ac_objext
13182 if { (ac_try="$ac_compile"
13183 case "(($ac_try" in
13184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185   *) ac_try_echo=$ac_try;;
13186 esac
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188   (eval "$ac_compile") 2>conftest.er1
13189   ac_status=$?
13190   grep -v '^ *+' conftest.er1 >conftest.err
13191   rm -f conftest.er1
13192   cat conftest.err >&5
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); } &&
13195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13196   { (case "(($ac_try" in
13197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198   *) ac_try_echo=$ac_try;;
13199 esac
13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201   (eval "$ac_try") 2>&5
13202   ac_status=$?
13203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204   (exit $ac_status); }; } &&
13205          { ac_try='test -s conftest.$ac_objext'
13206   { (case "(($ac_try" in
13207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208   *) ac_try_echo=$ac_try;;
13209 esac
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211   (eval "$ac_try") 2>&5
13212   ac_status=$?
13213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214   (exit $ac_status); }; }; then
13215   ac_header_compiler=yes
13216 else
13217   echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13219
13220         ac_header_compiler=no
13221 fi
13222
13223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13225 echo "${ECHO_T}$ac_header_compiler" >&6; }
13226
13227 # Is the header present?
13228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13230 cat >conftest.$ac_ext <<_ACEOF
13231 /* confdefs.h.  */
13232 _ACEOF
13233 cat confdefs.h >>conftest.$ac_ext
13234 cat >>conftest.$ac_ext <<_ACEOF
13235 /* end confdefs.h.  */
13236 #include <$ac_header>
13237 _ACEOF
13238 if { (ac_try="$ac_cpp conftest.$ac_ext"
13239 case "(($ac_try" in
13240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241   *) ac_try_echo=$ac_try;;
13242 esac
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13245   ac_status=$?
13246   grep -v '^ *+' conftest.er1 >conftest.err
13247   rm -f conftest.er1
13248   cat conftest.err >&5
13249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250   (exit $ac_status); } >/dev/null; then
13251   if test -s conftest.err; then
13252     ac_cpp_err=$ac_c_preproc_warn_flag
13253     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13254   else
13255     ac_cpp_err=
13256   fi
13257 else
13258   ac_cpp_err=yes
13259 fi
13260 if test -z "$ac_cpp_err"; then
13261   ac_header_preproc=yes
13262 else
13263   echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13265
13266   ac_header_preproc=no
13267 fi
13268
13269 rm -f conftest.err conftest.$ac_ext
13270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13271 echo "${ECHO_T}$ac_header_preproc" >&6; }
13272
13273 # So?  What about this header?
13274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13275   yes:no: )
13276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13280     ac_header_preproc=yes
13281     ;;
13282   no:yes:* )
13283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13295     ( cat <<\_ASBOX
13296 ## ------------------------------------ ##
13297 ## Report this to http://llvm.org/bugs/ ##
13298 ## ------------------------------------ ##
13299 _ASBOX
13300      ) | sed "s/^/$as_me: WARNING:     /" >&2
13301     ;;
13302 esac
13303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13306   echo $ECHO_N "(cached) $ECHO_C" >&6
13307 else
13308   eval "$as_ac_Header=\$ac_header_preproc"
13309 fi
13310 ac_res=`eval echo '${'$as_ac_Header'}'`
13311                { echo "$as_me:$LINENO: result: $ac_res" >&5
13312 echo "${ECHO_T}$ac_res" >&6; }
13313
13314 fi
13315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13316   cat >>confdefs.h <<_ACEOF
13317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13318 _ACEOF
13319
13320 fi
13321
13322 done
13323
13324
13325 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13326 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13327 cat >conftest.$ac_ext <<_ACEOF
13328
13329   /* confdefs.h.  */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h.  */
13334
13335     extern const char *__crashreporter_info__;
13336     int main() {
13337       __crashreporter_info__ = "test";
13338       return 0;
13339     }
13340
13341
13342 _ACEOF
13343 rm -f conftest.$ac_objext conftest$ac_exeext
13344 if { (ac_try="$ac_link"
13345 case "(($ac_try" in
13346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347   *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350   (eval "$ac_link") 2>conftest.er1
13351   ac_status=$?
13352   grep -v '^ *+' conftest.er1 >conftest.err
13353   rm -f conftest.er1
13354   cat conftest.err >&5
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } &&
13357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13358   { (case "(($ac_try" in
13359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360   *) ac_try_echo=$ac_try;;
13361 esac
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363   (eval "$ac_try") 2>&5
13364   ac_status=$?
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); }; } &&
13367          { ac_try='test -s conftest$ac_exeext'
13368   { (case "(($ac_try" in
13369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370   *) ac_try_echo=$ac_try;;
13371 esac
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373   (eval "$ac_try") 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); }; }; then
13377
13378   { echo "$as_me:$LINENO: result: yes" >&5
13379 echo "${ECHO_T}yes" >&6; }
13380
13381 cat >>confdefs.h <<\_ACEOF
13382 #define HAVE_CRASHREPORTER_INFO 1
13383 _ACEOF
13384
13385
13386 else
13387   echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13389
13390
13391   { echo "$as_me:$LINENO: result: no" >&5
13392 echo "${ECHO_T}no" >&6; }
13393
13394 cat >>confdefs.h <<\_ACEOF
13395 #define HAVE_CRASHREPORTER_INFO 0
13396 _ACEOF
13397
13398
13399 fi
13400
13401 rm -f core conftest.err conftest.$ac_objext \
13402       conftest$ac_exeext conftest.$ac_ext
13403
13404
13405
13406   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13407 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13408 if test "${ac_cv_huge_val_sanity+set}" = set; then
13409   echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411
13412     ac_ext=cpp
13413 ac_cpp='$CXXCPP $CPPFLAGS'
13414 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13415 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13416 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13417
13418     ac_save_CXXFLAGS=$CXXFLAGS
13419     CXXFLAGS="$CXXFLAGS -pedantic"
13420     if test "$cross_compiling" = yes; then
13421   ac_cv_huge_val_sanity=yes
13422 else
13423   cat >conftest.$ac_ext <<_ACEOF
13424 /* confdefs.h.  */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h.  */
13429 #include <math.h>
13430 int
13431 main ()
13432 {
13433 double x = HUGE_VAL; return x != x;
13434   ;
13435   return 0;
13436 }
13437 _ACEOF
13438 rm -f conftest$ac_exeext
13439 if { (ac_try="$ac_link"
13440 case "(($ac_try" in
13441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442   *) ac_try_echo=$ac_try;;
13443 esac
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445   (eval "$ac_link") 2>&5
13446   ac_status=$?
13447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13449   { (case "(($ac_try" in
13450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451   *) ac_try_echo=$ac_try;;
13452 esac
13453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13454   (eval "$ac_try") 2>&5
13455   ac_status=$?
13456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457   (exit $ac_status); }; }; then
13458   ac_cv_huge_val_sanity=yes
13459 else
13460   echo "$as_me: program exited with status $ac_status" >&5
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13463
13464 ( exit $ac_status )
13465 ac_cv_huge_val_sanity=no
13466 fi
13467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13468 fi
13469
13470
13471     CXXFLAGS=$ac_save_CXXFLAGS
13472     ac_ext=c
13473 ac_cpp='$CPP $CPPFLAGS'
13474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13477
13478
13479 fi
13480 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13481 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13482   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13483
13484
13485 { echo "$as_me:$LINENO: checking for pid_t" >&5
13486 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13487 if test "${ac_cv_type_pid_t+set}" = set; then
13488   echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490   cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h.  */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h.  */
13496 $ac_includes_default
13497 typedef pid_t ac__type_new_;
13498 int
13499 main ()
13500 {
13501 if ((ac__type_new_ *) 0)
13502   return 0;
13503 if (sizeof (ac__type_new_))
13504   return 0;
13505   ;
13506   return 0;
13507 }
13508 _ACEOF
13509 rm -f conftest.$ac_objext
13510 if { (ac_try="$ac_compile"
13511 case "(($ac_try" in
13512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513   *) ac_try_echo=$ac_try;;
13514 esac
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516   (eval "$ac_compile") 2>conftest.er1
13517   ac_status=$?
13518   grep -v '^ *+' conftest.er1 >conftest.err
13519   rm -f conftest.er1
13520   cat conftest.err >&5
13521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522   (exit $ac_status); } &&
13523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13524   { (case "(($ac_try" in
13525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526   *) ac_try_echo=$ac_try;;
13527 esac
13528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13529   (eval "$ac_try") 2>&5
13530   ac_status=$?
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); }; } &&
13533          { ac_try='test -s conftest.$ac_objext'
13534   { (case "(($ac_try" in
13535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536   *) ac_try_echo=$ac_try;;
13537 esac
13538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539   (eval "$ac_try") 2>&5
13540   ac_status=$?
13541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542   (exit $ac_status); }; }; then
13543   ac_cv_type_pid_t=yes
13544 else
13545   echo "$as_me: failed program was:" >&5
13546 sed 's/^/| /' conftest.$ac_ext >&5
13547
13548         ac_cv_type_pid_t=no
13549 fi
13550
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552 fi
13553 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13554 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13555 if test $ac_cv_type_pid_t = yes; then
13556   :
13557 else
13558
13559 cat >>confdefs.h <<_ACEOF
13560 #define pid_t int
13561 _ACEOF
13562
13563 fi
13564
13565 { echo "$as_me:$LINENO: checking for size_t" >&5
13566 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13567 if test "${ac_cv_type_size_t+set}" = set; then
13568   echo $ECHO_N "(cached) $ECHO_C" >&6
13569 else
13570   cat >conftest.$ac_ext <<_ACEOF
13571 /* confdefs.h.  */
13572 _ACEOF
13573 cat confdefs.h >>conftest.$ac_ext
13574 cat >>conftest.$ac_ext <<_ACEOF
13575 /* end confdefs.h.  */
13576 $ac_includes_default
13577 typedef size_t ac__type_new_;
13578 int
13579 main ()
13580 {
13581 if ((ac__type_new_ *) 0)
13582   return 0;
13583 if (sizeof (ac__type_new_))
13584   return 0;
13585   ;
13586   return 0;
13587 }
13588 _ACEOF
13589 rm -f conftest.$ac_objext
13590 if { (ac_try="$ac_compile"
13591 case "(($ac_try" in
13592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593   *) ac_try_echo=$ac_try;;
13594 esac
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596   (eval "$ac_compile") 2>conftest.er1
13597   ac_status=$?
13598   grep -v '^ *+' conftest.er1 >conftest.err
13599   rm -f conftest.er1
13600   cat conftest.err >&5
13601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602   (exit $ac_status); } &&
13603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13604   { (case "(($ac_try" in
13605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606   *) ac_try_echo=$ac_try;;
13607 esac
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609   (eval "$ac_try") 2>&5
13610   ac_status=$?
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); }; } &&
13613          { ac_try='test -s conftest.$ac_objext'
13614   { (case "(($ac_try" in
13615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616   *) ac_try_echo=$ac_try;;
13617 esac
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619   (eval "$ac_try") 2>&5
13620   ac_status=$?
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); }; }; then
13623   ac_cv_type_size_t=yes
13624 else
13625   echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13627
13628         ac_cv_type_size_t=no
13629 fi
13630
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632 fi
13633 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13634 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13635 if test $ac_cv_type_size_t = yes; then
13636   :
13637 else
13638
13639 cat >>confdefs.h <<_ACEOF
13640 #define size_t unsigned int
13641 _ACEOF
13642
13643 fi
13644
13645
13646 cat >>confdefs.h <<_ACEOF
13647 #define RETSIGTYPE void
13648 _ACEOF
13649
13650 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13651 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13652 if test "${ac_cv_struct_tm+set}" = set; then
13653   echo $ECHO_N "(cached) $ECHO_C" >&6
13654 else
13655   cat >conftest.$ac_ext <<_ACEOF
13656 /* confdefs.h.  */
13657 _ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h.  */
13661 #include <sys/types.h>
13662 #include <time.h>
13663
13664 int
13665 main ()
13666 {
13667 struct tm *tp; tp->tm_sec;
13668   ;
13669   return 0;
13670 }
13671 _ACEOF
13672 rm -f conftest.$ac_objext
13673 if { (ac_try="$ac_compile"
13674 case "(($ac_try" in
13675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13676   *) ac_try_echo=$ac_try;;
13677 esac
13678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13679   (eval "$ac_compile") 2>conftest.er1
13680   ac_status=$?
13681   grep -v '^ *+' conftest.er1 >conftest.err
13682   rm -f conftest.er1
13683   cat conftest.err >&5
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); } &&
13686          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13687   { (case "(($ac_try" in
13688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689   *) ac_try_echo=$ac_try;;
13690 esac
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692   (eval "$ac_try") 2>&5
13693   ac_status=$?
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); }; } &&
13696          { ac_try='test -s conftest.$ac_objext'
13697   { (case "(($ac_try" in
13698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699   *) ac_try_echo=$ac_try;;
13700 esac
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702   (eval "$ac_try") 2>&5
13703   ac_status=$?
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); }; }; then
13706   ac_cv_struct_tm=time.h
13707 else
13708   echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711         ac_cv_struct_tm=sys/time.h
13712 fi
13713
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13715 fi
13716 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13717 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13718 if test $ac_cv_struct_tm = sys/time.h; then
13719
13720 cat >>confdefs.h <<\_ACEOF
13721 #define TM_IN_SYS_TIME 1
13722 _ACEOF
13723
13724 fi
13725
13726 { echo "$as_me:$LINENO: checking for int64_t" >&5
13727 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13728 if test "${ac_cv_type_int64_t+set}" = set; then
13729   echo $ECHO_N "(cached) $ECHO_C" >&6
13730 else
13731   cat >conftest.$ac_ext <<_ACEOF
13732 /* confdefs.h.  */
13733 _ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h.  */
13737 $ac_includes_default
13738 typedef int64_t ac__type_new_;
13739 int
13740 main ()
13741 {
13742 if ((ac__type_new_ *) 0)
13743   return 0;
13744 if (sizeof (ac__type_new_))
13745   return 0;
13746   ;
13747   return 0;
13748 }
13749 _ACEOF
13750 rm -f conftest.$ac_objext
13751 if { (ac_try="$ac_compile"
13752 case "(($ac_try" in
13753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754   *) ac_try_echo=$ac_try;;
13755 esac
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757   (eval "$ac_compile") 2>conftest.er1
13758   ac_status=$?
13759   grep -v '^ *+' conftest.er1 >conftest.err
13760   rm -f conftest.er1
13761   cat conftest.err >&5
13762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763   (exit $ac_status); } &&
13764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13765   { (case "(($ac_try" in
13766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767   *) ac_try_echo=$ac_try;;
13768 esac
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770   (eval "$ac_try") 2>&5
13771   ac_status=$?
13772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773   (exit $ac_status); }; } &&
13774          { ac_try='test -s conftest.$ac_objext'
13775   { (case "(($ac_try" in
13776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777   *) ac_try_echo=$ac_try;;
13778 esac
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780   (eval "$ac_try") 2>&5
13781   ac_status=$?
13782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); }; }; then
13784   ac_cv_type_int64_t=yes
13785 else
13786   echo "$as_me: failed program was:" >&5
13787 sed 's/^/| /' conftest.$ac_ext >&5
13788
13789         ac_cv_type_int64_t=no
13790 fi
13791
13792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13793 fi
13794 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13795 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13796 if test $ac_cv_type_int64_t = yes; then
13797
13798 cat >>confdefs.h <<_ACEOF
13799 #define HAVE_INT64_T 1
13800 _ACEOF
13801
13802
13803 else
13804   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13805 echo "$as_me: error: Type int64_t required but not found" >&2;}
13806    { (exit 1); exit 1; }; }
13807 fi
13808
13809 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13810 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13811 if test "${ac_cv_type_uint64_t+set}" = set; then
13812   echo $ECHO_N "(cached) $ECHO_C" >&6
13813 else
13814   cat >conftest.$ac_ext <<_ACEOF
13815 /* confdefs.h.  */
13816 _ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h.  */
13820 $ac_includes_default
13821 typedef uint64_t ac__type_new_;
13822 int
13823 main ()
13824 {
13825 if ((ac__type_new_ *) 0)
13826   return 0;
13827 if (sizeof (ac__type_new_))
13828   return 0;
13829   ;
13830   return 0;
13831 }
13832 _ACEOF
13833 rm -f conftest.$ac_objext
13834 if { (ac_try="$ac_compile"
13835 case "(($ac_try" in
13836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837   *) ac_try_echo=$ac_try;;
13838 esac
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840   (eval "$ac_compile") 2>conftest.er1
13841   ac_status=$?
13842   grep -v '^ *+' conftest.er1 >conftest.err
13843   rm -f conftest.er1
13844   cat conftest.err >&5
13845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846   (exit $ac_status); } &&
13847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13848   { (case "(($ac_try" in
13849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850   *) ac_try_echo=$ac_try;;
13851 esac
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853   (eval "$ac_try") 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); }; } &&
13857          { ac_try='test -s conftest.$ac_objext'
13858   { (case "(($ac_try" in
13859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860   *) ac_try_echo=$ac_try;;
13861 esac
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863   (eval "$ac_try") 2>&5
13864   ac_status=$?
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); }; }; then
13867   ac_cv_type_uint64_t=yes
13868 else
13869   echo "$as_me: failed program was:" >&5
13870 sed 's/^/| /' conftest.$ac_ext >&5
13871
13872         ac_cv_type_uint64_t=no
13873 fi
13874
13875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13876 fi
13877 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13878 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13879 if test $ac_cv_type_uint64_t = yes; then
13880
13881 cat >>confdefs.h <<_ACEOF
13882 #define HAVE_UINT64_T 1
13883 _ACEOF
13884
13885
13886 else
13887   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13888 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13889 if test "${ac_cv_type_u_int64_t+set}" = set; then
13890   echo $ECHO_N "(cached) $ECHO_C" >&6
13891 else
13892   cat >conftest.$ac_ext <<_ACEOF
13893 /* confdefs.h.  */
13894 _ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h.  */
13898 $ac_includes_default
13899 typedef u_int64_t ac__type_new_;
13900 int
13901 main ()
13902 {
13903 if ((ac__type_new_ *) 0)
13904   return 0;
13905 if (sizeof (ac__type_new_))
13906   return 0;
13907   ;
13908   return 0;
13909 }
13910 _ACEOF
13911 rm -f conftest.$ac_objext
13912 if { (ac_try="$ac_compile"
13913 case "(($ac_try" in
13914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915   *) ac_try_echo=$ac_try;;
13916 esac
13917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918   (eval "$ac_compile") 2>conftest.er1
13919   ac_status=$?
13920   grep -v '^ *+' conftest.er1 >conftest.err
13921   rm -f conftest.er1
13922   cat conftest.err >&5
13923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924   (exit $ac_status); } &&
13925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13926   { (case "(($ac_try" in
13927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13928   *) ac_try_echo=$ac_try;;
13929 esac
13930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13931   (eval "$ac_try") 2>&5
13932   ac_status=$?
13933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934   (exit $ac_status); }; } &&
13935          { ac_try='test -s conftest.$ac_objext'
13936   { (case "(($ac_try" in
13937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938   *) ac_try_echo=$ac_try;;
13939 esac
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941   (eval "$ac_try") 2>&5
13942   ac_status=$?
13943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); }; }; then
13945   ac_cv_type_u_int64_t=yes
13946 else
13947   echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13949
13950         ac_cv_type_u_int64_t=no
13951 fi
13952
13953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13954 fi
13955 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13956 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13957 if test $ac_cv_type_u_int64_t = yes; then
13958
13959 cat >>confdefs.h <<_ACEOF
13960 #define HAVE_U_INT64_T 1
13961 _ACEOF
13962
13963
13964 else
13965   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
13966 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
13967    { (exit 1); exit 1; }; }
13968 fi
13969
13970 fi
13971
13972
13973
13974
13975
13976 for ac_func in backtrace getcwd
13977 do
13978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13982   echo $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13984   cat >conftest.$ac_ext <<_ACEOF
13985 /* confdefs.h.  */
13986 _ACEOF
13987 cat confdefs.h >>conftest.$ac_ext
13988 cat >>conftest.$ac_ext <<_ACEOF
13989 /* end confdefs.h.  */
13990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13992 #define $ac_func innocuous_$ac_func
13993
13994 /* System header to define __stub macros and hopefully few prototypes,
13995     which can conflict with char $ac_func (); below.
13996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13997     <limits.h> exists even on freestanding compilers.  */
13998
13999 #ifdef __STDC__
14000 # include <limits.h>
14001 #else
14002 # include <assert.h>
14003 #endif
14004
14005 #undef $ac_func
14006
14007 /* Override any GCC internal prototype to avoid an error.
14008    Use char because int might match the return type of a GCC
14009    builtin and then its argument prototype would still apply.  */
14010 #ifdef __cplusplus
14011 extern "C"
14012 #endif
14013 char $ac_func ();
14014 /* The GNU C library defines this for functions which it implements
14015     to always fail with ENOSYS.  Some functions are actually named
14016     something starting with __ and the normal name is an alias.  */
14017 #if defined __stub_$ac_func || defined __stub___$ac_func
14018 choke me
14019 #endif
14020
14021 int
14022 main ()
14023 {
14024 return $ac_func ();
14025   ;
14026   return 0;
14027 }
14028 _ACEOF
14029 rm -f conftest.$ac_objext conftest$ac_exeext
14030 if { (ac_try="$ac_link"
14031 case "(($ac_try" in
14032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033   *) ac_try_echo=$ac_try;;
14034 esac
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036   (eval "$ac_link") 2>conftest.er1
14037   ac_status=$?
14038   grep -v '^ *+' conftest.er1 >conftest.err
14039   rm -f conftest.er1
14040   cat conftest.err >&5
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); } &&
14043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14044   { (case "(($ac_try" in
14045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14046   *) ac_try_echo=$ac_try;;
14047 esac
14048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14049   (eval "$ac_try") 2>&5
14050   ac_status=$?
14051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052   (exit $ac_status); }; } &&
14053          { ac_try='test -s conftest$ac_exeext'
14054   { (case "(($ac_try" in
14055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056   *) ac_try_echo=$ac_try;;
14057 esac
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059   (eval "$ac_try") 2>&5
14060   ac_status=$?
14061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14062   (exit $ac_status); }; }; then
14063   eval "$as_ac_var=yes"
14064 else
14065   echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.$ac_ext >&5
14067
14068         eval "$as_ac_var=no"
14069 fi
14070
14071 rm -f core conftest.err conftest.$ac_objext \
14072       conftest$ac_exeext conftest.$ac_ext
14073 fi
14074 ac_res=`eval echo '${'$as_ac_var'}'`
14075                { echo "$as_me:$LINENO: result: $ac_res" >&5
14076 echo "${ECHO_T}$ac_res" >&6; }
14077 if test `eval echo '${'$as_ac_var'}'` = yes; then
14078   cat >>confdefs.h <<_ACEOF
14079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14080 _ACEOF
14081
14082 fi
14083 done
14084
14085
14086
14087
14088
14089
14090 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14091 do
14092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14096   echo $ECHO_N "(cached) $ECHO_C" >&6
14097 else
14098   cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h.  */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h.  */
14104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14106 #define $ac_func innocuous_$ac_func
14107
14108 /* System header to define __stub macros and hopefully few prototypes,
14109     which can conflict with char $ac_func (); below.
14110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14111     <limits.h> exists even on freestanding compilers.  */
14112
14113 #ifdef __STDC__
14114 # include <limits.h>
14115 #else
14116 # include <assert.h>
14117 #endif
14118
14119 #undef $ac_func
14120
14121 /* Override any GCC internal prototype to avoid an error.
14122    Use char because int might match the return type of a GCC
14123    builtin and then its argument prototype would still apply.  */
14124 #ifdef __cplusplus
14125 extern "C"
14126 #endif
14127 char $ac_func ();
14128 /* The GNU C library defines this for functions which it implements
14129     to always fail with ENOSYS.  Some functions are actually named
14130     something starting with __ and the normal name is an alias.  */
14131 #if defined __stub_$ac_func || defined __stub___$ac_func
14132 choke me
14133 #endif
14134
14135 int
14136 main ()
14137 {
14138 return $ac_func ();
14139   ;
14140   return 0;
14141 }
14142 _ACEOF
14143 rm -f conftest.$ac_objext conftest$ac_exeext
14144 if { (ac_try="$ac_link"
14145 case "(($ac_try" in
14146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14147   *) ac_try_echo=$ac_try;;
14148 esac
14149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14150   (eval "$ac_link") 2>conftest.er1
14151   ac_status=$?
14152   grep -v '^ *+' conftest.er1 >conftest.err
14153   rm -f conftest.er1
14154   cat conftest.err >&5
14155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156   (exit $ac_status); } &&
14157          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14158   { (case "(($ac_try" in
14159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160   *) ac_try_echo=$ac_try;;
14161 esac
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163   (eval "$ac_try") 2>&5
14164   ac_status=$?
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); }; } &&
14167          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14177   eval "$as_ac_var=yes"
14178 else
14179   echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182         eval "$as_ac_var=no"
14183 fi
14184
14185 rm -f core conftest.err conftest.$ac_objext \
14186       conftest$ac_exeext conftest.$ac_ext
14187 fi
14188 ac_res=`eval echo '${'$as_ac_var'}'`
14189                { echo "$as_me:$LINENO: result: $ac_res" >&5
14190 echo "${ECHO_T}$ac_res" >&6; }
14191 if test `eval echo '${'$as_ac_var'}'` = yes; then
14192   cat >>confdefs.h <<_ACEOF
14193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14194 _ACEOF
14195
14196 fi
14197 done
14198
14199
14200
14201
14202 for ac_func in isatty mkdtemp mkstemp
14203 do
14204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14208   echo $ECHO_N "(cached) $ECHO_C" >&6
14209 else
14210   cat >conftest.$ac_ext <<_ACEOF
14211 /* confdefs.h.  */
14212 _ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h.  */
14216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14217    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14218 #define $ac_func innocuous_$ac_func
14219
14220 /* System header to define __stub macros and hopefully few prototypes,
14221     which can conflict with char $ac_func (); below.
14222     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14223     <limits.h> exists even on freestanding compilers.  */
14224
14225 #ifdef __STDC__
14226 # include <limits.h>
14227 #else
14228 # include <assert.h>
14229 #endif
14230
14231 #undef $ac_func
14232
14233 /* Override any GCC internal prototype to avoid an error.
14234    Use char because int might match the return type of a GCC
14235    builtin and then its argument prototype would still apply.  */
14236 #ifdef __cplusplus
14237 extern "C"
14238 #endif
14239 char $ac_func ();
14240 /* The GNU C library defines this for functions which it implements
14241     to always fail with ENOSYS.  Some functions are actually named
14242     something starting with __ and the normal name is an alias.  */
14243 #if defined __stub_$ac_func || defined __stub___$ac_func
14244 choke me
14245 #endif
14246
14247 int
14248 main ()
14249 {
14250 return $ac_func ();
14251   ;
14252   return 0;
14253 }
14254 _ACEOF
14255 rm -f conftest.$ac_objext conftest$ac_exeext
14256 if { (ac_try="$ac_link"
14257 case "(($ac_try" in
14258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14259   *) ac_try_echo=$ac_try;;
14260 esac
14261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14262   (eval "$ac_link") 2>conftest.er1
14263   ac_status=$?
14264   grep -v '^ *+' conftest.er1 >conftest.err
14265   rm -f conftest.er1
14266   cat conftest.err >&5
14267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268   (exit $ac_status); } &&
14269          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14270   { (case "(($ac_try" in
14271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272   *) ac_try_echo=$ac_try;;
14273 esac
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275   (eval "$ac_try") 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; } &&
14279          { ac_try='test -s conftest$ac_exeext'
14280   { (case "(($ac_try" in
14281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282   *) ac_try_echo=$ac_try;;
14283 esac
14284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285   (eval "$ac_try") 2>&5
14286   ac_status=$?
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); }; }; then
14289   eval "$as_ac_var=yes"
14290 else
14291   echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14293
14294         eval "$as_ac_var=no"
14295 fi
14296
14297 rm -f core conftest.err conftest.$ac_objext \
14298       conftest$ac_exeext conftest.$ac_ext
14299 fi
14300 ac_res=`eval echo '${'$as_ac_var'}'`
14301                { echo "$as_me:$LINENO: result: $ac_res" >&5
14302 echo "${ECHO_T}$ac_res" >&6; }
14303 if test `eval echo '${'$as_ac_var'}'` = yes; then
14304   cat >>confdefs.h <<_ACEOF
14305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14306 _ACEOF
14307
14308 fi
14309 done
14310
14311
14312
14313
14314
14315
14316
14317 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14318 do
14319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14320 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14321 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14323   echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325   cat >conftest.$ac_ext <<_ACEOF
14326 /* confdefs.h.  */
14327 _ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h.  */
14331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14333 #define $ac_func innocuous_$ac_func
14334
14335 /* System header to define __stub macros and hopefully few prototypes,
14336     which can conflict with char $ac_func (); below.
14337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14338     <limits.h> exists even on freestanding compilers.  */
14339
14340 #ifdef __STDC__
14341 # include <limits.h>
14342 #else
14343 # include <assert.h>
14344 #endif
14345
14346 #undef $ac_func
14347
14348 /* Override any GCC internal prototype to avoid an error.
14349    Use char because int might match the return type of a GCC
14350    builtin and then its argument prototype would still apply.  */
14351 #ifdef __cplusplus
14352 extern "C"
14353 #endif
14354 char $ac_func ();
14355 /* The GNU C library defines this for functions which it implements
14356     to always fail with ENOSYS.  Some functions are actually named
14357     something starting with __ and the normal name is an alias.  */
14358 #if defined __stub_$ac_func || defined __stub___$ac_func
14359 choke me
14360 #endif
14361
14362 int
14363 main ()
14364 {
14365 return $ac_func ();
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (ac_try="$ac_link"
14372 case "(($ac_try" in
14373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374   *) ac_try_echo=$ac_try;;
14375 esac
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377   (eval "$ac_link") 2>conftest.er1
14378   ac_status=$?
14379   grep -v '^ *+' conftest.er1 >conftest.err
14380   rm -f conftest.er1
14381   cat conftest.err >&5
14382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383   (exit $ac_status); } &&
14384          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14385   { (case "(($ac_try" in
14386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387   *) ac_try_echo=$ac_try;;
14388 esac
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390   (eval "$ac_try") 2>&5
14391   ac_status=$?
14392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393   (exit $ac_status); }; } &&
14394          { ac_try='test -s conftest$ac_exeext'
14395   { (case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_try") 2>&5
14401   ac_status=$?
14402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403   (exit $ac_status); }; }; then
14404   eval "$as_ac_var=yes"
14405 else
14406   echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14408
14409         eval "$as_ac_var=no"
14410 fi
14411
14412 rm -f core conftest.err conftest.$ac_objext \
14413       conftest$ac_exeext conftest.$ac_ext
14414 fi
14415 ac_res=`eval echo '${'$as_ac_var'}'`
14416                { echo "$as_me:$LINENO: result: $ac_res" >&5
14417 echo "${ECHO_T}$ac_res" >&6; }
14418 if test `eval echo '${'$as_ac_var'}'` = yes; then
14419   cat >>confdefs.h <<_ACEOF
14420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14421 _ACEOF
14422
14423 fi
14424 done
14425
14426
14427
14428
14429 for ac_func in strerror strerror_r setenv
14430 do
14431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14432 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14434 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14435   echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437   cat >conftest.$ac_ext <<_ACEOF
14438 /* confdefs.h.  */
14439 _ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h.  */
14443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14445 #define $ac_func innocuous_$ac_func
14446
14447 /* System header to define __stub macros and hopefully few prototypes,
14448     which can conflict with char $ac_func (); below.
14449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14450     <limits.h> exists even on freestanding compilers.  */
14451
14452 #ifdef __STDC__
14453 # include <limits.h>
14454 #else
14455 # include <assert.h>
14456 #endif
14457
14458 #undef $ac_func
14459
14460 /* Override any GCC internal prototype to avoid an error.
14461    Use char because int might match the return type of a GCC
14462    builtin and then its argument prototype would still apply.  */
14463 #ifdef __cplusplus
14464 extern "C"
14465 #endif
14466 char $ac_func ();
14467 /* The GNU C library defines this for functions which it implements
14468     to always fail with ENOSYS.  Some functions are actually named
14469     something starting with __ and the normal name is an alias.  */
14470 #if defined __stub_$ac_func || defined __stub___$ac_func
14471 choke me
14472 #endif
14473
14474 int
14475 main ()
14476 {
14477 return $ac_func ();
14478   ;
14479   return 0;
14480 }
14481 _ACEOF
14482 rm -f conftest.$ac_objext conftest$ac_exeext
14483 if { (ac_try="$ac_link"
14484 case "(($ac_try" in
14485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14486   *) ac_try_echo=$ac_try;;
14487 esac
14488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14489   (eval "$ac_link") 2>conftest.er1
14490   ac_status=$?
14491   grep -v '^ *+' conftest.er1 >conftest.err
14492   rm -f conftest.er1
14493   cat conftest.err >&5
14494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495   (exit $ac_status); } &&
14496          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14497   { (case "(($ac_try" in
14498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499   *) ac_try_echo=$ac_try;;
14500 esac
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502   (eval "$ac_try") 2>&5
14503   ac_status=$?
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); }; } &&
14506          { ac_try='test -s conftest$ac_exeext'
14507   { (case "(($ac_try" in
14508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509   *) ac_try_echo=$ac_try;;
14510 esac
14511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512   (eval "$ac_try") 2>&5
14513   ac_status=$?
14514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515   (exit $ac_status); }; }; then
14516   eval "$as_ac_var=yes"
14517 else
14518   echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14520
14521         eval "$as_ac_var=no"
14522 fi
14523
14524 rm -f core conftest.err conftest.$ac_objext \
14525       conftest$ac_exeext conftest.$ac_ext
14526 fi
14527 ac_res=`eval echo '${'$as_ac_var'}'`
14528                { echo "$as_me:$LINENO: result: $ac_res" >&5
14529 echo "${ECHO_T}$ac_res" >&6; }
14530 if test `eval echo '${'$as_ac_var'}'` = yes; then
14531   cat >>confdefs.h <<_ACEOF
14532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14533 _ACEOF
14534
14535 fi
14536 done
14537
14538
14539
14540
14541
14542 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14543 do
14544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14548   echo $ECHO_N "(cached) $ECHO_C" >&6
14549 else
14550   cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h.  */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h.  */
14556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14557    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14558 #define $ac_func innocuous_$ac_func
14559
14560 /* System header to define __stub macros and hopefully few prototypes,
14561     which can conflict with char $ac_func (); below.
14562     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14563     <limits.h> exists even on freestanding compilers.  */
14564
14565 #ifdef __STDC__
14566 # include <limits.h>
14567 #else
14568 # include <assert.h>
14569 #endif
14570
14571 #undef $ac_func
14572
14573 /* Override any GCC internal prototype to avoid an error.
14574    Use char because int might match the return type of a GCC
14575    builtin and then its argument prototype would still apply.  */
14576 #ifdef __cplusplus
14577 extern "C"
14578 #endif
14579 char $ac_func ();
14580 /* The GNU C library defines this for functions which it implements
14581     to always fail with ENOSYS.  Some functions are actually named
14582     something starting with __ and the normal name is an alias.  */
14583 #if defined __stub_$ac_func || defined __stub___$ac_func
14584 choke me
14585 #endif
14586
14587 int
14588 main ()
14589 {
14590 return $ac_func ();
14591   ;
14592   return 0;
14593 }
14594 _ACEOF
14595 rm -f conftest.$ac_objext conftest$ac_exeext
14596 if { (ac_try="$ac_link"
14597 case "(($ac_try" in
14598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599   *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602   (eval "$ac_link") 2>conftest.er1
14603   ac_status=$?
14604   grep -v '^ *+' conftest.er1 >conftest.err
14605   rm -f conftest.er1
14606   cat conftest.err >&5
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); } &&
14609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14610   { (case "(($ac_try" in
14611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612   *) ac_try_echo=$ac_try;;
14613 esac
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615   (eval "$ac_try") 2>&5
14616   ac_status=$?
14617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618   (exit $ac_status); }; } &&
14619          { ac_try='test -s conftest$ac_exeext'
14620   { (case "(($ac_try" in
14621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622   *) ac_try_echo=$ac_try;;
14623 esac
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625   (eval "$ac_try") 2>&5
14626   ac_status=$?
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); }; }; then
14629   eval "$as_ac_var=yes"
14630 else
14631   echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14633
14634         eval "$as_ac_var=no"
14635 fi
14636
14637 rm -f core conftest.err conftest.$ac_objext \
14638       conftest$ac_exeext conftest.$ac_ext
14639 fi
14640 ac_res=`eval echo '${'$as_ac_var'}'`
14641                { echo "$as_me:$LINENO: result: $ac_res" >&5
14642 echo "${ECHO_T}$ac_res" >&6; }
14643 if test `eval echo '${'$as_ac_var'}'` = yes; then
14644   cat >>confdefs.h <<_ACEOF
14645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14646 _ACEOF
14647
14648 fi
14649 done
14650
14651
14652
14653
14654
14655
14656 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14657 do
14658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14662   echo $ECHO_N "(cached) $ECHO_C" >&6
14663 else
14664   cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h.  */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h.  */
14670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14672 #define $ac_func innocuous_$ac_func
14673
14674 /* System header to define __stub macros and hopefully few prototypes,
14675     which can conflict with char $ac_func (); below.
14676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14677     <limits.h> exists even on freestanding compilers.  */
14678
14679 #ifdef __STDC__
14680 # include <limits.h>
14681 #else
14682 # include <assert.h>
14683 #endif
14684
14685 #undef $ac_func
14686
14687 /* Override any GCC internal prototype to avoid an error.
14688    Use char because int might match the return type of a GCC
14689    builtin and then its argument prototype would still apply.  */
14690 #ifdef __cplusplus
14691 extern "C"
14692 #endif
14693 char $ac_func ();
14694 /* The GNU C library defines this for functions which it implements
14695     to always fail with ENOSYS.  Some functions are actually named
14696     something starting with __ and the normal name is an alias.  */
14697 #if defined __stub_$ac_func || defined __stub___$ac_func
14698 choke me
14699 #endif
14700
14701 int
14702 main ()
14703 {
14704 return $ac_func ();
14705   ;
14706   return 0;
14707 }
14708 _ACEOF
14709 rm -f conftest.$ac_objext conftest$ac_exeext
14710 if { (ac_try="$ac_link"
14711 case "(($ac_try" in
14712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713   *) ac_try_echo=$ac_try;;
14714 esac
14715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14716   (eval "$ac_link") 2>conftest.er1
14717   ac_status=$?
14718   grep -v '^ *+' conftest.er1 >conftest.err
14719   rm -f conftest.er1
14720   cat conftest.err >&5
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); } &&
14723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14724   { (case "(($ac_try" in
14725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726   *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729   (eval "$ac_try") 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); }; } &&
14733          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
14743   eval "$as_ac_var=yes"
14744 else
14745   echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748         eval "$as_ac_var=no"
14749 fi
14750
14751 rm -f core conftest.err conftest.$ac_objext \
14752       conftest$ac_exeext conftest.$ac_ext
14753 fi
14754 ac_res=`eval echo '${'$as_ac_var'}'`
14755                { echo "$as_me:$LINENO: result: $ac_res" >&5
14756 echo "${ECHO_T}$ac_res" >&6; }
14757 if test `eval echo '${'$as_ac_var'}'` = yes; then
14758   cat >>confdefs.h <<_ACEOF
14759 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14760 _ACEOF
14761
14762 fi
14763 done
14764
14765
14766
14767 for ac_func in futimes futimens
14768 do
14769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14773   echo $ECHO_N "(cached) $ECHO_C" >&6
14774 else
14775   cat >conftest.$ac_ext <<_ACEOF
14776 /* confdefs.h.  */
14777 _ACEOF
14778 cat confdefs.h >>conftest.$ac_ext
14779 cat >>conftest.$ac_ext <<_ACEOF
14780 /* end confdefs.h.  */
14781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14783 #define $ac_func innocuous_$ac_func
14784
14785 /* System header to define __stub macros and hopefully few prototypes,
14786     which can conflict with char $ac_func (); below.
14787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14788     <limits.h> exists even on freestanding compilers.  */
14789
14790 #ifdef __STDC__
14791 # include <limits.h>
14792 #else
14793 # include <assert.h>
14794 #endif
14795
14796 #undef $ac_func
14797
14798 /* Override any GCC internal prototype to avoid an error.
14799    Use char because int might match the return type of a GCC
14800    builtin and then its argument prototype would still apply.  */
14801 #ifdef __cplusplus
14802 extern "C"
14803 #endif
14804 char $ac_func ();
14805 /* The GNU C library defines this for functions which it implements
14806     to always fail with ENOSYS.  Some functions are actually named
14807     something starting with __ and the normal name is an alias.  */
14808 #if defined __stub_$ac_func || defined __stub___$ac_func
14809 choke me
14810 #endif
14811
14812 int
14813 main ()
14814 {
14815 return $ac_func ();
14816   ;
14817   return 0;
14818 }
14819 _ACEOF
14820 rm -f conftest.$ac_objext conftest$ac_exeext
14821 if { (ac_try="$ac_link"
14822 case "(($ac_try" in
14823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824   *) ac_try_echo=$ac_try;;
14825 esac
14826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14827   (eval "$ac_link") 2>conftest.er1
14828   ac_status=$?
14829   grep -v '^ *+' conftest.er1 >conftest.err
14830   rm -f conftest.er1
14831   cat conftest.err >&5
14832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833   (exit $ac_status); } &&
14834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14841   ac_status=$?
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); }; } &&
14844          { ac_try='test -s conftest$ac_exeext'
14845   { (case "(($ac_try" in
14846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847   *) ac_try_echo=$ac_try;;
14848 esac
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850   (eval "$ac_try") 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); }; }; then
14854   eval "$as_ac_var=yes"
14855 else
14856   echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859         eval "$as_ac_var=no"
14860 fi
14861
14862 rm -f core conftest.err conftest.$ac_objext \
14863       conftest$ac_exeext conftest.$ac_ext
14864 fi
14865 ac_res=`eval echo '${'$as_ac_var'}'`
14866                { echo "$as_me:$LINENO: result: $ac_res" >&5
14867 echo "${ECHO_T}$ac_res" >&6; }
14868 if test `eval echo '${'$as_ac_var'}'` = yes; then
14869   cat >>confdefs.h <<_ACEOF
14870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14871 _ACEOF
14872
14873 fi
14874 done
14875
14876 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14877 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14878 if test "${llvm_cv_c_printf_a+set}" = set; then
14879   echo $ECHO_N "(cached) $ECHO_C" >&6
14880 else
14881   ac_ext=c
14882 ac_cpp='$CPP $CPPFLAGS'
14883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14886
14887  if test "$cross_compiling" = yes; then
14888   llvmac_cv_c_printf_a=no
14889 else
14890   cat >conftest.$ac_ext <<_ACEOF
14891
14892   /* confdefs.h.  */
14893 _ACEOF
14894 cat confdefs.h >>conftest.$ac_ext
14895 cat >>conftest.$ac_ext <<_ACEOF
14896 /* end confdefs.h.  */
14897
14898 #include <stdio.h>
14899 #include <stdlib.h>
14900
14901 int
14902 main ()
14903 {
14904
14905 volatile double A, B;
14906 char Buffer[100];
14907 A = 1;
14908 A /= 10.0;
14909 sprintf(Buffer, "%a", A);
14910 B = atof(Buffer);
14911 if (A != B)
14912   return (1);
14913 if (A != 0x1.999999999999ap-4)
14914   return (1);
14915 return (0);
14916   ;
14917   return 0;
14918 }
14919 _ACEOF
14920 rm -f conftest$ac_exeext
14921 if { (ac_try="$ac_link"
14922 case "(($ac_try" in
14923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14924   *) ac_try_echo=$ac_try;;
14925 esac
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927   (eval "$ac_link") 2>&5
14928   ac_status=$?
14929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14931   { (case "(($ac_try" in
14932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14933   *) ac_try_echo=$ac_try;;
14934 esac
14935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14936   (eval "$ac_try") 2>&5
14937   ac_status=$?
14938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14939   (exit $ac_status); }; }; then
14940   llvm_cv_c_printf_a=yes
14941 else
14942   echo "$as_me: program exited with status $ac_status" >&5
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.$ac_ext >&5
14945
14946 ( exit $ac_status )
14947 llvmac_cv_c_printf_a=no
14948 fi
14949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14950 fi
14951
14952
14953  ac_ext=c
14954 ac_cpp='$CPP $CPPFLAGS'
14955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14958
14959 fi
14960 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14961 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14962  if test "$llvm_cv_c_printf_a" = "yes"; then
14963
14964 cat >>confdefs.h <<\_ACEOF
14965 #define HAVE_PRINTF_A 1
14966 _ACEOF
14967
14968  fi
14969
14970
14971
14972   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
14973 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
14974 if test "${ac_cv_func_rand48+set}" = set; then
14975   echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977
14978     ac_ext=cpp
14979 ac_cpp='$CXXCPP $CPPFLAGS'
14980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14983
14984     cat >conftest.$ac_ext <<_ACEOF
14985 /* confdefs.h.  */
14986 _ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h.  */
14990 #include <stdlib.h>
14991 int
14992 main ()
14993 {
14994 srand48(0);lrand48();drand48();
14995   ;
14996   return 0;
14997 }
14998 _ACEOF
14999 rm -f conftest.$ac_objext
15000 if { (ac_try="$ac_compile"
15001 case "(($ac_try" in
15002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003   *) ac_try_echo=$ac_try;;
15004 esac
15005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15006   (eval "$ac_compile") 2>conftest.er1
15007   ac_status=$?
15008   grep -v '^ *+' conftest.er1 >conftest.err
15009   rm -f conftest.er1
15010   cat conftest.err >&5
15011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012   (exit $ac_status); } &&
15013          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15014   { (case "(($ac_try" in
15015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016   *) ac_try_echo=$ac_try;;
15017 esac
15018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15019   (eval "$ac_try") 2>&5
15020   ac_status=$?
15021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022   (exit $ac_status); }; } &&
15023          { ac_try='test -s conftest.$ac_objext'
15024   { (case "(($ac_try" in
15025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15026   *) ac_try_echo=$ac_try;;
15027 esac
15028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15029   (eval "$ac_try") 2>&5
15030   ac_status=$?
15031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032   (exit $ac_status); }; }; then
15033   ac_cv_func_rand48=yes
15034 else
15035   echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.$ac_ext >&5
15037
15038         ac_cv_func_rand48=no
15039 fi
15040
15041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15042     ac_ext=c
15043 ac_cpp='$CPP $CPPFLAGS'
15044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15047
15048
15049 fi
15050 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15051 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15052
15053 if test "$ac_cv_func_rand48" = "yes" ; then
15054
15055 cat >>confdefs.h <<\_ACEOF
15056 #define HAVE_RAND48 1
15057 _ACEOF
15058
15059 fi
15060
15061
15062 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15063 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15064 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15065   echo $ECHO_N "(cached) $ECHO_C" >&6
15066 else
15067   cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h.  */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h.  */
15073 $ac_includes_default
15074 int
15075 main ()
15076 {
15077 #ifndef arc4random
15078   char *p = (char *) arc4random;
15079   return !p;
15080 #endif
15081
15082   ;
15083   return 0;
15084 }
15085 _ACEOF
15086 rm -f conftest.$ac_objext
15087 if { (ac_try="$ac_compile"
15088 case "(($ac_try" in
15089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15090   *) ac_try_echo=$ac_try;;
15091 esac
15092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15093   (eval "$ac_compile") 2>conftest.er1
15094   ac_status=$?
15095   grep -v '^ *+' conftest.er1 >conftest.err
15096   rm -f conftest.er1
15097   cat conftest.err >&5
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); } &&
15100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15101   { (case "(($ac_try" in
15102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103   *) ac_try_echo=$ac_try;;
15104 esac
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106   (eval "$ac_try") 2>&5
15107   ac_status=$?
15108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109   (exit $ac_status); }; } &&
15110          { ac_try='test -s conftest.$ac_objext'
15111   { (case "(($ac_try" in
15112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15113   *) ac_try_echo=$ac_try;;
15114 esac
15115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15116   (eval "$ac_try") 2>&5
15117   ac_status=$?
15118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119   (exit $ac_status); }; }; then
15120   ac_cv_have_decl_arc4random=yes
15121 else
15122   echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15124
15125         ac_cv_have_decl_arc4random=no
15126 fi
15127
15128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15129 fi
15130 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15131 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15132 if test $ac_cv_have_decl_arc4random = yes; then
15133
15134 cat >>confdefs.h <<_ACEOF
15135 #define HAVE_DECL_ARC4RANDOM 1
15136 _ACEOF
15137
15138
15139 else
15140   cat >>confdefs.h <<_ACEOF
15141 #define HAVE_DECL_ARC4RANDOM 0
15142 _ACEOF
15143
15144
15145 fi
15146
15147
15148
15149 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15150 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15151 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15152   echo $ECHO_N "(cached) $ECHO_C" >&6
15153 else
15154   cat >conftest.$ac_ext <<_ACEOF
15155 /* confdefs.h.  */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h.  */
15160 $ac_includes_default
15161 int
15162 main ()
15163 {
15164 #ifndef strerror_s
15165   char *p = (char *) strerror_s;
15166   return !p;
15167 #endif
15168
15169   ;
15170   return 0;
15171 }
15172 _ACEOF
15173 rm -f conftest.$ac_objext
15174 if { (ac_try="$ac_compile"
15175 case "(($ac_try" in
15176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177   *) ac_try_echo=$ac_try;;
15178 esac
15179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15180   (eval "$ac_compile") 2>conftest.er1
15181   ac_status=$?
15182   grep -v '^ *+' conftest.er1 >conftest.err
15183   rm -f conftest.er1
15184   cat conftest.err >&5
15185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186   (exit $ac_status); } &&
15187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15188   { (case "(($ac_try" in
15189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190   *) ac_try_echo=$ac_try;;
15191 esac
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193   (eval "$ac_try") 2>&5
15194   ac_status=$?
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); }; } &&
15197          { ac_try='test -s conftest.$ac_objext'
15198   { (case "(($ac_try" in
15199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15200   *) ac_try_echo=$ac_try;;
15201 esac
15202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15203   (eval "$ac_try") 2>&5
15204   ac_status=$?
15205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206   (exit $ac_status); }; }; then
15207   ac_cv_have_decl_strerror_s=yes
15208 else
15209   echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15211
15212         ac_cv_have_decl_strerror_s=no
15213 fi
15214
15215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15216 fi
15217 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15218 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15219 if test $ac_cv_have_decl_strerror_s = yes; then
15220
15221 cat >>confdefs.h <<_ACEOF
15222 #define HAVE_DECL_STRERROR_S 1
15223 _ACEOF
15224
15225
15226 else
15227   cat >>confdefs.h <<_ACEOF
15228 #define HAVE_DECL_STRERROR_S 0
15229 _ACEOF
15230
15231
15232 fi
15233
15234
15235
15236 if test "$llvm_cv_os_type" = "MingW" ; then
15237   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15238 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15239 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15240   echo $ECHO_N "(cached) $ECHO_C" >&6
15241 else
15242   ac_check_lib_save_LIBS=$LIBS
15243 LIBS="-lgcc  $LIBS"
15244 cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h.  */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h.  */
15250
15251 /* Override any GCC internal prototype to avoid an error.
15252    Use char because int might match the return type of a GCC
15253    builtin and then its argument prototype would still apply.  */
15254 #ifdef __cplusplus
15255 extern "C"
15256 #endif
15257 char _alloca ();
15258 int
15259 main ()
15260 {
15261 return _alloca ();
15262   ;
15263   return 0;
15264 }
15265 _ACEOF
15266 rm -f conftest.$ac_objext conftest$ac_exeext
15267 if { (ac_try="$ac_link"
15268 case "(($ac_try" in
15269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270   *) ac_try_echo=$ac_try;;
15271 esac
15272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273   (eval "$ac_link") 2>conftest.er1
15274   ac_status=$?
15275   grep -v '^ *+' conftest.er1 >conftest.err
15276   rm -f conftest.er1
15277   cat conftest.err >&5
15278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); } &&
15280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15281   { (case "(($ac_try" in
15282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283   *) ac_try_echo=$ac_try;;
15284 esac
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286   (eval "$ac_try") 2>&5
15287   ac_status=$?
15288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289   (exit $ac_status); }; } &&
15290          { ac_try='test -s conftest$ac_exeext'
15291   { (case "(($ac_try" in
15292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15293   *) ac_try_echo=$ac_try;;
15294 esac
15295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15296   (eval "$ac_try") 2>&5
15297   ac_status=$?
15298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299   (exit $ac_status); }; }; then
15300   ac_cv_lib_gcc__alloca=yes
15301 else
15302   echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15304
15305         ac_cv_lib_gcc__alloca=no
15306 fi
15307
15308 rm -f core conftest.err conftest.$ac_objext \
15309       conftest$ac_exeext conftest.$ac_ext
15310 LIBS=$ac_check_lib_save_LIBS
15311 fi
15312 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15313 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15314 if test $ac_cv_lib_gcc__alloca = yes; then
15315
15316 cat >>confdefs.h <<\_ACEOF
15317 #define HAVE__ALLOCA 1
15318 _ACEOF
15319
15320 fi
15321
15322   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15323 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15324 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15325   echo $ECHO_N "(cached) $ECHO_C" >&6
15326 else
15327   ac_check_lib_save_LIBS=$LIBS
15328 LIBS="-lgcc  $LIBS"
15329 cat >conftest.$ac_ext <<_ACEOF
15330 /* confdefs.h.  */
15331 _ACEOF
15332 cat confdefs.h >>conftest.$ac_ext
15333 cat >>conftest.$ac_ext <<_ACEOF
15334 /* end confdefs.h.  */
15335
15336 /* Override any GCC internal prototype to avoid an error.
15337    Use char because int might match the return type of a GCC
15338    builtin and then its argument prototype would still apply.  */
15339 #ifdef __cplusplus
15340 extern "C"
15341 #endif
15342 char __alloca ();
15343 int
15344 main ()
15345 {
15346 return __alloca ();
15347   ;
15348   return 0;
15349 }
15350 _ACEOF
15351 rm -f conftest.$ac_objext conftest$ac_exeext
15352 if { (ac_try="$ac_link"
15353 case "(($ac_try" in
15354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355   *) ac_try_echo=$ac_try;;
15356 esac
15357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15358   (eval "$ac_link") 2>conftest.er1
15359   ac_status=$?
15360   grep -v '^ *+' conftest.er1 >conftest.err
15361   rm -f conftest.er1
15362   cat conftest.err >&5
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); } &&
15365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15366   { (case "(($ac_try" in
15367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368   *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371   (eval "$ac_try") 2>&5
15372   ac_status=$?
15373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374   (exit $ac_status); }; } &&
15375          { ac_try='test -s conftest$ac_exeext'
15376   { (case "(($ac_try" in
15377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378   *) ac_try_echo=$ac_try;;
15379 esac
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381   (eval "$ac_try") 2>&5
15382   ac_status=$?
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); }; }; then
15385   ac_cv_lib_gcc___alloca=yes
15386 else
15387   echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15389
15390         ac_cv_lib_gcc___alloca=no
15391 fi
15392
15393 rm -f core conftest.err conftest.$ac_objext \
15394       conftest$ac_exeext conftest.$ac_ext
15395 LIBS=$ac_check_lib_save_LIBS
15396 fi
15397 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15398 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15399 if test $ac_cv_lib_gcc___alloca = yes; then
15400
15401 cat >>confdefs.h <<\_ACEOF
15402 #define HAVE___ALLOCA 1
15403 _ACEOF
15404
15405 fi
15406
15407   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15408 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15409 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15410   echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412   ac_check_lib_save_LIBS=$LIBS
15413 LIBS="-lgcc  $LIBS"
15414 cat >conftest.$ac_ext <<_ACEOF
15415 /* confdefs.h.  */
15416 _ACEOF
15417 cat confdefs.h >>conftest.$ac_ext
15418 cat >>conftest.$ac_ext <<_ACEOF
15419 /* end confdefs.h.  */
15420
15421 /* Override any GCC internal prototype to avoid an error.
15422    Use char because int might match the return type of a GCC
15423    builtin and then its argument prototype would still apply.  */
15424 #ifdef __cplusplus
15425 extern "C"
15426 #endif
15427 char __chkstk ();
15428 int
15429 main ()
15430 {
15431 return __chkstk ();
15432   ;
15433   return 0;
15434 }
15435 _ACEOF
15436 rm -f conftest.$ac_objext conftest$ac_exeext
15437 if { (ac_try="$ac_link"
15438 case "(($ac_try" in
15439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440   *) ac_try_echo=$ac_try;;
15441 esac
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443   (eval "$ac_link") 2>conftest.er1
15444   ac_status=$?
15445   grep -v '^ *+' conftest.er1 >conftest.err
15446   rm -f conftest.er1
15447   cat conftest.err >&5
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); } &&
15450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15451   { (case "(($ac_try" in
15452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15453   *) ac_try_echo=$ac_try;;
15454 esac
15455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15456   (eval "$ac_try") 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); }; } &&
15460          { ac_try='test -s conftest$ac_exeext'
15461   { (case "(($ac_try" in
15462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15463   *) ac_try_echo=$ac_try;;
15464 esac
15465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15466   (eval "$ac_try") 2>&5
15467   ac_status=$?
15468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469   (exit $ac_status); }; }; then
15470   ac_cv_lib_gcc___chkstk=yes
15471 else
15472   echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.$ac_ext >&5
15474
15475         ac_cv_lib_gcc___chkstk=no
15476 fi
15477
15478 rm -f core conftest.err conftest.$ac_objext \
15479       conftest$ac_exeext conftest.$ac_ext
15480 LIBS=$ac_check_lib_save_LIBS
15481 fi
15482 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15483 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15484 if test $ac_cv_lib_gcc___chkstk = yes; then
15485
15486 cat >>confdefs.h <<\_ACEOF
15487 #define HAVE___CHKSTK 1
15488 _ACEOF
15489
15490 fi
15491
15492   { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15493 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15494 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15495   echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497   ac_check_lib_save_LIBS=$LIBS
15498 LIBS="-lgcc  $LIBS"
15499 cat >conftest.$ac_ext <<_ACEOF
15500 /* confdefs.h.  */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h.  */
15505
15506 /* Override any GCC internal prototype to avoid an error.
15507    Use char because int might match the return type of a GCC
15508    builtin and then its argument prototype would still apply.  */
15509 #ifdef __cplusplus
15510 extern "C"
15511 #endif
15512 char __chkstk_ms ();
15513 int
15514 main ()
15515 {
15516 return __chkstk_ms ();
15517   ;
15518   return 0;
15519 }
15520 _ACEOF
15521 rm -f conftest.$ac_objext conftest$ac_exeext
15522 if { (ac_try="$ac_link"
15523 case "(($ac_try" in
15524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525   *) ac_try_echo=$ac_try;;
15526 esac
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528   (eval "$ac_link") 2>conftest.er1
15529   ac_status=$?
15530   grep -v '^ *+' conftest.er1 >conftest.err
15531   rm -f conftest.er1
15532   cat conftest.err >&5
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); } &&
15535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15536   { (case "(($ac_try" in
15537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15538   *) ac_try_echo=$ac_try;;
15539 esac
15540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15541   (eval "$ac_try") 2>&5
15542   ac_status=$?
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); }; } &&
15545          { ac_try='test -s conftest$ac_exeext'
15546   { (case "(($ac_try" in
15547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548   *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551   (eval "$ac_try") 2>&5
15552   ac_status=$?
15553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554   (exit $ac_status); }; }; then
15555   ac_cv_lib_gcc___chkstk_ms=yes
15556 else
15557   echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15559
15560         ac_cv_lib_gcc___chkstk_ms=no
15561 fi
15562
15563 rm -f core conftest.err conftest.$ac_objext \
15564       conftest$ac_exeext conftest.$ac_ext
15565 LIBS=$ac_check_lib_save_LIBS
15566 fi
15567 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15568 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15569 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15570
15571 cat >>confdefs.h <<\_ACEOF
15572 #define HAVE___CHKSTK_MS 1
15573 _ACEOF
15574
15575 fi
15576
15577   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15578 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15579 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15580   echo $ECHO_N "(cached) $ECHO_C" >&6
15581 else
15582   ac_check_lib_save_LIBS=$LIBS
15583 LIBS="-lgcc  $LIBS"
15584 cat >conftest.$ac_ext <<_ACEOF
15585 /* confdefs.h.  */
15586 _ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h.  */
15590
15591 /* Override any GCC internal prototype to avoid an error.
15592    Use char because int might match the return type of a GCC
15593    builtin and then its argument prototype would still apply.  */
15594 #ifdef __cplusplus
15595 extern "C"
15596 #endif
15597 char ___chkstk ();
15598 int
15599 main ()
15600 {
15601 return ___chkstk ();
15602   ;
15603   return 0;
15604 }
15605 _ACEOF
15606 rm -f conftest.$ac_objext conftest$ac_exeext
15607 if { (ac_try="$ac_link"
15608 case "(($ac_try" in
15609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610   *) ac_try_echo=$ac_try;;
15611 esac
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613   (eval "$ac_link") 2>conftest.er1
15614   ac_status=$?
15615   grep -v '^ *+' conftest.er1 >conftest.err
15616   rm -f conftest.er1
15617   cat conftest.err >&5
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); } &&
15620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15621   { (case "(($ac_try" in
15622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623   *) ac_try_echo=$ac_try;;
15624 esac
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626   (eval "$ac_try") 2>&5
15627   ac_status=$?
15628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629   (exit $ac_status); }; } &&
15630          { ac_try='test -s conftest$ac_exeext'
15631   { (case "(($ac_try" in
15632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633   *) ac_try_echo=$ac_try;;
15634 esac
15635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636   (eval "$ac_try") 2>&5
15637   ac_status=$?
15638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639   (exit $ac_status); }; }; then
15640   ac_cv_lib_gcc____chkstk=yes
15641 else
15642   echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15644
15645         ac_cv_lib_gcc____chkstk=no
15646 fi
15647
15648 rm -f core conftest.err conftest.$ac_objext \
15649       conftest$ac_exeext conftest.$ac_ext
15650 LIBS=$ac_check_lib_save_LIBS
15651 fi
15652 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15653 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15654 if test $ac_cv_lib_gcc____chkstk = yes; then
15655
15656 cat >>confdefs.h <<\_ACEOF
15657 #define HAVE____CHKSTK 1
15658 _ACEOF
15659
15660 fi
15661
15662   { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15663 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15664 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15665   echo $ECHO_N "(cached) $ECHO_C" >&6
15666 else
15667   ac_check_lib_save_LIBS=$LIBS
15668 LIBS="-lgcc  $LIBS"
15669 cat >conftest.$ac_ext <<_ACEOF
15670 /* confdefs.h.  */
15671 _ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h.  */
15675
15676 /* Override any GCC internal prototype to avoid an error.
15677    Use char because int might match the return type of a GCC
15678    builtin and then its argument prototype would still apply.  */
15679 #ifdef __cplusplus
15680 extern "C"
15681 #endif
15682 char ___chkstk_ms ();
15683 int
15684 main ()
15685 {
15686 return ___chkstk_ms ();
15687   ;
15688   return 0;
15689 }
15690 _ACEOF
15691 rm -f conftest.$ac_objext conftest$ac_exeext
15692 if { (ac_try="$ac_link"
15693 case "(($ac_try" in
15694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15695   *) ac_try_echo=$ac_try;;
15696 esac
15697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15698   (eval "$ac_link") 2>conftest.er1
15699   ac_status=$?
15700   grep -v '^ *+' conftest.er1 >conftest.err
15701   rm -f conftest.er1
15702   cat conftest.err >&5
15703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); } &&
15705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15706   { (case "(($ac_try" in
15707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15708   *) ac_try_echo=$ac_try;;
15709 esac
15710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15711   (eval "$ac_try") 2>&5
15712   ac_status=$?
15713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714   (exit $ac_status); }; } &&
15715          { ac_try='test -s conftest$ac_exeext'
15716   { (case "(($ac_try" in
15717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718   *) ac_try_echo=$ac_try;;
15719 esac
15720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15721   (eval "$ac_try") 2>&5
15722   ac_status=$?
15723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724   (exit $ac_status); }; }; then
15725   ac_cv_lib_gcc____chkstk_ms=yes
15726 else
15727   echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15729
15730         ac_cv_lib_gcc____chkstk_ms=no
15731 fi
15732
15733 rm -f core conftest.err conftest.$ac_objext \
15734       conftest$ac_exeext conftest.$ac_ext
15735 LIBS=$ac_check_lib_save_LIBS
15736 fi
15737 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15738 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15739 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15740
15741 cat >>confdefs.h <<\_ACEOF
15742 #define HAVE____CHKSTK_MS 1
15743 _ACEOF
15744
15745 fi
15746
15747
15748   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15749 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15750 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15751   echo $ECHO_N "(cached) $ECHO_C" >&6
15752 else
15753   ac_check_lib_save_LIBS=$LIBS
15754 LIBS="-lgcc  $LIBS"
15755 cat >conftest.$ac_ext <<_ACEOF
15756 /* confdefs.h.  */
15757 _ACEOF
15758 cat confdefs.h >>conftest.$ac_ext
15759 cat >>conftest.$ac_ext <<_ACEOF
15760 /* end confdefs.h.  */
15761
15762 /* Override any GCC internal prototype to avoid an error.
15763    Use char because int might match the return type of a GCC
15764    builtin and then its argument prototype would still apply.  */
15765 #ifdef __cplusplus
15766 extern "C"
15767 #endif
15768 char __ashldi3 ();
15769 int
15770 main ()
15771 {
15772 return __ashldi3 ();
15773   ;
15774   return 0;
15775 }
15776 _ACEOF
15777 rm -f conftest.$ac_objext conftest$ac_exeext
15778 if { (ac_try="$ac_link"
15779 case "(($ac_try" in
15780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781   *) ac_try_echo=$ac_try;;
15782 esac
15783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15784   (eval "$ac_link") 2>conftest.er1
15785   ac_status=$?
15786   grep -v '^ *+' conftest.er1 >conftest.err
15787   rm -f conftest.er1
15788   cat conftest.err >&5
15789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790   (exit $ac_status); } &&
15791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15792   { (case "(($ac_try" in
15793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794   *) ac_try_echo=$ac_try;;
15795 esac
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797   (eval "$ac_try") 2>&5
15798   ac_status=$?
15799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800   (exit $ac_status); }; } &&
15801          { ac_try='test -s conftest$ac_exeext'
15802   { (case "(($ac_try" in
15803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804   *) ac_try_echo=$ac_try;;
15805 esac
15806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15807   (eval "$ac_try") 2>&5
15808   ac_status=$?
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); }; }; then
15811   ac_cv_lib_gcc___ashldi3=yes
15812 else
15813   echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15815
15816         ac_cv_lib_gcc___ashldi3=no
15817 fi
15818
15819 rm -f core conftest.err conftest.$ac_objext \
15820       conftest$ac_exeext conftest.$ac_ext
15821 LIBS=$ac_check_lib_save_LIBS
15822 fi
15823 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15824 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15825 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15826
15827 cat >>confdefs.h <<\_ACEOF
15828 #define HAVE___ASHLDI3 1
15829 _ACEOF
15830
15831 fi
15832
15833   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15834 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15835 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15836   echo $ECHO_N "(cached) $ECHO_C" >&6
15837 else
15838   ac_check_lib_save_LIBS=$LIBS
15839 LIBS="-lgcc  $LIBS"
15840 cat >conftest.$ac_ext <<_ACEOF
15841 /* confdefs.h.  */
15842 _ACEOF
15843 cat confdefs.h >>conftest.$ac_ext
15844 cat >>conftest.$ac_ext <<_ACEOF
15845 /* end confdefs.h.  */
15846
15847 /* Override any GCC internal prototype to avoid an error.
15848    Use char because int might match the return type of a GCC
15849    builtin and then its argument prototype would still apply.  */
15850 #ifdef __cplusplus
15851 extern "C"
15852 #endif
15853 char __ashrdi3 ();
15854 int
15855 main ()
15856 {
15857 return __ashrdi3 ();
15858   ;
15859   return 0;
15860 }
15861 _ACEOF
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (ac_try="$ac_link"
15864 case "(($ac_try" in
15865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866   *) ac_try_echo=$ac_try;;
15867 esac
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869   (eval "$ac_link") 2>conftest.er1
15870   ac_status=$?
15871   grep -v '^ *+' conftest.er1 >conftest.err
15872   rm -f conftest.er1
15873   cat conftest.err >&5
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); } &&
15876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15877   { (case "(($ac_try" in
15878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15879   *) ac_try_echo=$ac_try;;
15880 esac
15881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15882   (eval "$ac_try") 2>&5
15883   ac_status=$?
15884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885   (exit $ac_status); }; } &&
15886          { ac_try='test -s conftest$ac_exeext'
15887   { (case "(($ac_try" in
15888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889   *) ac_try_echo=$ac_try;;
15890 esac
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892   (eval "$ac_try") 2>&5
15893   ac_status=$?
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); }; }; then
15896   ac_cv_lib_gcc___ashrdi3=yes
15897 else
15898   echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15900
15901         ac_cv_lib_gcc___ashrdi3=no
15902 fi
15903
15904 rm -f core conftest.err conftest.$ac_objext \
15905       conftest$ac_exeext conftest.$ac_ext
15906 LIBS=$ac_check_lib_save_LIBS
15907 fi
15908 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15909 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15910 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15911
15912 cat >>confdefs.h <<\_ACEOF
15913 #define HAVE___ASHRDI3 1
15914 _ACEOF
15915
15916 fi
15917
15918   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15919 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15920 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15921   echo $ECHO_N "(cached) $ECHO_C" >&6
15922 else
15923   ac_check_lib_save_LIBS=$LIBS
15924 LIBS="-lgcc  $LIBS"
15925 cat >conftest.$ac_ext <<_ACEOF
15926 /* confdefs.h.  */
15927 _ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h.  */
15931
15932 /* Override any GCC internal prototype to avoid an error.
15933    Use char because int might match the return type of a GCC
15934    builtin and then its argument prototype would still apply.  */
15935 #ifdef __cplusplus
15936 extern "C"
15937 #endif
15938 char __divdi3 ();
15939 int
15940 main ()
15941 {
15942 return __divdi3 ();
15943   ;
15944   return 0;
15945 }
15946 _ACEOF
15947 rm -f conftest.$ac_objext conftest$ac_exeext
15948 if { (ac_try="$ac_link"
15949 case "(($ac_try" in
15950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951   *) ac_try_echo=$ac_try;;
15952 esac
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954   (eval "$ac_link") 2>conftest.er1
15955   ac_status=$?
15956   grep -v '^ *+' conftest.er1 >conftest.err
15957   rm -f conftest.er1
15958   cat conftest.err >&5
15959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960   (exit $ac_status); } &&
15961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15962   { (case "(($ac_try" in
15963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964   *) ac_try_echo=$ac_try;;
15965 esac
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967   (eval "$ac_try") 2>&5
15968   ac_status=$?
15969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970   (exit $ac_status); }; } &&
15971          { ac_try='test -s conftest$ac_exeext'
15972   { (case "(($ac_try" in
15973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15974   *) ac_try_echo=$ac_try;;
15975 esac
15976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15977   (eval "$ac_try") 2>&5
15978   ac_status=$?
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); }; }; then
15981   ac_cv_lib_gcc___divdi3=yes
15982 else
15983   echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15985
15986         ac_cv_lib_gcc___divdi3=no
15987 fi
15988
15989 rm -f core conftest.err conftest.$ac_objext \
15990       conftest$ac_exeext conftest.$ac_ext
15991 LIBS=$ac_check_lib_save_LIBS
15992 fi
15993 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
15994 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
15995 if test $ac_cv_lib_gcc___divdi3 = yes; then
15996
15997 cat >>confdefs.h <<\_ACEOF
15998 #define HAVE___DIVDI3 1
15999 _ACEOF
16000
16001 fi
16002
16003   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16004 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16005 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16006   echo $ECHO_N "(cached) $ECHO_C" >&6
16007 else
16008   ac_check_lib_save_LIBS=$LIBS
16009 LIBS="-lgcc  $LIBS"
16010 cat >conftest.$ac_ext <<_ACEOF
16011 /* confdefs.h.  */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h.  */
16016
16017 /* Override any GCC internal prototype to avoid an error.
16018    Use char because int might match the return type of a GCC
16019    builtin and then its argument prototype would still apply.  */
16020 #ifdef __cplusplus
16021 extern "C"
16022 #endif
16023 char __fixdfdi ();
16024 int
16025 main ()
16026 {
16027 return __fixdfdi ();
16028   ;
16029   return 0;
16030 }
16031 _ACEOF
16032 rm -f conftest.$ac_objext conftest$ac_exeext
16033 if { (ac_try="$ac_link"
16034 case "(($ac_try" in
16035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036   *) ac_try_echo=$ac_try;;
16037 esac
16038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16039   (eval "$ac_link") 2>conftest.er1
16040   ac_status=$?
16041   grep -v '^ *+' conftest.er1 >conftest.err
16042   rm -f conftest.er1
16043   cat conftest.err >&5
16044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045   (exit $ac_status); } &&
16046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16047   { (case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052   (eval "$ac_try") 2>&5
16053   ac_status=$?
16054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055   (exit $ac_status); }; } &&
16056          { ac_try='test -s conftest$ac_exeext'
16057   { (case "(($ac_try" in
16058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059   *) ac_try_echo=$ac_try;;
16060 esac
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062   (eval "$ac_try") 2>&5
16063   ac_status=$?
16064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065   (exit $ac_status); }; }; then
16066   ac_cv_lib_gcc___fixdfdi=yes
16067 else
16068   echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16070
16071         ac_cv_lib_gcc___fixdfdi=no
16072 fi
16073
16074 rm -f core conftest.err conftest.$ac_objext \
16075       conftest$ac_exeext conftest.$ac_ext
16076 LIBS=$ac_check_lib_save_LIBS
16077 fi
16078 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16079 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16080 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16081
16082 cat >>confdefs.h <<\_ACEOF
16083 #define HAVE___FIXDFDI 1
16084 _ACEOF
16085
16086 fi
16087
16088   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16089 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16090 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16091   echo $ECHO_N "(cached) $ECHO_C" >&6
16092 else
16093   ac_check_lib_save_LIBS=$LIBS
16094 LIBS="-lgcc  $LIBS"
16095 cat >conftest.$ac_ext <<_ACEOF
16096 /* confdefs.h.  */
16097 _ACEOF
16098 cat confdefs.h >>conftest.$ac_ext
16099 cat >>conftest.$ac_ext <<_ACEOF
16100 /* end confdefs.h.  */
16101
16102 /* Override any GCC internal prototype to avoid an error.
16103    Use char because int might match the return type of a GCC
16104    builtin and then its argument prototype would still apply.  */
16105 #ifdef __cplusplus
16106 extern "C"
16107 #endif
16108 char __fixsfdi ();
16109 int
16110 main ()
16111 {
16112 return __fixsfdi ();
16113   ;
16114   return 0;
16115 }
16116 _ACEOF
16117 rm -f conftest.$ac_objext conftest$ac_exeext
16118 if { (ac_try="$ac_link"
16119 case "(($ac_try" in
16120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121   *) ac_try_echo=$ac_try;;
16122 esac
16123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124   (eval "$ac_link") 2>conftest.er1
16125   ac_status=$?
16126   grep -v '^ *+' conftest.er1 >conftest.err
16127   rm -f conftest.er1
16128   cat conftest.err >&5
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); } &&
16131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16132   { (case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_try") 2>&5
16138   ac_status=$?
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); }; } &&
16141          { ac_try='test -s conftest$ac_exeext'
16142   { (case "(($ac_try" in
16143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16144   *) ac_try_echo=$ac_try;;
16145 esac
16146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16147   (eval "$ac_try") 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); }; }; then
16151   ac_cv_lib_gcc___fixsfdi=yes
16152 else
16153   echo "$as_me: failed program was:" >&5
16154 sed 's/^/| /' conftest.$ac_ext >&5
16155
16156         ac_cv_lib_gcc___fixsfdi=no
16157 fi
16158
16159 rm -f core conftest.err conftest.$ac_objext \
16160       conftest$ac_exeext conftest.$ac_ext
16161 LIBS=$ac_check_lib_save_LIBS
16162 fi
16163 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16164 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16165 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16166
16167 cat >>confdefs.h <<\_ACEOF
16168 #define HAVE___FIXSFDI 1
16169 _ACEOF
16170
16171 fi
16172
16173   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16174 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16175 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16176   echo $ECHO_N "(cached) $ECHO_C" >&6
16177 else
16178   ac_check_lib_save_LIBS=$LIBS
16179 LIBS="-lgcc  $LIBS"
16180 cat >conftest.$ac_ext <<_ACEOF
16181 /* confdefs.h.  */
16182 _ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h.  */
16186
16187 /* Override any GCC internal prototype to avoid an error.
16188    Use char because int might match the return type of a GCC
16189    builtin and then its argument prototype would still apply.  */
16190 #ifdef __cplusplus
16191 extern "C"
16192 #endif
16193 char __floatdidf ();
16194 int
16195 main ()
16196 {
16197 return __floatdidf ();
16198   ;
16199   return 0;
16200 }
16201 _ACEOF
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (ac_try="$ac_link"
16204 case "(($ac_try" in
16205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206   *) ac_try_echo=$ac_try;;
16207 esac
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209   (eval "$ac_link") 2>conftest.er1
16210   ac_status=$?
16211   grep -v '^ *+' conftest.er1 >conftest.err
16212   rm -f conftest.er1
16213   cat conftest.err >&5
16214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215   (exit $ac_status); } &&
16216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16217   { (case "(($ac_try" in
16218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219   *) ac_try_echo=$ac_try;;
16220 esac
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222   (eval "$ac_try") 2>&5
16223   ac_status=$?
16224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225   (exit $ac_status); }; } &&
16226          { ac_try='test -s conftest$ac_exeext'
16227   { (case "(($ac_try" in
16228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229   *) ac_try_echo=$ac_try;;
16230 esac
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232   (eval "$ac_try") 2>&5
16233   ac_status=$?
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); }; }; then
16236   ac_cv_lib_gcc___floatdidf=yes
16237 else
16238   echo "$as_me: failed program was:" >&5
16239 sed 's/^/| /' conftest.$ac_ext >&5
16240
16241         ac_cv_lib_gcc___floatdidf=no
16242 fi
16243
16244 rm -f core conftest.err conftest.$ac_objext \
16245       conftest$ac_exeext conftest.$ac_ext
16246 LIBS=$ac_check_lib_save_LIBS
16247 fi
16248 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16249 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16250 if test $ac_cv_lib_gcc___floatdidf = yes; then
16251
16252 cat >>confdefs.h <<\_ACEOF
16253 #define HAVE___FLOATDIDF 1
16254 _ACEOF
16255
16256 fi
16257
16258   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16259 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16260 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16261   echo $ECHO_N "(cached) $ECHO_C" >&6
16262 else
16263   ac_check_lib_save_LIBS=$LIBS
16264 LIBS="-lgcc  $LIBS"
16265 cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h.  */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h.  */
16271
16272 /* Override any GCC internal prototype to avoid an error.
16273    Use char because int might match the return type of a GCC
16274    builtin and then its argument prototype would still apply.  */
16275 #ifdef __cplusplus
16276 extern "C"
16277 #endif
16278 char __lshrdi3 ();
16279 int
16280 main ()
16281 {
16282 return __lshrdi3 ();
16283   ;
16284   return 0;
16285 }
16286 _ACEOF
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (ac_try="$ac_link"
16289 case "(($ac_try" in
16290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291   *) ac_try_echo=$ac_try;;
16292 esac
16293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294   (eval "$ac_link") 2>conftest.er1
16295   ac_status=$?
16296   grep -v '^ *+' conftest.er1 >conftest.err
16297   rm -f conftest.er1
16298   cat conftest.err >&5
16299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300   (exit $ac_status); } &&
16301          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16302   { (case "(($ac_try" in
16303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16304   *) ac_try_echo=$ac_try;;
16305 esac
16306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16307   (eval "$ac_try") 2>&5
16308   ac_status=$?
16309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310   (exit $ac_status); }; } &&
16311          { ac_try='test -s conftest$ac_exeext'
16312   { (case "(($ac_try" in
16313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314   *) ac_try_echo=$ac_try;;
16315 esac
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317   (eval "$ac_try") 2>&5
16318   ac_status=$?
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); }; }; then
16321   ac_cv_lib_gcc___lshrdi3=yes
16322 else
16323   echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16325
16326         ac_cv_lib_gcc___lshrdi3=no
16327 fi
16328
16329 rm -f core conftest.err conftest.$ac_objext \
16330       conftest$ac_exeext conftest.$ac_ext
16331 LIBS=$ac_check_lib_save_LIBS
16332 fi
16333 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16334 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16335 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16336
16337 cat >>confdefs.h <<\_ACEOF
16338 #define HAVE___LSHRDI3 1
16339 _ACEOF
16340
16341 fi
16342
16343   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16344 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16345 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16346   echo $ECHO_N "(cached) $ECHO_C" >&6
16347 else
16348   ac_check_lib_save_LIBS=$LIBS
16349 LIBS="-lgcc  $LIBS"
16350 cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h.  */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h.  */
16356
16357 /* Override any GCC internal prototype to avoid an error.
16358    Use char because int might match the return type of a GCC
16359    builtin and then its argument prototype would still apply.  */
16360 #ifdef __cplusplus
16361 extern "C"
16362 #endif
16363 char __moddi3 ();
16364 int
16365 main ()
16366 {
16367 return __moddi3 ();
16368   ;
16369   return 0;
16370 }
16371 _ACEOF
16372 rm -f conftest.$ac_objext conftest$ac_exeext
16373 if { (ac_try="$ac_link"
16374 case "(($ac_try" in
16375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376   *) ac_try_echo=$ac_try;;
16377 esac
16378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379   (eval "$ac_link") 2>conftest.er1
16380   ac_status=$?
16381   grep -v '^ *+' conftest.er1 >conftest.err
16382   rm -f conftest.er1
16383   cat conftest.err >&5
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); } &&
16386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16387   { (case "(($ac_try" in
16388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389   *) ac_try_echo=$ac_try;;
16390 esac
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392   (eval "$ac_try") 2>&5
16393   ac_status=$?
16394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395   (exit $ac_status); }; } &&
16396          { ac_try='test -s conftest$ac_exeext'
16397   { (case "(($ac_try" in
16398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399   *) ac_try_echo=$ac_try;;
16400 esac
16401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16402   (eval "$ac_try") 2>&5
16403   ac_status=$?
16404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405   (exit $ac_status); }; }; then
16406   ac_cv_lib_gcc___moddi3=yes
16407 else
16408   echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16410
16411         ac_cv_lib_gcc___moddi3=no
16412 fi
16413
16414 rm -f core conftest.err conftest.$ac_objext \
16415       conftest$ac_exeext conftest.$ac_ext
16416 LIBS=$ac_check_lib_save_LIBS
16417 fi
16418 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16419 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16420 if test $ac_cv_lib_gcc___moddi3 = yes; then
16421
16422 cat >>confdefs.h <<\_ACEOF
16423 #define HAVE___MODDI3 1
16424 _ACEOF
16425
16426 fi
16427
16428   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16429 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16430 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16431   echo $ECHO_N "(cached) $ECHO_C" >&6
16432 else
16433   ac_check_lib_save_LIBS=$LIBS
16434 LIBS="-lgcc  $LIBS"
16435 cat >conftest.$ac_ext <<_ACEOF
16436 /* confdefs.h.  */
16437 _ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h.  */
16441
16442 /* Override any GCC internal prototype to avoid an error.
16443    Use char because int might match the return type of a GCC
16444    builtin and then its argument prototype would still apply.  */
16445 #ifdef __cplusplus
16446 extern "C"
16447 #endif
16448 char __udivdi3 ();
16449 int
16450 main ()
16451 {
16452 return __udivdi3 ();
16453   ;
16454   return 0;
16455 }
16456 _ACEOF
16457 rm -f conftest.$ac_objext conftest$ac_exeext
16458 if { (ac_try="$ac_link"
16459 case "(($ac_try" in
16460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461   *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464   (eval "$ac_link") 2>conftest.er1
16465   ac_status=$?
16466   grep -v '^ *+' conftest.er1 >conftest.err
16467   rm -f conftest.er1
16468   cat conftest.err >&5
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); } &&
16471          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16472   { (case "(($ac_try" in
16473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474   *) ac_try_echo=$ac_try;;
16475 esac
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477   (eval "$ac_try") 2>&5
16478   ac_status=$?
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); }; } &&
16481          { ac_try='test -s conftest$ac_exeext'
16482   { (case "(($ac_try" in
16483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484   *) ac_try_echo=$ac_try;;
16485 esac
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487   (eval "$ac_try") 2>&5
16488   ac_status=$?
16489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490   (exit $ac_status); }; }; then
16491   ac_cv_lib_gcc___udivdi3=yes
16492 else
16493   echo "$as_me: failed program was:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16495
16496         ac_cv_lib_gcc___udivdi3=no
16497 fi
16498
16499 rm -f core conftest.err conftest.$ac_objext \
16500       conftest$ac_exeext conftest.$ac_ext
16501 LIBS=$ac_check_lib_save_LIBS
16502 fi
16503 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16504 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16505 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16506
16507 cat >>confdefs.h <<\_ACEOF
16508 #define HAVE___UDIVDI3 1
16509 _ACEOF
16510
16511 fi
16512
16513   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16514 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16515 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16516   echo $ECHO_N "(cached) $ECHO_C" >&6
16517 else
16518   ac_check_lib_save_LIBS=$LIBS
16519 LIBS="-lgcc  $LIBS"
16520 cat >conftest.$ac_ext <<_ACEOF
16521 /* confdefs.h.  */
16522 _ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h.  */
16526
16527 /* Override any GCC internal prototype to avoid an error.
16528    Use char because int might match the return type of a GCC
16529    builtin and then its argument prototype would still apply.  */
16530 #ifdef __cplusplus
16531 extern "C"
16532 #endif
16533 char __umoddi3 ();
16534 int
16535 main ()
16536 {
16537 return __umoddi3 ();
16538   ;
16539   return 0;
16540 }
16541 _ACEOF
16542 rm -f conftest.$ac_objext conftest$ac_exeext
16543 if { (ac_try="$ac_link"
16544 case "(($ac_try" in
16545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16546   *) ac_try_echo=$ac_try;;
16547 esac
16548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16549   (eval "$ac_link") 2>conftest.er1
16550   ac_status=$?
16551   grep -v '^ *+' conftest.er1 >conftest.err
16552   rm -f conftest.er1
16553   cat conftest.err >&5
16554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555   (exit $ac_status); } &&
16556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16557   { (case "(($ac_try" in
16558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559   *) ac_try_echo=$ac_try;;
16560 esac
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562   (eval "$ac_try") 2>&5
16563   ac_status=$?
16564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565   (exit $ac_status); }; } &&
16566          { ac_try='test -s conftest$ac_exeext'
16567   { (case "(($ac_try" in
16568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16569   *) ac_try_echo=$ac_try;;
16570 esac
16571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16572   (eval "$ac_try") 2>&5
16573   ac_status=$?
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); }; }; then
16576   ac_cv_lib_gcc___umoddi3=yes
16577 else
16578   echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16580
16581         ac_cv_lib_gcc___umoddi3=no
16582 fi
16583
16584 rm -f core conftest.err conftest.$ac_objext \
16585       conftest$ac_exeext conftest.$ac_ext
16586 LIBS=$ac_check_lib_save_LIBS
16587 fi
16588 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16589 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16590 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16591
16592 cat >>confdefs.h <<\_ACEOF
16593 #define HAVE___UMODDI3 1
16594 _ACEOF
16595
16596 fi
16597
16598
16599   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16600 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16601 if test "${ac_cv_lib_gcc___main+set}" = set; then
16602   echo $ECHO_N "(cached) $ECHO_C" >&6
16603 else
16604   ac_check_lib_save_LIBS=$LIBS
16605 LIBS="-lgcc  $LIBS"
16606 cat >conftest.$ac_ext <<_ACEOF
16607 /* confdefs.h.  */
16608 _ACEOF
16609 cat confdefs.h >>conftest.$ac_ext
16610 cat >>conftest.$ac_ext <<_ACEOF
16611 /* end confdefs.h.  */
16612
16613 /* Override any GCC internal prototype to avoid an error.
16614    Use char because int might match the return type of a GCC
16615    builtin and then its argument prototype would still apply.  */
16616 #ifdef __cplusplus
16617 extern "C"
16618 #endif
16619 char __main ();
16620 int
16621 main ()
16622 {
16623 return __main ();
16624   ;
16625   return 0;
16626 }
16627 _ACEOF
16628 rm -f conftest.$ac_objext conftest$ac_exeext
16629 if { (ac_try="$ac_link"
16630 case "(($ac_try" in
16631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632   *) ac_try_echo=$ac_try;;
16633 esac
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635   (eval "$ac_link") 2>conftest.er1
16636   ac_status=$?
16637   grep -v '^ *+' conftest.er1 >conftest.err
16638   rm -f conftest.er1
16639   cat conftest.err >&5
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); } &&
16642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16643   { (case "(($ac_try" in
16644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645   *) ac_try_echo=$ac_try;;
16646 esac
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648   (eval "$ac_try") 2>&5
16649   ac_status=$?
16650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651   (exit $ac_status); }; } &&
16652          { ac_try='test -s conftest$ac_exeext'
16653   { (case "(($ac_try" in
16654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655   *) ac_try_echo=$ac_try;;
16656 esac
16657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658   (eval "$ac_try") 2>&5
16659   ac_status=$?
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); }; }; then
16662   ac_cv_lib_gcc___main=yes
16663 else
16664   echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667         ac_cv_lib_gcc___main=no
16668 fi
16669
16670 rm -f core conftest.err conftest.$ac_objext \
16671       conftest$ac_exeext conftest.$ac_ext
16672 LIBS=$ac_check_lib_save_LIBS
16673 fi
16674 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16675 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16676 if test $ac_cv_lib_gcc___main = yes; then
16677
16678 cat >>confdefs.h <<\_ACEOF
16679 #define HAVE___MAIN 1
16680 _ACEOF
16681
16682 fi
16683
16684   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16685 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16686 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16687   echo $ECHO_N "(cached) $ECHO_C" >&6
16688 else
16689   ac_check_lib_save_LIBS=$LIBS
16690 LIBS="-lgcc  $LIBS"
16691 cat >conftest.$ac_ext <<_ACEOF
16692 /* confdefs.h.  */
16693 _ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h.  */
16697
16698 /* Override any GCC internal prototype to avoid an error.
16699    Use char because int might match the return type of a GCC
16700    builtin and then its argument prototype would still apply.  */
16701 #ifdef __cplusplus
16702 extern "C"
16703 #endif
16704 char __cmpdi2 ();
16705 int
16706 main ()
16707 {
16708 return __cmpdi2 ();
16709   ;
16710   return 0;
16711 }
16712 _ACEOF
16713 rm -f conftest.$ac_objext conftest$ac_exeext
16714 if { (ac_try="$ac_link"
16715 case "(($ac_try" in
16716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16717   *) ac_try_echo=$ac_try;;
16718 esac
16719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16720   (eval "$ac_link") 2>conftest.er1
16721   ac_status=$?
16722   grep -v '^ *+' conftest.er1 >conftest.err
16723   rm -f conftest.er1
16724   cat conftest.err >&5
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); } &&
16727          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16728   { (case "(($ac_try" in
16729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730   *) ac_try_echo=$ac_try;;
16731 esac
16732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16733   (eval "$ac_try") 2>&5
16734   ac_status=$?
16735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736   (exit $ac_status); }; } &&
16737          { ac_try='test -s conftest$ac_exeext'
16738   { (case "(($ac_try" in
16739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740   *) ac_try_echo=$ac_try;;
16741 esac
16742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16743   (eval "$ac_try") 2>&5
16744   ac_status=$?
16745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746   (exit $ac_status); }; }; then
16747   ac_cv_lib_gcc___cmpdi2=yes
16748 else
16749   echo "$as_me: failed program was:" >&5
16750 sed 's/^/| /' conftest.$ac_ext >&5
16751
16752         ac_cv_lib_gcc___cmpdi2=no
16753 fi
16754
16755 rm -f core conftest.err conftest.$ac_objext \
16756       conftest$ac_exeext conftest.$ac_ext
16757 LIBS=$ac_check_lib_save_LIBS
16758 fi
16759 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16760 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16761 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16762
16763 cat >>confdefs.h <<\_ACEOF
16764 #define HAVE___CMPDI2 1
16765 _ACEOF
16766
16767 fi
16768
16769 fi
16770
16771 if test "$llvm_cv_os_type" = "MingW" ; then
16772   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16773 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16774   cat >conftest.$ac_ext <<_ACEOF
16775
16776   /* confdefs.h.  */
16777 _ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h.  */
16781
16782     #include <windows.h>
16783     #include <imagehlp.h>
16784     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16785     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16786
16787
16788 _ACEOF
16789 rm -f conftest.$ac_objext
16790 if { (ac_try="$ac_compile"
16791 case "(($ac_try" in
16792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793   *) ac_try_echo=$ac_try;;
16794 esac
16795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16796   (eval "$ac_compile") 2>conftest.er1
16797   ac_status=$?
16798   grep -v '^ *+' conftest.er1 >conftest.err
16799   rm -f conftest.er1
16800   cat conftest.err >&5
16801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802   (exit $ac_status); } &&
16803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16804   { (case "(($ac_try" in
16805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16806   *) ac_try_echo=$ac_try;;
16807 esac
16808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16809   (eval "$ac_try") 2>&5
16810   ac_status=$?
16811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812   (exit $ac_status); }; } &&
16813          { ac_try='test -s conftest.$ac_objext'
16814   { (case "(($ac_try" in
16815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816   *) ac_try_echo=$ac_try;;
16817 esac
16818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16819   (eval "$ac_try") 2>&5
16820   ac_status=$?
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); }; }; then
16823
16824   { echo "$as_me:$LINENO: result: yes" >&5
16825 echo "${ECHO_T}yes" >&6; }
16826   llvm_cv_win32_elmcb_pcstr="PCSTR"
16827
16828 else
16829   echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16831
16832
16833   { echo "$as_me:$LINENO: result: no" >&5
16834 echo "${ECHO_T}no" >&6; }
16835   llvm_cv_win32_elmcb_pcstr="PSTR"
16836
16837 fi
16838
16839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16840
16841 cat >>confdefs.h <<_ACEOF
16842 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16843 _ACEOF
16844
16845 fi
16846
16847 if test "$llvm_cv_platform_type" = "Unix" ; then
16848
16849
16850 for ac_header in stdlib.h unistd.h
16851 do
16852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16854   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16857   echo $ECHO_N "(cached) $ECHO_C" >&6
16858 fi
16859 ac_res=`eval echo '${'$as_ac_Header'}'`
16860                { echo "$as_me:$LINENO: result: $ac_res" >&5
16861 echo "${ECHO_T}$ac_res" >&6; }
16862 else
16863   # Is the header compilable?
16864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16866 cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h.  */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h.  */
16872 $ac_includes_default
16873 #include <$ac_header>
16874 _ACEOF
16875 rm -f conftest.$ac_objext
16876 if { (ac_try="$ac_compile"
16877 case "(($ac_try" in
16878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879   *) ac_try_echo=$ac_try;;
16880 esac
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882   (eval "$ac_compile") 2>conftest.er1
16883   ac_status=$?
16884   grep -v '^ *+' conftest.er1 >conftest.err
16885   rm -f conftest.er1
16886   cat conftest.err >&5
16887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888   (exit $ac_status); } &&
16889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16890   { (case "(($ac_try" in
16891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892   *) ac_try_echo=$ac_try;;
16893 esac
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895   (eval "$ac_try") 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); }; } &&
16899          { ac_try='test -s conftest.$ac_objext'
16900   { (case "(($ac_try" in
16901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902   *) ac_try_echo=$ac_try;;
16903 esac
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905   (eval "$ac_try") 2>&5
16906   ac_status=$?
16907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908   (exit $ac_status); }; }; then
16909   ac_header_compiler=yes
16910 else
16911   echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16913
16914         ac_header_compiler=no
16915 fi
16916
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16919 echo "${ECHO_T}$ac_header_compiler" >&6; }
16920
16921 # Is the header present?
16922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16924 cat >conftest.$ac_ext <<_ACEOF
16925 /* confdefs.h.  */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h.  */
16930 #include <$ac_header>
16931 _ACEOF
16932 if { (ac_try="$ac_cpp conftest.$ac_ext"
16933 case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } >/dev/null; then
16945   if test -s conftest.err; then
16946     ac_cpp_err=$ac_c_preproc_warn_flag
16947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16948   else
16949     ac_cpp_err=
16950   fi
16951 else
16952   ac_cpp_err=yes
16953 fi
16954 if test -z "$ac_cpp_err"; then
16955   ac_header_preproc=yes
16956 else
16957   echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16959
16960   ac_header_preproc=no
16961 fi
16962
16963 rm -f conftest.err conftest.$ac_ext
16964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16965 echo "${ECHO_T}$ac_header_preproc" >&6; }
16966
16967 # So?  What about this header?
16968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16969   yes:no: )
16970     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16974     ac_header_preproc=yes
16975     ;;
16976   no:yes:* )
16977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16979     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16980 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16981     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16983     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16984 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16987     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16989     ( cat <<\_ASBOX
16990 ## ------------------------------------ ##
16991 ## Report this to http://llvm.org/bugs/ ##
16992 ## ------------------------------------ ##
16993 _ASBOX
16994      ) | sed "s/^/$as_me: WARNING:     /" >&2
16995     ;;
16996 esac
16997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17000   echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002   eval "$as_ac_Header=\$ac_header_preproc"
17003 fi
17004 ac_res=`eval echo '${'$as_ac_Header'}'`
17005                { echo "$as_me:$LINENO: result: $ac_res" >&5
17006 echo "${ECHO_T}$ac_res" >&6; }
17007
17008 fi
17009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17010   cat >>confdefs.h <<_ACEOF
17011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17012 _ACEOF
17013
17014 fi
17015
17016 done
17017
17018
17019 for ac_func in getpagesize
17020 do
17021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17025   echo $ECHO_N "(cached) $ECHO_C" >&6
17026 else
17027   cat >conftest.$ac_ext <<_ACEOF
17028 /* confdefs.h.  */
17029 _ACEOF
17030 cat confdefs.h >>conftest.$ac_ext
17031 cat >>conftest.$ac_ext <<_ACEOF
17032 /* end confdefs.h.  */
17033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17035 #define $ac_func innocuous_$ac_func
17036
17037 /* System header to define __stub macros and hopefully few prototypes,
17038     which can conflict with char $ac_func (); below.
17039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17040     <limits.h> exists even on freestanding compilers.  */
17041
17042 #ifdef __STDC__
17043 # include <limits.h>
17044 #else
17045 # include <assert.h>
17046 #endif
17047
17048 #undef $ac_func
17049
17050 /* Override any GCC internal prototype to avoid an error.
17051    Use char because int might match the return type of a GCC
17052    builtin and then its argument prototype would still apply.  */
17053 #ifdef __cplusplus
17054 extern "C"
17055 #endif
17056 char $ac_func ();
17057 /* The GNU C library defines this for functions which it implements
17058     to always fail with ENOSYS.  Some functions are actually named
17059     something starting with __ and the normal name is an alias.  */
17060 #if defined __stub_$ac_func || defined __stub___$ac_func
17061 choke me
17062 #endif
17063
17064 int
17065 main ()
17066 {
17067 return $ac_func ();
17068   ;
17069   return 0;
17070 }
17071 _ACEOF
17072 rm -f conftest.$ac_objext conftest$ac_exeext
17073 if { (ac_try="$ac_link"
17074 case "(($ac_try" in
17075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076   *) ac_try_echo=$ac_try;;
17077 esac
17078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079   (eval "$ac_link") 2>conftest.er1
17080   ac_status=$?
17081   grep -v '^ *+' conftest.er1 >conftest.err
17082   rm -f conftest.er1
17083   cat conftest.err >&5
17084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085   (exit $ac_status); } &&
17086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17087   { (case "(($ac_try" in
17088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17089   *) ac_try_echo=$ac_try;;
17090 esac
17091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17092   (eval "$ac_try") 2>&5
17093   ac_status=$?
17094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095   (exit $ac_status); }; } &&
17096          { ac_try='test -s conftest$ac_exeext'
17097   { (case "(($ac_try" in
17098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099   *) ac_try_echo=$ac_try;;
17100 esac
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102   (eval "$ac_try") 2>&5
17103   ac_status=$?
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); }; }; then
17106   eval "$as_ac_var=yes"
17107 else
17108   echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17110
17111         eval "$as_ac_var=no"
17112 fi
17113
17114 rm -f core conftest.err conftest.$ac_objext \
17115       conftest$ac_exeext conftest.$ac_ext
17116 fi
17117 ac_res=`eval echo '${'$as_ac_var'}'`
17118                { echo "$as_me:$LINENO: result: $ac_res" >&5
17119 echo "${ECHO_T}$ac_res" >&6; }
17120 if test `eval echo '${'$as_ac_var'}'` = yes; then
17121   cat >>confdefs.h <<_ACEOF
17122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17123 _ACEOF
17124
17125 fi
17126 done
17127
17128 { echo "$as_me:$LINENO: checking for working mmap" >&5
17129 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17130 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17131   echo $ECHO_N "(cached) $ECHO_C" >&6
17132 else
17133   if test "$cross_compiling" = yes; then
17134   ac_cv_func_mmap_fixed_mapped=no
17135 else
17136   cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h.  */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h.  */
17142 $ac_includes_default
17143 /* malloc might have been renamed as rpl_malloc. */
17144 #undef malloc
17145
17146 /* Thanks to Mike Haertel and Jim Avera for this test.
17147    Here is a matrix of mmap possibilities:
17148         mmap private not fixed
17149         mmap private fixed at somewhere currently unmapped
17150         mmap private fixed at somewhere already mapped
17151         mmap shared not fixed
17152         mmap shared fixed at somewhere currently unmapped
17153         mmap shared fixed at somewhere already mapped
17154    For private mappings, we should verify that changes cannot be read()
17155    back from the file, nor mmap's back from the file at a different
17156    address.  (There have been systems where private was not correctly
17157    implemented like the infamous i386 svr4.0, and systems where the
17158    VM page cache was not coherent with the file system buffer cache
17159    like early versions of FreeBSD and possibly contemporary NetBSD.)
17160    For shared mappings, we should conversely verify that changes get
17161    propagated back to all the places they're supposed to be.
17162
17163    Grep wants private fixed already mapped.
17164    The main things grep needs to know about mmap are:
17165    * does it exist and is it safe to write into the mmap'd area
17166    * how to use it (BSD variants)  */
17167
17168 #include <fcntl.h>
17169 #include <sys/mman.h>
17170
17171 #if !STDC_HEADERS && !HAVE_STDLIB_H
17172 char *malloc ();
17173 #endif
17174
17175 /* This mess was copied from the GNU getpagesize.h.  */
17176 #if !HAVE_GETPAGESIZE
17177 /* Assume that all systems that can run configure have sys/param.h.  */
17178 # if !HAVE_SYS_PARAM_H
17179 #  define HAVE_SYS_PARAM_H 1
17180 # endif
17181
17182 # ifdef _SC_PAGESIZE
17183 #  define getpagesize() sysconf(_SC_PAGESIZE)
17184 # else /* no _SC_PAGESIZE */
17185 #  if HAVE_SYS_PARAM_H
17186 #   include <sys/param.h>
17187 #   ifdef EXEC_PAGESIZE
17188 #    define getpagesize() EXEC_PAGESIZE
17189 #   else /* no EXEC_PAGESIZE */
17190 #    ifdef NBPG
17191 #     define getpagesize() NBPG * CLSIZE
17192 #     ifndef CLSIZE
17193 #      define CLSIZE 1
17194 #     endif /* no CLSIZE */
17195 #    else /* no NBPG */
17196 #     ifdef NBPC
17197 #      define getpagesize() NBPC
17198 #     else /* no NBPC */
17199 #      ifdef PAGESIZE
17200 #       define getpagesize() PAGESIZE
17201 #      endif /* PAGESIZE */
17202 #     endif /* no NBPC */
17203 #    endif /* no NBPG */
17204 #   endif /* no EXEC_PAGESIZE */
17205 #  else /* no HAVE_SYS_PARAM_H */
17206 #   define getpagesize() 8192   /* punt totally */
17207 #  endif /* no HAVE_SYS_PARAM_H */
17208 # endif /* no _SC_PAGESIZE */
17209
17210 #endif /* no HAVE_GETPAGESIZE */
17211
17212 int
17213 main ()
17214 {
17215   char *data, *data2, *data3;
17216   int i, pagesize;
17217   int fd;
17218
17219   pagesize = getpagesize ();
17220
17221   /* First, make a file with some known garbage in it. */
17222   data = (char *) malloc (pagesize);
17223   if (!data)
17224     return 1;
17225   for (i = 0; i < pagesize; ++i)
17226     *(data + i) = rand ();
17227   umask (0);
17228   fd = creat ("conftest.mmap", 0600);
17229   if (fd < 0)
17230     return 1;
17231   if (write (fd, data, pagesize) != pagesize)
17232     return 1;
17233   close (fd);
17234
17235   /* Next, try to mmap the file at a fixed address which already has
17236      something else allocated at it.  If we can, also make sure that
17237      we see the same garbage.  */
17238   fd = open ("conftest.mmap", O_RDWR);
17239   if (fd < 0)
17240     return 1;
17241   data2 = (char *) malloc (2 * pagesize);
17242   if (!data2)
17243     return 1;
17244   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17245   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17246                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17247     return 1;
17248   for (i = 0; i < pagesize; ++i)
17249     if (*(data + i) != *(data2 + i))
17250       return 1;
17251
17252   /* Finally, make sure that changes to the mapped area do not
17253      percolate back to the file as seen by read().  (This is a bug on
17254      some variants of i386 svr4.0.)  */
17255   for (i = 0; i < pagesize; ++i)
17256     *(data2 + i) = *(data2 + i) + 1;
17257   data3 = (char *) malloc (pagesize);
17258   if (!data3)
17259     return 1;
17260   if (read (fd, data3, pagesize) != pagesize)
17261     return 1;
17262   for (i = 0; i < pagesize; ++i)
17263     if (*(data + i) != *(data3 + i))
17264       return 1;
17265   close (fd);
17266   return 0;
17267 }
17268 _ACEOF
17269 rm -f conftest$ac_exeext
17270 if { (ac_try="$ac_link"
17271 case "(($ac_try" in
17272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273   *) ac_try_echo=$ac_try;;
17274 esac
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276   (eval "$ac_link") 2>&5
17277   ac_status=$?
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17280   { (case "(($ac_try" in
17281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17282   *) ac_try_echo=$ac_try;;
17283 esac
17284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17285   (eval "$ac_try") 2>&5
17286   ac_status=$?
17287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288   (exit $ac_status); }; }; then
17289   ac_cv_func_mmap_fixed_mapped=yes
17290 else
17291   echo "$as_me: program exited with status $ac_status" >&5
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17294
17295 ( exit $ac_status )
17296 ac_cv_func_mmap_fixed_mapped=no
17297 fi
17298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17299 fi
17300
17301
17302 fi
17303 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17304 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17305 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17306
17307 cat >>confdefs.h <<\_ACEOF
17308 #define HAVE_MMAP 1
17309 _ACEOF
17310
17311 fi
17312 rm -f conftest.mmap
17313
17314   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17315 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17316 if test "${ac_cv_func_mmap_file+set}" = set; then
17317   echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319    ac_ext=c
17320 ac_cpp='$CPP $CPPFLAGS'
17321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17324
17325   if test "$cross_compiling" = yes; then
17326   ac_cv_func_mmap_file=no
17327 else
17328   cat >conftest.$ac_ext <<_ACEOF
17329
17330     /* confdefs.h.  */
17331 _ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h.  */
17335
17336 #include <sys/types.h>
17337 #include <sys/mman.h>
17338 #include <fcntl.h>
17339
17340 int
17341 main ()
17342 {
17343
17344   int fd;
17345   fd = creat ("foo",0777);
17346   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17347   unlink ("foo");
17348   return (fd != (int) MAP_FAILED);
17349   ;
17350   return 0;
17351 }
17352 _ACEOF
17353 rm -f conftest$ac_exeext
17354 if { (ac_try="$ac_link"
17355 case "(($ac_try" in
17356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357   *) ac_try_echo=$ac_try;;
17358 esac
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360   (eval "$ac_link") 2>&5
17361   ac_status=$?
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17364   { (case "(($ac_try" in
17365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366   *) ac_try_echo=$ac_try;;
17367 esac
17368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17369   (eval "$ac_try") 2>&5
17370   ac_status=$?
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); }; }; then
17373   ac_cv_func_mmap_file=yes
17374 else
17375   echo "$as_me: program exited with status $ac_status" >&5
17376 echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17378
17379 ( exit $ac_status )
17380 ac_cv_func_mmap_file=no
17381 fi
17382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17383 fi
17384
17385
17386   ac_ext=c
17387 ac_cpp='$CPP $CPPFLAGS'
17388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17391
17392
17393 fi
17394 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17395 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17396 if test "$ac_cv_func_mmap_file" = yes; then
17397
17398 cat >>confdefs.h <<\_ACEOF
17399 #define HAVE_MMAP_FILE
17400 _ACEOF
17401
17402    MMAP_FILE=yes
17403
17404 fi
17405
17406   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17407 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17408 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17409   echo $ECHO_N "(cached) $ECHO_C" >&6
17410 else
17411   if test "$llvm_cv_os_type" = "Interix" ; then
17412    ac_cv_need_dev_zero_for_mmap=yes
17413  else
17414    ac_cv_need_dev_zero_for_mmap=no
17415  fi
17416
17417 fi
17418 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17419 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17420 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17421
17422 cat >>confdefs.h <<\_ACEOF
17423 #define NEED_DEV_ZERO_FOR_MMAP 1
17424 _ACEOF
17425
17426 fi
17427
17428   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17429   then
17430     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17431 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17432   fi
17433   if test "$ac_cv_func_mmap_file" = "no"
17434   then
17435     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17436 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17437   fi
17438 fi
17439
17440 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17441 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17442 ac_ext=cpp
17443 ac_cpp='$CXXCPP $CPPFLAGS'
17444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17447
17448 cat >conftest.$ac_ext <<_ACEOF
17449
17450   /* confdefs.h.  */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h.  */
17455
17456     int main() {
17457       volatile unsigned long val = 1;
17458       __sync_synchronize();
17459       __sync_val_compare_and_swap(&val, 1, 0);
17460       __sync_add_and_fetch(&val, 1);
17461       __sync_sub_and_fetch(&val, 1);
17462       return 0;
17463     }
17464
17465
17466 _ACEOF
17467 rm -f conftest.$ac_objext conftest$ac_exeext
17468 if { (ac_try="$ac_link"
17469 case "(($ac_try" in
17470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471   *) ac_try_echo=$ac_try;;
17472 esac
17473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474   (eval "$ac_link") 2>conftest.er1
17475   ac_status=$?
17476   grep -v '^ *+' conftest.er1 >conftest.err
17477   rm -f conftest.er1
17478   cat conftest.err >&5
17479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480   (exit $ac_status); } &&
17481          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17482   { (case "(($ac_try" in
17483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484   *) ac_try_echo=$ac_try;;
17485 esac
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487   (eval "$ac_try") 2>&5
17488   ac_status=$?
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); }; } &&
17491          { ac_try='test -s conftest$ac_exeext'
17492   { (case "(($ac_try" in
17493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494   *) ac_try_echo=$ac_try;;
17495 esac
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497   (eval "$ac_try") 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }; }; then
17501
17502   { echo "$as_me:$LINENO: result: yes" >&5
17503 echo "${ECHO_T}yes" >&6; }
17504
17505 cat >>confdefs.h <<\_ACEOF
17506 #define LLVM_HAS_ATOMICS 1
17507 _ACEOF
17508
17509
17510 else
17511   echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17513
17514
17515   { echo "$as_me:$LINENO: result: no" >&5
17516 echo "${ECHO_T}no" >&6; }
17517
17518 cat >>confdefs.h <<\_ACEOF
17519 #define LLVM_HAS_ATOMICS 0
17520 _ACEOF
17521
17522   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17523 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17524
17525 fi
17526
17527 rm -f core conftest.err conftest.$ac_objext \
17528       conftest$ac_exeext conftest.$ac_ext
17529 ac_ext=c
17530 ac_cpp='$CPP $CPPFLAGS'
17531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17534
17535
17536
17537 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17538   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17539 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17540 if test "${llvm_cv_linux_mixed+set}" = set; then
17541   echo $ECHO_N "(cached) $ECHO_C" >&6
17542 else
17543    ac_ext=c
17544 ac_cpp='$CPP $CPPFLAGS'
17545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17548
17549   cat >conftest.$ac_ext <<_ACEOF
17550 /* confdefs.h.  */
17551 _ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h.  */
17555 #ifndef __x86_64__
17556        error: Not x86-64 even if uname says so!
17557       #endif
17558
17559 int
17560 main ()
17561 {
17562
17563   ;
17564   return 0;
17565 }
17566 _ACEOF
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571   *) ac_try_echo=$ac_try;;
17572 esac
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574   (eval "$ac_compile") 2>conftest.er1
17575   ac_status=$?
17576   grep -v '^ *+' conftest.er1 >conftest.err
17577   rm -f conftest.er1
17578   cat conftest.err >&5
17579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580   (exit $ac_status); } &&
17581          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17582   { (case "(($ac_try" in
17583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584   *) ac_try_echo=$ac_try;;
17585 esac
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587   (eval "$ac_try") 2>&5
17588   ac_status=$?
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); }; } &&
17591          { ac_try='test -s conftest.$ac_objext'
17592   { (case "(($ac_try" in
17593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594   *) ac_try_echo=$ac_try;;
17595 esac
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597   (eval "$ac_try") 2>&5
17598   ac_status=$?
17599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600   (exit $ac_status); }; }; then
17601   llvm_cv_linux_mixed=no
17602 else
17603   echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17605
17606         llvm_cv_linux_mixed=yes
17607 fi
17608
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610   ac_ext=c
17611 ac_cpp='$CPP $CPPFLAGS'
17612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17615
17616
17617 fi
17618 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17619 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17620
17621   if test "$llvm_cv_linux_mixed" = "yes"; then
17622     llvm_cv_target_arch="x86"
17623     ARCH="x86"
17624   fi
17625 fi
17626
17627
17628 for ac_func in __dso_handle
17629 do
17630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17634   echo $ECHO_N "(cached) $ECHO_C" >&6
17635 else
17636   cat >conftest.$ac_ext <<_ACEOF
17637 /* confdefs.h.  */
17638 _ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h.  */
17642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17644 #define $ac_func innocuous_$ac_func
17645
17646 /* System header to define __stub macros and hopefully few prototypes,
17647     which can conflict with char $ac_func (); below.
17648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17649     <limits.h> exists even on freestanding compilers.  */
17650
17651 #ifdef __STDC__
17652 # include <limits.h>
17653 #else
17654 # include <assert.h>
17655 #endif
17656
17657 #undef $ac_func
17658
17659 /* Override any GCC internal prototype to avoid an error.
17660    Use char because int might match the return type of a GCC
17661    builtin and then its argument prototype would still apply.  */
17662 #ifdef __cplusplus
17663 extern "C"
17664 #endif
17665 char $ac_func ();
17666 /* The GNU C library defines this for functions which it implements
17667     to always fail with ENOSYS.  Some functions are actually named
17668     something starting with __ and the normal name is an alias.  */
17669 #if defined __stub_$ac_func || defined __stub___$ac_func
17670 choke me
17671 #endif
17672
17673 int
17674 main ()
17675 {
17676 return $ac_func ();
17677   ;
17678   return 0;
17679 }
17680 _ACEOF
17681 rm -f conftest.$ac_objext conftest$ac_exeext
17682 if { (ac_try="$ac_link"
17683 case "(($ac_try" in
17684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685   *) ac_try_echo=$ac_try;;
17686 esac
17687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17688   (eval "$ac_link") 2>conftest.er1
17689   ac_status=$?
17690   grep -v '^ *+' conftest.er1 >conftest.err
17691   rm -f conftest.er1
17692   cat conftest.err >&5
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); } &&
17695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17696   { (case "(($ac_try" in
17697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17698   *) ac_try_echo=$ac_try;;
17699 esac
17700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17701   (eval "$ac_try") 2>&5
17702   ac_status=$?
17703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704   (exit $ac_status); }; } &&
17705          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17715   eval "$as_ac_var=yes"
17716 else
17717   echo "$as_me: failed program was:" >&5
17718 sed 's/^/| /' conftest.$ac_ext >&5
17719
17720         eval "$as_ac_var=no"
17721 fi
17722
17723 rm -f core conftest.err conftest.$ac_objext \
17724       conftest$ac_exeext conftest.$ac_ext
17725 fi
17726 ac_res=`eval echo '${'$as_ac_var'}'`
17727                { echo "$as_me:$LINENO: result: $ac_res" >&5
17728 echo "${ECHO_T}$ac_res" >&6; }
17729 if test `eval echo '${'$as_ac_var'}'` = yes; then
17730   cat >>confdefs.h <<_ACEOF
17731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17732 _ACEOF
17733
17734 fi
17735 done
17736
17737
17738 SHLIBEXT=$llvm_shlib_ext
17739
17740
17741 if test "${prefix}" = "NONE" ; then
17742   prefix="/usr/local"
17743 fi
17744 eval LLVM_PREFIX="${prefix}";
17745 eval LLVM_BINDIR="${prefix}/bin";
17746 eval LLVM_DATADIR="${prefix}/share/llvm";
17747 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17748 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17749 eval LLVM_INCLUDEDIR="${prefix}/include";
17750 eval LLVM_INFODIR="${prefix}/info";
17751 eval LLVM_MANDIR="${prefix}/man";
17752 LLVM_CONFIGTIME=`date`
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17764   LLVM_CONFIGTIME="(timestamp not enabled)"
17765 fi
17766
17767
17768 cat >>confdefs.h <<_ACEOF
17769 #define LLVM_PREFIX "$LLVM_PREFIX"
17770 _ACEOF
17771
17772
17773 cat >>confdefs.h <<_ACEOF
17774 #define LLVM_BINDIR "$LLVM_BINDIR"
17775 _ACEOF
17776
17777
17778 cat >>confdefs.h <<_ACEOF
17779 #define LLVM_DATADIR "$LLVM_DATADIR"
17780 _ACEOF
17781
17782
17783 cat >>confdefs.h <<_ACEOF
17784 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17785 _ACEOF
17786
17787
17788 cat >>confdefs.h <<_ACEOF
17789 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17790 _ACEOF
17791
17792
17793 cat >>confdefs.h <<_ACEOF
17794 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17795 _ACEOF
17796
17797
17798 cat >>confdefs.h <<_ACEOF
17799 #define LLVM_INFODIR "$LLVM_INFODIR"
17800 _ACEOF
17801
17802
17803 cat >>confdefs.h <<_ACEOF
17804 #define LLVM_MANDIR "$LLVM_MANDIR"
17805 _ACEOF
17806
17807
17808 cat >>confdefs.h <<_ACEOF
17809 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17810 _ACEOF
17811
17812
17813 cat >>confdefs.h <<_ACEOF
17814 #define LLVM_HOST_TRIPLE "$host"
17815 _ACEOF
17816
17817
17818 cat >>confdefs.h <<_ACEOF
17819 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17820 _ACEOF
17821
17822
17823 if test "$BINDINGS_TO_BUILD" = auto ; then
17824   BINDINGS_TO_BUILD=""
17825   if test "x$OCAMLFIND" != x ; then
17826     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17827   fi
17828   if test "x$GO" != x ; then
17829     if $GO run ${srcdir}/bindings/go/conftest.go ; then
17830       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17831     fi
17832   fi
17833 fi
17834 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17835
17836
17837 binding_prereqs_failed=0
17838 for a_binding in $BINDINGS_TO_BUILD ; do
17839   case "$a_binding" in
17840   ocaml)
17841     if test "x$OCAMLFIND" = x ; then
17842       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17843 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17844       binding_prereqs_failed=1
17845     fi
17846
17847     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17848       HAVE_OCAMLOPT=1
17849     else
17850       HAVE_OCAMLOPT=0
17851     fi
17852
17853
17854     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17855       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17856 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17857       binding_prereqs_failed=1
17858     fi
17859
17860     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17861       HAVE_OCAML_OUNIT=1
17862     else
17863       HAVE_OCAML_OUNIT=0
17864       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17865 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17866           fi
17867
17868
17869     if test "x$with_ocaml_libdir" != xauto ; then
17870       OCAML_LIBDIR=$with_ocaml_libdir
17871
17872     else
17873       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17874       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17875       then
17876         # ocaml stdlib is beneath our prefix; use stdlib
17877         OCAML_LIBDIR=$ocaml_stdlib
17878
17879       else
17880         # ocaml stdlib is outside our prefix; use libdir/ocaml
17881         OCAML_LIBDIR=${prefix}/lib/ocaml
17882
17883       fi
17884     fi
17885     ;;
17886   go)
17887     if test "x$GO" = x ; then
17888       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17889 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17890       binding_prereqs_failed=1
17891     else
17892       if $GO run ${srcdir}/bindings/go/conftest.go ; then
17893         :
17894       else
17895         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17896 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17897         binding_prereqs_failed=1
17898       fi
17899     fi
17900     ;;
17901   esac
17902 done
17903 if test "$binding_prereqs_failed" = 1 ; then
17904   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17905 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17906    { (exit 1); exit 1; }; }
17907 fi
17908
17909 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17910 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17911 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17912   echo $ECHO_N "(cached) $ECHO_C" >&6
17913 else
17914    ac_ext=cpp
17915 ac_cpp='$CXXCPP $CPPFLAGS'
17916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17919
17920   oldcxxflags="$CXXFLAGS"
17921   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17922   cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h.  */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h.  */
17928 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17929 int
17930 main ()
17931 {
17932 X<int>().f();
17933   ;
17934   return 0;
17935 }
17936 _ACEOF
17937 rm -f conftest.$ac_objext
17938 if { (ac_try="$ac_compile"
17939 case "(($ac_try" in
17940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17941   *) ac_try_echo=$ac_try;;
17942 esac
17943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17944   (eval "$ac_compile") 2>conftest.er1
17945   ac_status=$?
17946   grep -v '^ *+' conftest.er1 >conftest.err
17947   rm -f conftest.er1
17948   cat conftest.err >&5
17949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950   (exit $ac_status); } &&
17951          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17952   { (case "(($ac_try" in
17953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954   *) ac_try_echo=$ac_try;;
17955 esac
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957   (eval "$ac_try") 2>&5
17958   ac_status=$?
17959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960   (exit $ac_status); }; } &&
17961          { ac_try='test -s conftest.$ac_objext'
17962   { (case "(($ac_try" in
17963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17964   *) ac_try_echo=$ac_try;;
17965 esac
17966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17967   (eval "$ac_try") 2>&5
17968   ac_status=$?
17969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970   (exit $ac_status); }; }; then
17971   llvm_cv_cxx_visibility_inlines_hidden=yes
17972 else
17973   echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17975
17976         llvm_cv_cxx_visibility_inlines_hidden=no
17977 fi
17978
17979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17980   CXXFLAGS="$oldcxxflags"
17981   ac_ext=c
17982 ac_cpp='$CPP $CPPFLAGS'
17983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17986
17987
17988 fi
17989 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
17990 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
17991 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
17992   ENABLE_VISIBILITY_INLINES_HIDDEN=1
17993
17994 else
17995   ENABLE_VISIBILITY_INLINES_HIDDEN=0
17996
17997 fi
17998
17999
18000 if test "$llvm_cv_link_use_r" = "yes" ; then
18001   RPATH="-Wl,-R"
18002 else
18003   RPATH="-Wl,-rpath"
18004 fi
18005
18006
18007 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18008   RDYNAMIC="-rdynamic"
18009 else
18010   RDYNAMIC=""
18011 fi
18012
18013
18014
18015 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18016
18017
18018
18019
18020
18021
18022 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18023
18024 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18025
18026 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18027
18028 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18029
18030 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18031
18032
18033 ac_config_files="$ac_config_files Makefile.config"
18034
18035
18036 ac_config_files="$ac_config_files llvm.spec"
18037
18038
18039 ac_config_files="$ac_config_files docs/doxygen.cfg"
18040
18041
18042 if test "${clang_src_root}" = ""; then
18043   clang_src_root="$srcdir/tools/clang"
18044 fi
18045 if test -f ${clang_src_root}/README.txt; then
18046
18047 cat >>confdefs.h <<_ACEOF
18048 #define CLANG_LIBDIR_SUFFIX ""
18049 _ACEOF
18050
18051
18052     configh="include/clang/Config/config.h"
18053   doxy="docs/doxygen.cfg"
18054   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18055
18056   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18057
18058 fi
18059
18060 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18061
18062
18063 test "x$program_prefix" = "xNONE" && program_prefix=""
18064
18065
18066
18067 ac_config_commands="$ac_config_commands setup"
18068
18069 ac_config_commands="$ac_config_commands Makefile"
18070
18071
18072 ac_config_commands="$ac_config_commands Makefile.common"
18073
18074
18075 ac_config_commands="$ac_config_commands examples/Makefile"
18076
18077
18078 ac_config_commands="$ac_config_commands lib/Makefile"
18079
18080
18081 ac_config_commands="$ac_config_commands test/Makefile"
18082
18083
18084 ac_config_commands="$ac_config_commands test/Makefile.tests"
18085
18086
18087 ac_config_commands="$ac_config_commands unittests/Makefile"
18088
18089
18090 ac_config_commands="$ac_config_commands tools/Makefile"
18091
18092
18093 ac_config_commands="$ac_config_commands utils/Makefile"
18094
18095
18096 ac_config_commands="$ac_config_commands projects/Makefile"
18097
18098
18099 ac_config_commands="$ac_config_commands bindings/Makefile"
18100
18101
18102 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18103
18104
18105
18106 cat >confcache <<\_ACEOF
18107 # This file is a shell script that caches the results of configure
18108 # tests run on this system so they can be shared between configure
18109 # scripts and configure runs, see configure's option --config-cache.
18110 # It is not useful on other systems.  If it contains results you don't
18111 # want to keep, you may remove or edit it.
18112 #
18113 # config.status only pays attention to the cache file if you give it
18114 # the --recheck option to rerun configure.
18115 #
18116 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18117 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18118 # following values.
18119
18120 _ACEOF
18121
18122 # The following way of writing the cache mishandles newlines in values,
18123 # but we know of no workaround that is simple, portable, and efficient.
18124 # So, we kill variables containing newlines.
18125 # Ultrix sh set writes to stderr and can't be redirected directly,
18126 # and sets the high bit in the cache file unless we assign to the vars.
18127 (
18128   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18129     eval ac_val=\$$ac_var
18130     case $ac_val in #(
18131     *${as_nl}*)
18132       case $ac_var in #(
18133       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18134 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18135       esac
18136       case $ac_var in #(
18137       _ | IFS | as_nl) ;; #(
18138       *) $as_unset $ac_var ;;
18139       esac ;;
18140     esac
18141   done
18142
18143   (set) 2>&1 |
18144     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18145     *${as_nl}ac_space=\ *)
18146       # `set' does not quote correctly, so add quotes (double-quote
18147       # substitution turns \\\\ into \\, and sed turns \\ into \).
18148       sed -n \
18149         "s/'/'\\\\''/g;
18150           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18151       ;; #(
18152     *)
18153       # `set' quotes correctly as required by POSIX, so do not add quotes.
18154       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18155       ;;
18156     esac |
18157     sort
18158 ) |
18159   sed '
18160      /^ac_cv_env_/b end
18161      t clear
18162      :clear
18163      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18164      t end
18165      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18166      :end' >>confcache
18167 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18168   if test -w "$cache_file"; then
18169     test "x$cache_file" != "x/dev/null" &&
18170       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18171 echo "$as_me: updating cache $cache_file" >&6;}
18172     cat confcache >$cache_file
18173   else
18174     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18175 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18176   fi
18177 fi
18178 rm -f confcache
18179
18180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18181 # Let make expand exec_prefix.
18182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18183
18184 DEFS=-DHAVE_CONFIG_H
18185
18186 ac_libobjs=
18187 ac_ltlibobjs=
18188 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18189   # 1. Remove the extension, and $U if already installed.
18190   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18191   ac_i=`echo "$ac_i" | sed "$ac_script"`
18192   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18193   #    will be set to the directory where LIBOBJS objects are built.
18194   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18195   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18196 done
18197 LIBOBJS=$ac_libobjs
18198
18199 LTLIBOBJS=$ac_ltlibobjs
18200
18201
18202
18203 : ${CONFIG_STATUS=./config.status}
18204 ac_clean_files_save=$ac_clean_files
18205 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18206 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18207 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18208 cat >$CONFIG_STATUS <<_ACEOF
18209 #! $SHELL
18210 # Generated by $as_me.
18211 # Run this file to recreate the current configuration.
18212 # Compiler output produced by configure, useful for debugging
18213 # configure, is in config.log if it exists.
18214
18215 debug=false
18216 ac_cs_recheck=false
18217 ac_cs_silent=false
18218 SHELL=\${CONFIG_SHELL-$SHELL}
18219 _ACEOF
18220
18221 cat >>$CONFIG_STATUS <<\_ACEOF
18222 ## --------------------- ##
18223 ## M4sh Initialization.  ##
18224 ## --------------------- ##
18225
18226 # Be Bourne compatible
18227 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18228   emulate sh
18229   NULLCMD=:
18230   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18231   # is contrary to our usage.  Disable this feature.
18232   alias -g '${1+"$@"}'='"$@"'
18233   setopt NO_GLOB_SUBST
18234 else
18235   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18236 fi
18237 BIN_SH=xpg4; export BIN_SH # for Tru64
18238 DUALCASE=1; export DUALCASE # for MKS sh
18239
18240
18241 # PATH needs CR
18242 # Avoid depending upon Character Ranges.
18243 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18244 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18245 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18246 as_cr_digits='0123456789'
18247 as_cr_alnum=$as_cr_Letters$as_cr_digits
18248
18249 # The user is always right.
18250 if test "${PATH_SEPARATOR+set}" != set; then
18251   echo "#! /bin/sh" >conf$$.sh
18252   echo  "exit 0"   >>conf$$.sh
18253   chmod +x conf$$.sh
18254   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18255     PATH_SEPARATOR=';'
18256   else
18257     PATH_SEPARATOR=:
18258   fi
18259   rm -f conf$$.sh
18260 fi
18261
18262 # Support unset when possible.
18263 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18264   as_unset=unset
18265 else
18266   as_unset=false
18267 fi
18268
18269
18270 # IFS
18271 # We need space, tab and new line, in precisely that order.  Quoting is
18272 # there to prevent editors from complaining about space-tab.
18273 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18274 # splitting by setting IFS to empty value.)
18275 as_nl='
18276 '
18277 IFS=" ""        $as_nl"
18278
18279 # Find who we are.  Look in the path if we contain no directory separator.
18280 case $0 in
18281   *[\\/]* ) as_myself=$0 ;;
18282   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18283 for as_dir in $PATH
18284 do
18285   IFS=$as_save_IFS
18286   test -z "$as_dir" && as_dir=.
18287   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18288 done
18289 IFS=$as_save_IFS
18290
18291      ;;
18292 esac
18293 # We did not find ourselves, most probably we were run as `sh COMMAND'
18294 # in which case we are not to be found in the path.
18295 if test "x$as_myself" = x; then
18296   as_myself=$0
18297 fi
18298 if test ! -f "$as_myself"; then
18299   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18300   { (exit 1); exit 1; }
18301 fi
18302
18303 # Work around bugs in pre-3.0 UWIN ksh.
18304 for as_var in ENV MAIL MAILPATH
18305 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18306 done
18307 PS1='$ '
18308 PS2='> '
18309 PS4='+ '
18310
18311 # NLS nuisances.
18312 for as_var in \
18313   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18314   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18315   LC_TELEPHONE LC_TIME
18316 do
18317   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18318     eval $as_var=C; export $as_var
18319   else
18320     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18321   fi
18322 done
18323
18324 # Required to use basename.
18325 if expr a : '\(a\)' >/dev/null 2>&1 &&
18326    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18327   as_expr=expr
18328 else
18329   as_expr=false
18330 fi
18331
18332 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18333   as_basename=basename
18334 else
18335   as_basename=false
18336 fi
18337
18338
18339 # Name of the executable.
18340 as_me=`$as_basename -- "$0" ||
18341 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18342          X"$0" : 'X\(//\)$' \| \
18343          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18344 echo X/"$0" |
18345     sed '/^.*\/\([^/][^/]*\)\/*$/{
18346             s//\1/
18347             q
18348           }
18349           /^X\/\(\/\/\)$/{
18350             s//\1/
18351             q
18352           }
18353           /^X\/\(\/\).*/{
18354             s//\1/
18355             q
18356           }
18357           s/.*/./; q'`
18358
18359 # CDPATH.
18360 $as_unset CDPATH
18361
18362
18363
18364   as_lineno_1=$LINENO
18365   as_lineno_2=$LINENO
18366   test "x$as_lineno_1" != "x$as_lineno_2" &&
18367   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18368
18369   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18370   # uniformly replaced by the line number.  The first 'sed' inserts a
18371   # line-number line after each line using $LINENO; the second 'sed'
18372   # does the real work.  The second script uses 'N' to pair each
18373   # line-number line with the line containing $LINENO, and appends
18374   # trailing '-' during substitution so that $LINENO is not a special
18375   # case at line end.
18376   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18377   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18378   # E. McMahon (1931-1989) for sed's syntax.  :-)
18379   sed -n '
18380     p
18381     /[$]LINENO/=
18382   ' <$as_myself |
18383     sed '
18384       s/[$]LINENO.*/&-/
18385       t lineno
18386       b
18387       :lineno
18388       N
18389       :loop
18390       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18391       t loop
18392       s/-\n.*//
18393     ' >$as_me.lineno &&
18394   chmod +x "$as_me.lineno" ||
18395     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18396    { (exit 1); exit 1; }; }
18397
18398   # Don't try to exec as it changes $[0], causing all sort of problems
18399   # (the dirname of $[0] is not the place where we might find the
18400   # original and so on.  Autoconf is especially sensitive to this).
18401   . "./$as_me.lineno"
18402   # Exit status is that of the last command.
18403   exit
18404 }
18405
18406
18407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18408   as_dirname=dirname
18409 else
18410   as_dirname=false
18411 fi
18412
18413 ECHO_C= ECHO_N= ECHO_T=
18414 case `echo -n x` in
18415 -n*)
18416   case `echo 'x\c'` in
18417   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18418   *)   ECHO_C='\c';;
18419   esac;;
18420 *)
18421   ECHO_N='-n';;
18422 esac
18423
18424 if expr a : '\(a\)' >/dev/null 2>&1 &&
18425    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18426   as_expr=expr
18427 else
18428   as_expr=false
18429 fi
18430
18431 rm -f conf$$ conf$$.exe conf$$.file
18432 if test -d conf$$.dir; then
18433   rm -f conf$$.dir/conf$$.file
18434 else
18435   rm -f conf$$.dir
18436   mkdir conf$$.dir
18437 fi
18438 echo >conf$$.file
18439 if ln -s conf$$.file conf$$ 2>/dev/null; then
18440   as_ln_s='ln -s'
18441   # ... but there are two gotchas:
18442   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18443   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18444   # In both cases, we have to default to `cp -p'.
18445   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18446     as_ln_s='cp -p'
18447 elif ln conf$$.file conf$$ 2>/dev/null; then
18448   as_ln_s=ln
18449 else
18450   as_ln_s='cp -p'
18451 fi
18452 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18453 rmdir conf$$.dir 2>/dev/null
18454
18455 if mkdir -p . 2>/dev/null; then
18456   as_mkdir_p=:
18457 else
18458   test -d ./-p && rmdir ./-p
18459   as_mkdir_p=false
18460 fi
18461
18462 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18463 # systems may use methods other than mode bits to determine executability.
18464 cat >conf$$.file <<_ASEOF
18465 #! /bin/sh
18466 exit 0
18467 _ASEOF
18468 chmod +x conf$$.file
18469 if test -x conf$$.file >/dev/null 2>&1; then
18470   as_executable_p="test -x"
18471 else
18472   as_executable_p=:
18473 fi
18474 rm -f conf$$.file
18475
18476 # Sed expression to map a string onto a valid CPP name.
18477 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18478
18479 # Sed expression to map a string onto a valid variable name.
18480 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18481
18482
18483 exec 6>&1
18484
18485 # Save the log message, to keep $[0] and so on meaningful, and to
18486 # report actual input values of CONFIG_FILES etc. instead of their
18487 # values after options handling.
18488 ac_log="
18489 This file was extended by LLVM $as_me 3.7.0svn, which was
18490 generated by GNU Autoconf 2.60.  Invocation command line was
18491
18492   CONFIG_FILES    = $CONFIG_FILES
18493   CONFIG_HEADERS  = $CONFIG_HEADERS
18494   CONFIG_LINKS    = $CONFIG_LINKS
18495   CONFIG_COMMANDS = $CONFIG_COMMANDS
18496   $ $0 $@
18497
18498 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18499 "
18500
18501 _ACEOF
18502
18503 cat >>$CONFIG_STATUS <<_ACEOF
18504 # Files that config.status was made for.
18505 config_files="$ac_config_files"
18506 config_headers="$ac_config_headers"
18507 config_commands="$ac_config_commands"
18508
18509 _ACEOF
18510
18511 cat >>$CONFIG_STATUS <<\_ACEOF
18512 ac_cs_usage="\
18513 \`$as_me' instantiates files from templates according to the
18514 current configuration.
18515
18516 Usage: $0 [OPTIONS] [FILE]...
18517
18518   -h, --help       print this help, then exit
18519   -V, --version    print version number, then exit
18520   -q, --quiet      do not print progress messages
18521   -d, --debug      don't remove temporary files
18522       --recheck    update $as_me by reconfiguring in the same conditions
18523   --file=FILE[:TEMPLATE]
18524                    instantiate the configuration file FILE
18525   --header=FILE[:TEMPLATE]
18526                    instantiate the configuration header FILE
18527
18528 Configuration files:
18529 $config_files
18530
18531 Configuration headers:
18532 $config_headers
18533
18534 Configuration commands:
18535 $config_commands
18536
18537 Report bugs to <bug-autoconf@gnu.org>."
18538
18539 _ACEOF
18540 cat >>$CONFIG_STATUS <<_ACEOF
18541 ac_cs_version="\\
18542 LLVM config.status 3.7.0svn
18543 configured by $0, generated by GNU Autoconf 2.60,
18544   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18545
18546 Copyright (C) 2006 Free Software Foundation, Inc.
18547 This config.status script is free software; the Free Software Foundation
18548 gives unlimited permission to copy, distribute and modify it."
18549
18550 ac_pwd='$ac_pwd'
18551 srcdir='$srcdir'
18552 INSTALL='$INSTALL'
18553 _ACEOF
18554
18555 cat >>$CONFIG_STATUS <<\_ACEOF
18556 # If no file are specified by the user, then we need to provide default
18557 # value.  By we need to know if files were specified by the user.
18558 ac_need_defaults=:
18559 while test $# != 0
18560 do
18561   case $1 in
18562   --*=*)
18563     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18564     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18565     ac_shift=:
18566     ;;
18567   *)
18568     ac_option=$1
18569     ac_optarg=$2
18570     ac_shift=shift
18571     ;;
18572   esac
18573
18574   case $ac_option in
18575   # Handling of the options.
18576   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18577     ac_cs_recheck=: ;;
18578   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18579     echo "$ac_cs_version"; exit ;;
18580   --debug | --debu | --deb | --de | --d | -d )
18581     debug=: ;;
18582   --file | --fil | --fi | --f )
18583     $ac_shift
18584     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18585     ac_need_defaults=false;;
18586   --header | --heade | --head | --hea )
18587     $ac_shift
18588     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18589     ac_need_defaults=false;;
18590   --he | --h)
18591     # Conflict between --help and --header
18592     { echo "$as_me: error: ambiguous option: $1
18593 Try \`$0 --help' for more information." >&2
18594    { (exit 1); exit 1; }; };;
18595   --help | --hel | -h )
18596     echo "$ac_cs_usage"; exit ;;
18597   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18598   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18599     ac_cs_silent=: ;;
18600
18601   # This is an error.
18602   -*) { echo "$as_me: error: unrecognized option: $1
18603 Try \`$0 --help' for more information." >&2
18604    { (exit 1); exit 1; }; } ;;
18605
18606   *) ac_config_targets="$ac_config_targets $1"
18607      ac_need_defaults=false ;;
18608
18609   esac
18610   shift
18611 done
18612
18613 ac_configure_extra_args=
18614
18615 if $ac_cs_silent; then
18616   exec 6>/dev/null
18617   ac_configure_extra_args="$ac_configure_extra_args --silent"
18618 fi
18619
18620 _ACEOF
18621 cat >>$CONFIG_STATUS <<_ACEOF
18622 if \$ac_cs_recheck; then
18623   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18624   CONFIG_SHELL=$SHELL
18625   export CONFIG_SHELL
18626   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18627 fi
18628
18629 _ACEOF
18630 cat >>$CONFIG_STATUS <<\_ACEOF
18631 exec 5>>config.log
18632 {
18633   echo
18634   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18635 ## Running $as_me. ##
18636 _ASBOX
18637   echo "$ac_log"
18638 } >&5
18639
18640 _ACEOF
18641 cat >>$CONFIG_STATUS <<_ACEOF
18642 #
18643 # INIT-COMMANDS
18644 #
18645 llvm_src="${srcdir}"
18646
18647 _ACEOF
18648
18649 cat >>$CONFIG_STATUS <<\_ACEOF
18650
18651 # Handling of arguments.
18652 for ac_config_target in $ac_config_targets
18653 do
18654   case $ac_config_target in
18655     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18656     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18657     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18658     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18659     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18660     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18661     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18662     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18663     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18664     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18665     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18666     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18667     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18668     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18669     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18670     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18671     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18672     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18673     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18674     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18675     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18676     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18677     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18678     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18679     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18680     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18681
18682   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18683 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18684    { (exit 1); exit 1; }; };;
18685   esac
18686 done
18687
18688
18689 # If the user did not use the arguments to specify the items to instantiate,
18690 # then the envvar interface is used.  Set only those that are not.
18691 # We use the long form for the default assignment because of an extremely
18692 # bizarre bug on SunOS 4.1.3.
18693 if $ac_need_defaults; then
18694   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18695   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18696   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18697 fi
18698
18699 # Have a temporary directory for convenience.  Make it in the build tree
18700 # simply because there is no reason against having it here, and in addition,
18701 # creating and moving files from /tmp can sometimes cause problems.
18702 # Hook for its removal unless debugging.
18703 # Note that there is a small window in which the directory will not be cleaned:
18704 # after its creation but before its name has been assigned to `$tmp'.
18705 $debug ||
18706 {
18707   tmp=
18708   trap 'exit_status=$?
18709   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18710 ' 0
18711   trap '{ (exit 1); exit 1; }' 1 2 13 15
18712 }
18713 # Create a (secure) tmp directory for tmp files.
18714
18715 {
18716   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18717   test -n "$tmp" && test -d "$tmp"
18718 }  ||
18719 {
18720   tmp=./conf$$-$RANDOM
18721   (umask 077 && mkdir "$tmp")
18722 } ||
18723 {
18724    echo "$me: cannot create a temporary directory in ." >&2
18725    { (exit 1); exit 1; }
18726 }
18727
18728 #
18729 # Set up the sed scripts for CONFIG_FILES section.
18730 #
18731
18732 # No need to generate the scripts if there are no CONFIG_FILES.
18733 # This happens for instance when ./config.status config.h
18734 if test -n "$CONFIG_FILES"; then
18735
18736 _ACEOF
18737
18738
18739
18740 ac_delim='%!_!# '
18741 for ac_last_try in false false false false false :; do
18742   cat >conf$$subs.sed <<_ACEOF
18743 SHELL!$SHELL$ac_delim
18744 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18745 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18746 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18747 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18748 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18749 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18750 exec_prefix!$exec_prefix$ac_delim
18751 prefix!$prefix$ac_delim
18752 program_transform_name!$program_transform_name$ac_delim
18753 bindir!$bindir$ac_delim
18754 sbindir!$sbindir$ac_delim
18755 libexecdir!$libexecdir$ac_delim
18756 datarootdir!$datarootdir$ac_delim
18757 datadir!$datadir$ac_delim
18758 sysconfdir!$sysconfdir$ac_delim
18759 sharedstatedir!$sharedstatedir$ac_delim
18760 localstatedir!$localstatedir$ac_delim
18761 includedir!$includedir$ac_delim
18762 oldincludedir!$oldincludedir$ac_delim
18763 docdir!$docdir$ac_delim
18764 infodir!$infodir$ac_delim
18765 htmldir!$htmldir$ac_delim
18766 dvidir!$dvidir$ac_delim
18767 pdfdir!$pdfdir$ac_delim
18768 psdir!$psdir$ac_delim
18769 libdir!$libdir$ac_delim
18770 localedir!$localedir$ac_delim
18771 mandir!$mandir$ac_delim
18772 DEFS!$DEFS$ac_delim
18773 ECHO_C!$ECHO_C$ac_delim
18774 ECHO_N!$ECHO_N$ac_delim
18775 ECHO_T!$ECHO_T$ac_delim
18776 LIBS!$LIBS$ac_delim
18777 build_alias!$build_alias$ac_delim
18778 host_alias!$host_alias$ac_delim
18779 target_alias!$target_alias$ac_delim
18780 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18781 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18782 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18783 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18784 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18785 CC!$CC$ac_delim
18786 CFLAGS!$CFLAGS$ac_delim
18787 LDFLAGS!$LDFLAGS$ac_delim
18788 CPPFLAGS!$CPPFLAGS$ac_delim
18789 ac_ct_CC!$ac_ct_CC$ac_delim
18790 EXEEXT!$EXEEXT$ac_delim
18791 OBJEXT!$OBJEXT$ac_delim
18792 CXX!$CXX$ac_delim
18793 CXXFLAGS!$CXXFLAGS$ac_delim
18794 ac_ct_CXX!$ac_ct_CXX$ac_delim
18795 CPP!$CPP$ac_delim
18796 subdirs!$subdirs$ac_delim
18797 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18798 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18799 build!$build$ac_delim
18800 build_cpu!$build_cpu$ac_delim
18801 build_vendor!$build_vendor$ac_delim
18802 build_os!$build_os$ac_delim
18803 host!$host$ac_delim
18804 host_cpu!$host_cpu$ac_delim
18805 host_vendor!$host_vendor$ac_delim
18806 host_os!$host_os$ac_delim
18807 target!$target$ac_delim
18808 target_cpu!$target_cpu$ac_delim
18809 target_vendor!$target_vendor$ac_delim
18810 target_os!$target_os$ac_delim
18811 OS!$OS$ac_delim
18812 HOST_OS!$HOST_OS$ac_delim
18813 TARGET_OS!$TARGET_OS$ac_delim
18814 LINKALL!$LINKALL$ac_delim
18815 NOLINKALL!$NOLINKALL$ac_delim
18816 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18817 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18818 ARCH!$ARCH$ac_delim
18819 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18820 HOST_ARCH!$HOST_ARCH$ac_delim
18821 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18822 BUILD_CC!$BUILD_CC$ac_delim
18823 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18824 BUILD_CXX!$BUILD_CXX$ac_delim
18825 CVSBUILD!$CVSBUILD$ac_delim
18826 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18827 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18828 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18829 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18830 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18831 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18832 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18833 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18834 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18835 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18836 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18837 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18838 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18839 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18840 _ACEOF
18841
18842   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18843     break
18844   elif $ac_last_try; then
18845     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18847    { (exit 1); exit 1; }; }
18848   else
18849     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18850   fi
18851 done
18852
18853 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18854 if test -n "$ac_eof"; then
18855   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18856   ac_eof=`expr $ac_eof + 1`
18857 fi
18858
18859 cat >>$CONFIG_STATUS <<_ACEOF
18860 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18862 _ACEOF
18863 sed '
18864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18865 s/^/s,@/; s/!/@,|#_!!_#|/
18866 :n
18867 t n
18868 s/'"$ac_delim"'$/,g/; t
18869 s/$/\\/; p
18870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18871 ' >>$CONFIG_STATUS <conf$$subs.sed
18872 rm -f conf$$subs.sed
18873 cat >>$CONFIG_STATUS <<_ACEOF
18874 CEOF$ac_eof
18875 _ACEOF
18876
18877
18878 ac_delim='%!_!# '
18879 for ac_last_try in false false false false false :; do
18880   cat >conf$$subs.sed <<_ACEOF
18881 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18882 JIT!$JIT$ac_delim
18883 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18884 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18885 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18886 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18887 enable_searchengine!$enable_searchengine$ac_delim
18888 enable_external_search!$enable_external_search$ac_delim
18889 enable_server_based_search!$enable_server_based_search$ac_delim
18890 searchengine_url!$searchengine_url$ac_delim
18891 extra_search_mappings!$extra_search_mappings$ac_delim
18892 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18893 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18894 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18895 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18896 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18897 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18898 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18899 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18900 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18901 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18902 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18903 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18904 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18905 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18906 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18907 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18908 ENABLE_PIC!$ENABLE_PIC$ac_delim
18909 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18910 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18911 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18912 ALL_TARGETS!$ALL_TARGETS$ac_delim
18913 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18914 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18915 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18916 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18917 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18918 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18919 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18920 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18921 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18922 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18923 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18924 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18925 ifGNUmake!$ifGNUmake$ac_delim
18926 LN_S!$LN_S$ac_delim
18927 NM!$NM$ac_delim
18928 CMP!$CMP$ac_delim
18929 CP!$CP$ac_delim
18930 DATE!$DATE$ac_delim
18931 FIND!$FIND$ac_delim
18932 GREP!$GREP$ac_delim
18933 MKDIR!$MKDIR$ac_delim
18934 MV!$MV$ac_delim
18935 RANLIB!$RANLIB$ac_delim
18936 AR!$AR$ac_delim
18937 RM!$RM$ac_delim
18938 SED!$SED$ac_delim
18939 TAR!$TAR$ac_delim
18940 BINPWD!$BINPWD$ac_delim
18941 DOT!$DOT$ac_delim
18942 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18943 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18944 INSTALL_DATA!$INSTALL_DATA$ac_delim
18945 BZIP2!$BZIP2$ac_delim
18946 CAT!$CAT$ac_delim
18947 DOXYGEN!$DOXYGEN$ac_delim
18948 GROFF!$GROFF$ac_delim
18949 GZIPBIN!$GZIPBIN$ac_delim
18950 PDFROFF!$PDFROFF$ac_delim
18951 ZIP!$ZIP$ac_delim
18952 GO!$GO$ac_delim
18953 OCAMLFIND!$OCAMLFIND$ac_delim
18954 GAS!$GAS$ac_delim
18955 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18956 EGREP!$EGREP$ac_delim
18957 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18958 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
18959 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18960 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18961 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
18962 NO_COMMENT!$NO_COMMENT$ac_delim
18963 PYTHON!$PYTHON$ac_delim
18964 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
18965 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
18966 USE_OPROFILE!$USE_OPROFILE$ac_delim
18967 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
18968 XML2CONFIG!$XML2CONFIG$ac_delim
18969 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
18970 LIBXML2_INC!$LIBXML2_INC$ac_delim
18971 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
18972 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
18973 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
18974 MMAP_FILE!$MMAP_FILE$ac_delim
18975 SHLIBEXT!$SHLIBEXT$ac_delim
18976 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
18977 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
18978 _ACEOF
18979
18980   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18981     break
18982   elif $ac_last_try; then
18983     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18984 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18985    { (exit 1); exit 1; }; }
18986   else
18987     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18988   fi
18989 done
18990
18991 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18992 if test -n "$ac_eof"; then
18993   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18994   ac_eof=`expr $ac_eof + 1`
18995 fi
18996
18997 cat >>$CONFIG_STATUS <<_ACEOF
18998 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19000 _ACEOF
19001 sed '
19002 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19003 s/^/s,@/; s/!/@,|#_!!_#|/
19004 :n
19005 t n
19006 s/'"$ac_delim"'$/,g/; t
19007 s/$/\\/; p
19008 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19009 ' >>$CONFIG_STATUS <conf$$subs.sed
19010 rm -f conf$$subs.sed
19011 cat >>$CONFIG_STATUS <<_ACEOF
19012 CEOF$ac_eof
19013 _ACEOF
19014
19015
19016 ac_delim='%!_!# '
19017 for ac_last_try in false false false false false :; do
19018   cat >conf$$subs.sed <<_ACEOF
19019 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19020 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19021 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19022 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19023 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19024 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19025 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19026 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19027 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19028 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19029 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19030 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19031 RPATH!$RPATH$ac_delim
19032 RDYNAMIC!$RDYNAMIC$ac_delim
19033 program_prefix!$program_prefix$ac_delim
19034 LIBOBJS!$LIBOBJS$ac_delim
19035 LTLIBOBJS!$LTLIBOBJS$ac_delim
19036 _ACEOF
19037
19038   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
19039     break
19040   elif $ac_last_try; then
19041     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19042 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19043    { (exit 1); exit 1; }; }
19044   else
19045     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19046   fi
19047 done
19048
19049 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19050 if test -n "$ac_eof"; then
19051   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19052   ac_eof=`expr $ac_eof + 1`
19053 fi
19054
19055 cat >>$CONFIG_STATUS <<_ACEOF
19056 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19057 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19058 _ACEOF
19059 sed '
19060 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19061 s/^/s,@/; s/!/@,|#_!!_#|/
19062 :n
19063 t n
19064 s/'"$ac_delim"'$/,g/; t
19065 s/$/\\/; p
19066 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19067 ' >>$CONFIG_STATUS <conf$$subs.sed
19068 rm -f conf$$subs.sed
19069 cat >>$CONFIG_STATUS <<_ACEOF
19070 :end
19071 s/|#_!!_#|//g
19072 CEOF$ac_eof
19073 _ACEOF
19074
19075
19076 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19077 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19078 # trailing colons and then remove the whole line if VPATH becomes empty
19079 # (actually we leave an empty line to preserve line numbers).
19080 if test "x$srcdir" = x.; then
19081   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19082 s/:*\$(srcdir):*/:/
19083 s/:*\${srcdir}:*/:/
19084 s/:*@srcdir@:*/:/
19085 s/^\([^=]*=[     ]*\):*/\1/
19086 s/:*$//
19087 s/^[^=]*=[       ]*$//
19088 }'
19089 fi
19090
19091 cat >>$CONFIG_STATUS <<\_ACEOF
19092 fi # test -n "$CONFIG_FILES"
19093
19094
19095 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19096 do
19097   case $ac_tag in
19098   :[FHLC]) ac_mode=$ac_tag; continue;;
19099   esac
19100   case $ac_mode$ac_tag in
19101   :[FHL]*:*);;
19102   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19103 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19104    { (exit 1); exit 1; }; };;
19105   :[FH]-) ac_tag=-:-;;
19106   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19107   esac
19108   ac_save_IFS=$IFS
19109   IFS=:
19110   set x $ac_tag
19111   IFS=$ac_save_IFS
19112   shift
19113   ac_file=$1
19114   shift
19115
19116   case $ac_mode in
19117   :L) ac_source=$1;;
19118   :[FH])
19119     ac_file_inputs=
19120     for ac_f
19121     do
19122       case $ac_f in
19123       -) ac_f="$tmp/stdin";;
19124       *) # Look for the file first in the build tree, then in the source tree
19125          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19126          # because $ac_f cannot contain `:'.
19127          test -f "$ac_f" ||
19128            case $ac_f in
19129            [\\/$]*) false;;
19130            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19131            esac ||
19132            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19133 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19134    { (exit 1); exit 1; }; };;
19135       esac
19136       ac_file_inputs="$ac_file_inputs $ac_f"
19137     done
19138
19139     # Let's still pretend it is `configure' which instantiates (i.e., don't
19140     # use $as_me), people would be surprised to read:
19141     #    /* config.h.  Generated by config.status.  */
19142     configure_input="Generated from "`IFS=:
19143           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19144     if test x"$ac_file" != x-; then
19145       configure_input="$ac_file.  $configure_input"
19146       { echo "$as_me:$LINENO: creating $ac_file" >&5
19147 echo "$as_me: creating $ac_file" >&6;}
19148     fi
19149
19150     case $ac_tag in
19151     *:-:* | *:-) cat >"$tmp/stdin";;
19152     esac
19153     ;;
19154   esac
19155
19156   ac_dir=`$as_dirname -- "$ac_file" ||
19157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19158          X"$ac_file" : 'X\(//\)[^/]' \| \
19159          X"$ac_file" : 'X\(//\)$' \| \
19160          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19161 echo X"$ac_file" |
19162     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19163             s//\1/
19164             q
19165           }
19166           /^X\(\/\/\)[^/].*/{
19167             s//\1/
19168             q
19169           }
19170           /^X\(\/\/\)$/{
19171             s//\1/
19172             q
19173           }
19174           /^X\(\/\).*/{
19175             s//\1/
19176             q
19177           }
19178           s/.*/./; q'`
19179   { as_dir="$ac_dir"
19180   case $as_dir in #(
19181   -*) as_dir=./$as_dir;;
19182   esac
19183   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19184     as_dirs=
19185     while :; do
19186       case $as_dir in #(
19187       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19188       *) as_qdir=$as_dir;;
19189       esac
19190       as_dirs="'$as_qdir' $as_dirs"
19191       as_dir=`$as_dirname -- "$as_dir" ||
19192 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19193          X"$as_dir" : 'X\(//\)[^/]' \| \
19194          X"$as_dir" : 'X\(//\)$' \| \
19195          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19196 echo X"$as_dir" |
19197     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19198             s//\1/
19199             q
19200           }
19201           /^X\(\/\/\)[^/].*/{
19202             s//\1/
19203             q
19204           }
19205           /^X\(\/\/\)$/{
19206             s//\1/
19207             q
19208           }
19209           /^X\(\/\).*/{
19210             s//\1/
19211             q
19212           }
19213           s/.*/./; q'`
19214       test -d "$as_dir" && break
19215     done
19216     test -z "$as_dirs" || eval "mkdir $as_dirs"
19217   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19218 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19219    { (exit 1); exit 1; }; }; }
19220   ac_builddir=.
19221
19222 case "$ac_dir" in
19223 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19224 *)
19225   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19226   # A ".." for each directory in $ac_dir_suffix.
19227   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19228   case $ac_top_builddir_sub in
19229   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19230   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19231   esac ;;
19232 esac
19233 ac_abs_top_builddir=$ac_pwd
19234 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19235 # for backward compatibility:
19236 ac_top_builddir=$ac_top_build_prefix
19237
19238 case $srcdir in
19239   .)  # We are building in place.
19240     ac_srcdir=.
19241     ac_top_srcdir=$ac_top_builddir_sub
19242     ac_abs_top_srcdir=$ac_pwd ;;
19243   [\\/]* | ?:[\\/]* )  # Absolute name.
19244     ac_srcdir=$srcdir$ac_dir_suffix;
19245     ac_top_srcdir=$srcdir
19246     ac_abs_top_srcdir=$srcdir ;;
19247   *) # Relative name.
19248     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19249     ac_top_srcdir=$ac_top_build_prefix$srcdir
19250     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19251 esac
19252 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19253
19254
19255   case $ac_mode in
19256   :F)
19257   #
19258   # CONFIG_FILE
19259   #
19260
19261   case $INSTALL in
19262   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19263   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19264   esac
19265 _ACEOF
19266
19267 cat >>$CONFIG_STATUS <<\_ACEOF
19268 # If the template does not know about datarootdir, expand it.
19269 # FIXME: This hack should be removed a few years after 2.60.
19270 ac_datarootdir_hack=; ac_datarootdir_seen=
19271
19272 case `sed -n '/datarootdir/ {
19273   p
19274   q
19275 }
19276 /@datadir@/p
19277 /@docdir@/p
19278 /@infodir@/p
19279 /@localedir@/p
19280 /@mandir@/p
19281 ' $ac_file_inputs` in
19282 *datarootdir*) ac_datarootdir_seen=yes;;
19283 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19284   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19285 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19286 _ACEOF
19287 cat >>$CONFIG_STATUS <<_ACEOF
19288   ac_datarootdir_hack='
19289   s&@datadir@&$datadir&g
19290   s&@docdir@&$docdir&g
19291   s&@infodir@&$infodir&g
19292   s&@localedir@&$localedir&g
19293   s&@mandir@&$mandir&g
19294     s&\\\${datarootdir}&$datarootdir&g' ;;
19295 esac
19296 _ACEOF
19297
19298 # Neutralize VPATH when `$srcdir' = `.'.
19299 # Shell code in configure.ac might set extrasub.
19300 # FIXME: do we really want to maintain this feature?
19301 cat >>$CONFIG_STATUS <<_ACEOF
19302   sed "$ac_vpsub
19303 $extrasub
19304 _ACEOF
19305 cat >>$CONFIG_STATUS <<\_ACEOF
19306 :t
19307 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19308 s&@configure_input@&$configure_input&;t t
19309 s&@top_builddir@&$ac_top_builddir_sub&;t t
19310 s&@srcdir@&$ac_srcdir&;t t
19311 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19312 s&@top_srcdir@&$ac_top_srcdir&;t t
19313 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19314 s&@builddir@&$ac_builddir&;t t
19315 s&@abs_builddir@&$ac_abs_builddir&;t t
19316 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19317 s&@INSTALL@&$ac_INSTALL&;t t
19318 $ac_datarootdir_hack
19319 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19320
19321 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19322   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19323   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19324   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19325 which seems to be undefined.  Please make sure it is defined." >&5
19326 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19327 which seems to be undefined.  Please make sure it is defined." >&2;}
19328
19329   rm -f "$tmp/stdin"
19330   case $ac_file in
19331   -) cat "$tmp/out"; rm -f "$tmp/out";;
19332   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19333   esac
19334  ;;
19335   :H)
19336   #
19337   # CONFIG_HEADER
19338   #
19339 _ACEOF
19340
19341 # Transform confdefs.h into a sed script `conftest.defines', that
19342 # substitutes the proper values into config.h.in to produce config.h.
19343 rm -f conftest.defines conftest.tail
19344 # First, append a space to every undef/define line, to ease matching.
19345 echo 's/$/ /' >conftest.defines
19346 # Then, protect against being on the right side of a sed subst, or in
19347 # an unquoted here document, in config.status.  If some macros were
19348 # called several times there might be several #defines for the same
19349 # symbol, which is useless.  But do not sort them, since the last
19350 # AC_DEFINE must be honored.
19351 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19352 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19353 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19354 # PARAMS is the parameter list in the macro definition--in most cases, it's
19355 # just an empty string.
19356 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19357 ac_dB='\\)[      (].*,\\1define\\2'
19358 ac_dC=' '
19359 ac_dD=' ,'
19360
19361 uniq confdefs.h |
19362   sed -n '
19363         t rset
19364         :rset
19365         s/^[     ]*#[    ]*define[       ][      ]*//
19366         t ok
19367         d
19368         :ok
19369         s/[\\&,]/\\&/g
19370         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19371         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19372   ' >>conftest.defines
19373
19374 # Remove the space that was appended to ease matching.
19375 # Then replace #undef with comments.  This is necessary, for
19376 # example, in the case of _POSIX_SOURCE, which is predefined and required
19377 # on some systems where configure will not decide to define it.
19378 # (The regexp can be short, since the line contains either #define or #undef.)
19379 echo 's/ $//
19380 s,^[     #]*u.*,/* & */,' >>conftest.defines
19381
19382 # Break up conftest.defines:
19383 ac_max_sed_lines=50
19384
19385 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19386 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19387 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19388 # et cetera.
19389 ac_in='$ac_file_inputs'
19390 ac_out='"$tmp/out1"'
19391 ac_nxt='"$tmp/out2"'
19392
19393 while :
19394 do
19395   # Write a here document:
19396     cat >>$CONFIG_STATUS <<_ACEOF
19397     # First, check the format of the line:
19398     cat >"\$tmp/defines.sed" <<\\CEOF
19399 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19400 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19401 b
19402 :def
19403 _ACEOF
19404   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19405   echo 'CEOF
19406     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19407   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19408   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19409   grep . conftest.tail >/dev/null || break
19410   rm -f conftest.defines
19411   mv conftest.tail conftest.defines
19412 done
19413 rm -f conftest.defines conftest.tail
19414
19415 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19416 cat >>$CONFIG_STATUS <<\_ACEOF
19417   if test x"$ac_file" != x-; then
19418     echo "/* $configure_input  */" >"$tmp/config.h"
19419     cat "$ac_result" >>"$tmp/config.h"
19420     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19421       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19422 echo "$as_me: $ac_file is unchanged" >&6;}
19423     else
19424       rm -f $ac_file
19425       mv "$tmp/config.h" $ac_file
19426     fi
19427   else
19428     echo "/* $configure_input  */"
19429     cat "$ac_result"
19430   fi
19431   rm -f "$tmp/out12"
19432  ;;
19433
19434   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19435 echo "$as_me: executing $ac_file commands" >&6;}
19436  ;;
19437   esac
19438
19439
19440   case $ac_file$ac_mode in
19441     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19442    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19443     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19444    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19445     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19446    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19447     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19448    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19449     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19450    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19451     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19452    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19453     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19454    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19455     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19456    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19457     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19458    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19459     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19460    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19461     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19462    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19463     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19464    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19465
19466   esac
19467 done # for ac_tag
19468
19469
19470 { (exit 0); exit 0; }
19471 _ACEOF
19472 chmod +x $CONFIG_STATUS
19473 ac_clean_files=$ac_clean_files_save
19474
19475
19476 # configure is writing to config.log, and then calls config.status.
19477 # config.status does its own redirection, appending to config.log.
19478 # Unfortunately, on DOS this fails, as config.log is still kept open
19479 # by configure, so config.status won't be able to write to it; its
19480 # output is simply discarded.  So we exec the FD to /dev/null,
19481 # effectively closing config.log, so it can be properly (re)opened and
19482 # appended to by config.status.  When coming back to configure, we
19483 # need to make the FD available again.
19484 if test "$no_create" != yes; then
19485   ac_cs_success=:
19486   ac_config_status_args=
19487   test "$silent" = yes &&
19488     ac_config_status_args="$ac_config_status_args --quiet"
19489   exec 5>/dev/null
19490   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19491   exec 5>>config.log
19492   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19493   # would make configure fail if this is the last instruction.
19494   $ac_cs_success || { (exit 1); exit 1; }
19495 fi
19496
19497 #
19498 # CONFIG_SUBDIRS section.
19499 #
19500 if test "$no_recursion" != yes; then
19501
19502   # Remove --cache-file and --srcdir arguments so they do not pile up.
19503   ac_sub_configure_args=
19504   ac_prev=
19505   eval "set x $ac_configure_args"
19506   shift
19507   for ac_arg
19508   do
19509     if test -n "$ac_prev"; then
19510       ac_prev=
19511       continue
19512     fi
19513     case $ac_arg in
19514     -cache-file | --cache-file | --cache-fil | --cache-fi \
19515     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19516       ac_prev=cache_file ;;
19517     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19518     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19519     | --c=*)
19520       ;;
19521     --config-cache | -C)
19522       ;;
19523     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19524       ac_prev=srcdir ;;
19525     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19526       ;;
19527     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19528       ac_prev=prefix ;;
19529     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19530       ;;
19531     *)
19532       case $ac_arg in
19533       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19534       esac
19535       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19536     esac
19537   done
19538
19539   # Always prepend --prefix to ensure using the same prefix
19540   # in subdir configurations.
19541   ac_arg="--prefix=$prefix"
19542   case $ac_arg in
19543   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19544   esac
19545   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19546
19547   ac_popdir=`pwd`
19548   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19549
19550     # Do not complain, so a configure script can configure whichever
19551     # parts of a large source tree are present.
19552     test -d "$srcdir/$ac_dir" || continue
19553
19554     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19555     echo "$as_me:$LINENO: $ac_msg" >&5
19556     echo "$ac_msg" >&6
19557     { as_dir="$ac_dir"
19558   case $as_dir in #(
19559   -*) as_dir=./$as_dir;;
19560   esac
19561   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19562     as_dirs=
19563     while :; do
19564       case $as_dir in #(
19565       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19566       *) as_qdir=$as_dir;;
19567       esac
19568       as_dirs="'$as_qdir' $as_dirs"
19569       as_dir=`$as_dirname -- "$as_dir" ||
19570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19571          X"$as_dir" : 'X\(//\)[^/]' \| \
19572          X"$as_dir" : 'X\(//\)$' \| \
19573          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19574 echo X"$as_dir" |
19575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19576             s//\1/
19577             q
19578           }
19579           /^X\(\/\/\)[^/].*/{
19580             s//\1/
19581             q
19582           }
19583           /^X\(\/\/\)$/{
19584             s//\1/
19585             q
19586           }
19587           /^X\(\/\).*/{
19588             s//\1/
19589             q
19590           }
19591           s/.*/./; q'`
19592       test -d "$as_dir" && break
19593     done
19594     test -z "$as_dirs" || eval "mkdir $as_dirs"
19595   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19596 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19597    { (exit 1); exit 1; }; }; }
19598     ac_builddir=.
19599
19600 case "$ac_dir" in
19601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19602 *)
19603   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19604   # A ".." for each directory in $ac_dir_suffix.
19605   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19606   case $ac_top_builddir_sub in
19607   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19608   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19609   esac ;;
19610 esac
19611 ac_abs_top_builddir=$ac_pwd
19612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19613 # for backward compatibility:
19614 ac_top_builddir=$ac_top_build_prefix
19615
19616 case $srcdir in
19617   .)  # We are building in place.
19618     ac_srcdir=.
19619     ac_top_srcdir=$ac_top_builddir_sub
19620     ac_abs_top_srcdir=$ac_pwd ;;
19621   [\\/]* | ?:[\\/]* )  # Absolute name.
19622     ac_srcdir=$srcdir$ac_dir_suffix;
19623     ac_top_srcdir=$srcdir
19624     ac_abs_top_srcdir=$srcdir ;;
19625   *) # Relative name.
19626     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19627     ac_top_srcdir=$ac_top_build_prefix$srcdir
19628     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19629 esac
19630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19631
19632
19633     cd "$ac_dir"
19634
19635     # Check for guested configure; otherwise get Cygnus style configure.
19636     if test -f "$ac_srcdir/configure.gnu"; then
19637       ac_sub_configure=$ac_srcdir/configure.gnu
19638     elif test -f "$ac_srcdir/configure"; then
19639       ac_sub_configure=$ac_srcdir/configure
19640     elif test -f "$ac_srcdir/configure.in"; then
19641       # This should be Cygnus configure.
19642       ac_sub_configure=$ac_aux_dir/configure
19643     else
19644       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19645 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19646       ac_sub_configure=
19647     fi
19648
19649     # The recursion is here.
19650     if test -n "$ac_sub_configure"; then
19651       # Make the cache file name correct relative to the subdirectory.
19652       case $cache_file in
19653       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19654       *) # Relative name.
19655         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19656       esac
19657
19658       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19659 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19660       # The eval makes quoting arguments work.
19661       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19662            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19663         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19664 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19665    { (exit 1); exit 1; }; }
19666     fi
19667
19668     cd "$ac_popdir"
19669   done
19670 fi
19671