[PM/AA] Remove the UnknownSize static member from AliasAnalysis.
[oota-llvm.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.7.0svn.
4 #
5 # Report bugs to <http://llvm.org/bugs/>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 fi
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 fi
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
253
254 :
255 _ASEOF
256 }; then
257   CONFIG_SHELL=$as_shell
258                as_have_required=yes
259                if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 fi
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
273
274 :
275 (as_func_return () {
276   (exit $1)
277 }
278 as_func_success () {
279   as_func_return 0
280 }
281 as_func_failure () {
282   as_func_return 1
283 }
284 as_func_ret_success () {
285   return 0
286 }
287 as_func_ret_failure () {
288   return 1
289 }
290
291 exitcode=0
292 if as_func_success; then
293   :
294 else
295   exitcode=1
296   echo as_func_success failed.
297 fi
298
299 if as_func_failure; then
300   exitcode=1
301   echo as_func_failure succeeded.
302 fi
303
304 if as_func_ret_success; then
305   :
306 else
307   exitcode=1
308   echo as_func_ret_success failed.
309 fi
310
311 if as_func_ret_failure; then
312   exitcode=1
313   echo as_func_ret_failure succeeded.
314 fi
315
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
317   :
318 else
319   exitcode=1
320   echo positional parameters were not saved.
321 fi
322
323 test $exitcode = 0) || { (exit 1); exit 1; }
324
325 (
326   as_lineno_1=$LINENO
327   as_lineno_2=$LINENO
328   test "x$as_lineno_1" != "x$as_lineno_2" &&
329   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331 _ASEOF
332 }; then
333   break
334 fi
335
336 fi
337
338       done
339
340       if test "x$CONFIG_SHELL" != x; then
341   for as_var in BASH_ENV ENV
342         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343         done
344         export CONFIG_SHELL
345         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346 fi
347
348
349     if test $as_have_required = no; then
350   echo This script requires a shell more modern than all the
351       echo shells that I found on your system.  Please install a
352       echo modern shell, or manually run the script under such a
353       echo shell if you do have one.
354       { (exit 1); exit 1; }
355 fi
356
357
358 fi
359
360 fi
361
362
363
364 (eval "as_func_return () {
365   (exit \$1)
366 }
367 as_func_success () {
368   as_func_return 0
369 }
370 as_func_failure () {
371   as_func_return 1
372 }
373 as_func_ret_success () {
374   return 0
375 }
376 as_func_ret_failure () {
377   return 1
378 }
379
380 exitcode=0
381 if as_func_success; then
382   :
383 else
384   exitcode=1
385   echo as_func_success failed.
386 fi
387
388 if as_func_failure; then
389   exitcode=1
390   echo as_func_failure succeeded.
391 fi
392
393 if as_func_ret_success; then
394   :
395 else
396   exitcode=1
397   echo as_func_ret_success failed.
398 fi
399
400 if as_func_ret_failure; then
401   exitcode=1
402   echo as_func_ret_failure succeeded.
403 fi
404
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406   :
407 else
408   exitcode=1
409   echo positional parameters were not saved.
410 fi
411
412 test \$exitcode = 0") || {
413   echo No shell found that supports shell functions.
414   echo Please tell autoconf@gnu.org about your system,
415   echo including any error possibly output before this
416   echo message
417 }
418
419
420
421   as_lineno_1=$LINENO
422   as_lineno_2=$LINENO
423   test "x$as_lineno_1" != "x$as_lineno_2" &&
424   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425
426   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427   # uniformly replaced by the line number.  The first 'sed' inserts a
428   # line-number line after each line using $LINENO; the second 'sed'
429   # does the real work.  The second script uses 'N' to pair each
430   # line-number line with the line containing $LINENO, and appends
431   # trailing '-' during substitution so that $LINENO is not a special
432   # case at line end.
433   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434   # scripts with optimization help from Paolo Bonzini.  Blame Lee
435   # E. McMahon (1931-1989) for sed's syntax.  :-)
436   sed -n '
437     p
438     /[$]LINENO/=
439   ' <$as_myself |
440     sed '
441       s/[$]LINENO.*/&-/
442       t lineno
443       b
444       :lineno
445       N
446       :loop
447       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
448       t loop
449       s/-\n.*//
450     ' >$as_me.lineno &&
451   chmod +x "$as_me.lineno" ||
452     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453    { (exit 1); exit 1; }; }
454
455   # Don't try to exec as it changes $[0], causing all sort of problems
456   # (the dirname of $[0] is not the place where we might find the
457   # original and so on.  Autoconf is especially sensitive to this).
458   . "./$as_me.lineno"
459   # Exit status is that of the last command.
460   exit
461 }
462
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465   as_dirname=dirname
466 else
467   as_dirname=false
468 fi
469
470 ECHO_C= ECHO_N= ECHO_T=
471 case `echo -n x` in
472 -n*)
473   case `echo 'x\c'` in
474   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
475   *)   ECHO_C='\c';;
476   esac;;
477 *)
478   ECHO_N='-n';;
479 esac
480
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482    test "X`expr 00001 : '.*\(...\)'`" = X001; then
483   as_expr=expr
484 else
485   as_expr=false
486 fi
487
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490   rm -f conf$$.dir/conf$$.file
491 else
492   rm -f conf$$.dir
493   mkdir conf$$.dir
494 fi
495 echo >conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
497   as_ln_s='ln -s'
498   # ... but there are two gotchas:
499   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501   # In both cases, we have to default to `cp -p'.
502   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503     as_ln_s='cp -p'
504 elif ln conf$$.file conf$$ 2>/dev/null; then
505   as_ln_s=ln
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p=:
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
522 #! /bin/sh
523 exit 0
524 _ASEOF
525 chmod +x conf$$.file
526 if test -x conf$$.file >/dev/null 2>&1; then
527   as_executable_p="test -x"
528 else
529   as_executable_p=:
530 fi
531 rm -f conf$$.file
532
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540
541 exec 7<&0 </dev/null 6>&1
542
543 # Name of the host.
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559 SHELL=${CONFIG_SHELL-/bin/sh}
560
561 # Identity of this package.
562 PACKAGE_NAME='LLVM'
563 PACKAGE_TARNAME='llvm'
564 PACKAGE_VERSION='3.7.0svn'
565 PACKAGE_STRING='LLVM 3.7.0svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
567
568 ac_unique_file="lib/IR/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #if HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #if HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #if STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # if HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #if HAVE_STRING_H
587 # if !STDC_HEADERS && HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #if HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #if HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #if HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #if HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='SHELL
606 PATH_SEPARATOR
607 PACKAGE_NAME
608 PACKAGE_TARNAME
609 PACKAGE_VERSION
610 PACKAGE_STRING
611 PACKAGE_BUGREPORT
612 exec_prefix
613 prefix
614 program_transform_name
615 bindir
616 sbindir
617 libexecdir
618 datarootdir
619 datadir
620 sysconfdir
621 sharedstatedir
622 localstatedir
623 includedir
624 oldincludedir
625 docdir
626 infodir
627 htmldir
628 dvidir
629 pdfdir
630 psdir
631 libdir
632 localedir
633 mandir
634 DEFS
635 ECHO_C
636 ECHO_N
637 ECHO_T
638 LIBS
639 build_alias
640 host_alias
641 target_alias
642 LLVM_VERSION_MAJOR
643 LLVM_VERSION_MINOR
644 LLVM_VERSION_PATCH
645 LLVM_VERSION_SUFFIX
646 LLVM_COPYRIGHT
647 CC
648 CFLAGS
649 LDFLAGS
650 CPPFLAGS
651 ac_ct_CC
652 EXEEXT
653 OBJEXT
654 CXX
655 CXXFLAGS
656 ac_ct_CXX
657 CPP
658 subdirs
659 ENABLE_POLLY
660 LLVM_HAS_POLLY
661 build
662 build_cpu
663 build_vendor
664 build_os
665 host
666 host_cpu
667 host_vendor
668 host_os
669 target
670 target_cpu
671 target_vendor
672 target_os
673 OS
674 HOST_OS
675 TARGET_OS
676 LINKALL
677 NOLINKALL
678 LLVM_ON_UNIX
679 LLVM_ON_WIN32
680 ARCH
681 LLVM_NATIVE_ARCH
682 HOST_ARCH
683 LLVM_CROSS_COMPILING
684 BUILD_CC
685 BUILD_EXEEXT
686 BUILD_CXX
687 CVSBUILD
688 ENABLE_LIBCPP
689 ENABLE_CXX1Y
690 ENABLE_SPLIT_DWARF
691 ENABLE_CLANG_ARCMT
692 CLANG_PLUGIN_SUPPORT
693 ENABLE_CLANG_STATIC_ANALYZER
694 ENABLE_OPTIMIZED
695 ENABLE_PROFILING
696 DISABLE_ASSERTIONS
697 ENABLE_WERROR
698 ENABLE_EXPENSIVE_CHECKS
699 EXPENSIVE_CHECKS
700 ENABLE_ABI_BREAKING_CHECKS
701 DEBUG_RUNTIME
702 DEBUG_SYMBOLS
703 KEEP_SYMBOLS
704 JIT
705 TARGET_HAS_JIT
706 TARGETS_WITH_JIT
707 ENABLE_DOCS
708 ENABLE_DOXYGEN
709 enable_searchengine
710 enable_external_search
711 enable_server_based_search
712 searchengine_url
713 extra_search_mappings
714 QHELPGENERATOR
715 llvm_doxygen_generate_qhp
716 llvm_doxygen_qch_filename
717 llvm_doxygen_qhp_namespace
718 llvm_doxygen_qhelpgenerator_path
719 llvm_doxygen_qhp_cust_filter_name
720 llvm_doxygen_qhp_cust_filter_attrs
721 clang_doxygen_generate_qhp
722 clang_doxygen_qch_filename
723 clang_doxygen_qhp_namespace
724 clang_doxygen_qhelpgenerator_path
725 clang_doxygen_qhp_cust_filter_name
726 clang_doxygen_qhp_cust_filter_attrs
727 LLVM_ENABLE_THREADS
728 ENABLE_PTHREADS
729 LLVM_ENABLE_ZLIB
730 ENABLE_PIC
731 ENABLE_SHARED
732 ENABLE_EMBED_STDCXX
733 ENABLE_TIMESTAMPS
734 ALL_TARGETS
735 TARGETS_TO_BUILD
736 LLVM_ENUM_TARGETS
737 LLVM_ENUM_ASM_PRINTERS
738 LLVM_ENUM_ASM_PARSERS
739 LLVM_ENUM_DISASSEMBLERS
740 OPTIMIZE_OPTION
741 EXTRA_OPTIONS
742 EXTRA_LD_OPTIONS
743 CLANG_SRC_ROOT
744 BINUTILS_INCDIR
745 ENABLE_TERMINFO
746 INTERNAL_PREFIX
747 ifGNUmake
748 LN_S
749 NM
750 CMP
751 CP
752 DATE
753 FIND
754 GREP
755 MKDIR
756 MV
757 RANLIB
758 AR
759 RM
760 SED
761 TAR
762 BINPWD
763 DOT
764 INSTALL_PROGRAM
765 INSTALL_SCRIPT
766 INSTALL_DATA
767 BZIP2
768 CAT
769 DOXYGEN
770 GROFF
771 GZIPBIN
772 PDFROFF
773 ZIP
774 GO
775 OCAMLFIND
776 GAS
777 HAVE_LINK_VERSION_SCRIPT
778 EGREP
779 NO_VARIADIC_MACROS
780 NO_MISSING_FIELD_INITIALIZERS
781 COVERED_SWITCH_DEFAULT
782 NO_MAYBE_UNINITIALIZED
783 NO_UNINITIALIZED
784 NO_COMMENT
785 PYTHON
786 HAVE_DLOPEN
787 HAVE_TERMINFO
788 USE_OPROFILE
789 USE_INTEL_JITEVENTS
790 XML2CONFIG
791 LIBXML2_LIBS
792 LIBXML2_INC
793 HAVE_PTHREAD
794 HAVE_LIBZ
795 HUGE_VAL_SANITY
796 MMAP_FILE
797 SHLIBEXT
798 LLVM_PREFIX
799 LLVM_BINDIR
800 LLVM_DATADIR
801 LLVM_DOCSDIR
802 LLVM_ETCDIR
803 LLVM_INCLUDEDIR
804 LLVM_INFODIR
805 LLVM_MANDIR
806 LLVM_CONFIGTIME
807 BINDINGS_TO_BUILD
808 HAVE_OCAMLOPT
809 HAVE_OCAML_OUNIT
810 OCAML_LIBDIR
811 ENABLE_VISIBILITY_INLINES_HIDDEN
812 RPATH
813 RDYNAMIC
814 program_prefix
815 LIBOBJS
816 LTLIBOBJS'
817 ac_subst_files=''
818       ac_precious_vars='build_alias
819 host_alias
820 target_alias
821 CC
822 CFLAGS
823 LDFLAGS
824 CPPFLAGS
825 CXX
826 CXXFLAGS
827 CCC
828 CPP'
829 ac_subdirs_all='projects/test-suite
830 projects/llvm-test
831 projects/poolalloc
832 projects/llvm-poolalloc
833 projects/safecode
834 tools/polly'
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 # The variables have the same names as the options, with
840 # dashes changed to underlines.
841 cache_file=/dev/null
842 exec_prefix=NONE
843 no_create=
844 no_recursion=
845 prefix=NONE
846 program_prefix=NONE
847 program_suffix=NONE
848 program_transform_name=s,x,x,
849 silent=
850 site=
851 srcdir=
852 verbose=
853 x_includes=NONE
854 x_libraries=NONE
855
856 # Installation directory options.
857 # These are left unexpanded so users can "make install exec_prefix=/foo"
858 # and all the variables that are supposed to be based on exec_prefix
859 # by default will actually change.
860 # Use braces instead of parens because sh, perl, etc. also accept them.
861 # (The list follows the same order as the GNU Coding Standards.)
862 bindir='${exec_prefix}/bin'
863 sbindir='${exec_prefix}/sbin'
864 libexecdir='${exec_prefix}/libexec'
865 datarootdir='${prefix}/share'
866 datadir='${datarootdir}'
867 sysconfdir='${prefix}/etc'
868 sharedstatedir='${prefix}/com'
869 localstatedir='${prefix}/var'
870 includedir='${prefix}/include'
871 oldincludedir='/usr/include'
872 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
873 infodir='${datarootdir}/info'
874 htmldir='${docdir}'
875 dvidir='${docdir}'
876 pdfdir='${docdir}'
877 psdir='${docdir}'
878 libdir='${exec_prefix}/lib'
879 localedir='${datarootdir}/locale'
880 mandir='${datarootdir}/man'
881
882 ac_prev=
883 ac_dashdash=
884 for ac_option
885 do
886   # If the previous option needs an argument, assign it.
887   if test -n "$ac_prev"; then
888     eval $ac_prev=\$ac_option
889     ac_prev=
890     continue
891   fi
892
893   case $ac_option in
894   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
895   *)    ac_optarg=yes ;;
896   esac
897
898   # Accept the important Cygnus configure options, so we can diagnose typos.
899
900   case $ac_dashdash$ac_option in
901   --)
902     ac_dashdash=yes ;;
903
904   -bindir | --bindir | --bindi | --bind | --bin | --bi)
905     ac_prev=bindir ;;
906   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907     bindir=$ac_optarg ;;
908
909   -build | --build | --buil | --bui | --bu)
910     ac_prev=build_alias ;;
911   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912     build_alias=$ac_optarg ;;
913
914   -cache-file | --cache-file | --cache-fil | --cache-fi \
915   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916     ac_prev=cache_file ;;
917   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919     cache_file=$ac_optarg ;;
920
921   --config-cache | -C)
922     cache_file=config.cache ;;
923
924   -datadir | --datadir | --datadi | --datad)
925     ac_prev=datadir ;;
926   -datadir=* | --datadir=* | --datadi=* | --datad=*)
927     datadir=$ac_optarg ;;
928
929   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930   | --dataroo | --dataro | --datar)
931     ac_prev=datarootdir ;;
932   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934     datarootdir=$ac_optarg ;;
935
936   -disable-* | --disable-*)
937     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938     # Reject names that are not valid shell variable names.
939     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
940       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
941    { (exit 1); exit 1; }; }
942     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
943     eval enable_$ac_feature=no ;;
944
945   -docdir | --docdir | --docdi | --doc | --do)
946     ac_prev=docdir ;;
947   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
948     docdir=$ac_optarg ;;
949
950   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
951     ac_prev=dvidir ;;
952   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
953     dvidir=$ac_optarg ;;
954
955   -enable-* | --enable-*)
956     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
957     # Reject names that are not valid shell variable names.
958     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960    { (exit 1); exit 1; }; }
961     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962     eval enable_$ac_feature=\$ac_optarg ;;
963
964   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
965   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
966   | --exec | --exe | --ex)
967     ac_prev=exec_prefix ;;
968   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
969   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
970   | --exec=* | --exe=* | --ex=*)
971     exec_prefix=$ac_optarg ;;
972
973   -gas | --gas | --ga | --g)
974     # Obsolete; use --with-gas.
975     with_gas=yes ;;
976
977   -help | --help | --hel | --he | -h)
978     ac_init_help=long ;;
979   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
980     ac_init_help=recursive ;;
981   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
982     ac_init_help=short ;;
983
984   -host | --host | --hos | --ho)
985     ac_prev=host_alias ;;
986   -host=* | --host=* | --hos=* | --ho=*)
987     host_alias=$ac_optarg ;;
988
989   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
990     ac_prev=htmldir ;;
991   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
992   | --ht=*)
993     htmldir=$ac_optarg ;;
994
995   -includedir | --includedir | --includedi | --included | --include \
996   | --includ | --inclu | --incl | --inc)
997     ac_prev=includedir ;;
998   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
999   | --includ=* | --inclu=* | --incl=* | --inc=*)
1000     includedir=$ac_optarg ;;
1001
1002   -infodir | --infodir | --infodi | --infod | --info | --inf)
1003     ac_prev=infodir ;;
1004   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1005     infodir=$ac_optarg ;;
1006
1007   -libdir | --libdir | --libdi | --libd)
1008     ac_prev=libdir ;;
1009   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1010     libdir=$ac_optarg ;;
1011
1012   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1013   | --libexe | --libex | --libe)
1014     ac_prev=libexecdir ;;
1015   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1016   | --libexe=* | --libex=* | --libe=*)
1017     libexecdir=$ac_optarg ;;
1018
1019   -localedir | --localedir | --localedi | --localed | --locale)
1020     ac_prev=localedir ;;
1021   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1022     localedir=$ac_optarg ;;
1023
1024   -localstatedir | --localstatedir | --localstatedi | --localstated \
1025   | --localstate | --localstat | --localsta | --localst | --locals)
1026     ac_prev=localstatedir ;;
1027   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1028   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1029     localstatedir=$ac_optarg ;;
1030
1031   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1032     ac_prev=mandir ;;
1033   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1034     mandir=$ac_optarg ;;
1035
1036   -nfp | --nfp | --nf)
1037     # Obsolete; use --without-fp.
1038     with_fp=no ;;
1039
1040   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1041   | --no-cr | --no-c | -n)
1042     no_create=yes ;;
1043
1044   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046     no_recursion=yes ;;
1047
1048   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1049   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1050   | --oldin | --oldi | --old | --ol | --o)
1051     ac_prev=oldincludedir ;;
1052   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1053   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1054   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1055     oldincludedir=$ac_optarg ;;
1056
1057   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1058     ac_prev=prefix ;;
1059   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1060     prefix=$ac_optarg ;;
1061
1062   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1063   | --program-pre | --program-pr | --program-p)
1064     ac_prev=program_prefix ;;
1065   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1066   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1067     program_prefix=$ac_optarg ;;
1068
1069   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1070   | --program-suf | --program-su | --program-s)
1071     ac_prev=program_suffix ;;
1072   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1073   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1074     program_suffix=$ac_optarg ;;
1075
1076   -program-transform-name | --program-transform-name \
1077   | --program-transform-nam | --program-transform-na \
1078   | --program-transform-n | --program-transform- \
1079   | --program-transform | --program-transfor \
1080   | --program-transfo | --program-transf \
1081   | --program-trans | --program-tran \
1082   | --progr-tra | --program-tr | --program-t)
1083     ac_prev=program_transform_name ;;
1084   -program-transform-name=* | --program-transform-name=* \
1085   | --program-transform-nam=* | --program-transform-na=* \
1086   | --program-transform-n=* | --program-transform-=* \
1087   | --program-transform=* | --program-transfor=* \
1088   | --program-transfo=* | --program-transf=* \
1089   | --program-trans=* | --program-tran=* \
1090   | --progr-tra=* | --program-tr=* | --program-t=*)
1091     program_transform_name=$ac_optarg ;;
1092
1093   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1094     ac_prev=pdfdir ;;
1095   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1096     pdfdir=$ac_optarg ;;
1097
1098   -psdir | --psdir | --psdi | --psd | --ps)
1099     ac_prev=psdir ;;
1100   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1101     psdir=$ac_optarg ;;
1102
1103   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1104   | -silent | --silent | --silen | --sile | --sil)
1105     silent=yes ;;
1106
1107   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108     ac_prev=sbindir ;;
1109   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110   | --sbi=* | --sb=*)
1111     sbindir=$ac_optarg ;;
1112
1113   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115   | --sharedst | --shareds | --shared | --share | --shar \
1116   | --sha | --sh)
1117     ac_prev=sharedstatedir ;;
1118   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121   | --sha=* | --sh=*)
1122     sharedstatedir=$ac_optarg ;;
1123
1124   -site | --site | --sit)
1125     ac_prev=site ;;
1126   -site=* | --site=* | --sit=*)
1127     site=$ac_optarg ;;
1128
1129   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130     ac_prev=srcdir ;;
1131   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132     srcdir=$ac_optarg ;;
1133
1134   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135   | --syscon | --sysco | --sysc | --sys | --sy)
1136     ac_prev=sysconfdir ;;
1137   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139     sysconfdir=$ac_optarg ;;
1140
1141   -target | --target | --targe | --targ | --tar | --ta | --t)
1142     ac_prev=target_alias ;;
1143   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144     target_alias=$ac_optarg ;;
1145
1146   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147     verbose=yes ;;
1148
1149   -version | --version | --versio | --versi | --vers | -V)
1150     ac_init_version=: ;;
1151
1152   -with-* | --with-*)
1153     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1156       { echo "$as_me: error: invalid package name: $ac_package" >&2
1157    { (exit 1); exit 1; }; }
1158     ac_package=`echo $ac_package| sed 's/-/_/g'`
1159     eval with_$ac_package=\$ac_optarg ;;
1160
1161   -without-* | --without-*)
1162     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163     # Reject names that are not valid shell variable names.
1164     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1165       { echo "$as_me: error: invalid package name: $ac_package" >&2
1166    { (exit 1); exit 1; }; }
1167     ac_package=`echo $ac_package | sed 's/-/_/g'`
1168     eval with_$ac_package=no ;;
1169
1170   --x)
1171     # Obsolete; use --with-x.
1172     with_x=yes ;;
1173
1174   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175   | --x-incl | --x-inc | --x-in | --x-i)
1176     ac_prev=x_includes ;;
1177   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179     x_includes=$ac_optarg ;;
1180
1181   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183     ac_prev=x_libraries ;;
1184   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186     x_libraries=$ac_optarg ;;
1187
1188   -*) { echo "$as_me: error: unrecognized option: $ac_option
1189 Try \`$0 --help' for more information." >&2
1190    { (exit 1); exit 1; }; }
1191     ;;
1192
1193   *=*)
1194     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1197       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1198    { (exit 1); exit 1; }; }
1199     eval $ac_envvar=\$ac_optarg
1200     export $ac_envvar ;;
1201
1202   *)
1203     # FIXME: should be removed in autoconf 3.0.
1204     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208     ;;
1209
1210   esac
1211 done
1212
1213 if test -n "$ac_prev"; then
1214   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215   { echo "$as_me: error: missing argument to $ac_option" >&2
1216    { (exit 1); exit 1; }; }
1217 fi
1218
1219 # Be sure to have absolute directory names.
1220 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1221                 datadir sysconfdir sharedstatedir localstatedir includedir \
1222                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1223                 libdir localedir mandir
1224 do
1225   eval ac_val=\$$ac_var
1226   case $ac_val in
1227     [\\/$]* | ?:[\\/]* )  continue;;
1228     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229   esac
1230   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1231    { (exit 1); exit 1; }; }
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243   if test "x$build_alias" = x; then
1244     cross_compiling=maybe
1245     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1246     If a cross compiler is detected then cross compile mode will be used." >&2
1247   elif test "x$build_alias" != "x$host_alias"; then
1248     cross_compiling=yes
1249   fi
1250 fi
1251
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255 test "$silent" = yes && exec 6>/dev/null
1256
1257
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261   { echo "$as_me: error: Working directory cannot be determined" >&2
1262    { (exit 1); exit 1; }; }
1263 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1264   { echo "$as_me: error: pwd does not report name of working directory" >&2
1265    { (exit 1); exit 1; }; }
1266
1267
1268 # Find the source files, if location was not specified.
1269 if test -z "$srcdir"; then
1270   ac_srcdir_defaulted=yes
1271   # Try the directory containing this script, then the parent directory.
1272   ac_confdir=`$as_dirname -- "$0" ||
1273 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1274          X"$0" : 'X\(//\)[^/]' \| \
1275          X"$0" : 'X\(//\)$' \| \
1276          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1277 echo X"$0" |
1278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279             s//\1/
1280             q
1281           }
1282           /^X\(\/\/\)[^/].*/{
1283             s//\1/
1284             q
1285           }
1286           /^X\(\/\/\)$/{
1287             s//\1/
1288             q
1289           }
1290           /^X\(\/\).*/{
1291             s//\1/
1292             q
1293           }
1294           s/.*/./; q'`
1295   srcdir=$ac_confdir
1296   if test ! -r "$srcdir/$ac_unique_file"; then
1297     srcdir=..
1298   fi
1299 else
1300   ac_srcdir_defaulted=no
1301 fi
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1304   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1305    { (exit 1); exit 1; }; }
1306 fi
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 ac_abs_confdir=`(
1309         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1310    { (exit 1); exit 1; }; }
1311         pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314   srcdir=.
1315 fi
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_env_${ac_var}_value=\$${ac_var}
1325   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1328
1329 #
1330 # Report the --help message.
1331 #
1332 if test "$ac_init_help" = "long"; then
1333   # Omit some internal or obsolete options to make the list less imposing.
1334   # This message is too long to be a string in the A/UX 3.1 sh.
1335   cat <<_ACEOF
1336 \`configure' configures LLVM 3.7.0svn to adapt to many kinds of systems.
1337
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343 Defaults for the options are specified in brackets.
1344
1345 Configuration:
1346   -h, --help              display this help and exit
1347       --help=short        display options specific to this package
1348       --help=recursive    display the short help of all the included packages
1349   -V, --version           display version information and exit
1350   -q, --quiet, --silent   do not print \`checking...' messages
1351       --cache-file=FILE   cache test results in FILE [disabled]
1352   -C, --config-cache      alias for \`--cache-file=config.cache'
1353   -n, --no-create         do not create output files
1354       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356 Installation directories:
1357   --prefix=PREFIX         install architecture-independent files in PREFIX
1358                           [$ac_default_prefix]
1359   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360                           [PREFIX]
1361
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1366
1367 For better control, use the options below.
1368
1369 Fine tuning of the installation directories:
1370   --bindir=DIR           user executables [EPREFIX/bin]
1371   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1372   --libexecdir=DIR       program executables [EPREFIX/libexec]
1373   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1374   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1375   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1376   --libdir=DIR           object code libraries [EPREFIX/lib]
1377   --includedir=DIR       C header files [PREFIX/include]
1378   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1379   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1380   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1381   --infodir=DIR          info documentation [DATAROOTDIR/info]
1382   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1383   --mandir=DIR           man documentation [DATAROOTDIR/man]
1384   --docdir=DIR           documentation root [DATAROOTDIR/doc/llvm]
1385   --htmldir=DIR          html documentation [DOCDIR]
1386   --dvidir=DIR           dvi documentation [DOCDIR]
1387   --pdfdir=DIR           pdf documentation [DOCDIR]
1388   --psdir=DIR            ps documentation [DOCDIR]
1389 _ACEOF
1390
1391   cat <<\_ACEOF
1392
1393 System types:
1394   --build=BUILD     configure for building on BUILD [guessed]
1395   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1396   --target=TARGET   configure for building compilers for TARGET [HOST]
1397 _ACEOF
1398 fi
1399
1400 if test -n "$ac_init_help"; then
1401   case $ac_init_help in
1402      short | recursive ) echo "Configuration of LLVM 3.7.0svn:";;
1403    esac
1404   cat <<\_ACEOF
1405
1406 Optional Features:
1407   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1408   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1409   --enable-polly          Use polly if available (default is YES)
1410   --enable-libcpp         Use libc++ if available (default is NO)
1411   --enable-compiler-version-checks
1412                           Check the version of the host compiler (default is
1413                           YES)
1414   --enable-cxx1y          Use c++1y if available (default is NO)
1415   --enable-split-dwarf    Use split-dwarf if available (default is NO)
1416   --enable-clang-arcmt    Enable building of clang ARCMT (default is YES)
1417   --enable-clang-plugin-support
1418                           Enable plugin support in clang (default is YES)
1419   --enable-clang-static-analyzer
1420                           Enable building of clang Static Analyzer (default is
1421                           YES)
1422   --enable-optimized      Compile with optimizations enabled (default is NO)
1423   --enable-profiling      Compile with profiling enabled (default is NO)
1424   --enable-assertions     Compile with assertion checks enabled (default is
1425                           YES)
1426   --enable-werror         Compile with -Werror enabled (default is NO)
1427   --enable-expensive-checks
1428                           Compile with expensive debug checks enabled (default
1429                           is NO)
1430   --enable-abi-breaking-checks
1431                           Compile with abi-breaking asserts support (default
1432                           is with-asserts)
1433   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1434                           NO)
1435   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1436                           optimization is on and YES if it's off)
1437   --enable-keep-symbols   Do not strip installed executables)
1438   --enable-jit            Enable Just In Time Compiling (default is YES)
1439   --enable-docs           Build documents (default is YES)
1440   --enable-doxygen        Build doxygen documentation (default is NO)
1441   --enable-doxygen-search Enable doxygen search support (default is NO)
1442   --enable-doxygen-external-search
1443                           Enable doxygen exteranl search (default is NO)
1444   --enable-doxygen-qt-help
1445                           Build Qt help files (default is NO)
1446   --enable-threads        Use threads if available (default is YES)
1447   --enable-pthreads       Use pthreads if available (default is YES)
1448   --enable-zlib           Use zlib for compression/decompression if available
1449                           (default is YES)
1450   --enable-pic            Build LLVM with Position Independent Code (default
1451                           is YES)
1452   --enable-shared         Build a shared library and link tools against it
1453                           (default is NO)
1454   --enable-embed-stdcxx   Build a shared library with embedded libstdc++ for
1455                           Win32 DLL (default is NO)
1456   --enable-timestamps     Enable embedding timestamp information in build
1457                           (default is YES)
1458   --enable-backtraces     Enable embedding backtraces on crash (default is
1459                           YES)
1460   --enable-crash-overrides
1461                           Enable crash handling overrides (default is YES)
1462   --enable-targets        Build specific host targets: all or
1463                           target1,target2,... Valid targets are: host, x86,
1464                           x86_64, sparc, powerpc, arm64, arm, aarch64, mips,
1465                           hexagon, xcore, msp430, nvptx, systemz, r600, bpf,
1466                           and cpp (default=all)
1467   --enable-experimental-targets
1468                           Build experimental host targets: disable or
1469                           target1,target2,... (default=disable)
1470   --enable-bindings       Build specific language bindings:
1471                           all,auto,none,{binding-name} (default=auto)
1472   --enable-terminfo       Query the terminfo database if available (default is
1473                           YES)
1474   --enable-libedit        Use libedit if available (default is YES)
1475   --enable-libffi         Check for the presence of libffi (default is NO)
1476
1477 Optional Packages:
1478   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480   --with-doxygen-search-engine-url
1481                           Specify the external search engine for doxygen
1482   --with-doxygen-search-mappings
1483                           Specify the extra search mapping for doxygen
1484   --with-optimize-option  Select the compiler options to use for optimized
1485                           builds
1486   --with-extra-options    Specify additional options to compile LLVM with
1487   --with-extra-ld-options Specify additional options to link LLVM with
1488   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1489                           is stdlib)
1490   --with-clang-srcdir     Directory to the out-of-tree Clang source
1491   --with-clang-resource-dir
1492                           Relative directory from the Clang binary for
1493                           resource files
1494   --with-c-include-dirs   Colon separated list of directories clang will
1495                           search for headers
1496   --with-gcc-toolchain    Directory where gcc is installed.
1497   --with-default-sysroot  Add --sysroot=<path> to all compiler invocations.
1498   --with-clang-default-openmp-runtime
1499                           The default OpenMP runtime for Clang.
1500   --with-binutils-include Specify path to binutils/include/ containing
1501                           plugin-api.h file for gold plugin.
1502   --with-bug-report-url   Specify the URL where bug reports should be
1503                           submitted (default=http://llvm.org/bugs/)
1504   --with-internal-prefix  Installation directory for internal files
1505   --with-python           path to python
1506   --with-oprofile=<prefix>
1507                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1508   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1509
1510
1511 Some influential environment variables:
1512   CC          C compiler command
1513   CFLAGS      C compiler flags
1514   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1515               nonstandard directory <lib dir>
1516   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1517               you have headers in a nonstandard directory <include dir>
1518   CXX         C++ compiler command
1519   CXXFLAGS    C++ compiler flags
1520   CPP         C preprocessor
1521
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524
1525 Report bugs to <http://llvm.org/bugs/>.
1526 _ACEOF
1527 ac_status=$?
1528 fi
1529
1530 if test "$ac_init_help" = "recursive"; then
1531   # If there are subdirs, report their specific --help.
1532   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1533     test -d "$ac_dir" || continue
1534     ac_builddir=.
1535
1536 case "$ac_dir" in
1537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538 *)
1539   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1540   # A ".." for each directory in $ac_dir_suffix.
1541   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1542   case $ac_top_builddir_sub in
1543   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545   esac ;;
1546 esac
1547 ac_abs_top_builddir=$ac_pwd
1548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1549 # for backward compatibility:
1550 ac_top_builddir=$ac_top_build_prefix
1551
1552 case $srcdir in
1553   .)  # We are building in place.
1554     ac_srcdir=.
1555     ac_top_srcdir=$ac_top_builddir_sub
1556     ac_abs_top_srcdir=$ac_pwd ;;
1557   [\\/]* | ?:[\\/]* )  # Absolute name.
1558     ac_srcdir=$srcdir$ac_dir_suffix;
1559     ac_top_srcdir=$srcdir
1560     ac_abs_top_srcdir=$srcdir ;;
1561   *) # Relative name.
1562     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1563     ac_top_srcdir=$ac_top_build_prefix$srcdir
1564     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1565 esac
1566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1567
1568     cd "$ac_dir" || { ac_status=$?; continue; }
1569     # Check for guested configure.
1570     if test -f "$ac_srcdir/configure.gnu"; then
1571       echo &&
1572       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1573     elif test -f "$ac_srcdir/configure"; then
1574       echo &&
1575       $SHELL "$ac_srcdir/configure" --help=recursive
1576     else
1577       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1578     fi || ac_status=$?
1579     cd "$ac_pwd" || { ac_status=$?; break; }
1580   done
1581 fi
1582
1583 test -n "$ac_init_help" && exit $ac_status
1584 if $ac_init_version; then
1585   cat <<\_ACEOF
1586 LLVM configure 3.7.0svn
1587 generated by GNU Autoconf 2.60
1588
1589 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1590 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1591 This configure script is free software; the Free Software Foundation
1592 gives unlimited permission to copy, distribute and modify it.
1593
1594 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1595 _ACEOF
1596   exit
1597 fi
1598 cat >config.log <<_ACEOF
1599 This file contains any messages produced by compilers while
1600 running configure, to aid debugging if configure makes a mistake.
1601
1602 It was created by LLVM $as_me 3.7.0svn, which was
1603 generated by GNU Autoconf 2.60.  Invocation command line was
1604
1605   $ $0 $@
1606
1607 _ACEOF
1608 exec 5>>config.log
1609 {
1610 cat <<_ASUNAME
1611 ## --------- ##
1612 ## Platform. ##
1613 ## --------- ##
1614
1615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1620
1621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1623
1624 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1625 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1628 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1629 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1630 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1631
1632 _ASUNAME
1633
1634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635 for as_dir in $PATH
1636 do
1637   IFS=$as_save_IFS
1638   test -z "$as_dir" && as_dir=.
1639   echo "PATH: $as_dir"
1640 done
1641 IFS=$as_save_IFS
1642
1643 } >&5
1644
1645 cat >&5 <<_ACEOF
1646
1647
1648 ## ----------- ##
1649 ## Core tests. ##
1650 ## ----------- ##
1651
1652 _ACEOF
1653
1654
1655 # Keep a trace of the command line.
1656 # Strip out --no-create and --no-recursion so they do not pile up.
1657 # Strip out --silent because we don't want to record it for future runs.
1658 # Also quote any args containing shell meta-characters.
1659 # Make two passes to allow for proper duplicate-argument suppression.
1660 ac_configure_args=
1661 ac_configure_args0=
1662 ac_configure_args1=
1663 ac_must_keep_next=false
1664 for ac_pass in 1 2
1665 do
1666   for ac_arg
1667   do
1668     case $ac_arg in
1669     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671     | -silent | --silent | --silen | --sile | --sil)
1672       continue ;;
1673     *\'*)
1674       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675     esac
1676     case $ac_pass in
1677     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1678     2)
1679       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680       if test $ac_must_keep_next = true; then
1681         ac_must_keep_next=false # Got value, back to normal.
1682       else
1683         case $ac_arg in
1684           *=* | --config-cache | -C | -disable-* | --disable-* \
1685           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687           | -with-* | --with-* | -without-* | --without-* | --x)
1688             case "$ac_configure_args0 " in
1689               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690             esac
1691             ;;
1692           -* ) ac_must_keep_next=true ;;
1693         esac
1694       fi
1695       ac_configure_args="$ac_configure_args '$ac_arg'"
1696       ;;
1697     esac
1698   done
1699 done
1700 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1702
1703 # When interrupted or exit'd, cleanup temporary files, and complete
1704 # config.log.  We remove comments because anyway the quotes in there
1705 # would cause problems or look ugly.
1706 # WARNING: Use '\'' to represent an apostrophe within the trap.
1707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708 trap 'exit_status=$?
1709   # Save into config.log some information that might help in debugging.
1710   {
1711     echo
1712
1713     cat <<\_ASBOX
1714 ## ---------------- ##
1715 ## Cache variables. ##
1716 ## ---------------- ##
1717 _ASBOX
1718     echo
1719     # The following way of writing the cache mishandles newlines in values,
1720 (
1721   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722     eval ac_val=\$$ac_var
1723     case $ac_val in #(
1724     *${as_nl}*)
1725       case $ac_var in #(
1726       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728       esac
1729       case $ac_var in #(
1730       _ | IFS | as_nl) ;; #(
1731       *) $as_unset $ac_var ;;
1732       esac ;;
1733     esac
1734   done
1735   (set) 2>&1 |
1736     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737     *${as_nl}ac_space=\ *)
1738       sed -n \
1739         "s/'\''/'\''\\\\'\'''\''/g;
1740           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741       ;; #(
1742     *)
1743       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1744       ;;
1745     esac |
1746     sort
1747 )
1748     echo
1749
1750     cat <<\_ASBOX
1751 ## ----------------- ##
1752 ## Output variables. ##
1753 ## ----------------- ##
1754 _ASBOX
1755     echo
1756     for ac_var in $ac_subst_vars
1757     do
1758       eval ac_val=\$$ac_var
1759       case $ac_val in
1760       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761       esac
1762       echo "$ac_var='\''$ac_val'\''"
1763     done | sort
1764     echo
1765
1766     if test -n "$ac_subst_files"; then
1767       cat <<\_ASBOX
1768 ## ------------------- ##
1769 ## File substitutions. ##
1770 ## ------------------- ##
1771 _ASBOX
1772       echo
1773       for ac_var in $ac_subst_files
1774       do
1775         eval ac_val=\$$ac_var
1776         case $ac_val in
1777         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778         esac
1779         echo "$ac_var='\''$ac_val'\''"
1780       done | sort
1781       echo
1782     fi
1783
1784     if test -s confdefs.h; then
1785       cat <<\_ASBOX
1786 ## ----------- ##
1787 ## confdefs.h. ##
1788 ## ----------- ##
1789 _ASBOX
1790       echo
1791       cat confdefs.h
1792       echo
1793     fi
1794     test "$ac_signal" != 0 &&
1795       echo "$as_me: caught signal $ac_signal"
1796     echo "$as_me: exit $exit_status"
1797   } >&5
1798   rm -f core *.core core.conftest.* &&
1799     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800     exit $exit_status
1801 ' 0
1802 for ac_signal in 1 2 13 15; do
1803   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1804 done
1805 ac_signal=0
1806
1807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1808 rm -f -r conftest* confdefs.h
1809
1810 # Predefined preprocessor variables.
1811
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_NAME "$PACKAGE_NAME"
1814 _ACEOF
1815
1816
1817 cat >>confdefs.h <<_ACEOF
1818 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1819 _ACEOF
1820
1821
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1824 _ACEOF
1825
1826
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_STRING "$PACKAGE_STRING"
1829 _ACEOF
1830
1831
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1834 _ACEOF
1835
1836
1837 # Let the site file select an alternate cache file if it wants to.
1838 # Prefer explicitly selected file to automatically selected ones.
1839 if test -n "$CONFIG_SITE"; then
1840   set x "$CONFIG_SITE"
1841 elif test "x$prefix" != xNONE; then
1842   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1843 else
1844   set x "$ac_default_prefix/share/config.site" \
1845         "$ac_default_prefix/etc/config.site"
1846 fi
1847 shift
1848 for ac_site_file
1849 do
1850   if test -r "$ac_site_file"; then
1851     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852 echo "$as_me: loading site script $ac_site_file" >&6;}
1853     sed 's/^/| /' "$ac_site_file" >&5
1854     . "$ac_site_file"
1855   fi
1856 done
1857
1858 if test -r "$cache_file"; then
1859   # Some versions of bash will fail to source /dev/null (special
1860   # files actually), so we avoid doing that.
1861   if test -f "$cache_file"; then
1862     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863 echo "$as_me: loading cache $cache_file" >&6;}
1864     case $cache_file in
1865       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866       *)                      . "./$cache_file";;
1867     esac
1868   fi
1869 else
1870   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871 echo "$as_me: creating cache $cache_file" >&6;}
1872   >$cache_file
1873 fi
1874
1875 # Check that the precious variables saved in the cache have kept the same
1876 # value.
1877 ac_cache_corrupted=false
1878 for ac_var in $ac_precious_vars; do
1879   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880   eval ac_new_set=\$ac_env_${ac_var}_set
1881   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882   eval ac_new_val=\$ac_env_${ac_var}_value
1883   case $ac_old_set,$ac_new_set in
1884     set,)
1885       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887       ac_cache_corrupted=: ;;
1888     ,set)
1889       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891       ac_cache_corrupted=: ;;
1892     ,);;
1893     *)
1894       if test "x$ac_old_val" != "x$ac_new_val"; then
1895         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1898 echo "$as_me:   former value:  $ac_old_val" >&2;}
1899         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1900 echo "$as_me:   current value: $ac_new_val" >&2;}
1901         ac_cache_corrupted=:
1902       fi;;
1903   esac
1904   # Pass precious variables to config.status.
1905   if test "$ac_new_set" = set; then
1906     case $ac_new_val in
1907     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908     *) ac_arg=$ac_var=$ac_new_val ;;
1909     esac
1910     case " $ac_configure_args " in
1911       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1912       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1913     esac
1914   fi
1915 done
1916 if $ac_cache_corrupted; then
1917   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921    { (exit 1); exit 1; }; }
1922 fi
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948 ac_ext=c
1949 ac_cpp='$CPP $CPPFLAGS'
1950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953
1954
1955
1956 LLVM_VERSION_MAJOR=3
1957 LLVM_VERSION_MINOR=7
1958 LLVM_VERSION_PATCH=0
1959 LLVM_VERSION_SUFFIX=svn
1960
1961
1962 cat >>confdefs.h <<_ACEOF
1963 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1964 _ACEOF
1965
1966
1967 cat >>confdefs.h <<_ACEOF
1968 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1969 _ACEOF
1970
1971
1972 cat >>confdefs.h <<_ACEOF
1973 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1974 _ACEOF
1975
1976
1977 cat >>confdefs.h <<_ACEOF
1978 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1979 _ACEOF
1980
1981
1982
1983
1984
1985
1986
1987 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1988
1989
1990
1991
1992
1993
1994
1995 ac_aux_dir=
1996 for ac_dir in autoconf "$srcdir"/autoconf; do
1997   if test -f "$ac_dir/install-sh"; then
1998     ac_aux_dir=$ac_dir
1999     ac_install_sh="$ac_aux_dir/install-sh -c"
2000     break
2001   elif test -f "$ac_dir/install.sh"; then
2002     ac_aux_dir=$ac_dir
2003     ac_install_sh="$ac_aux_dir/install.sh -c"
2004     break
2005   elif test -f "$ac_dir/shtool"; then
2006     ac_aux_dir=$ac_dir
2007     ac_install_sh="$ac_aux_dir/shtool install -c"
2008     break
2009   fi
2010 done
2011 if test -z "$ac_aux_dir"; then
2012   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2013 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2014    { (exit 1); exit 1; }; }
2015 fi
2016
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2024
2025
2026
2027 if test ${srcdir} != "." ; then
2028   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2029     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2030 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2031    { (exit 1); exit 1; }; }
2032   fi
2033 fi
2034
2035 if test ${srcdir} == "." ; then
2036   { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2037 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2038   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2039 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2040   { echo "$as_me:$LINENO: WARNING: *                                   WARNING                                          *" >&5
2041 echo "$as_me: WARNING: *                                   WARNING                                          *" >&2;}
2042   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2043 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2044   { echo "$as_me:$LINENO: WARNING: *                        In-source builds are deprecated.                            *" >&5
2045 echo "$as_me: WARNING: *                        In-source builds are deprecated.                            *" >&2;}
2046   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2047 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2048   { echo "$as_me:$LINENO: WARNING: *               Please configure from a separate build directory!                    *" >&5
2049 echo "$as_me: WARNING: *               Please configure from a separate build directory!                    *" >&2;}
2050   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2051 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2052   { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2053 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2054 fi
2055
2056 : ${CFLAGS=}
2057 : ${CXXFLAGS=}
2058
2059 ac_ext=c
2060 ac_cpp='$CPP $CPPFLAGS'
2061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2064 if test -n "$ac_tool_prefix"; then
2065   for ac_prog in clang gcc
2066   do
2067     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test -n "$CC"; then
2075   ac_cv_prog_CC="$CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   for ac_exec_ext in '' $ac_executable_extensions; do
2083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2084     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086     break 2
2087   fi
2088 done
2089 done
2090 IFS=$as_save_IFS
2091
2092 fi
2093 fi
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096   { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2098 else
2099   { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2101 fi
2102
2103
2104     test -n "$CC" && break
2105   done
2106 fi
2107 if test -z "$CC"; then
2108   ac_ct_CC=$CC
2109   for ac_prog in clang gcc
2110 do
2111   # Extract the first word of "$ac_prog", so it can be a program name with args.
2112 set dummy $ac_prog; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   if test -n "$ac_ct_CC"; then
2119   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126   for ac_exec_ext in '' $ac_executable_extensions; do
2127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2128     ac_cv_prog_ac_ct_CC="$ac_prog"
2129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130     break 2
2131   fi
2132 done
2133 done
2134 IFS=$as_save_IFS
2135
2136 fi
2137 fi
2138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2139 if test -n "$ac_ct_CC"; then
2140   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2141 echo "${ECHO_T}$ac_ct_CC" >&6; }
2142 else
2143   { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2145 fi
2146
2147
2148   test -n "$ac_ct_CC" && break
2149 done
2150
2151   if test "x$ac_ct_CC" = x; then
2152     CC=""
2153   else
2154     case $cross_compiling:$ac_tool_warned in
2155 yes:)
2156 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2157 whose name does not start with the host triplet.  If you think this
2158 configuration is useful to you, please write to autoconf@gnu.org." >&5
2159 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2160 whose name does not start with the host triplet.  If you think this
2161 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2162 ac_tool_warned=yes ;;
2163 esac
2164     CC=$ac_ct_CC
2165   fi
2166 fi
2167
2168
2169 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: no acceptable C compiler found in \$PATH
2172 See \`config.log' for more details." >&2;}
2173    { (exit 1); exit 1; }; }
2174
2175 # Provide some information about the compiler.
2176 echo "$as_me:$LINENO: checking for C compiler version" >&5
2177 ac_compiler=`set X $ac_compile; echo $2`
2178 { (ac_try="$ac_compiler --version >&5"
2179 case "(($ac_try" in
2180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181   *) ac_try_echo=$ac_try;;
2182 esac
2183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2184   (eval "$ac_compiler --version >&5") 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }
2188 { (ac_try="$ac_compiler -v >&5"
2189 case "(($ac_try" in
2190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191   *) ac_try_echo=$ac_try;;
2192 esac
2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2194   (eval "$ac_compiler -v >&5") 2>&5
2195   ac_status=$?
2196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197   (exit $ac_status); }
2198 { (ac_try="$ac_compiler -V >&5"
2199 case "(($ac_try" in
2200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201   *) ac_try_echo=$ac_try;;
2202 esac
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204   (eval "$ac_compiler -V >&5") 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }
2208
2209 cat >conftest.$ac_ext <<_ACEOF
2210 /* confdefs.h.  */
2211 _ACEOF
2212 cat confdefs.h >>conftest.$ac_ext
2213 cat >>conftest.$ac_ext <<_ACEOF
2214 /* end confdefs.h.  */
2215
2216 int
2217 main ()
2218 {
2219
2220   ;
2221   return 0;
2222 }
2223 _ACEOF
2224 ac_clean_files_save=$ac_clean_files
2225 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2226 # Try to create an executable without -o first, disregard a.out.
2227 # It will help us diagnose broken compilers, and finding out an intuition
2228 # of exeext.
2229 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2230 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2231 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2232 #
2233 # List of possible output files, starting from the most likely.
2234 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2235 # only as a last resort.  b.out is created by i960 compilers.
2236 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2237 #
2238 # The IRIX 6 linker writes into existing files which may not be
2239 # executable, retaining their permissions.  Remove them first so a
2240 # subsequent execution test works.
2241 ac_rmfiles=
2242 for ac_file in $ac_files
2243 do
2244   case $ac_file in
2245     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2246     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2247   esac
2248 done
2249 rm -f $ac_rmfiles
2250
2251 if { (ac_try="$ac_link_default"
2252 case "(($ac_try" in
2253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254   *) ac_try_echo=$ac_try;;
2255 esac
2256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257   (eval "$ac_link_default") 2>&5
2258   ac_status=$?
2259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260   (exit $ac_status); }; then
2261   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2262 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2263 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2264 # so that the user can short-circuit this test for compilers unknown to
2265 # Autoconf.
2266 for ac_file in $ac_files
2267 do
2268   test -f "$ac_file" || continue
2269   case $ac_file in
2270     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2271         ;;
2272     [ab].out )
2273         # We found the default executable, but exeext='' is most
2274         # certainly right.
2275         break;;
2276     *.* )
2277         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2278         then :; else
2279            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280         fi
2281         # We set ac_cv_exeext here because the later test for it is not
2282         # safe: cross compilers may not add the suffix if given an `-o'
2283         # argument, so we may need to know it at that point already.
2284         # Even if this section looks crufty: it has the advantage of
2285         # actually working.
2286         break;;
2287     * )
2288         break;;
2289   esac
2290 done
2291 test "$ac_cv_exeext" = no && ac_cv_exeext=
2292
2293 else
2294   echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2298 See \`config.log' for more details." >&5
2299 echo "$as_me: error: C compiler cannot create executables
2300 See \`config.log' for more details." >&2;}
2301    { (exit 77); exit 77; }; }
2302 fi
2303
2304 ac_exeext=$ac_cv_exeext
2305 { echo "$as_me:$LINENO: result: $ac_file" >&5
2306 echo "${ECHO_T}$ac_file" >&6; }
2307
2308 # Check that the compiler produces executables we can run.  If not, either
2309 # the compiler is broken, or we cross compile.
2310 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2311 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2312 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2313 # If not cross compiling, check that we can run a simple program.
2314 if test "$cross_compiling" != yes; then
2315   if { ac_try='./$ac_file'
2316   { (case "(($ac_try" in
2317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318   *) ac_try_echo=$ac_try;;
2319 esac
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321   (eval "$ac_try") 2>&5
2322   ac_status=$?
2323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324   (exit $ac_status); }; }; then
2325     cross_compiling=no
2326   else
2327     if test "$cross_compiling" = maybe; then
2328         cross_compiling=yes
2329     else
2330         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2331 If you meant to cross compile, use \`--host'.
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: cannot run C compiled programs.
2334 If you meant to cross compile, use \`--host'.
2335 See \`config.log' for more details." >&2;}
2336    { (exit 1); exit 1; }; }
2337     fi
2338   fi
2339 fi
2340 { echo "$as_me:$LINENO: result: yes" >&5
2341 echo "${ECHO_T}yes" >&6; }
2342
2343 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2344 ac_clean_files=$ac_clean_files_save
2345 # Check that the compiler produces executables we can run.  If not, either
2346 # the compiler is broken, or we cross compile.
2347 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2348 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2349 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2350 echo "${ECHO_T}$cross_compiling" >&6; }
2351
2352 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2353 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2354 if { (ac_try="$ac_link"
2355 case "(($ac_try" in
2356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357   *) ac_try_echo=$ac_try;;
2358 esac
2359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360   (eval "$ac_link") 2>&5
2361   ac_status=$?
2362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363   (exit $ac_status); }; then
2364   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2365 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2366 # work properly (i.e., refer to `conftest.exe'), while it won't with
2367 # `rm'.
2368 for ac_file in conftest.exe conftest conftest.*; do
2369   test -f "$ac_file" || continue
2370   case $ac_file in
2371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2372     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2373           break;;
2374     * ) break;;
2375   esac
2376 done
2377 else
2378   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382    { (exit 1); exit 1; }; }
2383 fi
2384
2385 rm -f conftest$ac_cv_exeext
2386 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2388
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2391 ac_exeext=$EXEEXT
2392 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2394 if test "${ac_cv_objext+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403
2404 int
2405 main ()
2406 {
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.o conftest.obj
2413 if { (ac_try="$ac_compile"
2414 case "(($ac_try" in
2415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416   *) ac_try_echo=$ac_try;;
2417 esac
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419   (eval "$ac_compile") 2>&5
2420   ac_status=$?
2421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422   (exit $ac_status); }; then
2423   for ac_file in conftest.o conftest.obj conftest.*; do
2424   test -f "$ac_file" || continue;
2425   case $ac_file in
2426     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2427     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2428        break;;
2429   esac
2430 done
2431 else
2432   echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2438 See \`config.log' for more details." >&2;}
2439    { (exit 1); exit 1; }; }
2440 fi
2441
2442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2443 fi
2444 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2445 echo "${ECHO_T}$ac_cv_objext" >&6; }
2446 OBJEXT=$ac_cv_objext
2447 ac_objext=$OBJEXT
2448 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2449 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2450 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h.  */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459
2460 int
2461 main ()
2462 {
2463 #ifndef __GNUC__
2464        choke me
2465 #endif
2466
2467   ;
2468   return 0;
2469 }
2470 _ACEOF
2471 rm -f conftest.$ac_objext
2472 if { (ac_try="$ac_compile"
2473 case "(($ac_try" in
2474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475   *) ac_try_echo=$ac_try;;
2476 esac
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478   (eval "$ac_compile") 2>conftest.er1
2479   ac_status=$?
2480   grep -v '^ *+' conftest.er1 >conftest.err
2481   rm -f conftest.er1
2482   cat conftest.err >&5
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); } &&
2485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2486   { (case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491   (eval "$ac_try") 2>&5
2492   ac_status=$?
2493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494   (exit $ac_status); }; } &&
2495          { ac_try='test -s conftest.$ac_objext'
2496   { (case "(($ac_try" in
2497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498   *) ac_try_echo=$ac_try;;
2499 esac
2500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2501   (eval "$ac_try") 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }; }; then
2505   ac_compiler_gnu=yes
2506 else
2507   echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2509
2510         ac_compiler_gnu=no
2511 fi
2512
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2515
2516 fi
2517 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2519 GCC=`test $ac_compiler_gnu = yes && echo yes`
2520 ac_test_CFLAGS=${CFLAGS+set}
2521 ac_save_CFLAGS=$CFLAGS
2522 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2523 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2524 if test "${ac_cv_prog_cc_g+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   ac_save_c_werror_flag=$ac_c_werror_flag
2528    ac_c_werror_flag=yes
2529    ac_cv_prog_cc_g=no
2530    CFLAGS="-g"
2531    cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h.  */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h.  */
2537
2538 int
2539 main ()
2540 {
2541
2542   ;
2543   return 0;
2544 }
2545 _ACEOF
2546 rm -f conftest.$ac_objext
2547 if { (ac_try="$ac_compile"
2548 case "(($ac_try" in
2549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550   *) ac_try_echo=$ac_try;;
2551 esac
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553   (eval "$ac_compile") 2>conftest.er1
2554   ac_status=$?
2555   grep -v '^ *+' conftest.er1 >conftest.err
2556   rm -f conftest.er1
2557   cat conftest.err >&5
2558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559   (exit $ac_status); } &&
2560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2561   { (case "(($ac_try" in
2562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563   *) ac_try_echo=$ac_try;;
2564 esac
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566   (eval "$ac_try") 2>&5
2567   ac_status=$?
2568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569   (exit $ac_status); }; } &&
2570          { ac_try='test -s conftest.$ac_objext'
2571   { (case "(($ac_try" in
2572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573   *) ac_try_echo=$ac_try;;
2574 esac
2575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576   (eval "$ac_try") 2>&5
2577   ac_status=$?
2578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579   (exit $ac_status); }; }; then
2580   ac_cv_prog_cc_g=yes
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585         CFLAGS=""
2586       cat >conftest.$ac_ext <<_ACEOF
2587 /* confdefs.h.  */
2588 _ACEOF
2589 cat confdefs.h >>conftest.$ac_ext
2590 cat >>conftest.$ac_ext <<_ACEOF
2591 /* end confdefs.h.  */
2592
2593 int
2594 main ()
2595 {
2596
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 rm -f conftest.$ac_objext
2602 if { (ac_try="$ac_compile"
2603 case "(($ac_try" in
2604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605   *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608   (eval "$ac_compile") 2>conftest.er1
2609   ac_status=$?
2610   grep -v '^ *+' conftest.er1 >conftest.err
2611   rm -f conftest.er1
2612   cat conftest.err >&5
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2616   { (case "(($ac_try" in
2617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618   *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621   (eval "$ac_try") 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; } &&
2625          { ac_try='test -s conftest.$ac_objext'
2626   { (case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631   (eval "$ac_try") 2>&5
2632   ac_status=$?
2633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634   (exit $ac_status); }; }; then
2635   :
2636 else
2637   echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640         ac_c_werror_flag=$ac_save_c_werror_flag
2641          CFLAGS="-g"
2642          cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (ac_try="$ac_compile"
2659 case "(($ac_try" in
2660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661   *) ac_try_echo=$ac_try;;
2662 esac
2663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664   (eval "$ac_compile") 2>conftest.er1
2665   ac_status=$?
2666   grep -v '^ *+' conftest.er1 >conftest.err
2667   rm -f conftest.er1
2668   cat conftest.err >&5
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); } &&
2671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2672   { (case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677   (eval "$ac_try") 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (case "(($ac_try" in
2683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684   *) ac_try_echo=$ac_try;;
2685 esac
2686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2687   (eval "$ac_try") 2>&5
2688   ac_status=$?
2689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690   (exit $ac_status); }; }; then
2691   ac_cv_prog_cc_g=yes
2692 else
2693   echo "$as_me: failed program was:" >&5
2694 sed 's/^/| /' conftest.$ac_ext >&5
2695
2696
2697 fi
2698
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 fi
2701
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2703 fi
2704
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706    ac_c_werror_flag=$ac_save_c_werror_flag
2707 fi
2708 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2709 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2710 if test "$ac_test_CFLAGS" = set; then
2711   CFLAGS=$ac_save_CFLAGS
2712 elif test $ac_cv_prog_cc_g = yes; then
2713   if test "$GCC" = yes; then
2714     CFLAGS="-g -O2"
2715   else
2716     CFLAGS="-g"
2717   fi
2718 else
2719   if test "$GCC" = yes; then
2720     CFLAGS="-O2"
2721   else
2722     CFLAGS=
2723   fi
2724 fi
2725 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2726 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2727 if test "${ac_cv_prog_cc_c89+set}" = set; then
2728   echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730   ac_cv_prog_cc_c89=no
2731 ac_save_CC=$CC
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738 #include <stdarg.h>
2739 #include <stdio.h>
2740 #include <sys/types.h>
2741 #include <sys/stat.h>
2742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2743 struct buf { int x; };
2744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745 static char *e (p, i)
2746      char **p;
2747      int i;
2748 {
2749   return p[i];
2750 }
2751 static char *f (char * (*g) (char **, int), char **p, ...)
2752 {
2753   char *s;
2754   va_list v;
2755   va_start (v,p);
2756   s = g (p, va_arg (v,int));
2757   va_end (v);
2758   return s;
2759 }
2760
2761 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2762    function prototypes and stuff, but not '\xHH' hex character constants.
2763    These don't provoke an error unfortunately, instead are silently treated
2764    as 'x'.  The following induces an error, until -std is added to get
2765    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2766    array size at least.  It's necessary to write '\x00'==0 to get something
2767    that's true only with -std.  */
2768 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2769
2770 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2771    inside strings and character constants.  */
2772 #define FOO(x) 'x'
2773 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2774
2775 int test (int i, double x);
2776 struct s1 {int (*f) (int a);};
2777 struct s2 {int (*f) (double a);};
2778 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2779 int argc;
2780 char **argv;
2781 int
2782 main ()
2783 {
2784 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2790         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2791 do
2792   CC="$ac_save_CC $ac_arg"
2793   rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2795 case "(($ac_try" in
2796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797   *) ac_try_echo=$ac_try;;
2798 esac
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800   (eval "$ac_compile") 2>conftest.er1
2801   ac_status=$?
2802   grep -v '^ *+' conftest.er1 >conftest.err
2803   rm -f conftest.er1
2804   cat conftest.err >&5
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); } &&
2807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2808   { (case "(($ac_try" in
2809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2810   *) ac_try_echo=$ac_try;;
2811 esac
2812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2813   (eval "$ac_try") 2>&5
2814   ac_status=$?
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); }; } &&
2817          { ac_try='test -s conftest.$ac_objext'
2818   { (case "(($ac_try" in
2819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820   *) ac_try_echo=$ac_try;;
2821 esac
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823   (eval "$ac_try") 2>&5
2824   ac_status=$?
2825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826   (exit $ac_status); }; }; then
2827   ac_cv_prog_cc_c89=$ac_arg
2828 else
2829   echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832
2833 fi
2834
2835 rm -f core conftest.err conftest.$ac_objext
2836   test "x$ac_cv_prog_cc_c89" != "xno" && break
2837 done
2838 rm -f conftest.$ac_ext
2839 CC=$ac_save_CC
2840
2841 fi
2842 # AC_CACHE_VAL
2843 case "x$ac_cv_prog_cc_c89" in
2844   x)
2845     { echo "$as_me:$LINENO: result: none needed" >&5
2846 echo "${ECHO_T}none needed" >&6; } ;;
2847   xno)
2848     { echo "$as_me:$LINENO: result: unsupported" >&5
2849 echo "${ECHO_T}unsupported" >&6; } ;;
2850   *)
2851     CC="$CC $ac_cv_prog_cc_c89"
2852     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2853 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2854 esac
2855
2856
2857 ac_ext=c
2858 ac_cpp='$CPP $CPPFLAGS'
2859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2862
2863 ac_ext=cpp
2864 ac_cpp='$CXXCPP $CPPFLAGS'
2865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2868 if test -z "$CXX"; then
2869   if test -n "$CCC"; then
2870     CXX=$CCC
2871   else
2872     if test -n "$ac_tool_prefix"; then
2873   for ac_prog in clang++ g++
2874   do
2875     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2879 if test "${ac_cv_prog_CXX+set}" = set; then
2880   echo $ECHO_N "(cached) $ECHO_C" >&6
2881 else
2882   if test -n "$CXX"; then
2883   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890   for ac_exec_ext in '' $ac_executable_extensions; do
2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2892     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 CXX=$ac_cv_prog_CXX
2903 if test -n "$CXX"; then
2904   { echo "$as_me:$LINENO: result: $CXX" >&5
2905 echo "${ECHO_T}$CXX" >&6; }
2906 else
2907   { echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6; }
2909 fi
2910
2911
2912     test -n "$CXX" && break
2913   done
2914 fi
2915 if test -z "$CXX"; then
2916   ac_ct_CXX=$CXX
2917   for ac_prog in clang++ g++
2918 do
2919   # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2924   echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926   if test -n "$ac_ct_CXX"; then
2927   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932   IFS=$as_save_IFS
2933   test -z "$as_dir" && as_dir=.
2934   for ac_exec_ext in '' $ac_executable_extensions; do
2935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2936     ac_cv_prog_ac_ct_CXX="$ac_prog"
2937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2938     break 2
2939   fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2947 if test -n "$ac_ct_CXX"; then
2948   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2949 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2950 else
2951   { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2953 fi
2954
2955
2956   test -n "$ac_ct_CXX" && break
2957 done
2958
2959   if test "x$ac_ct_CXX" = x; then
2960     CXX="g++"
2961   else
2962     case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet.  If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet.  If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972     CXX=$ac_ct_CXX
2973   fi
2974 fi
2975
2976   fi
2977 fi
2978 # Provide some information about the compiler.
2979 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2980 ac_compiler=`set X $ac_compile; echo $2`
2981 { (ac_try="$ac_compiler --version >&5"
2982 case "(($ac_try" in
2983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984   *) ac_try_echo=$ac_try;;
2985 esac
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987   (eval "$ac_compiler --version >&5") 2>&5
2988   ac_status=$?
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); }
2991 { (ac_try="$ac_compiler -v >&5"
2992 case "(($ac_try" in
2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994   *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997   (eval "$ac_compiler -v >&5") 2>&5
2998   ac_status=$?
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); }
3001 { (ac_try="$ac_compiler -V >&5"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_compiler -V >&5") 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }
3011
3012 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3013 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3014 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3015   echo $ECHO_N "(cached) $ECHO_C" >&6
3016 else
3017   cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h.  */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h.  */
3023
3024 int
3025 main ()
3026 {
3027 #ifndef __GNUC__
3028        choke me
3029 #endif
3030
3031   ;
3032   return 0;
3033 }
3034 _ACEOF
3035 rm -f conftest.$ac_objext
3036 if { (ac_try="$ac_compile"
3037 case "(($ac_try" in
3038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039   *) ac_try_echo=$ac_try;;
3040 esac
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042   (eval "$ac_compile") 2>conftest.er1
3043   ac_status=$?
3044   grep -v '^ *+' conftest.er1 >conftest.err
3045   rm -f conftest.er1
3046   cat conftest.err >&5
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); } &&
3049          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3050   { (case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_try") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; } &&
3059          { ac_try='test -s conftest.$ac_objext'
3060   { (case "(($ac_try" in
3061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062   *) ac_try_echo=$ac_try;;
3063 esac
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065   (eval "$ac_try") 2>&5
3066   ac_status=$?
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); }; }; then
3069   ac_compiler_gnu=yes
3070 else
3071   echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074         ac_compiler_gnu=no
3075 fi
3076
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3079
3080 fi
3081 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3082 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3083 GXX=`test $ac_compiler_gnu = yes && echo yes`
3084 ac_test_CXXFLAGS=${CXXFLAGS+set}
3085 ac_save_CXXFLAGS=$CXXFLAGS
3086 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3087 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3088 if test "${ac_cv_prog_cxx_g+set}" = set; then
3089   echo $ECHO_N "(cached) $ECHO_C" >&6
3090 else
3091   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3092    ac_cxx_werror_flag=yes
3093    ac_cv_prog_cxx_g=no
3094    CXXFLAGS="-g"
3095    cat >conftest.$ac_ext <<_ACEOF
3096 /* confdefs.h.  */
3097 _ACEOF
3098 cat confdefs.h >>conftest.$ac_ext
3099 cat >>conftest.$ac_ext <<_ACEOF
3100 /* end confdefs.h.  */
3101
3102 int
3103 main ()
3104 {
3105
3106   ;
3107   return 0;
3108 }
3109 _ACEOF
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3112 case "(($ac_try" in
3113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114   *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117   (eval "$ac_compile") 2>conftest.er1
3118   ac_status=$?
3119   grep -v '^ *+' conftest.er1 >conftest.err
3120   rm -f conftest.er1
3121   cat conftest.err >&5
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); } &&
3124          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3125   { (case "(($ac_try" in
3126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127   *) ac_try_echo=$ac_try;;
3128 esac
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130   (eval "$ac_try") 2>&5
3131   ac_status=$?
3132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133   (exit $ac_status); }; } &&
3134          { ac_try='test -s conftest.$ac_objext'
3135   { (case "(($ac_try" in
3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137   *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140   (eval "$ac_try") 2>&5
3141   ac_status=$?
3142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143   (exit $ac_status); }; }; then
3144   ac_cv_prog_cxx_g=yes
3145 else
3146   echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149         CXXFLAGS=""
3150       cat >conftest.$ac_ext <<_ACEOF
3151 /* confdefs.h.  */
3152 _ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h.  */
3156
3157 int
3158 main ()
3159 {
3160
3161   ;
3162   return 0;
3163 }
3164 _ACEOF
3165 rm -f conftest.$ac_objext
3166 if { (ac_try="$ac_compile"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compile") 2>conftest.er1
3173   ac_status=$?
3174   grep -v '^ *+' conftest.er1 >conftest.err
3175   rm -f conftest.er1
3176   cat conftest.err >&5
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } &&
3179          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3180   { (case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185   (eval "$ac_try") 2>&5
3186   ac_status=$?
3187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188   (exit $ac_status); }; } &&
3189          { ac_try='test -s conftest.$ac_objext'
3190   { (case "(($ac_try" in
3191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192   *) ac_try_echo=$ac_try;;
3193 esac
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195   (eval "$ac_try") 2>&5
3196   ac_status=$?
3197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198   (exit $ac_status); }; }; then
3199   :
3200 else
3201   echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3203
3204         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3205          CXXFLAGS="-g"
3206          cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212
3213 int
3214 main ()
3215 {
3216
3217   ;
3218   return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225   *) ac_try_echo=$ac_try;;
3226 esac
3227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228   (eval "$ac_compile") 2>conftest.er1
3229   ac_status=$?
3230   grep -v '^ *+' conftest.er1 >conftest.err
3231   rm -f conftest.er1
3232   cat conftest.err >&5
3233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234   (exit $ac_status); } &&
3235          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3236   { (case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_try") 2>&5
3242   ac_status=$?
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); }; } &&
3245          { ac_try='test -s conftest.$ac_objext'
3246   { (case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251   (eval "$ac_try") 2>&5
3252   ac_status=$?
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); }; }; then
3255   ac_cv_prog_cxx_g=yes
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260
3261 fi
3262
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 fi
3265
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 fi
3268
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3270    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3271 fi
3272 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3273 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3274 if test "$ac_test_CXXFLAGS" = set; then
3275   CXXFLAGS=$ac_save_CXXFLAGS
3276 elif test $ac_cv_prog_cxx_g = yes; then
3277   if test "$GXX" = yes; then
3278     CXXFLAGS="-g -O2"
3279   else
3280     CXXFLAGS="-g"
3281   fi
3282 else
3283   if test "$GXX" = yes; then
3284     CXXFLAGS="-O2"
3285   else
3286     CXXFLAGS=
3287   fi
3288 fi
3289 ac_ext=c
3290 ac_cpp='$CPP $CPPFLAGS'
3291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294
3295 ac_ext=c
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3301 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3302 # On Suns, sometimes $CPP names a directory.
3303 if test -n "$CPP" && test -d "$CPP"; then
3304   CPP=
3305 fi
3306 if test -z "$CPP"; then
3307   if test "${ac_cv_prog_CPP+set}" = set; then
3308   echo $ECHO_N "(cached) $ECHO_C" >&6
3309 else
3310       # Double quotes because CPP needs to be expanded
3311     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3312     do
3313       ac_preproc_ok=false
3314 for ac_c_preproc_warn_flag in '' yes
3315 do
3316   # Use a header file that comes with gcc, so configuring glibc
3317   # with a fresh cross-compiler works.
3318   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3319   # <limits.h> exists even on freestanding compilers.
3320   # On the NeXT, cc -E runs the code through the compiler's parser,
3321   # not just through cpp. "Syntax error" is here to catch this case.
3322   cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h.  */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h.  */
3328 #ifdef __STDC__
3329 # include <limits.h>
3330 #else
3331 # include <assert.h>
3332 #endif
3333                      Syntax error
3334 _ACEOF
3335 if { (ac_try="$ac_cpp conftest.$ac_ext"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } >/dev/null; then
3348   if test -s conftest.err; then
3349     ac_cpp_err=$ac_c_preproc_warn_flag
3350     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3351   else
3352     ac_cpp_err=
3353   fi
3354 else
3355   ac_cpp_err=yes
3356 fi
3357 if test -z "$ac_cpp_err"; then
3358   :
3359 else
3360   echo "$as_me: failed program was:" >&5
3361 sed 's/^/| /' conftest.$ac_ext >&5
3362
3363   # Broken: fails on valid input.
3364 continue
3365 fi
3366
3367 rm -f conftest.err conftest.$ac_ext
3368
3369   # OK, works on sane cases.  Now check whether nonexistent headers
3370   # can be detected and how.
3371   cat >conftest.$ac_ext <<_ACEOF
3372 /* confdefs.h.  */
3373 _ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h.  */
3377 #include <ac_nonexistent.h>
3378 _ACEOF
3379 if { (ac_try="$ac_cpp conftest.$ac_ext"
3380 case "(($ac_try" in
3381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382   *) ac_try_echo=$ac_try;;
3383 esac
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3386   ac_status=$?
3387   grep -v '^ *+' conftest.er1 >conftest.err
3388   rm -f conftest.er1
3389   cat conftest.err >&5
3390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391   (exit $ac_status); } >/dev/null; then
3392   if test -s conftest.err; then
3393     ac_cpp_err=$ac_c_preproc_warn_flag
3394     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3395   else
3396     ac_cpp_err=
3397   fi
3398 else
3399   ac_cpp_err=yes
3400 fi
3401 if test -z "$ac_cpp_err"; then
3402   # Broken: success on invalid input.
3403 continue
3404 else
3405   echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408   # Passes both tests.
3409 ac_preproc_ok=:
3410 break
3411 fi
3412
3413 rm -f conftest.err conftest.$ac_ext
3414
3415 done
3416 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3417 rm -f conftest.err conftest.$ac_ext
3418 if $ac_preproc_ok; then
3419   break
3420 fi
3421
3422     done
3423     ac_cv_prog_CPP=$CPP
3424
3425 fi
3426   CPP=$ac_cv_prog_CPP
3427 else
3428   ac_cv_prog_CPP=$CPP
3429 fi
3430 { echo "$as_me:$LINENO: result: $CPP" >&5
3431 echo "${ECHO_T}$CPP" >&6; }
3432 ac_preproc_ok=false
3433 for ac_c_preproc_warn_flag in '' yes
3434 do
3435   # Use a header file that comes with gcc, so configuring glibc
3436   # with a fresh cross-compiler works.
3437   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3438   # <limits.h> exists even on freestanding compilers.
3439   # On the NeXT, cc -E runs the code through the compiler's parser,
3440   # not just through cpp. "Syntax error" is here to catch this case.
3441   cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h.  */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h.  */
3447 #ifdef __STDC__
3448 # include <limits.h>
3449 #else
3450 # include <assert.h>
3451 #endif
3452                      Syntax error
3453 _ACEOF
3454 if { (ac_try="$ac_cpp conftest.$ac_ext"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } >/dev/null; then
3467   if test -s conftest.err; then
3468     ac_cpp_err=$ac_c_preproc_warn_flag
3469     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3470   else
3471     ac_cpp_err=
3472   fi
3473 else
3474   ac_cpp_err=yes
3475 fi
3476 if test -z "$ac_cpp_err"; then
3477   :
3478 else
3479   echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482   # Broken: fails on valid input.
3483 continue
3484 fi
3485
3486 rm -f conftest.err conftest.$ac_ext
3487
3488   # OK, works on sane cases.  Now check whether nonexistent headers
3489   # can be detected and how.
3490   cat >conftest.$ac_ext <<_ACEOF
3491 /* confdefs.h.  */
3492 _ACEOF
3493 cat confdefs.h >>conftest.$ac_ext
3494 cat >>conftest.$ac_ext <<_ACEOF
3495 /* end confdefs.h.  */
3496 #include <ac_nonexistent.h>
3497 _ACEOF
3498 if { (ac_try="$ac_cpp conftest.$ac_ext"
3499 case "(($ac_try" in
3500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501   *) ac_try_echo=$ac_try;;
3502 esac
3503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3504   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3505   ac_status=$?
3506   grep -v '^ *+' conftest.er1 >conftest.err
3507   rm -f conftest.er1
3508   cat conftest.err >&5
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); } >/dev/null; then
3511   if test -s conftest.err; then
3512     ac_cpp_err=$ac_c_preproc_warn_flag
3513     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3514   else
3515     ac_cpp_err=
3516   fi
3517 else
3518   ac_cpp_err=yes
3519 fi
3520 if test -z "$ac_cpp_err"; then
3521   # Broken: success on invalid input.
3522 continue
3523 else
3524   echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527   # Passes both tests.
3528 ac_preproc_ok=:
3529 break
3530 fi
3531
3532 rm -f conftest.err conftest.$ac_ext
3533
3534 done
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.err conftest.$ac_ext
3537 if $ac_preproc_ok; then
3538   :
3539 else
3540   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&5
3542 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3543 See \`config.log' for more details." >&2;}
3544    { (exit 1); exit 1; }; }
3545 fi
3546
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3552
3553
3554 if test "$CXX" = "clang++" ; then
3555   { echo "$as_me:$LINENO: checking whether clang works" >&5
3556 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3557   ac_ext=cpp
3558 ac_cpp='$CXXCPP $CPPFLAGS'
3559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3562
3563
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h.  */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h.  */
3570 #include <limits>
3571 #if __has_include (<cxxabi.h>)
3572 #include <cxxabi.h>
3573 #endif
3574 #if __has_include (<unwind.h>)
3575 #include <unwind.h>
3576 #endif
3577
3578 int
3579 main ()
3580 {
3581
3582   ;
3583   return 0;
3584 }
3585 _ACEOF
3586 rm -f conftest.$ac_objext
3587 if { (ac_try="$ac_compile"
3588 case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3593   (eval "$ac_compile") 2>conftest.er1
3594   ac_status=$?
3595   grep -v '^ *+' conftest.er1 >conftest.err
3596   rm -f conftest.er1
3597   cat conftest.err >&5
3598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } &&
3600          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3601   { (case "(($ac_try" in
3602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603   *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606   (eval "$ac_try") 2>&5
3607   ac_status=$?
3608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609   (exit $ac_status); }; } &&
3610          { ac_try='test -s conftest.$ac_objext'
3611   { (case "(($ac_try" in
3612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613   *) ac_try_echo=$ac_try;;
3614 esac
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616   (eval "$ac_try") 2>&5
3617   ac_status=$?
3618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619   (exit $ac_status); }; }; then
3620
3621   { echo "$as_me:$LINENO: result: yes" >&5
3622 echo "${ECHO_T}yes" >&6; }
3623
3624 else
3625   echo "$as_me: failed program was:" >&5
3626 sed 's/^/| /' conftest.$ac_ext >&5
3627
3628
3629   { echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6; }
3631   { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&5
3632 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers.  Rerun with CC=c-compiler CXX=c++-compiler LLVM_SRC_DIR/configure ..." >&2;}
3633    { (exit 1); exit 1; }; }
3634
3635 fi
3636
3637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638   ac_ext=c
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643
3644 fi
3645
3646 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3647 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3648 ac_ext=cpp
3649 ac_cpp='$CXXCPP $CPPFLAGS'
3650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3653
3654 llvm_cv_cxx_compiler=unknown
3655 cat >conftest.$ac_ext <<_ACEOF
3656 /* confdefs.h.  */
3657 _ACEOF
3658 cat confdefs.h >>conftest.$ac_ext
3659 cat >>conftest.$ac_ext <<_ACEOF
3660 /* end confdefs.h.  */
3661 #if ! __clang__
3662                                     #error
3663                                     #endif
3664
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (ac_try="$ac_compile"
3668 case "(($ac_try" in
3669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670   *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673   (eval "$ac_compile") 2>conftest.er1
3674   ac_status=$?
3675   grep -v '^ *+' conftest.er1 >conftest.err
3676   rm -f conftest.er1
3677   cat conftest.err >&5
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); } &&
3680          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3681   { (case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686   (eval "$ac_try") 2>&5
3687   ac_status=$?
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); }; } &&
3690          { ac_try='test -s conftest.$ac_objext'
3691   { (case "(($ac_try" in
3692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693   *) ac_try_echo=$ac_try;;
3694 esac
3695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3696   (eval "$ac_try") 2>&5
3697   ac_status=$?
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); }; }; then
3700   llvm_cv_cxx_compiler=clang
3701 else
3702   echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705         cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711 #if ! __GNUC__
3712                                                        #error
3713                                                        #endif
3714
3715 _ACEOF
3716 rm -f conftest.$ac_objext
3717 if { (ac_try="$ac_compile"
3718 case "(($ac_try" in
3719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720   *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723   (eval "$ac_compile") 2>conftest.er1
3724   ac_status=$?
3725   grep -v '^ *+' conftest.er1 >conftest.err
3726   rm -f conftest.er1
3727   cat conftest.err >&5
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); } &&
3730          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3731   { (case "(($ac_try" in
3732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733   *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736   (eval "$ac_try") 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); }; } &&
3740          { ac_try='test -s conftest.$ac_objext'
3741   { (case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746   (eval "$ac_try") 2>&5
3747   ac_status=$?
3748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3749   (exit $ac_status); }; }; then
3750   llvm_cv_cxx_compiler=gcc
3751 else
3752   echo "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3754
3755
3756 fi
3757
3758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 fi
3760
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
3768 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3769 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3770
3771
3772
3773 if test -d ${srcdir}/projects/test-suite ; then
3774   subdirs="$subdirs projects/test-suite"
3775
3776 fi
3777
3778 if test -d ${srcdir}/projects/llvm-test ; then
3779   subdirs="$subdirs projects/llvm-test"
3780
3781 fi
3782
3783 if test -d ${srcdir}/projects/poolalloc ; then
3784   subdirs="$subdirs projects/poolalloc"
3785
3786 fi
3787
3788 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3789   subdirs="$subdirs projects/llvm-poolalloc"
3790
3791 fi
3792
3793 for i in `ls ${srcdir}/projects`
3794 do
3795   if test -d ${srcdir}/projects/${i} ; then
3796     case ${i} in
3797       safecode)     subdirs="$subdirs projects/safecode"
3798  ;;
3799       compiler-rt)       ;;
3800       test-suite)     ;;
3801       llvm-test)      ;;
3802       poolalloc)      ;;
3803       llvm-poolalloc) ;;
3804       *)
3805         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3806 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3807         ;;
3808     esac
3809   fi
3810 done
3811
3812 # Check whether --enable-polly was given.
3813 if test "${enable_polly+set}" = set; then
3814   enableval=$enable_polly;
3815 else
3816   enableval=default
3817 fi
3818
3819 case "$enableval" in
3820   yes) ENABLE_POLLY=1
3821  ;;
3822   no)  ENABLE_POLLY=0
3823  ;;
3824   default) ENABLE_POLLY=1
3825  ;;
3826   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3827 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3828    { (exit 1); exit 1; }; } ;;
3829 esac
3830
3831
3832 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3833   LLVM_HAS_POLLY=1
3834
3835   subdirs="$subdirs tools/polly"
3836
3837 fi
3838
3839
3840 # Make sure we can run config.sub.
3841 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3842   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3843 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3844    { (exit 1); exit 1; }; }
3845
3846 { echo "$as_me:$LINENO: checking build system type" >&5
3847 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3848 if test "${ac_cv_build+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   ac_build_alias=$build_alias
3852 test "x$ac_build_alias" = x &&
3853   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3854 test "x$ac_build_alias" = x &&
3855   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3856 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3857    { (exit 1); exit 1; }; }
3858 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3859   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3860 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3861    { (exit 1); exit 1; }; }
3862
3863 fi
3864 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3865 echo "${ECHO_T}$ac_cv_build" >&6; }
3866 case $ac_cv_build in
3867 *-*-*) ;;
3868 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3869 echo "$as_me: error: invalid value of canonical build" >&2;}
3870    { (exit 1); exit 1; }; };;
3871 esac
3872 build=$ac_cv_build
3873 ac_save_IFS=$IFS; IFS='-'
3874 set x $ac_cv_build
3875 shift
3876 build_cpu=$1
3877 build_vendor=$2
3878 shift; shift
3879 # Remember, the first character of IFS is used to create $*,
3880 # except with old shells:
3881 build_os=$*
3882 IFS=$ac_save_IFS
3883 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3884
3885
3886 { echo "$as_me:$LINENO: checking host system type" >&5
3887 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3888 if test "${ac_cv_host+set}" = set; then
3889   echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891   if test "x$host_alias" = x; then
3892   ac_cv_host=$ac_cv_build
3893 else
3894   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3895     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3896 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3897    { (exit 1); exit 1; }; }
3898 fi
3899
3900 fi
3901 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3902 echo "${ECHO_T}$ac_cv_host" >&6; }
3903 case $ac_cv_host in
3904 *-*-*) ;;
3905 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3906 echo "$as_me: error: invalid value of canonical host" >&2;}
3907    { (exit 1); exit 1; }; };;
3908 esac
3909 host=$ac_cv_host
3910 ac_save_IFS=$IFS; IFS='-'
3911 set x $ac_cv_host
3912 shift
3913 host_cpu=$1
3914 host_vendor=$2
3915 shift; shift
3916 # Remember, the first character of IFS is used to create $*,
3917 # except with old shells:
3918 host_os=$*
3919 IFS=$ac_save_IFS
3920 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3921
3922
3923 { echo "$as_me:$LINENO: checking target system type" >&5
3924 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3925 if test "${ac_cv_target+set}" = set; then
3926   echo $ECHO_N "(cached) $ECHO_C" >&6
3927 else
3928   if test "x$target_alias" = x; then
3929   ac_cv_target=$ac_cv_host
3930 else
3931   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3932     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3933 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3934    { (exit 1); exit 1; }; }
3935 fi
3936
3937 fi
3938 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3939 echo "${ECHO_T}$ac_cv_target" >&6; }
3940 case $ac_cv_target in
3941 *-*-*) ;;
3942 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3943 echo "$as_me: error: invalid value of canonical target" >&2;}
3944    { (exit 1); exit 1; }; };;
3945 esac
3946 target=$ac_cv_target
3947 ac_save_IFS=$IFS; IFS='-'
3948 set x $ac_cv_target
3949 shift
3950 target_cpu=$1
3951 target_vendor=$2
3952 shift; shift
3953 # Remember, the first character of IFS is used to create $*,
3954 # except with old shells:
3955 target_os=$*
3956 IFS=$ac_save_IFS
3957 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3958
3959
3960 # The aliases save the names the user supplied, while $host etc.
3961 # will get canonicalized.
3962 test -n "$target_alias" &&
3963   test "$program_prefix$program_suffix$program_transform_name" = \
3964     NONENONEs,x,x, &&
3965   program_prefix=${target_alias}-
3966
3967 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3968 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3969 if test "${llvm_cv_os_type+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   case $host in
3973   *-*-aix*)
3974     llvm_cv_link_all_option="-Wl,--whole-archive"
3975     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3976     llvm_cv_os_type="AIX"
3977     llvm_cv_platform_type="Unix" ;;
3978   *-*-irix*)
3979     llvm_cv_link_all_option="-Wl,--whole-archive"
3980     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3981     llvm_cv_os_type="IRIX"
3982     llvm_cv_platform_type="Unix" ;;
3983   *-*-cygwin*)
3984     llvm_cv_link_all_option="-Wl,--whole-archive"
3985     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3986     llvm_cv_os_type="Cygwin"
3987     llvm_cv_platform_type="Unix" ;;
3988   *-*-darwin*)
3989     llvm_cv_link_all_option="-Wl,-all_load"
3990     llvm_cv_no_link_all_option="-Wl,-noall_load"
3991     llvm_cv_os_type="Darwin"
3992     llvm_cv_platform_type="Unix" ;;
3993   *-*-minix*)
3994     llvm_cv_link_all_option="-Wl,-all_load"
3995     llvm_cv_no_link_all_option="-Wl,-noall_load"
3996     llvm_cv_os_type="Minix"
3997     llvm_cv_platform_type="Unix" ;;
3998   *-*-freebsd*)
3999     llvm_cv_link_all_option="-Wl,--whole-archive"
4000     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4001     llvm_cv_os_type="FreeBSD"
4002     llvm_cv_platform_type="Unix" ;;
4003   *-*-kfreebsd-gnu)
4004     llvm_cv_link_all_option="-Wl,--whole-archive"
4005     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4006     llvm_cv_os_type="GNU/kFreeBSD"
4007     llvm_cv_platform_type="Unix" ;;
4008   *-*-openbsd*)
4009     llvm_cv_link_all_option="-Wl,--whole-archive"
4010     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4011     llvm_cv_os_type="OpenBSD"
4012     llvm_cv_platform_type="Unix" ;;
4013   *-*-netbsd*)
4014     llvm_cv_link_all_option="-Wl,--whole-archive"
4015     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4016     llvm_cv_os_type="NetBSD"
4017     llvm_cv_platform_type="Unix" ;;
4018   *-*-dragonfly*)
4019     llvm_cv_link_all_option="-Wl,--whole-archive"
4020     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4021     llvm_cv_os_type="DragonFly"
4022     llvm_cv_platform_type="Unix" ;;
4023   *-*-bitrig*)
4024     llvm_cv_link_all_option="-Wl,--whole-archive"
4025     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4026     llvm_cv_os_type="Bitrig"
4027     llvm_cv_platform_type="Unix" ;;
4028   *-*-hpux*)
4029     llvm_cv_link_all_option="-Wl,--whole-archive"
4030     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4031     llvm_cv_os_type="HP-UX"
4032     llvm_cv_platform_type="Unix" ;;
4033   *-*-interix*)
4034     llvm_cv_link_all_option="-Wl,--whole-archive"
4035     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4036     llvm_cv_os_type="Interix"
4037     llvm_cv_platform_type="Unix" ;;
4038   *-*-linux*)
4039     llvm_cv_link_all_option="-Wl,--whole-archive"
4040     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4041     llvm_cv_os_type="Linux"
4042     llvm_cv_platform_type="Unix" ;;
4043   *-*-gnu*)
4044     llvm_cv_link_all_option="-Wl,--whole-archive"
4045     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4046     llvm_cv_os_type="GNU"
4047     llvm_cv_platform_type="Unix" ;;
4048   *-*-solaris*)
4049     llvm_cv_link_all_option="-Wl,-z,allextract"
4050     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4051     llvm_cv_os_type="SunOS"
4052     llvm_cv_platform_type="Unix" ;;
4053   *-*-win32*)
4054     llvm_cv_link_all_option="-Wl,--whole-archive"
4055     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4056     llvm_cv_os_type="Win32"
4057     llvm_cv_platform_type="Win32" ;;
4058   *-*-mingw*)
4059     llvm_cv_link_all_option="-Wl,--whole-archive"
4060     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4061     llvm_cv_os_type="MingW"
4062     llvm_cv_platform_type="Win32" ;;
4063   *-*-haiku*)
4064     llvm_cv_link_all_option="-Wl,--whole-archive"
4065     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4066     llvm_cv_os_type="Haiku"
4067     llvm_cv_platform_type="Unix" ;;
4068   *-unknown-eabi*)
4069     llvm_cv_link_all_option="-Wl,--whole-archive"
4070     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4071     llvm_cv_os_type="Freestanding"
4072     llvm_cv_platform_type="Unix" ;;
4073   *-unknown-elf*)
4074     llvm_cv_link_all_option="-Wl,--whole-archive"
4075     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4076     llvm_cv_os_type="Freestanding"
4077     llvm_cv_platform_type="Unix" ;;
4078   *)
4079     llvm_cv_link_all_option=""
4080     llvm_cv_no_link_all_option=""
4081     llvm_cv_os_type="Unknown"
4082     llvm_cv_platform_type="Unknown" ;;
4083 esac
4084 fi
4085 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4086 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4087
4088 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4089 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4090 if test "${llvm_cv_target_os_type+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   case $target in
4094   *-*-aix*)
4095     llvm_cv_target_os_type="AIX" ;;
4096   *-*-irix*)
4097     llvm_cv_target_os_type="IRIX" ;;
4098   *-*-cygwin*)
4099     llvm_cv_target_os_type="Cygwin" ;;
4100   *-*-darwin*)
4101     llvm_cv_target_os_type="Darwin" ;;
4102   *-*-minix*)
4103     llvm_cv_target_os_type="Minix" ;;
4104   *-*-freebsd*)
4105     llvm_cv_target_os_type="FreeBSD" ;;
4106   *-*-kfreebsd-gnu)
4107     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4108   *-*-openbsd*)
4109     llvm_cv_target_os_type="OpenBSD" ;;
4110   *-*-netbsd*)
4111     llvm_cv_target_os_type="NetBSD" ;;
4112   *-*-dragonfly*)
4113     llvm_cv_target_os_type="DragonFly" ;;
4114   *-*-bitrig*)
4115     llvm_cv_target_os_type="Bitrig" ;;
4116   *-*-hpux*)
4117     llvm_cv_target_os_type="HP-UX" ;;
4118   *-*-interix*)
4119     llvm_cv_target_os_type="Interix" ;;
4120   *-*-linux*)
4121     llvm_cv_target_os_type="Linux" ;;
4122   *-*-gnu*)
4123     llvm_cv_target_os_type="GNU" ;;
4124   *-*-solaris*)
4125     llvm_cv_target_os_type="SunOS" ;;
4126   *-*-win32*)
4127     llvm_cv_target_os_type="Win32" ;;
4128   *-*-mingw*)
4129     llvm_cv_target_os_type="MingW" ;;
4130   *-*-haiku*)
4131     llvm_cv_target_os_type="Haiku" ;;
4132   *-*-rtems*)
4133     llvm_cv_target_os_type="RTEMS" ;;
4134   *-*-nacl*)
4135     llvm_cv_target_os_type="NativeClient" ;;
4136   *-unknown-eabi*)
4137     llvm_cv_target_os_type="Freestanding" ;;
4138   *-*-ps4)
4139     llvm_cv_target_os_type="PS4" ;;
4140   *)
4141     llvm_cv_target_os_type="Unknown" ;;
4142 esac
4143 fi
4144 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4145 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4146
4147 if test "$llvm_cv_os_type" = "Unknown" ; then
4148   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4149 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4150    { (exit 1); exit 1; }; }
4151 fi
4152
4153 OS=$llvm_cv_os_type
4154
4155 HOST_OS=$llvm_cv_os_type
4156
4157 TARGET_OS=$llvm_cv_target_os_type
4158
4159
4160 LINKALL=$llvm_cv_link_all_option
4161
4162 NOLINKALL=$llvm_cv_no_link_all_option
4163
4164
4165 case $llvm_cv_platform_type in
4166   Unix)
4167
4168 cat >>confdefs.h <<\_ACEOF
4169 #define LLVM_ON_UNIX 1
4170 _ACEOF
4171
4172     LLVM_ON_UNIX=1
4173
4174     LLVM_ON_WIN32=0
4175
4176     ;;
4177   Win32)
4178
4179 cat >>confdefs.h <<\_ACEOF
4180 #define LLVM_ON_WIN32 1
4181 _ACEOF
4182
4183     LLVM_ON_UNIX=0
4184
4185     LLVM_ON_WIN32=1
4186
4187     ;;
4188 esac
4189
4190 { echo "$as_me:$LINENO: checking target architecture" >&5
4191 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4192 if test "${llvm_cv_target_arch+set}" = set; then
4193   echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195   case $target in
4196   i?86-*)                 llvm_cv_target_arch="x86" ;;
4197   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4198   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4199   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4200   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4201   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4202   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4203   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4204   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4205   xcore-*)                llvm_cv_target_arch="XCore" ;;
4206   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4207   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4208   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4209   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4210   *)                      llvm_cv_target_arch="Unknown" ;;
4211 esac
4212 fi
4213 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4214 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4215
4216 if test "$llvm_cv_target_arch" = "Unknown" ; then
4217   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4218 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4219 fi
4220
4221 case "$llvm_cv_target_arch" in
4222     x86)     LLVM_NATIVE_ARCH="X86" ;;
4223     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4224     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4225 esac
4226
4227 ARCH=$llvm_cv_target_arch
4228
4229 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4230
4231
4232 case $host in
4233   i?86-*)                 host_arch="x86" ;;
4234   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4235   sparc*-*)               host_arch="Sparc" ;;
4236   powerpc*-*)             host_arch="PowerPC" ;;
4237   arm64*-*)               host_arch="AArch64" ;;
4238   arm*-*)                 host_arch="ARM" ;;
4239   aarch64*-*)             host_arch="AArch64" ;;
4240   mips-* | mips64-*)      host_arch="Mips" ;;
4241   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4242   xcore-*)                host_arch="XCore" ;;
4243   msp430-*)               host_arch="MSP430" ;;
4244   hexagon-*)              host_arch="Hexagon" ;;
4245   s390x-*)                host_arch="SystemZ" ;;
4246   *)                      host_arch="Unknown" ;;
4247 esac
4248
4249 if test "$host_arch" = "Unknown" ; then
4250   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4251 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4252 fi
4253
4254 HOST_ARCH=$host_arch
4255
4256
4257 if test "$cross_compiling" = yes; then
4258   LLVM_CROSS_COMPILING=1
4259
4260
4261 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4262 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4263 if test "${ac_cv_build_exeext+set}" = set; then
4264   echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4267   ac_cv_build_exeext=.exe
4268 else
4269   ac_build_prefix=${build_alias}-
4270
4271   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4272 set dummy ${ac_build_prefix}gcc; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4276   echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278   if test -n "$BUILD_CC"; then
4279   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4283 do
4284   IFS=$as_save_IFS
4285   test -z "$as_dir" && as_dir=.
4286   for ac_exec_ext in '' $ac_executable_extensions; do
4287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4288     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290     break 2
4291   fi
4292 done
4293 done
4294 IFS=$as_save_IFS
4295
4296 fi
4297 fi
4298 BUILD_CC=$ac_cv_prog_BUILD_CC
4299 if test -n "$BUILD_CC"; then
4300   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4301 echo "${ECHO_T}$BUILD_CC" >&6; }
4302 else
4303   { echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6; }
4305 fi
4306
4307
4308   if test -z "$BUILD_CC"; then
4309      # Extract the first word of "gcc", so it can be a program name with args.
4310 set dummy gcc; ac_word=$2
4311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4313 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   if test -n "$BUILD_CC"; then
4317   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH
4321 do
4322   IFS=$as_save_IFS
4323   test -z "$as_dir" && as_dir=.
4324   for ac_exec_ext in '' $ac_executable_extensions; do
4325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4326     ac_cv_prog_BUILD_CC="gcc"
4327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328     break 2
4329   fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334 fi
4335 fi
4336 BUILD_CC=$ac_cv_prog_BUILD_CC
4337 if test -n "$BUILD_CC"; then
4338   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4339 echo "${ECHO_T}$BUILD_CC" >&6; }
4340 else
4341   { echo "$as_me:$LINENO: result: no" >&5
4342 echo "${ECHO_T}no" >&6; }
4343 fi
4344
4345
4346      if test -z "$BUILD_CC"; then
4347        # Extract the first word of "cc", so it can be a program name with args.
4348 set dummy cc; ac_word=$2
4349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4351 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4352   echo $ECHO_N "(cached) $ECHO_C" >&6
4353 else
4354   if test -n "$BUILD_CC"; then
4355   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4356 else
4357   ac_prog_rejected=no
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_exec_ext in '' $ac_executable_extensions; do
4364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4365     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4366        ac_prog_rejected=yes
4367        continue
4368      fi
4369     ac_cv_prog_BUILD_CC="cc"
4370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377 if test $ac_prog_rejected = yes; then
4378   # We found a bogon in the path, so make sure we never use it.
4379   set dummy $ac_cv_prog_BUILD_CC
4380   shift
4381   if test $# != 0; then
4382     # We chose a different compiler from the bogus one.
4383     # However, it has the same basename, so the bogon will be chosen
4384     # first if we set BUILD_CC to just the basename; use the full file name.
4385     shift
4386     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4387   fi
4388 fi
4389 fi
4390 fi
4391 BUILD_CC=$ac_cv_prog_BUILD_CC
4392 if test -n "$BUILD_CC"; then
4393   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4394 echo "${ECHO_T}$BUILD_CC" >&6; }
4395 else
4396   { echo "$as_me:$LINENO: result: no" >&5
4397 echo "${ECHO_T}no" >&6; }
4398 fi
4399
4400
4401      fi
4402   fi
4403   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4404 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4405    { (exit 1); exit 1; }; }
4406   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4407   rm -f conftest*
4408   echo 'int main () { return 0; }' > conftest.$ac_ext
4409   ac_cv_build_exeext=
4410   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4411   (eval $ac_build_link) 2>&5
4412   ac_status=$?
4413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414   (exit $ac_status); }; then
4415     for file in conftest.*; do
4416       case $file in
4417       *.c | *.o | *.obj | *.dSYM) ;;
4418       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4419       esac
4420     done
4421   else
4422     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4423 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4424    { (exit 1); exit 1; }; }
4425   fi
4426   rm -f conftest*
4427   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4428 fi
4429 fi
4430
4431 BUILD_EXEEXT=""
4432 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4433 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4434 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4435 ac_build_exeext=$BUILD_EXEEXT
4436
4437   ac_build_prefix=${build_alias}-
4438   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4439 set dummy ${ac_build_prefix}g++; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4443   echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445   if test -n "$BUILD_CXX"; then
4446   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453   for ac_exec_ext in '' $ac_executable_extensions; do
4454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4455     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460 done
4461 IFS=$as_save_IFS
4462
4463 fi
4464 fi
4465 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4466 if test -n "$BUILD_CXX"; then
4467   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4468 echo "${ECHO_T}$BUILD_CXX" >&6; }
4469 else
4470   { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4472 fi
4473
4474
4475   if test -z "$BUILD_CXX"; then
4476      # Extract the first word of "g++", so it can be a program name with args.
4477 set dummy g++; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   if test -n "$BUILD_CXX"; then
4484   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4485 else
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487 for as_dir in $PATH
4488 do
4489   IFS=$as_save_IFS
4490   test -z "$as_dir" && as_dir=.
4491   for ac_exec_ext in '' $ac_executable_extensions; do
4492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4493     ac_cv_prog_BUILD_CXX="g++"
4494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495     break 2
4496   fi
4497 done
4498 done
4499 IFS=$as_save_IFS
4500
4501 fi
4502 fi
4503 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4504 if test -n "$BUILD_CXX"; then
4505   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4506 echo "${ECHO_T}$BUILD_CXX" >&6; }
4507 else
4508   { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4510 fi
4511
4512
4513      if test -z "$BUILD_CXX"; then
4514        # Extract the first word of "c++", so it can be a program name with args.
4515 set dummy c++; ac_word=$2
4516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4518 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4519   echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521   if test -n "$BUILD_CXX"; then
4522   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4523 else
4524   ac_prog_rejected=no
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530   for ac_exec_ext in '' $ac_executable_extensions; do
4531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4532     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4533        ac_prog_rejected=yes
4534        continue
4535      fi
4536     ac_cv_prog_BUILD_CXX="c++"
4537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4543
4544 if test $ac_prog_rejected = yes; then
4545   # We found a bogon in the path, so make sure we never use it.
4546   set dummy $ac_cv_prog_BUILD_CXX
4547   shift
4548   if test $# != 0; then
4549     # We chose a different compiler from the bogus one.
4550     # However, it has the same basename, so the bogon will be chosen
4551     # first if we set BUILD_CXX to just the basename; use the full file name.
4552     shift
4553     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4554   fi
4555 fi
4556 fi
4557 fi
4558 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4559 if test -n "$BUILD_CXX"; then
4560   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4561 echo "${ECHO_T}$BUILD_CXX" >&6; }
4562 else
4563   { echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6; }
4565 fi
4566
4567
4568      fi
4569   fi
4570 else
4571   LLVM_CROSS_COMPILING=0
4572
4573 fi
4574
4575 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4576   cvsbuild="yes"
4577   optimize="no"
4578   CVSBUILD=CVSBUILD=1
4579
4580 else
4581   cvsbuild="no"
4582   optimize="yes"
4583 fi
4584
4585
4586 # Check whether --enable-libcpp was given.
4587 if test "${enable_libcpp+set}" = set; then
4588   enableval=$enable_libcpp;
4589 else
4590   enableval=default
4591 fi
4592
4593 case "$enableval" in
4594   yes) ENABLE_LIBCPP=1
4595  ;;
4596   no)  ENABLE_LIBCPP=0
4597  ;;
4598   default) ENABLE_LIBCPP=0
4599 ;;
4600   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4601 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4602    { (exit 1); exit 1; }; } ;;
4603 esac
4604
4605 # Check whether --enable-compiler-version-checks was given.
4606 if test "${enable_compiler_version_checks+set}" = set; then
4607   enableval=$enable_compiler_version_checks;
4608 else
4609   enableval=default
4610 fi
4611
4612 case "$enableval" in
4613   no)
4614     ;;
4615   yes|default)
4616     ac_ext=cpp
4617 ac_cpp='$CXXCPP $CPPFLAGS'
4618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4621
4622     case "$llvm_cv_cxx_compiler" in
4623     clang)
4624       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4625 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4626       cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h.  */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h.  */
4632
4633 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4634 #error This version of Clang is too old to build LLVM
4635 #endif
4636
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4640 case "(($ac_try" in
4641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642   *) ac_try_echo=$ac_try;;
4643 esac
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645   (eval "$ac_compile") 2>conftest.er1
4646   ac_status=$?
4647   grep -v '^ *+' conftest.er1 >conftest.err
4648   rm -f conftest.er1
4649   cat conftest.err >&5
4650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651   (exit $ac_status); } &&
4652          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4653   { (case "(($ac_try" in
4654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655   *) ac_try_echo=$ac_try;;
4656 esac
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658   (eval "$ac_try") 2>&5
4659   ac_status=$?
4660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661   (exit $ac_status); }; } &&
4662          { ac_try='test -s conftest.$ac_objext'
4663   { (case "(($ac_try" in
4664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665   *) ac_try_echo=$ac_try;;
4666 esac
4667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4668   (eval "$ac_try") 2>&5
4669   ac_status=$?
4670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); }; }; then
4672   { echo "$as_me:$LINENO: result: yes" >&5
4673 echo "${ECHO_T}yes" >&6; }
4674 else
4675   echo "$as_me: failed program was:" >&5
4676 sed 's/^/| /' conftest.$ac_ext >&5
4677
4678         { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4680            { { echo "$as_me:$LINENO: error:
4681 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4682 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4683 bypass these sanity checks." >&5
4684 echo "$as_me: error:
4685 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4686 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4687 bypass these sanity checks." >&2;}
4688    { (exit 1); exit 1; }; }
4689 fi
4690
4691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4692
4693                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4694         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4695 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4696         llvm_cv_old_cxxflags="$CXXFLAGS"
4697         CXXFLAGS="$CXXFLAGS -std=c++0x"
4698         cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h.  */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h.  */
4704
4705 #include <atomic>
4706 std::atomic<float> x(0.0f);
4707 int main() { return (float)x; }
4708
4709 _ACEOF
4710 rm -f conftest.$ac_objext conftest$ac_exeext
4711 if { (ac_try="$ac_link"
4712 case "(($ac_try" in
4713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714   *) ac_try_echo=$ac_try;;
4715 esac
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717   (eval "$ac_link") 2>conftest.er1
4718   ac_status=$?
4719   grep -v '^ *+' conftest.er1 >conftest.err
4720   rm -f conftest.er1
4721   cat conftest.err >&5
4722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } &&
4724          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4725   { (case "(($ac_try" in
4726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727   *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730   (eval "$ac_try") 2>&5
4731   ac_status=$?
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }; } &&
4734          { ac_try='test -s conftest$ac_exeext'
4735   { (case "(($ac_try" in
4736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737   *) ac_try_echo=$ac_try;;
4738 esac
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740   (eval "$ac_try") 2>&5
4741   ac_status=$?
4742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743   (exit $ac_status); }; }; then
4744   { echo "$as_me:$LINENO: result: yes" >&5
4745 echo "${ECHO_T}yes" >&6; }
4746 else
4747   echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750         { echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6; }
4752              { { echo "$as_me:$LINENO: error:
4753 We detected a missing feature in the standard C++ library that was known to be
4754 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4755 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4756 than 4.7. You will need to update your system and ensure Clang uses the newer
4757 standard library.
4758
4759 If this error is incorrect or you need to force things to work, you may pass
4760 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4761 echo "$as_me: error:
4762 We detected a missing feature in the standard C++ library that was known to be
4763 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4764 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4765 than 4.7. You will need to update your system and ensure Clang uses the newer
4766 standard library.
4767
4768 If this error is incorrect or you need to force things to work, you may pass
4769 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4770    { (exit 1); exit 1; }; }
4771 fi
4772
4773 rm -f core conftest.err conftest.$ac_objext \
4774       conftest$ac_exeext conftest.$ac_ext
4775         CXXFLAGS="$llvm_cv_old_cxxflags"
4776       fi
4777       ;;
4778     gcc)
4779       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4780 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4781       cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h.  */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h.  */
4787
4788 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4789 #error This version of GCC is too old to build LLVM
4790 #endif
4791
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4795 case "(($ac_try" in
4796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797   *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800   (eval "$ac_compile") 2>conftest.er1
4801   ac_status=$?
4802   grep -v '^ *+' conftest.er1 >conftest.err
4803   rm -f conftest.er1
4804   cat conftest.err >&5
4805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806   (exit $ac_status); } &&
4807          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4808   { (case "(($ac_try" in
4809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4810   *) ac_try_echo=$ac_try;;
4811 esac
4812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4813   (eval "$ac_try") 2>&5
4814   ac_status=$?
4815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816   (exit $ac_status); }; } &&
4817          { ac_try='test -s conftest.$ac_objext'
4818   { (case "(($ac_try" in
4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820   *) ac_try_echo=$ac_try;;
4821 esac
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823   (eval "$ac_try") 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; }; then
4827   { echo "$as_me:$LINENO: result: yes" >&5
4828 echo "${ECHO_T}yes" >&6; }
4829 else
4830   echo "$as_me: failed program was:" >&5
4831 sed 's/^/| /' conftest.$ac_ext >&5
4832
4833         { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835            { { echo "$as_me:$LINENO: error:
4836 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4837 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4838 bypass these sanity checks." >&5
4839 echo "$as_me: error:
4840 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4841 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4842 bypass these sanity checks." >&2;}
4843    { (exit 1); exit 1; }; }
4844 fi
4845
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847       ;;
4848     unknown)
4849       ;;
4850     esac
4851     ac_ext=c
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4856
4857     ;;
4858   *)
4859     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4860 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4861    { (exit 1); exit 1; }; }
4862     ;;
4863 esac
4864
4865 # Check whether --enable-cxx1y was given.
4866 if test "${enable_cxx1y+set}" = set; then
4867   enableval=$enable_cxx1y;
4868 else
4869   enableval=default
4870 fi
4871
4872 case "$enableval" in
4873   yes) ENABLE_CXX1Y=1
4874  ;;
4875   no)  ENABLE_CXX1Y=0
4876  ;;
4877   default) ENABLE_CXX1Y=0
4878 ;;
4879   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4880 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4881    { (exit 1); exit 1; }; } ;;
4882 esac
4883
4884 # Check whether --enable-split-dwarf was given.
4885 if test "${enable_split_dwarf+set}" = set; then
4886   enableval=$enable_split_dwarf;
4887 else
4888   enableval=default
4889 fi
4890
4891 case "$enableval" in
4892   yes) ENABLE_SPLIT_DWARF=1
4893  ;;
4894   no)  ENABLE_SPLIT_DWARF=0
4895  ;;
4896   default) ENABLE_SPLIT_DWARF=0
4897 ;;
4898   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4899 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4900    { (exit 1); exit 1; }; } ;;
4901 esac
4902
4903 clang_arcmt="yes"
4904 # Check whether --enable-clang-arcmt was given.
4905 if test "${enable_clang_arcmt+set}" = set; then
4906   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4907 else
4908   enableval="yes"
4909 fi
4910
4911 case "$enableval" in
4912   yes) ENABLE_CLANG_ARCMT=1
4913  ;;
4914   no)  ENABLE_CLANG_ARCMT=0
4915  ;;
4916   default) ENABLE_CLANG_ARCMT=1
4917 ;;
4918   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4920    { (exit 1); exit 1; }; } ;;
4921 esac
4922
4923 clang_plugin_support="yes"
4924 # Check whether --enable-clang-plugin-support was given.
4925 if test "${enable_clang_plugin_support+set}" = set; then
4926   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4927 else
4928   enableval="yes"
4929 fi
4930
4931 case "$enableval" in
4932   yes) CLANG_PLUGIN_SUPPORT=1
4933  ;;
4934   no)  CLANG_PLUGIN_SUPPORT=0
4935  ;;
4936   default) CLANG_PLUGIN_SUPPORT=1
4937 ;;
4938   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4939 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4940    { (exit 1); exit 1; }; } ;;
4941 esac
4942
4943 clang_static_analyzer="yes"
4944 # Check whether --enable-clang-static-analyzer was given.
4945 if test "${enable_clang_static_analyzer+set}" = set; then
4946   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4947 else
4948   enableval="yes"
4949 fi
4950
4951 case "$enableval" in
4952   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4953  ;;
4954   no)
4955     if test ${clang_arcmt} != "no" ; then
4956       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4957 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4958    { (exit 1); exit 1; }; }
4959     fi
4960     ENABLE_CLANG_STATIC_ANALYZER=0
4961
4962     ;;
4963   default) ENABLE_CLANG_STATIC_ANALYZER=1
4964 ;;
4965   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4966 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4967    { (exit 1); exit 1; }; } ;;
4968 esac
4969
4970 # Check whether --enable-optimized was given.
4971 if test "${enable_optimized+set}" = set; then
4972   enableval=$enable_optimized;
4973 else
4974   enableval=$optimize
4975 fi
4976
4977 if test ${enableval} = "no" ; then
4978   ENABLE_OPTIMIZED=
4979
4980 else
4981   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4982
4983 fi
4984
4985 # Check whether --enable-profiling was given.
4986 if test "${enable_profiling+set}" = set; then
4987   enableval=$enable_profiling;
4988 else
4989   enableval="no"
4990 fi
4991
4992 if test ${enableval} = "no" ; then
4993   ENABLE_PROFILING=
4994
4995 else
4996   ENABLE_PROFILING=ENABLE_PROFILING=1
4997
4998 fi
4999
5000 # Check whether --enable-assertions was given.
5001 if test "${enable_assertions+set}" = set; then
5002   enableval=$enable_assertions;
5003 else
5004   enableval="yes"
5005 fi
5006
5007 if test ${enableval} = "yes" ; then
5008   DISABLE_ASSERTIONS=
5009
5010   assertions_enabled="yes"
5011 else
5012   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5013
5014   assertions_enabled="no"
5015 fi
5016
5017 # Check whether --enable-werror was given.
5018 if test "${enable_werror+set}" = set; then
5019   enableval=$enable_werror;
5020 else
5021   enableval="no"
5022 fi
5023
5024 case "$enableval" in
5025   yes) ENABLE_WERROR=1
5026  ;;
5027   no)  ENABLE_WERROR=0
5028  ;;
5029   default) ENABLE_WERROR=0
5030 ;;
5031   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5032 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5033    { (exit 1); exit 1; }; } ;;
5034 esac
5035
5036 # Check whether --enable-expensive-checks was given.
5037 if test "${enable_expensive_checks+set}" = set; then
5038   enableval=$enable_expensive_checks;
5039 else
5040   enableval="no"
5041 fi
5042
5043 if test ${enableval} = "yes" ; then
5044   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5045
5046   EXPENSIVE_CHECKS=yes
5047
5048 else
5049   ENABLE_EXPENSIVE_CHECKS=
5050
5051   EXPENSIVE_CHECKS=no
5052
5053 fi
5054
5055 # Check whether --enable-abi-breaking-checks was given.
5056 if test "${enable_abi_breaking_checks+set}" = set; then
5057   enableval=$enable_abi_breaking_checks;
5058 else
5059   enableval="with-asserts"
5060 fi
5061
5062 case "$enableval" in
5063   with-asserts)  if test ${assertions_enabled} = "yes" ; then
5064
5065 cat >>confdefs.h <<\_ACEOF
5066 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5067 _ACEOF
5068
5069                    ENABLE_ABI_BREAKING_CHECKS=1
5070
5071                  else
5072                    ENABLE_ABI_BREAKING_CHECKS=0
5073
5074                  fi ;;
5075   yes)
5076
5077 cat >>confdefs.h <<\_ACEOF
5078 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5079 _ACEOF
5080
5081                  ENABLE_ABI_BREAKING_CHECKS=1
5082
5083                  ;;
5084   no)
5085                  ENABLE_ABI_BREAKING_CHECKS=0
5086
5087                  ;;
5088   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&5
5089 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5090    { (exit 1); exit 1; }; }
5091 esac
5092
5093 # Check whether --enable-debug-runtime was given.
5094 if test "${enable_debug_runtime+set}" = set; then
5095   enableval=$enable_debug_runtime;
5096 else
5097   enableval=no
5098 fi
5099
5100 if test ${enableval} = "no" ; then
5101   DEBUG_RUNTIME=
5102
5103 else
5104   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5105
5106 fi
5107
5108 # Check whether --enable-debug-symbols was given.
5109 if test "${enable_debug_symbols+set}" = set; then
5110   enableval=$enable_debug_symbols;
5111 else
5112   enableval=no
5113 fi
5114
5115 if test ${enableval} = "no" ; then
5116   DEBUG_SYMBOLS=
5117
5118 else
5119   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5120
5121 fi
5122
5123 # Check whether --enable-keep-symbols was given.
5124 if test "${enable_keep_symbols+set}" = set; then
5125   enableval=$enable_keep_symbols;
5126 else
5127   enableval=no
5128 fi
5129
5130 if test ${enableval} = "no" ; then
5131   KEEP_SYMBOLS=
5132
5133 else
5134   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5135
5136 fi
5137
5138 # Check whether --enable-jit was given.
5139 if test "${enable_jit+set}" = set; then
5140   enableval=$enable_jit;
5141 else
5142   enableval=default
5143 fi
5144
5145 if test ${enableval} = "no"
5146 then
5147   JIT=
5148
5149 else
5150   case "$llvm_cv_target_arch" in
5151     x86)         TARGET_HAS_JIT=1
5152  ;;
5153     Sparc)       TARGET_HAS_JIT=0
5154  ;;
5155     PowerPC)     TARGET_HAS_JIT=1
5156  ;;
5157     x86_64)      TARGET_HAS_JIT=1
5158  ;;
5159     ARM)         TARGET_HAS_JIT=1
5160  ;;
5161     Mips)        TARGET_HAS_JIT=1
5162  ;;
5163     XCore)       TARGET_HAS_JIT=0
5164  ;;
5165     MSP430)      TARGET_HAS_JIT=0
5166  ;;
5167     Hexagon)     TARGET_HAS_JIT=0
5168  ;;
5169     NVPTX)       TARGET_HAS_JIT=0
5170  ;;
5171     SystemZ)     TARGET_HAS_JIT=1
5172  ;;
5173     *)           TARGET_HAS_JIT=0
5174  ;;
5175   esac
5176 fi
5177
5178 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5179 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5180
5181
5182 # Check whether --enable-docs was given.
5183 if test "${enable_docs+set}" = set; then
5184   enableval=$enable_docs;
5185 else
5186   enableval=default
5187 fi
5188
5189 case "$enableval" in
5190   yes) ENABLE_DOCS=1
5191  ;;
5192   no)  ENABLE_DOCS=0
5193  ;;
5194   default) ENABLE_DOCS=1
5195  ;;
5196   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5197 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5198    { (exit 1); exit 1; }; } ;;
5199 esac
5200
5201 # Check whether --enable-doxygen was given.
5202 if test "${enable_doxygen+set}" = set; then
5203   enableval=$enable_doxygen;
5204 else
5205   enableval=default
5206 fi
5207
5208 case "$enableval" in
5209   yes) ENABLE_DOXYGEN=1
5210  ;;
5211   no|default) ENABLE_DOXYGEN=0
5212  ;;
5213   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5214 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5215    { (exit 1); exit 1; }; } ;;
5216 esac
5217
5218 # Check whether --enable-doxygen-search was given.
5219 if test "${enable_doxygen_search+set}" = set; then
5220   enableval=$enable_doxygen_search;
5221 else
5222   enableval=default
5223 fi
5224
5225 ENABLE_DOXYGEN_SEARCH="$enableval"
5226
5227 case "$enableval" in
5228   yes|no|default) ;;
5229   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5231    { (exit 1); exit 1; }; } ;;
5232 esac
5233
5234 # Check whether --enable-doxygen-external-search was given.
5235 if test "${enable_doxygen_external_search+set}" = set; then
5236   enableval=$enable_doxygen_external_search;
5237 else
5238   enableval=default
5239 fi
5240
5241 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5242
5243 case "$enableval" in
5244   yes)
5245             case "$ENABLE_DOXYGEN_SEARCH" in
5246       yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5247       no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5248 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5249    { (exit 1); exit 1; }; } ;;
5250     esac
5251     ;;
5252   no|default) ;;
5253   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5255    { (exit 1); exit 1; }; } ;;
5256 esac
5257
5258
5259 # Check whether --with-doxygen-search-engine-url was given.
5260 if test "${with_doxygen_search_engine_url+set}" = set; then
5261   withval=$with_doxygen_search_engine_url;
5262 fi
5263
5264 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5265
5266
5267 # Check whether --with-doxygen-search-mappings was given.
5268 if test "${with_doxygen_search_mappings+set}" = set; then
5269   withval=$with_doxygen_search_mappings;
5270 fi
5271
5272 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5273
5274 case "$ENABLE_DOXYGEN_SEARCH" in
5275   yes)
5276     if test "$ENABLE_DOXYGEN" = "0" ; then
5277       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5278 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5279    { (exit 1); exit 1; }; }
5280     fi
5281
5282     enable_searchengine=YES
5283
5284
5285     case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5286       yes)
5287         enable_external_search=YES
5288
5289         enable_server_based_search=YES
5290
5291         searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5292
5293         extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5294
5295         ;;
5296
5297       no|default)
5298         enable_external_search=NO
5299
5300         enable_server_based_search=NO
5301
5302
5303
5304         ;;
5305     esac
5306     ;;
5307
5308   no|default)
5309     enable_searchengine=NO
5310
5311
5312     enable_server_based_search=NO
5313
5314     enable_external_search=NO
5315
5316
5317     ;;
5318
5319   *)
5320     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5321 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5322    { (exit 1); exit 1; }; }
5323     ;;
5324 esac
5325
5326 # Check whether --enable-doxygen-qt-help was given.
5327 if test "${enable_doxygen_qt_help+set}" = set; then
5328   enableval=$enable_doxygen_qt_help;
5329 else
5330   enableval=default
5331 fi
5332
5333 case "$enableval" in
5334   yes)
5335     if test "$ENABLE_DOXYGEN" = "0" ; then
5336       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5337 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5338    { (exit 1); exit 1; }; }
5339     fi
5340
5341     # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5342 set dummy qhelpgenerator; ac_word=$2
5343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5345 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   case $QHELPGENERATOR in
5349   [\\/]* | ?:[\\/]*)
5350   ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5351   ;;
5352   *)
5353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356   IFS=$as_save_IFS
5357   test -z "$as_dir" && as_dir=.
5358   for ac_exec_ext in '' $ac_executable_extensions; do
5359   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5360     ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362     break 2
5363   fi
5364 done
5365 done
5366 IFS=$as_save_IFS
5367
5368   test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5369   ;;
5370 esac
5371 fi
5372 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5373 if test -n "$QHELPGENERATOR"; then
5374   { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5375 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5376 else
5377   { echo "$as_me:$LINENO: result: no" >&5
5378 echo "${ECHO_T}no" >&6; }
5379 fi
5380
5381
5382
5383         llvm_doxygen_generate_qhp=YES
5384
5385     llvm_doxygen_qch_filename=org.llvm.qch
5386
5387     llvm_doxygen_qhp_namespace=org.llvm
5388
5389     llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5390
5391     llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5392
5393     llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5394
5395
5396         clang_doxygen_generate_qhp=YES
5397
5398     clang_doxygen_qch_filename=org.llvm.clang.qch
5399
5400     clang_doxygen_qhp_namespace=org.llvm.clang
5401
5402     clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5403
5404     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5405
5406     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5407
5408     ;;
5409
5410   no|default)
5411     llvm_doxygen_generate_qhp=NO
5412
5413
5414
5415
5416
5417
5418
5419     clang_doxygen_generate_qhp=NO
5420
5421
5422
5423
5424     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5425
5426     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5427
5428     ;;
5429
5430   *)
5431     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5432 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5433    { (exit 1); exit 1; }; } ;;
5434 esac
5435
5436 # Check whether --enable-threads was given.
5437 if test "${enable_threads+set}" = set; then
5438   enableval=$enable_threads;
5439 else
5440   enableval=default
5441 fi
5442
5443 case "$enableval" in
5444   yes) LLVM_ENABLE_THREADS=1
5445  ;;
5446   no)  LLVM_ENABLE_THREADS=0
5447  ;;
5448   default) LLVM_ENABLE_THREADS=1
5449  ;;
5450   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5451 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5452    { (exit 1); exit 1; }; } ;;
5453 esac
5454
5455 cat >>confdefs.h <<_ACEOF
5456 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5457 _ACEOF
5458
5459
5460 # Check whether --enable-pthreads was given.
5461 if test "${enable_pthreads+set}" = set; then
5462   enableval=$enable_pthreads;
5463 else
5464   enableval=default
5465 fi
5466
5467 case "$enableval" in
5468   yes) ENABLE_PTHREADS=1
5469  ;;
5470   no)  ENABLE_PTHREADS=0
5471  ;;
5472   default) ENABLE_PTHREADS=1
5473  ;;
5474   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5475 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5476    { (exit 1); exit 1; }; } ;;
5477 esac
5478
5479 # Check whether --enable-zlib was given.
5480 if test "${enable_zlib+set}" = set; then
5481   enableval=$enable_zlib;
5482 else
5483   enableval=default
5484 fi
5485
5486 case "$enableval" in
5487   yes) LLVM_ENABLE_ZLIB=1
5488  ;;
5489   no)  LLVM_ENABLE_ZLIB=0
5490  ;;
5491   default) LLVM_ENABLE_ZLIB=1
5492  ;;
5493   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5495    { (exit 1); exit 1; }; } ;;
5496 esac
5497
5498 cat >>confdefs.h <<_ACEOF
5499 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5500 _ACEOF
5501
5502
5503 # Check whether --enable-pic was given.
5504 if test "${enable_pic+set}" = set; then
5505   enableval=$enable_pic;
5506 else
5507   enableval=default
5508 fi
5509
5510 case "$enableval" in
5511   yes) ENABLE_PIC=1
5512  ;;
5513   no)  ENABLE_PIC=0
5514  ;;
5515   default) ENABLE_PIC=1
5516  ;;
5517   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5518 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5519    { (exit 1); exit 1; }; } ;;
5520 esac
5521
5522 cat >>confdefs.h <<_ACEOF
5523 #define ENABLE_PIC $ENABLE_PIC
5524 _ACEOF
5525
5526
5527 # Check whether --enable-shared was given.
5528 if test "${enable_shared+set}" = set; then
5529   enableval=$enable_shared;
5530 else
5531   enableval=default
5532 fi
5533
5534 case "$enableval" in
5535   yes) ENABLE_SHARED=1
5536  ;;
5537   no)  ENABLE_SHARED=0
5538  ;;
5539   default) ENABLE_SHARED=0
5540  ;;
5541   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5542 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5543    { (exit 1); exit 1; }; } ;;
5544 esac
5545
5546 # Check whether --enable-embed-stdcxx was given.
5547 if test "${enable_embed_stdcxx+set}" = set; then
5548   enableval=$enable_embed_stdcxx;
5549 else
5550   enableval=default
5551 fi
5552
5553 case "$enableval" in
5554   yes) ENABLE_EMBED_STDCXX=1
5555  ;;
5556   no)  ENABLE_EMBED_STDCXX=0
5557  ;;
5558   default) ENABLE_EMBED_STDCXX=0
5559  ;;
5560   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5561 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5562    { (exit 1); exit 1; }; } ;;
5563 esac
5564
5565 # Check whether --enable-timestamps was given.
5566 if test "${enable_timestamps+set}" = set; then
5567   enableval=$enable_timestamps;
5568 else
5569   enableval=default
5570 fi
5571
5572 case "$enableval" in
5573   yes) ENABLE_TIMESTAMPS=1
5574  ;;
5575   no)  ENABLE_TIMESTAMPS=0
5576  ;;
5577   default) ENABLE_TIMESTAMPS=1
5578  ;;
5579   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5580 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5581    { (exit 1); exit 1; }; } ;;
5582 esac
5583
5584 cat >>confdefs.h <<_ACEOF
5585 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5586 _ACEOF
5587
5588
5589 # Check whether --enable-backtraces was given.
5590 if test "${enable_backtraces+set}" = set; then
5591   enableval=$enable_backtraces; case "$enableval" in
5592     yes) llvm_cv_enable_backtraces="yes" ;;
5593     no)  llvm_cv_enable_backtraces="no"  ;;
5594     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5595 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5596    { (exit 1); exit 1; }; } ;;
5597   esac
5598 else
5599   llvm_cv_enable_backtraces="yes"
5600 fi
5601
5602 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5603
5604 cat >>confdefs.h <<\_ACEOF
5605 #define ENABLE_BACKTRACES 1
5606 _ACEOF
5607
5608 fi
5609
5610 # Check whether --enable-crash-overrides was given.
5611 if test "${enable_crash_overrides+set}" = set; then
5612   enableval=$enable_crash_overrides; case "$enableval" in
5613     yes) llvm_cv_enable_crash_overrides="yes" ;;
5614     no)  llvm_cv_enable_crash_overrides="no"  ;;
5615     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5616 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5617    { (exit 1); exit 1; }; } ;;
5618   esac
5619 else
5620   llvm_cv_enable_crash_overrides="yes"
5621 fi
5622
5623 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5624
5625 cat >>confdefs.h <<\_ACEOF
5626 #define ENABLE_CRASH_OVERRIDES 1
5627 _ACEOF
5628
5629 fi
5630
5631 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ AMDGPU BPF"
5632 ALL_TARGETS=$ALL_TARGETS
5633
5634
5635 TARGETS_TO_BUILD=""
5636 # Check whether --enable-targets was given.
5637 if test "${enable_targets+set}" = set; then
5638   enableval=$enable_targets;
5639 else
5640   enableval=all
5641 fi
5642
5643 if test "$enableval" = host-only ; then
5644   enableval=host
5645 fi
5646 case "$enableval" in
5647   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5648   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5649       case "$a_target" in
5650         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5651         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5652         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5653         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5654         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5655         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5656         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5657         bpf)      TARGETS_TO_BUILD="BPF $TARGETS_TO_BUILD" ;;
5658         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5659         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5660         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5661         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5662         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5663         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5664         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5665         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5666         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5667         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5668         amdgpu)   TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5669         r600)     TARGETS_TO_BUILD="AMDGPU $TARGETS_TO_BUILD" ;;
5670         host) case "$llvm_cv_target_arch" in
5671             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5672             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5673             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5674             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5675             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5676             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5677             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5678             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5679             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5680             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5681             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5682             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5683             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5684 echo "$as_me: error: Can not set target to build" >&2;}
5685    { (exit 1); exit 1; }; } ;;
5686           esac ;;
5687         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5688 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5689    { (exit 1); exit 1; }; } ;;
5690       esac
5691   done
5692   ;;
5693 esac
5694
5695 # Check whether --enable-experimental-targets was given.
5696 if test "${enable_experimental_targets+set}" = set; then
5697   enableval=$enable_experimental_targets;
5698 else
5699   enableval=disable
5700 fi
5701
5702
5703 if test ${enableval} != "disable"
5704 then
5705   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5706 fi
5707
5708 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5709
5710
5711 for a_target in $TARGETS_TO_BUILD; do
5712   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5713
5714 cat >>confdefs.h <<_ACEOF
5715 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5716 _ACEOF
5717
5718     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5719     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5720     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5721     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5722     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5723       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5724     fi
5725     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5726       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5727     fi
5728
5729 cat >>confdefs.h <<_ACEOF
5730 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5731 _ACEOF
5732
5733
5734 cat >>confdefs.h <<_ACEOF
5735 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5736 _ACEOF
5737
5738
5739 cat >>confdefs.h <<_ACEOF
5740 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5741 _ACEOF
5742
5743
5744 cat >>confdefs.h <<_ACEOF
5745 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5746 _ACEOF
5747
5748     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5749
5750 cat >>confdefs.h <<_ACEOF
5751 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5752 _ACEOF
5753
5754     fi
5755     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5756
5757 cat >>confdefs.h <<_ACEOF
5758 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5759 _ACEOF
5760
5761     fi
5762   fi
5763 done
5764
5765 LLVM_ENUM_TARGETS=""
5766 LLVM_ENUM_ASM_PRINTERS=""
5767 LLVM_ENUM_ASM_PARSERS=""
5768 LLVM_ENUM_DISASSEMBLERS=""
5769 for target_to_build in $TARGETS_TO_BUILD; do
5770   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5771   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5772     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5773   fi
5774   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5775     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5776   fi
5777   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5778     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5779   fi
5780 done
5781
5782
5783
5784
5785
5786
5787 # Check whether --with-optimize-option was given.
5788 if test "${with_optimize_option+set}" = set; then
5789   withval=$with_optimize_option;
5790 else
5791   withval=default
5792 fi
5793
5794 { echo "$as_me:$LINENO: checking optimization flags" >&5
5795 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5796 case "$withval" in
5797   default)
5798     case "$llvm_cv_os_type" in
5799     FreeBSD) optimize_option=-O2 ;;
5800     MingW) optimize_option=-O2 ;;
5801     *)     optimize_option=-O3 ;;
5802     esac ;;
5803   *) optimize_option="$withval" ;;
5804 esac
5805 OPTIMIZE_OPTION=$optimize_option
5806
5807 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5808 echo "${ECHO_T}$optimize_option" >&6; }
5809
5810
5811 # Check whether --with-extra-options was given.
5812 if test "${with_extra_options+set}" = set; then
5813   withval=$with_extra_options;
5814 else
5815   withval=default
5816 fi
5817
5818 case "$withval" in
5819   default) EXTRA_OPTIONS= ;;
5820   *) EXTRA_OPTIONS=$withval ;;
5821 esac
5822 EXTRA_OPTIONS=$EXTRA_OPTIONS
5823
5824
5825
5826 # Check whether --with-extra-ld-options was given.
5827 if test "${with_extra_ld_options+set}" = set; then
5828   withval=$with_extra_ld_options;
5829 else
5830   withval=default
5831 fi
5832
5833 case "$withval" in
5834   default) EXTRA_LD_OPTIONS= ;;
5835   *) EXTRA_LD_OPTIONS=$withval ;;
5836 esac
5837 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5838
5839
5840 # Check whether --enable-bindings was given.
5841 if test "${enable_bindings+set}" = set; then
5842   enableval=$enable_bindings;
5843 else
5844   enableval=default
5845 fi
5846
5847 BINDINGS_TO_BUILD=""
5848 case "$enableval" in
5849   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5850   all ) BINDINGS_TO_BUILD="ocaml" ;;
5851   none | no) BINDINGS_TO_BUILD="" ;;
5852   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5853       case "$a_binding" in
5854         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5855         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5856 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5857    { (exit 1); exit 1; }; } ;;
5858       esac
5859   done
5860   ;;
5861 esac
5862
5863
5864 # Check whether --with-ocaml-libdir was given.
5865 if test "${with_ocaml_libdir+set}" = set; then
5866   withval=$with_ocaml_libdir;
5867 else
5868   withval=auto
5869 fi
5870
5871 case "$withval" in
5872   auto) with_ocaml_libdir="$withval" ;;
5873   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5874   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5875 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5876    { (exit 1); exit 1; }; } ;;
5877 esac
5878
5879
5880 # Check whether --with-clang-srcdir was given.
5881 if test "${with_clang_srcdir+set}" = set; then
5882   withval=$with_clang_srcdir;
5883 else
5884   withval="-"
5885 fi
5886
5887 case "$withval" in
5888   -) clang_src_root="" ;;
5889   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5890   *) clang_src_root="$ac_pwd/$withval" ;;
5891 esac
5892 CLANG_SRC_ROOT=$clang_src_root
5893
5894
5895
5896 # Check whether --with-clang-resource-dir was given.
5897 if test "${with_clang_resource_dir+set}" = set; then
5898   withval=$with_clang_resource_dir;
5899 else
5900   withval=""
5901 fi
5902
5903
5904 cat >>confdefs.h <<_ACEOF
5905 #define CLANG_RESOURCE_DIR "$withval"
5906 _ACEOF
5907
5908
5909
5910 # Check whether --with-c-include-dirs was given.
5911 if test "${with_c_include_dirs+set}" = set; then
5912   withval=$with_c_include_dirs;
5913 else
5914   withval=""
5915 fi
5916
5917
5918 cat >>confdefs.h <<_ACEOF
5919 #define C_INCLUDE_DIRS "$withval"
5920 _ACEOF
5921
5922
5923 # Clang normally uses the system c++ headers and libraries. With this option,
5924 # clang will use the ones provided by a gcc installation instead. This option should
5925 # be passed the same value that was used with --prefix when configuring gcc.
5926
5927 # Check whether --with-gcc-toolchain was given.
5928 if test "${with_gcc_toolchain+set}" = set; then
5929   withval=$with_gcc_toolchain;
5930 else
5931   withval=""
5932 fi
5933
5934
5935 cat >>confdefs.h <<_ACEOF
5936 #define GCC_INSTALL_PREFIX "$withval"
5937 _ACEOF
5938
5939
5940
5941 # Check whether --with-default-sysroot was given.
5942 if test "${with_default_sysroot+set}" = set; then
5943   withval=$with_default_sysroot;
5944 else
5945   withval=""
5946 fi
5947
5948
5949 cat >>confdefs.h <<_ACEOF
5950 #define DEFAULT_SYSROOT "$withval"
5951 _ACEOF
5952
5953
5954
5955 # Check whether --with-clang-default-openmp-runtime was given.
5956 if test "${with_clang_default_openmp_runtime+set}" = set; then
5957   withval=$with_clang_default_openmp_runtime;
5958 else
5959   withval="libgomp"
5960 fi
5961
5962
5963 cat >>confdefs.h <<_ACEOF
5964 #define CLANG_DEFAULT_OPENMP_RUNTIME "$withval"
5965 _ACEOF
5966
5967
5968
5969 # Check whether --with-binutils-include was given.
5970 if test "${with_binutils_include+set}" = set; then
5971   withval=$with_binutils_include;
5972 else
5973   withval=default
5974 fi
5975
5976 case "$withval" in
5977   default) WITH_BINUTILS_INCDIR=default ;;
5978   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5979   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5980 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5981    { (exit 1); exit 1; }; } ;;
5982 esac
5983 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5984   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5985
5986   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5987      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5988      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5989 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5990    { (exit 1); exit 1; }; };
5991   fi
5992 fi
5993
5994
5995 # Check whether --with-bug-report-url was given.
5996 if test "${with_bug_report_url+set}" = set; then
5997   withval=$with_bug_report_url;
5998 else
5999   withval="http://llvm.org/bugs/"
6000 fi
6001
6002
6003 cat >>confdefs.h <<_ACEOF
6004 #define BUG_REPORT_URL "$withval"
6005 _ACEOF
6006
6007
6008 # Check whether --enable-terminfo was given.
6009 if test "${enable_terminfo+set}" = set; then
6010   enableval=$enable_terminfo; case "$enableval" in
6011     yes) llvm_cv_enable_terminfo="yes" ;;
6012     no)  llvm_cv_enable_terminfo="no"  ;;
6013     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
6014 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
6015    { (exit 1); exit 1; }; } ;;
6016   esac
6017 else
6018   llvm_cv_enable_terminfo="yes"
6019 fi
6020
6021 case "$llvm_cv_enable_terminfo" in
6022   yes) ENABLE_TERMINFO=1
6023  ;;
6024   no)  ENABLE_TERMINFO=0
6025  ;;
6026 esac
6027
6028 # Check whether --enable-libedit was given.
6029 if test "${enable_libedit+set}" = set; then
6030   enableval=$enable_libedit; case "$enableval" in
6031     yes) llvm_cv_enable_libedit="yes" ;;
6032     no)  llvm_cv_enable_libedit="no"  ;;
6033     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6034 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6035    { (exit 1); exit 1; }; } ;;
6036   esac
6037 else
6038   llvm_cv_enable_libedit="yes"
6039 fi
6040
6041
6042 # Check whether --enable-libffi was given.
6043 if test "${enable_libffi+set}" = set; then
6044   enableval=$enable_libffi; case "$enableval" in
6045     yes) llvm_cv_enable_libffi="yes" ;;
6046     no)  llvm_cv_enable_libffi="no"  ;;
6047     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6048 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6049    { (exit 1); exit 1; }; } ;;
6050   esac
6051 else
6052   llvm_cv_enable_libffi=no
6053 fi
6054
6055
6056
6057 # Check whether --with-internal-prefix was given.
6058 if test "${with_internal_prefix+set}" = set; then
6059   withval=$with_internal_prefix;
6060 else
6061   withval=""
6062 fi
6063
6064 INTERNAL_PREFIX=$withval
6065
6066
6067
6068 { echo "$as_me:$LINENO: checking for GNU make" >&5
6069 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6070 if test "${llvm_cv_gnu_make_command+set}" = set; then
6071   echo $ECHO_N "(cached) $ECHO_C" >&6
6072 else
6073   llvm_cv_gnu_make_command=''
6074  for a in "$MAKE" make gmake gnumake ; do
6075   if test -z "$a" ; then continue ; fi ;
6076   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6077   then
6078    llvm_cv_gnu_make_command=$a ;
6079    break;
6080   fi
6081  done
6082 fi
6083 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6084 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6085  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6086    ifGNUmake='' ;
6087  else
6088    ifGNUmake='#' ;
6089    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6090 echo "${ECHO_T}\"Not found\"" >&6; };
6091  fi
6092
6093
6094 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6095 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6096 LN_S=$as_ln_s
6097 if test "$LN_S" = "ln -s"; then
6098   { echo "$as_me:$LINENO: result: yes" >&5
6099 echo "${ECHO_T}yes" >&6; }
6100 else
6101   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6102 echo "${ECHO_T}no, using $LN_S" >&6; }
6103 fi
6104
6105 # Extract the first word of "nm", so it can be a program name with args.
6106 set dummy nm; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_NM+set}" = set; then
6110   echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112   case $NM in
6113   [\\/]* | ?:[\\/]*)
6114   ac_cv_path_NM="$NM" # Let the user override the test with a path.
6115   ;;
6116   *)
6117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120   IFS=$as_save_IFS
6121   test -z "$as_dir" && as_dir=.
6122   for ac_exec_ext in '' $ac_executable_extensions; do
6123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6124     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126     break 2
6127   fi
6128 done
6129 done
6130 IFS=$as_save_IFS
6131
6132   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6133   ;;
6134 esac
6135 fi
6136 NM=$ac_cv_path_NM
6137 if test -n "$NM"; then
6138   { echo "$as_me:$LINENO: result: $NM" >&5
6139 echo "${ECHO_T}$NM" >&6; }
6140 else
6141   { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6143 fi
6144
6145
6146 # Extract the first word of "cmp", so it can be a program name with args.
6147 set dummy cmp; ac_word=$2
6148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6150 if test "${ac_cv_path_CMP+set}" = set; then
6151   echo $ECHO_N "(cached) $ECHO_C" >&6
6152 else
6153   case $CMP in
6154   [\\/]* | ?:[\\/]*)
6155   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6156   ;;
6157   *)
6158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163   for ac_exec_ext in '' $ac_executable_extensions; do
6164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6165     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170 done
6171 IFS=$as_save_IFS
6172
6173   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6174   ;;
6175 esac
6176 fi
6177 CMP=$ac_cv_path_CMP
6178 if test -n "$CMP"; then
6179   { echo "$as_me:$LINENO: result: $CMP" >&5
6180 echo "${ECHO_T}$CMP" >&6; }
6181 else
6182   { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6184 fi
6185
6186
6187 # Extract the first word of "cp", so it can be a program name with args.
6188 set dummy cp; ac_word=$2
6189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6191 if test "${ac_cv_path_CP+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   case $CP in
6195   [\\/]* | ?:[\\/]*)
6196   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6197   ;;
6198   *)
6199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202   IFS=$as_save_IFS
6203   test -z "$as_dir" && as_dir=.
6204   for ac_exec_ext in '' $ac_executable_extensions; do
6205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6206     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6207     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6208     break 2
6209   fi
6210 done
6211 done
6212 IFS=$as_save_IFS
6213
6214   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6215   ;;
6216 esac
6217 fi
6218 CP=$ac_cv_path_CP
6219 if test -n "$CP"; then
6220   { echo "$as_me:$LINENO: result: $CP" >&5
6221 echo "${ECHO_T}$CP" >&6; }
6222 else
6223   { echo "$as_me:$LINENO: result: no" >&5
6224 echo "${ECHO_T}no" >&6; }
6225 fi
6226
6227
6228 # Extract the first word of "date", so it can be a program name with args.
6229 set dummy date; ac_word=$2
6230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6232 if test "${ac_cv_path_DATE+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   case $DATE in
6236   [\\/]* | ?:[\\/]*)
6237   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6238   ;;
6239   *)
6240   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245   for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252 done
6253 IFS=$as_save_IFS
6254
6255   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6256   ;;
6257 esac
6258 fi
6259 DATE=$ac_cv_path_DATE
6260 if test -n "$DATE"; then
6261   { echo "$as_me:$LINENO: result: $DATE" >&5
6262 echo "${ECHO_T}$DATE" >&6; }
6263 else
6264   { echo "$as_me:$LINENO: result: no" >&5
6265 echo "${ECHO_T}no" >&6; }
6266 fi
6267
6268
6269 # Extract the first word of "find", so it can be a program name with args.
6270 set dummy find; ac_word=$2
6271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6273 if test "${ac_cv_path_FIND+set}" = set; then
6274   echo $ECHO_N "(cached) $ECHO_C" >&6
6275 else
6276   case $FIND in
6277   [\\/]* | ?:[\\/]*)
6278   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6279   ;;
6280   *)
6281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284   IFS=$as_save_IFS
6285   test -z "$as_dir" && as_dir=.
6286   for ac_exec_ext in '' $ac_executable_extensions; do
6287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290     break 2
6291   fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6297   ;;
6298 esac
6299 fi
6300 FIND=$ac_cv_path_FIND
6301 if test -n "$FIND"; then
6302   { echo "$as_me:$LINENO: result: $FIND" >&5
6303 echo "${ECHO_T}$FIND" >&6; }
6304 else
6305   { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6307 fi
6308
6309
6310 # Extract the first word of "grep", so it can be a program name with args.
6311 set dummy grep; ac_word=$2
6312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6314 if test "${ac_cv_path_GREP+set}" = set; then
6315   echo $ECHO_N "(cached) $ECHO_C" >&6
6316 else
6317   case $GREP in
6318   [\\/]* | ?:[\\/]*)
6319   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6320   ;;
6321   *)
6322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325   IFS=$as_save_IFS
6326   test -z "$as_dir" && as_dir=.
6327   for ac_exec_ext in '' $ac_executable_extensions; do
6328   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6329     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6330     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6331     break 2
6332   fi
6333 done
6334 done
6335 IFS=$as_save_IFS
6336
6337   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6338   ;;
6339 esac
6340 fi
6341 GREP=$ac_cv_path_GREP
6342 if test -n "$GREP"; then
6343   { echo "$as_me:$LINENO: result: $GREP" >&5
6344 echo "${ECHO_T}$GREP" >&6; }
6345 else
6346   { echo "$as_me:$LINENO: result: no" >&5
6347 echo "${ECHO_T}no" >&6; }
6348 fi
6349
6350
6351 # Extract the first word of "mkdir", so it can be a program name with args.
6352 set dummy mkdir; ac_word=$2
6353 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6355 if test "${ac_cv_path_MKDIR+set}" = set; then
6356   echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358   case $MKDIR in
6359   [\\/]* | ?:[\\/]*)
6360   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6361   ;;
6362   *)
6363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364 for as_dir in $PATH
6365 do
6366   IFS=$as_save_IFS
6367   test -z "$as_dir" && as_dir=.
6368   for ac_exec_ext in '' $ac_executable_extensions; do
6369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6370     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6371     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372     break 2
6373   fi
6374 done
6375 done
6376 IFS=$as_save_IFS
6377
6378   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6379   ;;
6380 esac
6381 fi
6382 MKDIR=$ac_cv_path_MKDIR
6383 if test -n "$MKDIR"; then
6384   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6385 echo "${ECHO_T}$MKDIR" >&6; }
6386 else
6387   { echo "$as_me:$LINENO: result: no" >&5
6388 echo "${ECHO_T}no" >&6; }
6389 fi
6390
6391
6392 # Extract the first word of "mv", so it can be a program name with args.
6393 set dummy mv; ac_word=$2
6394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6396 if test "${ac_cv_path_MV+set}" = set; then
6397   echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399   case $MV in
6400   [\\/]* | ?:[\\/]*)
6401   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6402   ;;
6403   *)
6404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 for as_dir in $PATH
6406 do
6407   IFS=$as_save_IFS
6408   test -z "$as_dir" && as_dir=.
6409   for ac_exec_ext in '' $ac_executable_extensions; do
6410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6411     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6412     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413     break 2
6414   fi
6415 done
6416 done
6417 IFS=$as_save_IFS
6418
6419   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6420   ;;
6421 esac
6422 fi
6423 MV=$ac_cv_path_MV
6424 if test -n "$MV"; then
6425   { echo "$as_me:$LINENO: result: $MV" >&5
6426 echo "${ECHO_T}$MV" >&6; }
6427 else
6428   { echo "$as_me:$LINENO: result: no" >&5
6429 echo "${ECHO_T}no" >&6; }
6430 fi
6431
6432
6433 if test -n "$ac_tool_prefix"; then
6434   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6435 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6438 if test "${ac_cv_prog_RANLIB+set}" = set; then
6439   echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441   if test -n "$RANLIB"; then
6442   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6443 else
6444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445 for as_dir in $PATH
6446 do
6447   IFS=$as_save_IFS
6448   test -z "$as_dir" && as_dir=.
6449   for ac_exec_ext in '' $ac_executable_extensions; do
6450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6451     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453     break 2
6454   fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 RANLIB=$ac_cv_prog_RANLIB
6462 if test -n "$RANLIB"; then
6463   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6464 echo "${ECHO_T}$RANLIB" >&6; }
6465 else
6466   { echo "$as_me:$LINENO: result: no" >&5
6467 echo "${ECHO_T}no" >&6; }
6468 fi
6469
6470
6471 fi
6472 if test -z "$ac_cv_prog_RANLIB"; then
6473   ac_ct_RANLIB=$RANLIB
6474   # Extract the first word of "ranlib", so it can be a program name with args.
6475 set dummy ranlib; ac_word=$2
6476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6478 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6479   echo $ECHO_N "(cached) $ECHO_C" >&6
6480 else
6481   if test -n "$ac_ct_RANLIB"; then
6482   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489   for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_prog_ac_ct_RANLIB="ranlib"
6492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496 done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6502 if test -n "$ac_ct_RANLIB"; then
6503   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6504 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6505 else
6506   { echo "$as_me:$LINENO: result: no" >&5
6507 echo "${ECHO_T}no" >&6; }
6508 fi
6509
6510   if test "x$ac_ct_RANLIB" = x; then
6511     RANLIB=":"
6512   else
6513     case $cross_compiling:$ac_tool_warned in
6514 yes:)
6515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6516 whose name does not start with the host triplet.  If you think this
6517 configuration is useful to you, please write to autoconf@gnu.org." >&5
6518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6519 whose name does not start with the host triplet.  If you think this
6520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523     RANLIB=$ac_ct_RANLIB
6524   fi
6525 else
6526   RANLIB="$ac_cv_prog_RANLIB"
6527 fi
6528
6529 if test -n "$ac_tool_prefix"; then
6530   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6531 set dummy ${ac_tool_prefix}ar; ac_word=$2
6532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6534 if test "${ac_cv_prog_AR+set}" = set; then
6535   echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537   if test -n "$AR"; then
6538   ac_cv_prog_AR="$AR" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543   IFS=$as_save_IFS
6544   test -z "$as_dir" && as_dir=.
6545   for ac_exec_ext in '' $ac_executable_extensions; do
6546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6547     ac_cv_prog_AR="${ac_tool_prefix}ar"
6548     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549     break 2
6550   fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 AR=$ac_cv_prog_AR
6558 if test -n "$AR"; then
6559   { echo "$as_me:$LINENO: result: $AR" >&5
6560 echo "${ECHO_T}$AR" >&6; }
6561 else
6562   { echo "$as_me:$LINENO: result: no" >&5
6563 echo "${ECHO_T}no" >&6; }
6564 fi
6565
6566
6567 fi
6568 if test -z "$ac_cv_prog_AR"; then
6569   ac_ct_AR=$AR
6570   # Extract the first word of "ar", so it can be a program name with args.
6571 set dummy ar; ac_word=$2
6572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6575   echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577   if test -n "$ac_ct_AR"; then
6578   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6579 else
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 for as_dir in $PATH
6582 do
6583   IFS=$as_save_IFS
6584   test -z "$as_dir" && as_dir=.
6585   for ac_exec_ext in '' $ac_executable_extensions; do
6586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587     ac_cv_prog_ac_ct_AR="ar"
6588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589     break 2
6590   fi
6591 done
6592 done
6593 IFS=$as_save_IFS
6594
6595 fi
6596 fi
6597 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6598 if test -n "$ac_ct_AR"; then
6599   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6600 echo "${ECHO_T}$ac_ct_AR" >&6; }
6601 else
6602   { echo "$as_me:$LINENO: result: no" >&5
6603 echo "${ECHO_T}no" >&6; }
6604 fi
6605
6606   if test "x$ac_ct_AR" = x; then
6607     AR="false"
6608   else
6609     case $cross_compiling:$ac_tool_warned in
6610 yes:)
6611 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6612 whose name does not start with the host triplet.  If you think this
6613 configuration is useful to you, please write to autoconf@gnu.org." >&5
6614 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6615 whose name does not start with the host triplet.  If you think this
6616 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6617 ac_tool_warned=yes ;;
6618 esac
6619     AR=$ac_ct_AR
6620   fi
6621 else
6622   AR="$ac_cv_prog_AR"
6623 fi
6624
6625 # Extract the first word of "rm", so it can be a program name with args.
6626 set dummy rm; ac_word=$2
6627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6629 if test "${ac_cv_path_RM+set}" = set; then
6630   echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632   case $RM in
6633   [\\/]* | ?:[\\/]*)
6634   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6635   ;;
6636   *)
6637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6639 do
6640   IFS=$as_save_IFS
6641   test -z "$as_dir" && as_dir=.
6642   for ac_exec_ext in '' $ac_executable_extensions; do
6643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6644     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646     break 2
6647   fi
6648 done
6649 done
6650 IFS=$as_save_IFS
6651
6652   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6653   ;;
6654 esac
6655 fi
6656 RM=$ac_cv_path_RM
6657 if test -n "$RM"; then
6658   { echo "$as_me:$LINENO: result: $RM" >&5
6659 echo "${ECHO_T}$RM" >&6; }
6660 else
6661   { echo "$as_me:$LINENO: result: no" >&5
6662 echo "${ECHO_T}no" >&6; }
6663 fi
6664
6665
6666 # Extract the first word of "sed", so it can be a program name with args.
6667 set dummy sed; ac_word=$2
6668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6670 if test "${ac_cv_path_SED+set}" = set; then
6671   echo $ECHO_N "(cached) $ECHO_C" >&6
6672 else
6673   case $SED in
6674   [\\/]* | ?:[\\/]*)
6675   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6676   ;;
6677   *)
6678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683   for ac_exec_ext in '' $ac_executable_extensions; do
6684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6685     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690 done
6691 IFS=$as_save_IFS
6692
6693   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6694   ;;
6695 esac
6696 fi
6697 SED=$ac_cv_path_SED
6698 if test -n "$SED"; then
6699   { echo "$as_me:$LINENO: result: $SED" >&5
6700 echo "${ECHO_T}$SED" >&6; }
6701 else
6702   { echo "$as_me:$LINENO: result: no" >&5
6703 echo "${ECHO_T}no" >&6; }
6704 fi
6705
6706
6707 # Extract the first word of "tar", so it can be a program name with args.
6708 set dummy tar; ac_word=$2
6709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6711 if test "${ac_cv_path_TAR+set}" = set; then
6712   echo $ECHO_N "(cached) $ECHO_C" >&6
6713 else
6714   case $TAR in
6715   [\\/]* | ?:[\\/]*)
6716   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6717   ;;
6718   *)
6719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 for as_dir in $PATH
6721 do
6722   IFS=$as_save_IFS
6723   test -z "$as_dir" && as_dir=.
6724   for ac_exec_ext in '' $ac_executable_extensions; do
6725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6726     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6728     break 2
6729   fi
6730 done
6731 done
6732 IFS=$as_save_IFS
6733
6734   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6735   ;;
6736 esac
6737 fi
6738 TAR=$ac_cv_path_TAR
6739 if test -n "$TAR"; then
6740   { echo "$as_me:$LINENO: result: $TAR" >&5
6741 echo "${ECHO_T}$TAR" >&6; }
6742 else
6743   { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6745 fi
6746
6747
6748 # Extract the first word of "pwd", so it can be a program name with args.
6749 set dummy pwd; ac_word=$2
6750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6752 if test "${ac_cv_path_BINPWD+set}" = set; then
6753   echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755   case $BINPWD in
6756   [\\/]* | ?:[\\/]*)
6757   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6758   ;;
6759   *)
6760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763   IFS=$as_save_IFS
6764   test -z "$as_dir" && as_dir=.
6765   for ac_exec_ext in '' $ac_executable_extensions; do
6766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6767     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6769     break 2
6770   fi
6771 done
6772 done
6773 IFS=$as_save_IFS
6774
6775   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6776   ;;
6777 esac
6778 fi
6779 BINPWD=$ac_cv_path_BINPWD
6780 if test -n "$BINPWD"; then
6781   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6782 echo "${ECHO_T}$BINPWD" >&6; }
6783 else
6784   { echo "$as_me:$LINENO: result: no" >&5
6785 echo "${ECHO_T}no" >&6; }
6786 fi
6787
6788
6789
6790 # Extract the first word of "dot", so it can be a program name with args.
6791 set dummy dot; ac_word=$2
6792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6794 if test "${ac_cv_path_DOT+set}" = set; then
6795   echo $ECHO_N "(cached) $ECHO_C" >&6
6796 else
6797   case $DOT in
6798   [\\/]* | ?:[\\/]*)
6799   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6800   ;;
6801   *)
6802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6803 for as_dir in $PATH
6804 do
6805   IFS=$as_save_IFS
6806   test -z "$as_dir" && as_dir=.
6807   for ac_exec_ext in '' $ac_executable_extensions; do
6808   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6809     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6811     break 2
6812   fi
6813 done
6814 done
6815 IFS=$as_save_IFS
6816
6817   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6818   ;;
6819 esac
6820 fi
6821 DOT=$ac_cv_path_DOT
6822 if test -n "$DOT"; then
6823   { echo "$as_me:$LINENO: result: $DOT" >&5
6824 echo "${ECHO_T}$DOT" >&6; }
6825 else
6826   { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6828 fi
6829
6830
6831 if test "$DOT" != "echo dot" ; then
6832
6833 cat >>confdefs.h <<\_ACEOF
6834 #define HAVE_DOT 1
6835 _ACEOF
6836
6837     if test "$llvm_cv_os_type" = "MingW" ; then
6838     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6839   fi
6840
6841 cat >>confdefs.h <<_ACEOF
6842 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6843 _ACEOF
6844
6845 fi
6846
6847 # Find a good install program.  We prefer a C program (faster),
6848 # so one script is as good as another.  But avoid the broken or
6849 # incompatible versions:
6850 # SysV /etc/install, /usr/sbin/install
6851 # SunOS /usr/etc/install
6852 # IRIX /sbin/install
6853 # AIX /bin/install
6854 # AmigaOS /C/install, which installs bootblocks on floppy discs
6855 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6856 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6857 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6858 # OS/2's system install, which has a completely different semantic
6859 # ./install, which can be erroneously created by make from ./install.sh.
6860 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6861 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6862 if test -z "$INSTALL"; then
6863 if test "${ac_cv_path_install+set}" = set; then
6864   echo $ECHO_N "(cached) $ECHO_C" >&6
6865 else
6866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869   IFS=$as_save_IFS
6870   test -z "$as_dir" && as_dir=.
6871   # Account for people who put trailing slashes in PATH elements.
6872 case $as_dir/ in
6873   ./ | .// | /cC/* | \
6874   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6875   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6876   /usr/ucb/* ) ;;
6877   *)
6878     # OSF1 and SCO ODT 3.0 have their own names for install.
6879     # Don't use installbsd from OSF since it installs stuff as root
6880     # by default.
6881     for ac_prog in ginstall scoinst install; do
6882       for ac_exec_ext in '' $ac_executable_extensions; do
6883         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6884           if test $ac_prog = install &&
6885             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6886             # AIX install.  It has an incompatible calling convention.
6887             :
6888           elif test $ac_prog = install &&
6889             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6890             # program-specific install script used by HP pwplus--don't use.
6891             :
6892           else
6893             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6894             break 3
6895           fi
6896         fi
6897       done
6898     done
6899     ;;
6900 esac
6901 done
6902 IFS=$as_save_IFS
6903
6904
6905 fi
6906   if test "${ac_cv_path_install+set}" = set; then
6907     INSTALL=$ac_cv_path_install
6908   else
6909     # As a last resort, use the slow shell script.  Don't cache a
6910     # value for INSTALL within a source directory, because that will
6911     # break other packages using the cache if that directory is
6912     # removed, or if the value is a relative name.
6913     INSTALL=$ac_install_sh
6914   fi
6915 fi
6916 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6917 echo "${ECHO_T}$INSTALL" >&6; }
6918
6919 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6920 # It thinks the first close brace ends the variable substitution.
6921 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6922
6923 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6924
6925 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6926
6927 case "$INSTALL" in
6928  [\\/$]* | ?:[\\/]* ) ;;
6929  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6930 esac
6931
6932 # Extract the first word of "bzip2", so it can be a program name with args.
6933 set dummy bzip2; ac_word=$2
6934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6936 if test "${ac_cv_path_BZIP2+set}" = set; then
6937   echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939   case $BZIP2 in
6940   [\\/]* | ?:[\\/]*)
6941   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6942   ;;
6943   *)
6944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 for as_dir in $PATH
6946 do
6947   IFS=$as_save_IFS
6948   test -z "$as_dir" && as_dir=.
6949   for ac_exec_ext in '' $ac_executable_extensions; do
6950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6951     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6953     break 2
6954   fi
6955 done
6956 done
6957 IFS=$as_save_IFS
6958
6959   ;;
6960 esac
6961 fi
6962 BZIP2=$ac_cv_path_BZIP2
6963 if test -n "$BZIP2"; then
6964   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6965 echo "${ECHO_T}$BZIP2" >&6; }
6966 else
6967   { echo "$as_me:$LINENO: result: no" >&5
6968 echo "${ECHO_T}no" >&6; }
6969 fi
6970
6971
6972 # Extract the first word of "cat", so it can be a program name with args.
6973 set dummy cat; ac_word=$2
6974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6976 if test "${ac_cv_path_CAT+set}" = set; then
6977   echo $ECHO_N "(cached) $ECHO_C" >&6
6978 else
6979   case $CAT in
6980   [\\/]* | ?:[\\/]*)
6981   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6982   ;;
6983   *)
6984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6986 do
6987   IFS=$as_save_IFS
6988   test -z "$as_dir" && as_dir=.
6989   for ac_exec_ext in '' $ac_executable_extensions; do
6990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6991     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993     break 2
6994   fi
6995 done
6996 done
6997 IFS=$as_save_IFS
6998
6999   ;;
7000 esac
7001 fi
7002 CAT=$ac_cv_path_CAT
7003 if test -n "$CAT"; then
7004   { echo "$as_me:$LINENO: result: $CAT" >&5
7005 echo "${ECHO_T}$CAT" >&6; }
7006 else
7007   { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7009 fi
7010
7011
7012 # Extract the first word of "doxygen", so it can be a program name with args.
7013 set dummy doxygen; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019   case $DOXYGEN in
7020   [\\/]* | ?:[\\/]*)
7021   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7022   ;;
7023   *)
7024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027   IFS=$as_save_IFS
7028   test -z "$as_dir" && as_dir=.
7029   for ac_exec_ext in '' $ac_executable_extensions; do
7030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7031     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033     break 2
7034   fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039   ;;
7040 esac
7041 fi
7042 DOXYGEN=$ac_cv_path_DOXYGEN
7043 if test -n "$DOXYGEN"; then
7044   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7045 echo "${ECHO_T}$DOXYGEN" >&6; }
7046 else
7047   { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7049 fi
7050
7051
7052 # Extract the first word of "groff", so it can be a program name with args.
7053 set dummy groff; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_path_GROFF+set}" = set; then
7057   echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7059   case $GROFF in
7060   [\\/]* | ?:[\\/]*)
7061   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7062   ;;
7063   *)
7064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067   IFS=$as_save_IFS
7068   test -z "$as_dir" && as_dir=.
7069   for ac_exec_ext in '' $ac_executable_extensions; do
7070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7071     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7073     break 2
7074   fi
7075 done
7076 done
7077 IFS=$as_save_IFS
7078
7079   ;;
7080 esac
7081 fi
7082 GROFF=$ac_cv_path_GROFF
7083 if test -n "$GROFF"; then
7084   { echo "$as_me:$LINENO: result: $GROFF" >&5
7085 echo "${ECHO_T}$GROFF" >&6; }
7086 else
7087   { echo "$as_me:$LINENO: result: no" >&5
7088 echo "${ECHO_T}no" >&6; }
7089 fi
7090
7091
7092 # Extract the first word of "gzip", so it can be a program name with args.
7093 set dummy gzip; ac_word=$2
7094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7096 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7097   echo $ECHO_N "(cached) $ECHO_C" >&6
7098 else
7099   case $GZIPBIN in
7100   [\\/]* | ?:[\\/]*)
7101   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7102   ;;
7103   *)
7104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107   IFS=$as_save_IFS
7108   test -z "$as_dir" && as_dir=.
7109   for ac_exec_ext in '' $ac_executable_extensions; do
7110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7111     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113     break 2
7114   fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119   ;;
7120 esac
7121 fi
7122 GZIPBIN=$ac_cv_path_GZIPBIN
7123 if test -n "$GZIPBIN"; then
7124   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7125 echo "${ECHO_T}$GZIPBIN" >&6; }
7126 else
7127   { echo "$as_me:$LINENO: result: no" >&5
7128 echo "${ECHO_T}no" >&6; }
7129 fi
7130
7131
7132 # Extract the first word of "pdfroff", so it can be a program name with args.
7133 set dummy pdfroff; ac_word=$2
7134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7136 if test "${ac_cv_path_PDFROFF+set}" = set; then
7137   echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139   case $PDFROFF in
7140   [\\/]* | ?:[\\/]*)
7141   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7142   ;;
7143   *)
7144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149   for ac_exec_ext in '' $ac_executable_extensions; do
7150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7151     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159   ;;
7160 esac
7161 fi
7162 PDFROFF=$ac_cv_path_PDFROFF
7163 if test -n "$PDFROFF"; then
7164   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7165 echo "${ECHO_T}$PDFROFF" >&6; }
7166 else
7167   { echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6; }
7169 fi
7170
7171
7172 # Extract the first word of "zip", so it can be a program name with args.
7173 set dummy zip; ac_word=$2
7174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7176 if test "${ac_cv_path_ZIP+set}" = set; then
7177   echo $ECHO_N "(cached) $ECHO_C" >&6
7178 else
7179   case $ZIP in
7180   [\\/]* | ?:[\\/]*)
7181   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7182   ;;
7183   *)
7184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187   IFS=$as_save_IFS
7188   test -z "$as_dir" && as_dir=.
7189   for ac_exec_ext in '' $ac_executable_extensions; do
7190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7191     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7192     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7193     break 2
7194   fi
7195 done
7196 done
7197 IFS=$as_save_IFS
7198
7199   ;;
7200 esac
7201 fi
7202 ZIP=$ac_cv_path_ZIP
7203 if test -n "$ZIP"; then
7204   { echo "$as_me:$LINENO: result: $ZIP" >&5
7205 echo "${ECHO_T}$ZIP" >&6; }
7206 else
7207   { echo "$as_me:$LINENO: result: no" >&5
7208 echo "${ECHO_T}no" >&6; }
7209 fi
7210
7211
7212 # Extract the first word of "go", so it can be a program name with args.
7213 set dummy go; ac_word=$2
7214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7216 if test "${ac_cv_path_GO+set}" = set; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   case $GO in
7220   [\\/]* | ?:[\\/]*)
7221   ac_cv_path_GO="$GO" # Let the user override the test with a path.
7222   ;;
7223   *)
7224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7225 for as_dir in $PATH
7226 do
7227   IFS=$as_save_IFS
7228   test -z "$as_dir" && as_dir=.
7229   for ac_exec_ext in '' $ac_executable_extensions; do
7230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7231     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7233     break 2
7234   fi
7235 done
7236 done
7237 IFS=$as_save_IFS
7238
7239   ;;
7240 esac
7241 fi
7242 GO=$ac_cv_path_GO
7243 if test -n "$GO"; then
7244   { echo "$as_me:$LINENO: result: $GO" >&5
7245 echo "${ECHO_T}$GO" >&6; }
7246 else
7247   { echo "$as_me:$LINENO: result: no" >&5
7248 echo "${ECHO_T}no" >&6; }
7249 fi
7250
7251
7252 for ac_prog in ocamlfind
7253 do
7254   # Extract the first word of "$ac_prog", so it can be a program name with args.
7255 set dummy $ac_prog; ac_word=$2
7256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7258 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7259   echo $ECHO_N "(cached) $ECHO_C" >&6
7260 else
7261   case $OCAMLFIND in
7262   [\\/]* | ?:[\\/]*)
7263   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7264   ;;
7265   *)
7266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269   IFS=$as_save_IFS
7270   test -z "$as_dir" && as_dir=.
7271   for ac_exec_ext in '' $ac_executable_extensions; do
7272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7273     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7275     break 2
7276   fi
7277 done
7278 done
7279 IFS=$as_save_IFS
7280
7281   ;;
7282 esac
7283 fi
7284 OCAMLFIND=$ac_cv_path_OCAMLFIND
7285 if test -n "$OCAMLFIND"; then
7286   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7287 echo "${ECHO_T}$OCAMLFIND" >&6; }
7288 else
7289   { echo "$as_me:$LINENO: result: no" >&5
7290 echo "${ECHO_T}no" >&6; }
7291 fi
7292
7293
7294   test -n "$OCAMLFIND" && break
7295 done
7296
7297 for ac_prog in gas as
7298 do
7299   # Extract the first word of "$ac_prog", so it can be a program name with args.
7300 set dummy $ac_prog; ac_word=$2
7301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7303 if test "${ac_cv_path_GAS+set}" = set; then
7304   echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306   case $GAS in
7307   [\\/]* | ?:[\\/]*)
7308   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7309   ;;
7310   *)
7311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316   for ac_exec_ext in '' $ac_executable_extensions; do
7317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7318     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323 done
7324 IFS=$as_save_IFS
7325
7326   ;;
7327 esac
7328 fi
7329 GAS=$ac_cv_path_GAS
7330 if test -n "$GAS"; then
7331   { echo "$as_me:$LINENO: result: $GAS" >&5
7332 echo "${ECHO_T}$GAS" >&6; }
7333 else
7334   { echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6; }
7336 fi
7337
7338
7339   test -n "$GAS" && break
7340 done
7341
7342
7343 { echo "$as_me:$LINENO: checking for linker version" >&5
7344 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7345 if test "${llvm_cv_link_version+set}" = set; then
7346   echo $ECHO_N "(cached) $ECHO_C" >&6
7347 else
7348
7349    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7350
7351    # Check for ld64.
7352    if (echo "$version_string" | grep -q "ld64"); then
7353      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7354    else
7355      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7356    fi
7357
7358 fi
7359 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7360 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7361
7362 cat >>confdefs.h <<_ACEOF
7363 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7364 _ACEOF
7365
7366
7367
7368
7369 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7370 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7371 if test "${llvm_cv_link_use_r+set}" = set; then
7372   echo $ECHO_N "(cached) $ECHO_C" >&6
7373 else
7374    ac_ext=c
7375 ac_cpp='$CPP $CPPFLAGS'
7376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7379
7380   oldcflags="$CFLAGS"
7381   CFLAGS="$CFLAGS -Wl,-R."
7382   cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h.  */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h.  */
7388
7389 int
7390 main ()
7391 {
7392
7393   ;
7394   return 0;
7395 }
7396 _ACEOF
7397 rm -f conftest.$ac_objext conftest$ac_exeext
7398 if { (ac_try="$ac_link"
7399 case "(($ac_try" in
7400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7401   *) ac_try_echo=$ac_try;;
7402 esac
7403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7404   (eval "$ac_link") 2>conftest.er1
7405   ac_status=$?
7406   grep -v '^ *+' conftest.er1 >conftest.err
7407   rm -f conftest.er1
7408   cat conftest.err >&5
7409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410   (exit $ac_status); } &&
7411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7412   { (case "(($ac_try" in
7413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414   *) ac_try_echo=$ac_try;;
7415 esac
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417   (eval "$ac_try") 2>&5
7418   ac_status=$?
7419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420   (exit $ac_status); }; } &&
7421          { ac_try='test -s conftest$ac_exeext'
7422   { (case "(($ac_try" in
7423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424   *) ac_try_echo=$ac_try;;
7425 esac
7426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427   (eval "$ac_try") 2>&5
7428   ac_status=$?
7429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430   (exit $ac_status); }; }; then
7431   llvm_cv_link_use_r=yes
7432 else
7433   echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436         llvm_cv_link_use_r=no
7437 fi
7438
7439 rm -f core conftest.err conftest.$ac_objext \
7440       conftest$ac_exeext conftest.$ac_ext
7441   CFLAGS="$oldcflags"
7442   ac_ext=c
7443 ac_cpp='$CPP $CPPFLAGS'
7444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7447
7448
7449 fi
7450 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7451 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7452 if test "$llvm_cv_link_use_r" = yes ; then
7453
7454 cat >>confdefs.h <<\_ACEOF
7455 #define HAVE_LINK_R 1
7456 _ACEOF
7457
7458   fi
7459
7460
7461 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7462 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7463 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466    ac_ext=c
7467 ac_cpp='$CPP $CPPFLAGS'
7468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7471
7472   oldcflags="$CFLAGS"
7473   CFLAGS="$CFLAGS -rdynamic"
7474   cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h.  */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h.  */
7480
7481 int
7482 main ()
7483 {
7484
7485   ;
7486   return 0;
7487 }
7488 _ACEOF
7489 rm -f conftest.$ac_objext conftest$ac_exeext
7490 if { (ac_try="$ac_link"
7491 case "(($ac_try" in
7492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493   *) ac_try_echo=$ac_try;;
7494 esac
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496   (eval "$ac_link") 2>conftest.er1
7497   ac_status=$?
7498   grep -v '^ *+' conftest.er1 >conftest.err
7499   rm -f conftest.er1
7500   cat conftest.err >&5
7501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); } &&
7503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7504   { (case "(($ac_try" in
7505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7506   *) ac_try_echo=$ac_try;;
7507 esac
7508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509   (eval "$ac_try") 2>&5
7510   ac_status=$?
7511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); }; } &&
7513          { ac_try='test -s conftest$ac_exeext'
7514   { (case "(($ac_try" in
7515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7516   *) ac_try_echo=$ac_try;;
7517 esac
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519   (eval "$ac_try") 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; }; then
7523   llvm_cv_link_use_export_dynamic=yes
7524 else
7525   echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7527
7528         llvm_cv_link_use_export_dynamic=no
7529 fi
7530
7531 rm -f core conftest.err conftest.$ac_objext \
7532       conftest$ac_exeext conftest.$ac_ext
7533   CFLAGS="$oldcflags"
7534   ac_ext=c
7535 ac_cpp='$CPP $CPPFLAGS'
7536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7539
7540
7541 fi
7542 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7543 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7544 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7545
7546 cat >>confdefs.h <<\_ACEOF
7547 #define HAVE_LINK_EXPORT_DYNAMIC 1
7548 _ACEOF
7549
7550   fi
7551
7552
7553 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7554 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7555 if test "${llvm_cv_link_use_version_script+set}" = set; then
7556   echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558    ac_ext=c
7559 ac_cpp='$CPP $CPPFLAGS'
7560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7563
7564   oldcflags="$CFLAGS"
7565
7566   # The following code is from the autoconf manual,
7567   # "11.13: Limitations of Usual Tools".
7568   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7569   # Use mktemp if possible; otherwise fall back on mkdir,
7570   # with $RANDOM to make collisions less likely.
7571   : ${TMPDIR=/tmp}
7572   {
7573     tmp=`
7574       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7575     ` &&
7576     test -n "$tmp" && test -d "$tmp"
7577   } || {
7578     tmp=$TMPDIR/foo$$-$RANDOM
7579     (umask 077 && mkdir "$tmp")
7580   } || exit $?
7581
7582   echo "{" > "$tmp/export.map"
7583   echo "  global: main;" >> "$tmp/export.map"
7584   echo "  local: *;" >> "$tmp/export.map"
7585   echo "};" >> "$tmp/export.map"
7586
7587   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7588   cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h.  */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h.  */
7594
7595 int
7596 main ()
7597 {
7598
7599   ;
7600   return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext conftest$ac_exeext
7604 if { (ac_try="$ac_link"
7605 case "(($ac_try" in
7606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607   *) ac_try_echo=$ac_try;;
7608 esac
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610   (eval "$ac_link") 2>conftest.er1
7611   ac_status=$?
7612   grep -v '^ *+' conftest.er1 >conftest.err
7613   rm -f conftest.er1
7614   cat conftest.err >&5
7615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616   (exit $ac_status); } &&
7617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7618   { (case "(($ac_try" in
7619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620   *) ac_try_echo=$ac_try;;
7621 esac
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623   (eval "$ac_try") 2>&5
7624   ac_status=$?
7625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626   (exit $ac_status); }; } &&
7627          { ac_try='test -s conftest$ac_exeext'
7628   { (case "(($ac_try" in
7629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630   *) ac_try_echo=$ac_try;;
7631 esac
7632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7633   (eval "$ac_try") 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }; }; then
7637   llvm_cv_link_use_version_script=yes
7638 else
7639   echo "$as_me: failed program was:" >&5
7640 sed 's/^/| /' conftest.$ac_ext >&5
7641
7642         llvm_cv_link_use_version_script=no
7643 fi
7644
7645 rm -f core conftest.err conftest.$ac_objext \
7646       conftest$ac_exeext conftest.$ac_ext
7647   rm "$tmp/export.map"
7648   rmdir "$tmp"
7649   CFLAGS="$oldcflags"
7650   ac_ext=c
7651 ac_cpp='$CPP $CPPFLAGS'
7652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7655
7656
7657 fi
7658 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7659 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7660 if test "$llvm_cv_link_use_version_script" = yes ; then
7661   HAVE_LINK_VERSION_SCRIPT=1
7662
7663   fi
7664
7665
7666
7667 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7668 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7669 if test "${ac_cv_path_GREP+set}" = set; then
7670   echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672   # Extract the first word of "grep ggrep" to use in msg output
7673 if test -z "$GREP"; then
7674 set dummy grep ggrep; ac_prog_name=$2
7675 if test "${ac_cv_path_GREP+set}" = set; then
7676   echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678   ac_path_GREP_found=false
7679 # Loop through the user's path and test for each of PROGNAME-LIST
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7682 do
7683   IFS=$as_save_IFS
7684   test -z "$as_dir" && as_dir=.
7685   for ac_prog in grep ggrep; do
7686   for ac_exec_ext in '' $ac_executable_extensions; do
7687     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7688     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7689     # Check for GNU ac_path_GREP and select it if it is found.
7690   # Check for GNU $ac_path_GREP
7691 case `"$ac_path_GREP" --version 2>&1` in
7692 *GNU*)
7693   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7694 *)
7695   ac_count=0
7696   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7697   while :
7698   do
7699     cat "conftest.in" "conftest.in" >"conftest.tmp"
7700     mv "conftest.tmp" "conftest.in"
7701     cp "conftest.in" "conftest.nl"
7702     echo 'GREP' >> "conftest.nl"
7703     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7704     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7705     ac_count=`expr $ac_count + 1`
7706     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7707       # Best one so far, save it but keep looking for a better one
7708       ac_cv_path_GREP="$ac_path_GREP"
7709       ac_path_GREP_max=$ac_count
7710     fi
7711     # 10*(2^10) chars as input seems more than enough
7712     test $ac_count -gt 10 && break
7713   done
7714   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7715 esac
7716
7717
7718     $ac_path_GREP_found && break 3
7719   done
7720 done
7721
7722 done
7723 IFS=$as_save_IFS
7724
7725
7726 fi
7727
7728 GREP="$ac_cv_path_GREP"
7729 if test -z "$GREP"; then
7730   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7731 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7732    { (exit 1); exit 1; }; }
7733 fi
7734
7735 else
7736   ac_cv_path_GREP=$GREP
7737 fi
7738
7739
7740 fi
7741 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7742 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7743  GREP="$ac_cv_path_GREP"
7744
7745
7746 { echo "$as_me:$LINENO: checking for egrep" >&5
7747 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7748 if test "${ac_cv_path_EGREP+set}" = set; then
7749   echo $ECHO_N "(cached) $ECHO_C" >&6
7750 else
7751   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7752    then ac_cv_path_EGREP="$GREP -E"
7753    else
7754      # Extract the first word of "egrep" to use in msg output
7755 if test -z "$EGREP"; then
7756 set dummy egrep; ac_prog_name=$2
7757 if test "${ac_cv_path_EGREP+set}" = set; then
7758   echo $ECHO_N "(cached) $ECHO_C" >&6
7759 else
7760   ac_path_EGREP_found=false
7761 # Loop through the user's path and test for each of PROGNAME-LIST
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7764 do
7765   IFS=$as_save_IFS
7766   test -z "$as_dir" && as_dir=.
7767   for ac_prog in egrep; do
7768   for ac_exec_ext in '' $ac_executable_extensions; do
7769     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7770     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7771     # Check for GNU ac_path_EGREP and select it if it is found.
7772   # Check for GNU $ac_path_EGREP
7773 case `"$ac_path_EGREP" --version 2>&1` in
7774 *GNU*)
7775   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7776 *)
7777   ac_count=0
7778   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7779   while :
7780   do
7781     cat "conftest.in" "conftest.in" >"conftest.tmp"
7782     mv "conftest.tmp" "conftest.in"
7783     cp "conftest.in" "conftest.nl"
7784     echo 'EGREP' >> "conftest.nl"
7785     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7786     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7787     ac_count=`expr $ac_count + 1`
7788     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7789       # Best one so far, save it but keep looking for a better one
7790       ac_cv_path_EGREP="$ac_path_EGREP"
7791       ac_path_EGREP_max=$ac_count
7792     fi
7793     # 10*(2^10) chars as input seems more than enough
7794     test $ac_count -gt 10 && break
7795   done
7796   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7797 esac
7798
7799
7800     $ac_path_EGREP_found && break 3
7801   done
7802 done
7803
7804 done
7805 IFS=$as_save_IFS
7806
7807
7808 fi
7809
7810 EGREP="$ac_cv_path_EGREP"
7811 if test -z "$EGREP"; then
7812   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7813 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7814    { (exit 1); exit 1; }; }
7815 fi
7816
7817 else
7818   ac_cv_path_EGREP=$EGREP
7819 fi
7820
7821
7822    fi
7823 fi
7824 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7825 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7826  EGREP="$ac_cv_path_EGREP"
7827
7828
7829 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7831 if test "${ac_cv_header_stdc+set}" = set; then
7832   echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834   cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h.  */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h.  */
7840 #include <stdlib.h>
7841 #include <stdarg.h>
7842 #include <string.h>
7843 #include <float.h>
7844
7845 int
7846 main ()
7847 {
7848
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext
7854 if { (ac_try="$ac_compile"
7855 case "(($ac_try" in
7856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7857   *) ac_try_echo=$ac_try;;
7858 esac
7859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7860   (eval "$ac_compile") 2>conftest.er1
7861   ac_status=$?
7862   grep -v '^ *+' conftest.er1 >conftest.err
7863   rm -f conftest.er1
7864   cat conftest.err >&5
7865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866   (exit $ac_status); } &&
7867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7868   { (case "(($ac_try" in
7869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870   *) ac_try_echo=$ac_try;;
7871 esac
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873   (eval "$ac_try") 2>&5
7874   ac_status=$?
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); }; } &&
7877          { ac_try='test -s conftest.$ac_objext'
7878   { (case "(($ac_try" in
7879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880   *) ac_try_echo=$ac_try;;
7881 esac
7882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7883   (eval "$ac_try") 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); }; }; then
7887   ac_cv_header_stdc=yes
7888 else
7889   echo "$as_me: failed program was:" >&5
7890 sed 's/^/| /' conftest.$ac_ext >&5
7891
7892         ac_cv_header_stdc=no
7893 fi
7894
7895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896
7897 if test $ac_cv_header_stdc = yes; then
7898   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7899   cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905 #include <string.h>
7906
7907 _ACEOF
7908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909   $EGREP "memchr" >/dev/null 2>&1; then
7910   :
7911 else
7912   ac_cv_header_stdc=no
7913 fi
7914 rm -f conftest*
7915
7916 fi
7917
7918 if test $ac_cv_header_stdc = yes; then
7919   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7920   cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h.  */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h.  */
7926 #include <stdlib.h>
7927
7928 _ACEOF
7929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7930   $EGREP "free" >/dev/null 2>&1; then
7931   :
7932 else
7933   ac_cv_header_stdc=no
7934 fi
7935 rm -f conftest*
7936
7937 fi
7938
7939 if test $ac_cv_header_stdc = yes; then
7940   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7941   if test "$cross_compiling" = yes; then
7942   :
7943 else
7944   cat >conftest.$ac_ext <<_ACEOF
7945 /* confdefs.h.  */
7946 _ACEOF
7947 cat confdefs.h >>conftest.$ac_ext
7948 cat >>conftest.$ac_ext <<_ACEOF
7949 /* end confdefs.h.  */
7950 #include <ctype.h>
7951 #include <stdlib.h>
7952 #if ((' ' & 0x0FF) == 0x020)
7953 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7954 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7955 #else
7956 # define ISLOWER(c) \
7957                    (('a' <= (c) && (c) <= 'i') \
7958                      || ('j' <= (c) && (c) <= 'r') \
7959                      || ('s' <= (c) && (c) <= 'z'))
7960 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7961 #endif
7962
7963 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7964 int
7965 main ()
7966 {
7967   int i;
7968   for (i = 0; i < 256; i++)
7969     if (XOR (islower (i), ISLOWER (i))
7970         || toupper (i) != TOUPPER (i))
7971       return 2;
7972   return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest$ac_exeext
7976 if { (ac_try="$ac_link"
7977 case "(($ac_try" in
7978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979   *) ac_try_echo=$ac_try;;
7980 esac
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982   (eval "$ac_link") 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7986   { (case "(($ac_try" in
7987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988   *) ac_try_echo=$ac_try;;
7989 esac
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991   (eval "$ac_try") 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); }; }; then
7995   :
7996 else
7997   echo "$as_me: program exited with status $ac_status" >&5
7998 echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8000
8001 ( exit $ac_status )
8002 ac_cv_header_stdc=no
8003 fi
8004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8005 fi
8006
8007
8008 fi
8009 fi
8010 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8011 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8012 if test $ac_cv_header_stdc = yes; then
8013
8014 cat >>confdefs.h <<\_ACEOF
8015 #define STDC_HEADERS 1
8016 _ACEOF
8017
8018 fi
8019
8020 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8031                   inttypes.h stdint.h unistd.h
8032 do
8033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8037   echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039   cat >conftest.$ac_ext <<_ACEOF
8040 /* confdefs.h.  */
8041 _ACEOF
8042 cat confdefs.h >>conftest.$ac_ext
8043 cat >>conftest.$ac_ext <<_ACEOF
8044 /* end confdefs.h.  */
8045 $ac_includes_default
8046
8047 #include <$ac_header>
8048 _ACEOF
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8051 case "(($ac_try" in
8052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053   *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056   (eval "$ac_compile") 2>conftest.er1
8057   ac_status=$?
8058   grep -v '^ *+' conftest.er1 >conftest.err
8059   rm -f conftest.er1
8060   cat conftest.err >&5
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); } &&
8063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8064   { (case "(($ac_try" in
8065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066   *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069   (eval "$ac_try") 2>&5
8070   ac_status=$?
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); }; } &&
8073          { ac_try='test -s conftest.$ac_objext'
8074   { (case "(($ac_try" in
8075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076   *) ac_try_echo=$ac_try;;
8077 esac
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079   (eval "$ac_try") 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); }; }; then
8083   eval "$as_ac_Header=yes"
8084 else
8085   echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088         eval "$as_ac_Header=no"
8089 fi
8090
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 fi
8093 ac_res=`eval echo '${'$as_ac_Header'}'`
8094                { echo "$as_me:$LINENO: result: $ac_res" >&5
8095 echo "${ECHO_T}$ac_res" >&6; }
8096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8097   cat >>confdefs.h <<_ACEOF
8098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8099 _ACEOF
8100
8101 fi
8102
8103 done
8104
8105
8106
8107 for ac_header in errno.h
8108 do
8109 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8111   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8114   echo $ECHO_N "(cached) $ECHO_C" >&6
8115 fi
8116 ac_res=`eval echo '${'$as_ac_Header'}'`
8117                { echo "$as_me:$LINENO: result: $ac_res" >&5
8118 echo "${ECHO_T}$ac_res" >&6; }
8119 else
8120   # Is the header compilable?
8121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8123 cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h.  */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h.  */
8129 $ac_includes_default
8130 #include <$ac_header>
8131 _ACEOF
8132 rm -f conftest.$ac_objext
8133 if { (ac_try="$ac_compile"
8134 case "(($ac_try" in
8135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136   *) ac_try_echo=$ac_try;;
8137 esac
8138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139   (eval "$ac_compile") 2>conftest.er1
8140   ac_status=$?
8141   grep -v '^ *+' conftest.er1 >conftest.err
8142   rm -f conftest.er1
8143   cat conftest.err >&5
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); } &&
8146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8147   { (case "(($ac_try" in
8148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149   *) ac_try_echo=$ac_try;;
8150 esac
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152   (eval "$ac_try") 2>&5
8153   ac_status=$?
8154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155   (exit $ac_status); }; } &&
8156          { ac_try='test -s conftest.$ac_objext'
8157   { (case "(($ac_try" in
8158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8159   *) ac_try_echo=$ac_try;;
8160 esac
8161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8162   (eval "$ac_try") 2>&5
8163   ac_status=$?
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); }; }; then
8166   ac_header_compiler=yes
8167 else
8168   echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8170
8171         ac_header_compiler=no
8172 fi
8173
8174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8176 echo "${ECHO_T}$ac_header_compiler" >&6; }
8177
8178 # Is the header present?
8179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8181 cat >conftest.$ac_ext <<_ACEOF
8182 /* confdefs.h.  */
8183 _ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h.  */
8187 #include <$ac_header>
8188 _ACEOF
8189 if { (ac_try="$ac_cpp conftest.$ac_ext"
8190 case "(($ac_try" in
8191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8192   *) ac_try_echo=$ac_try;;
8193 esac
8194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8196   ac_status=$?
8197   grep -v '^ *+' conftest.er1 >conftest.err
8198   rm -f conftest.er1
8199   cat conftest.err >&5
8200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201   (exit $ac_status); } >/dev/null; then
8202   if test -s conftest.err; then
8203     ac_cpp_err=$ac_c_preproc_warn_flag
8204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8205   else
8206     ac_cpp_err=
8207   fi
8208 else
8209   ac_cpp_err=yes
8210 fi
8211 if test -z "$ac_cpp_err"; then
8212   ac_header_preproc=yes
8213 else
8214   echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.$ac_ext >&5
8216
8217   ac_header_preproc=no
8218 fi
8219
8220 rm -f conftest.err conftest.$ac_ext
8221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8222 echo "${ECHO_T}$ac_header_preproc" >&6; }
8223
8224 # So?  What about this header?
8225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8226   yes:no: )
8227     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8228 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8229     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8230 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8231     ac_header_preproc=yes
8232     ;;
8233   no:yes:* )
8234     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8235 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8236     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8237 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8238     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8239 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8240     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8241 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8244     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8245 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8246     ( cat <<\_ASBOX
8247 ## ------------------------------------ ##
8248 ## Report this to http://llvm.org/bugs/ ##
8249 ## ------------------------------------ ##
8250 _ASBOX
8251      ) | sed "s/^/$as_me: WARNING:     /" >&2
8252     ;;
8253 esac
8254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8257   echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259   eval "$as_ac_Header=\$ac_header_preproc"
8260 fi
8261 ac_res=`eval echo '${'$as_ac_Header'}'`
8262                { echo "$as_me:$LINENO: result: $ac_res" >&5
8263 echo "${ECHO_T}$ac_res" >&6; }
8264
8265 fi
8266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8267   cat >>confdefs.h <<_ACEOF
8268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8269 _ACEOF
8270
8271 fi
8272
8273 done
8274
8275
8276 case "$llvm_cv_os_type" in
8277   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8278   Darwin) llvm_shlib_ext=.dylib ;;
8279   *) llvm_shlib_ext=.so ;;
8280 esac
8281
8282
8283 cat >>confdefs.h <<_ACEOF
8284 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8285 _ACEOF
8286
8287
8288 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8289 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8290
8291 ICC=no
8292 IXX=no
8293 case $CC in
8294   icc*|icpc*)
8295     ICC=yes
8296     IXX=yes
8297     ;;
8298    *)
8299     ;;
8300 esac
8301
8302 if test "$GCC" != "yes" && test "$ICC" != "yes"
8303 then
8304   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8305 echo "$as_me: error: gcc|icc required but not found" >&2;}
8306    { (exit 1); exit 1; }; }
8307 fi
8308
8309 if test "$GXX" != "yes" && test "$IXX" != "yes"
8310 then
8311   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8312 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8313    { (exit 1); exit 1; }; }
8314 fi
8315
8316 if test "$GCC" = "yes"
8317 then
8318   cat >conftest.$ac_ext <<_ACEOF
8319
8320   /* confdefs.h.  */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h.  */
8325
8326     #if !defined(__GNUC__) || __GNUC__ < 3
8327     #error Unsupported GCC version
8328     #endif
8329
8330
8331 _ACEOF
8332 rm -f conftest.$ac_objext
8333 if { (ac_try="$ac_compile"
8334 case "(($ac_try" in
8335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336   *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339   (eval "$ac_compile") 2>conftest.er1
8340   ac_status=$?
8341   grep -v '^ *+' conftest.er1 >conftest.err
8342   rm -f conftest.er1
8343   cat conftest.err >&5
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } &&
8346          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8347   { (case "(($ac_try" in
8348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349   *) ac_try_echo=$ac_try;;
8350 esac
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352   (eval "$ac_try") 2>&5
8353   ac_status=$?
8354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355   (exit $ac_status); }; } &&
8356          { ac_try='test -s conftest.$ac_objext'
8357   { (case "(($ac_try" in
8358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8359   *) ac_try_echo=$ac_try;;
8360 esac
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362   (eval "$ac_try") 2>&5
8363   ac_status=$?
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); }; }; then
8366   :
8367 else
8368   echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8370
8371         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8372 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8373    { (exit 1); exit 1; }; }
8374 fi
8375
8376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8377 fi
8378
8379 if test -z "$llvm_cv_gnu_make_command"
8380 then
8381   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8382 echo "$as_me: error: GNU Make required but not found" >&2;}
8383    { (exit 1); exit 1; }; }
8384 fi
8385
8386 { echo "$as_me:$LINENO: result: ok" >&5
8387 echo "${ECHO_T}ok" >&6; }
8388
8389 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8390 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8391 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8392
8393 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8394
8395 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8396
8397
8398 NO_UNINITIALIZED=
8399 NO_MAYBE_UNINITIALIZED=
8400 if test "$GXX" = "yes"
8401 then
8402   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8403
8404         if test -z "$NO_MAYBE_UNINITIALIZED"
8405   then
8406     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8407
8408   fi
8409 fi
8410
8411 no_comment=
8412 llvm_cv_old_cxxflags="$CXXFLAGS"
8413 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8414 cat >conftest.$ac_ext <<_ACEOF
8415
8416   /* confdefs.h.  */
8417 _ACEOF
8418 cat confdefs.h >>conftest.$ac_ext
8419 cat >>conftest.$ac_ext <<_ACEOF
8420 /* end confdefs.h.  */
8421 // Comment \o\
8422 // Another comment
8423 int main() { return 0; }
8424
8425
8426 _ACEOF
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8429 case "(($ac_try" in
8430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431   *) ac_try_echo=$ac_try;;
8432 esac
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434   (eval "$ac_compile") 2>conftest.er1
8435   ac_status=$?
8436   grep -v '^ *+' conftest.er1 >conftest.err
8437   rm -f conftest.er1
8438   cat conftest.err >&5
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } &&
8441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8442   { (case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447   (eval "$ac_try") 2>&5
8448   ac_status=$?
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); }; } &&
8451          { ac_try='test -s conftest.$ac_objext'
8452   { (case "(($ac_try" in
8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454   *) ac_try_echo=$ac_try;;
8455 esac
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457   (eval "$ac_try") 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; }; then
8461
8462   no_comment=-Wno-comment
8463
8464 else
8465   echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8467
8468
8469 fi
8470
8471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 NO_COMMENT=$no_comment
8473
8474 CXXFLAGS="$llvm_cv_old_cxxflags"
8475
8476 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8477 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8478
8479
8480 # Check whether --with-python was given.
8481 if test "${with_python+set}" = set; then
8482   withval=$with_python; PYTHON="$withval"
8483 fi
8484
8485
8486 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8487   { echo "$as_me:$LINENO: checking for python" >&5
8488 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8489   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8490 echo "${ECHO_T}user defined: $with_python" >&6; }
8491 else
8492   if test -n "$PYTHON" ; then
8493     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8494 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8495   fi
8496
8497   # Extract the first word of "python python2 python27", so it can be a program name with args.
8498 set dummy python python2 python27; ac_word=$2
8499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8501 if test "${ac_cv_path_PYTHON+set}" = set; then
8502   echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504   case $PYTHON in
8505   [\\/]* | ?:[\\/]*)
8506   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8507   ;;
8508   *)
8509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8510 for as_dir in $PATH
8511 do
8512   IFS=$as_save_IFS
8513   test -z "$as_dir" && as_dir=.
8514   for ac_exec_ext in '' $ac_executable_extensions; do
8515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8516     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8518     break 2
8519   fi
8520 done
8521 done
8522 IFS=$as_save_IFS
8523
8524   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8525 echo "${ECHO_T}not found" >&6; }
8526                 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8527 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8528    { (exit 1); exit 1; }; }"
8529   ;;
8530 esac
8531 fi
8532 PYTHON=$ac_cv_path_PYTHON
8533 if test -n "$PYTHON"; then
8534   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8535 echo "${ECHO_T}$PYTHON" >&6; }
8536 else
8537   { echo "$as_me:$LINENO: result: no" >&5
8538 echo "${ECHO_T}no" >&6; }
8539 fi
8540
8541
8542 fi
8543
8544 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8545 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8546 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8547 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8548 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8549 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8550 if test "$ac_python_version_major" -gt "2" || \
8551    (test "$ac_python_version_major" -eq "2" && \
8552     test "$ac_python_version_minor" -ge "7") ; then
8553   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8554 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8555 else
8556   { echo "$as_me:$LINENO: result: not found" >&5
8557 echo "${ECHO_T}not found" >&6; }
8558   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8559 See \`config.log' for more details." >&5
8560 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8561 See \`config.log' for more details." >&2;}
8562    { (exit 1); exit 1; }; }
8563 fi
8564
8565
8566
8567 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8568 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8569 if test "${ac_cv_lib_m_sin+set}" = set; then
8570   echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572   ac_check_lib_save_LIBS=$LIBS
8573 LIBS="-lm  $LIBS"
8574 cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h.  */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h.  */
8580
8581 /* Override any GCC internal prototype to avoid an error.
8582    Use char because int might match the return type of a GCC
8583    builtin and then its argument prototype would still apply.  */
8584 #ifdef __cplusplus
8585 extern "C"
8586 #endif
8587 char sin ();
8588 int
8589 main ()
8590 {
8591 return sin ();
8592   ;
8593   return 0;
8594 }
8595 _ACEOF
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (ac_try="$ac_link"
8598 case "(($ac_try" in
8599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600   *) ac_try_echo=$ac_try;;
8601 esac
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603   (eval "$ac_link") 2>conftest.er1
8604   ac_status=$?
8605   grep -v '^ *+' conftest.er1 >conftest.err
8606   rm -f conftest.er1
8607   cat conftest.err >&5
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } &&
8610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8611   { (case "(($ac_try" in
8612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613   *) ac_try_echo=$ac_try;;
8614 esac
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616   (eval "$ac_try") 2>&5
8617   ac_status=$?
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); }; } &&
8620          { ac_try='test -s conftest$ac_exeext'
8621   { (case "(($ac_try" in
8622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623   *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626   (eval "$ac_try") 2>&5
8627   ac_status=$?
8628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629   (exit $ac_status); }; }; then
8630   ac_cv_lib_m_sin=yes
8631 else
8632   echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8634
8635         ac_cv_lib_m_sin=no
8636 fi
8637
8638 rm -f core conftest.err conftest.$ac_objext \
8639       conftest$ac_exeext conftest.$ac_ext
8640 LIBS=$ac_check_lib_save_LIBS
8641 fi
8642 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8643 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8644 if test $ac_cv_lib_m_sin = yes; then
8645   cat >>confdefs.h <<_ACEOF
8646 #define HAVE_LIBM 1
8647 _ACEOF
8648
8649   LIBS="-lm $LIBS"
8650
8651 fi
8652
8653 if test "$llvm_cv_os_type" = "MingW" ; then
8654
8655 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8656 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8657 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   ac_check_lib_save_LIBS=$LIBS
8661 LIBS="-limagehlp  $LIBS"
8662 cat >conftest.$ac_ext <<_ACEOF
8663 /* confdefs.h.  */
8664 _ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h.  */
8668
8669
8670 int
8671 main ()
8672 {
8673 return main ();
8674   ;
8675   return 0;
8676 }
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (ac_try="$ac_link"
8680 case "(($ac_try" in
8681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682   *) ac_try_echo=$ac_try;;
8683 esac
8684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685   (eval "$ac_link") 2>conftest.er1
8686   ac_status=$?
8687   grep -v '^ *+' conftest.er1 >conftest.err
8688   rm -f conftest.er1
8689   cat conftest.err >&5
8690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691   (exit $ac_status); } &&
8692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8693   { (case "(($ac_try" in
8694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695   *) ac_try_echo=$ac_try;;
8696 esac
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698   (eval "$ac_try") 2>&5
8699   ac_status=$?
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); }; } &&
8702          { ac_try='test -s conftest$ac_exeext'
8703   { (case "(($ac_try" in
8704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705   *) ac_try_echo=$ac_try;;
8706 esac
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708   (eval "$ac_try") 2>&5
8709   ac_status=$?
8710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711   (exit $ac_status); }; }; then
8712   ac_cv_lib_imagehlp_main=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717         ac_cv_lib_imagehlp_main=no
8718 fi
8719
8720 rm -f core conftest.err conftest.$ac_objext \
8721       conftest$ac_exeext conftest.$ac_ext
8722 LIBS=$ac_check_lib_save_LIBS
8723 fi
8724 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8725 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8726 if test $ac_cv_lib_imagehlp_main = yes; then
8727   cat >>confdefs.h <<_ACEOF
8728 #define HAVE_LIBIMAGEHLP 1
8729 _ACEOF
8730
8731   LIBS="-limagehlp $LIBS"
8732
8733 fi
8734
8735
8736 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8737 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8738 if test "${ac_cv_lib_psapi_main+set}" = set; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741   ac_check_lib_save_LIBS=$LIBS
8742 LIBS="-lpsapi  $LIBS"
8743 cat >conftest.$ac_ext <<_ACEOF
8744 /* confdefs.h.  */
8745 _ACEOF
8746 cat confdefs.h >>conftest.$ac_ext
8747 cat >>conftest.$ac_ext <<_ACEOF
8748 /* end confdefs.h.  */
8749
8750
8751 int
8752 main ()
8753 {
8754 return main ();
8755   ;
8756   return 0;
8757 }
8758 _ACEOF
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (ac_try="$ac_link"
8761 case "(($ac_try" in
8762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763   *) ac_try_echo=$ac_try;;
8764 esac
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766   (eval "$ac_link") 2>conftest.er1
8767   ac_status=$?
8768   grep -v '^ *+' conftest.er1 >conftest.err
8769   rm -f conftest.er1
8770   cat conftest.err >&5
8771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772   (exit $ac_status); } &&
8773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8774   { (case "(($ac_try" in
8775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8776   *) ac_try_echo=$ac_try;;
8777 esac
8778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8779   (eval "$ac_try") 2>&5
8780   ac_status=$?
8781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782   (exit $ac_status); }; } &&
8783          { ac_try='test -s conftest$ac_exeext'
8784   { (case "(($ac_try" in
8785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8786   *) ac_try_echo=$ac_try;;
8787 esac
8788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8789   (eval "$ac_try") 2>&5
8790   ac_status=$?
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); }; }; then
8793   ac_cv_lib_psapi_main=yes
8794 else
8795   echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8797
8798         ac_cv_lib_psapi_main=no
8799 fi
8800
8801 rm -f core conftest.err conftest.$ac_objext \
8802       conftest$ac_exeext conftest.$ac_ext
8803 LIBS=$ac_check_lib_save_LIBS
8804 fi
8805 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8806 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8807 if test $ac_cv_lib_psapi_main = yes; then
8808   cat >>confdefs.h <<_ACEOF
8809 #define HAVE_LIBPSAPI 1
8810 _ACEOF
8811
8812   LIBS="-lpsapi $LIBS"
8813
8814 fi
8815
8816
8817 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8818 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8819 if test "${ac_cv_lib_shell32_main+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   ac_check_lib_save_LIBS=$LIBS
8823 LIBS="-lshell32  $LIBS"
8824 cat >conftest.$ac_ext <<_ACEOF
8825 /* confdefs.h.  */
8826 _ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h.  */
8830
8831
8832 int
8833 main ()
8834 {
8835 return main ();
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 rm -f conftest.$ac_objext conftest$ac_exeext
8841 if { (ac_try="$ac_link"
8842 case "(($ac_try" in
8843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844   *) ac_try_echo=$ac_try;;
8845 esac
8846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847   (eval "$ac_link") 2>conftest.er1
8848   ac_status=$?
8849   grep -v '^ *+' conftest.er1 >conftest.err
8850   rm -f conftest.er1
8851   cat conftest.err >&5
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); } &&
8854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8855   { (case "(($ac_try" in
8856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857   *) ac_try_echo=$ac_try;;
8858 esac
8859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860   (eval "$ac_try") 2>&5
8861   ac_status=$?
8862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); }; } &&
8864          { ac_try='test -s conftest$ac_exeext'
8865   { (case "(($ac_try" in
8866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867   *) ac_try_echo=$ac_try;;
8868 esac
8869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8870   (eval "$ac_try") 2>&5
8871   ac_status=$?
8872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873   (exit $ac_status); }; }; then
8874   ac_cv_lib_shell32_main=yes
8875 else
8876   echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8878
8879         ac_cv_lib_shell32_main=no
8880 fi
8881
8882 rm -f core conftest.err conftest.$ac_objext \
8883       conftest$ac_exeext conftest.$ac_ext
8884 LIBS=$ac_check_lib_save_LIBS
8885 fi
8886 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8887 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8888 if test $ac_cv_lib_shell32_main = yes; then
8889   cat >>confdefs.h <<_ACEOF
8890 #define HAVE_LIBSHELL32 1
8891 _ACEOF
8892
8893   LIBS="-lshell32 $LIBS"
8894
8895 fi
8896
8897 fi
8898
8899 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8900 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8901 if test "${ac_cv_search_dlopen+set}" = set; then
8902   echo $ECHO_N "(cached) $ECHO_C" >&6
8903 else
8904   ac_func_search_save_LIBS=$LIBS
8905 cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911
8912 /* Override any GCC internal prototype to avoid an error.
8913    Use char because int might match the return type of a GCC
8914    builtin and then its argument prototype would still apply.  */
8915 #ifdef __cplusplus
8916 extern "C"
8917 #endif
8918 char dlopen ();
8919 int
8920 main ()
8921 {
8922 return dlopen ();
8923   ;
8924   return 0;
8925 }
8926 _ACEOF
8927 for ac_lib in '' dl; do
8928   if test -z "$ac_lib"; then
8929     ac_res="none required"
8930   else
8931     ac_res=-l$ac_lib
8932     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8933   fi
8934   rm -f conftest.$ac_objext conftest$ac_exeext
8935 if { (ac_try="$ac_link"
8936 case "(($ac_try" in
8937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938   *) ac_try_echo=$ac_try;;
8939 esac
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941   (eval "$ac_link") 2>conftest.er1
8942   ac_status=$?
8943   grep -v '^ *+' conftest.er1 >conftest.err
8944   rm -f conftest.er1
8945   cat conftest.err >&5
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); } &&
8948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8949   { (case "(($ac_try" in
8950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951   *) ac_try_echo=$ac_try;;
8952 esac
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954   (eval "$ac_try") 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); }; } &&
8958          { ac_try='test -s conftest$ac_exeext'
8959   { (case "(($ac_try" in
8960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8961   *) ac_try_echo=$ac_try;;
8962 esac
8963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8964   (eval "$ac_try") 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); }; }; then
8968   ac_cv_search_dlopen=$ac_res
8969 else
8970   echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8972
8973
8974 fi
8975
8976 rm -f core conftest.err conftest.$ac_objext \
8977       conftest$ac_exeext
8978   if test "${ac_cv_search_dlopen+set}" = set; then
8979   break
8980 fi
8981 done
8982 if test "${ac_cv_search_dlopen+set}" = set; then
8983   :
8984 else
8985   ac_cv_search_dlopen=no
8986 fi
8987 rm conftest.$ac_ext
8988 LIBS=$ac_func_search_save_LIBS
8989 fi
8990 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8991 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8992 ac_res=$ac_cv_search_dlopen
8993 if test "$ac_res" != no; then
8994   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8995
8996
8997 cat >>confdefs.h <<\_ACEOF
8998 #define HAVE_DLOPEN 1
8999 _ACEOF
9000
9001 HAVE_DLOPEN='1'
9002
9003
9004 else
9005   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
9006 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
9007 fi
9008
9009
9010 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
9011 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
9012 if test "${ac_cv_search_clock_gettime+set}" = set; then
9013   echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015   ac_func_search_save_LIBS=$LIBS
9016 cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h.  */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h.  */
9022
9023 /* Override any GCC internal prototype to avoid an error.
9024    Use char because int might match the return type of a GCC
9025    builtin and then its argument prototype would still apply.  */
9026 #ifdef __cplusplus
9027 extern "C"
9028 #endif
9029 char clock_gettime ();
9030 int
9031 main ()
9032 {
9033 return clock_gettime ();
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 for ac_lib in '' rt; do
9039   if test -z "$ac_lib"; then
9040     ac_res="none required"
9041   else
9042     ac_res=-l$ac_lib
9043     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9044   fi
9045   rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (ac_try="$ac_link"
9047 case "(($ac_try" in
9048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049   *) ac_try_echo=$ac_try;;
9050 esac
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052   (eval "$ac_link") 2>conftest.er1
9053   ac_status=$?
9054   grep -v '^ *+' conftest.er1 >conftest.err
9055   rm -f conftest.er1
9056   cat conftest.err >&5
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); } &&
9059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9060   { (case "(($ac_try" in
9061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062   *) ac_try_echo=$ac_try;;
9063 esac
9064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065   (eval "$ac_try") 2>&5
9066   ac_status=$?
9067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068   (exit $ac_status); }; } &&
9069          { ac_try='test -s conftest$ac_exeext'
9070   { (case "(($ac_try" in
9071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072   *) ac_try_echo=$ac_try;;
9073 esac
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075   (eval "$ac_try") 2>&5
9076   ac_status=$?
9077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); }; }; then
9079   ac_cv_search_clock_gettime=$ac_res
9080 else
9081   echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9083
9084
9085 fi
9086
9087 rm -f core conftest.err conftest.$ac_objext \
9088       conftest$ac_exeext
9089   if test "${ac_cv_search_clock_gettime+set}" = set; then
9090   break
9091 fi
9092 done
9093 if test "${ac_cv_search_clock_gettime+set}" = set; then
9094   :
9095 else
9096   ac_cv_search_clock_gettime=no
9097 fi
9098 rm conftest.$ac_ext
9099 LIBS=$ac_func_search_save_LIBS
9100 fi
9101 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9102 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9103 ac_res=$ac_cv_search_clock_gettime
9104 if test "$ac_res" != no; then
9105   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9106
9107 fi
9108
9109
9110 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9111     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9112 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9113 if test "${ac_cv_search_setupterm+set}" = set; then
9114   echo $ECHO_N "(cached) $ECHO_C" >&6
9115 else
9116   ac_func_search_save_LIBS=$LIBS
9117 cat >conftest.$ac_ext <<_ACEOF
9118 /* confdefs.h.  */
9119 _ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h.  */
9123
9124 /* Override any GCC internal prototype to avoid an error.
9125    Use char because int might match the return type of a GCC
9126    builtin and then its argument prototype would still apply.  */
9127 #ifdef __cplusplus
9128 extern "C"
9129 #endif
9130 char setupterm ();
9131 int
9132 main ()
9133 {
9134 return setupterm ();
9135   ;
9136   return 0;
9137 }
9138 _ACEOF
9139 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9140   if test -z "$ac_lib"; then
9141     ac_res="none required"
9142   else
9143     ac_res=-l$ac_lib
9144     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9145   fi
9146   rm -f conftest.$ac_objext conftest$ac_exeext
9147 if { (ac_try="$ac_link"
9148 case "(($ac_try" in
9149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9150   *) ac_try_echo=$ac_try;;
9151 esac
9152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9153   (eval "$ac_link") 2>conftest.er1
9154   ac_status=$?
9155   grep -v '^ *+' conftest.er1 >conftest.err
9156   rm -f conftest.er1
9157   cat conftest.err >&5
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); } &&
9160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9161   { (case "(($ac_try" in
9162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163   *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166   (eval "$ac_try") 2>&5
9167   ac_status=$?
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); }; } &&
9170          { ac_try='test -s conftest$ac_exeext'
9171   { (case "(($ac_try" in
9172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173   *) ac_try_echo=$ac_try;;
9174 esac
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176   (eval "$ac_try") 2>&5
9177   ac_status=$?
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); }; }; then
9180   ac_cv_search_setupterm=$ac_res
9181 else
9182   echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9184
9185
9186 fi
9187
9188 rm -f core conftest.err conftest.$ac_objext \
9189       conftest$ac_exeext
9190   if test "${ac_cv_search_setupterm+set}" = set; then
9191   break
9192 fi
9193 done
9194 if test "${ac_cv_search_setupterm+set}" = set; then
9195   :
9196 else
9197   ac_cv_search_setupterm=no
9198 fi
9199 rm conftest.$ac_ext
9200 LIBS=$ac_func_search_save_LIBS
9201 fi
9202 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9203 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9204 ac_res=$ac_cv_search_setupterm
9205 if test "$ac_res" != no; then
9206   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9207
9208
9209 cat >>confdefs.h <<\_ACEOF
9210 #define HAVE_TERMINFO 1
9211 _ACEOF
9212
9213 HAVE_TERMINFO='1'
9214
9215
9216 fi
9217
9218 fi
9219
9220 if test "$llvm_cv_enable_libedit" = "yes" ; then
9221   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9222 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9223 if test "${ac_cv_search_el_init+set}" = set; then
9224   echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226   ac_func_search_save_LIBS=$LIBS
9227 cat >conftest.$ac_ext <<_ACEOF
9228 /* confdefs.h.  */
9229 _ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h.  */
9233
9234 /* Override any GCC internal prototype to avoid an error.
9235    Use char because int might match the return type of a GCC
9236    builtin and then its argument prototype would still apply.  */
9237 #ifdef __cplusplus
9238 extern "C"
9239 #endif
9240 char el_init ();
9241 int
9242 main ()
9243 {
9244 return el_init ();
9245   ;
9246   return 0;
9247 }
9248 _ACEOF
9249 for ac_lib in '' edit; do
9250   if test -z "$ac_lib"; then
9251     ac_res="none required"
9252   else
9253     ac_res=-l$ac_lib
9254     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9255   fi
9256   rm -f conftest.$ac_objext conftest$ac_exeext
9257 if { (ac_try="$ac_link"
9258 case "(($ac_try" in
9259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260   *) ac_try_echo=$ac_try;;
9261 esac
9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9263   (eval "$ac_link") 2>conftest.er1
9264   ac_status=$?
9265   grep -v '^ *+' conftest.er1 >conftest.err
9266   rm -f conftest.er1
9267   cat conftest.err >&5
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); } &&
9270          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9271   { (case "(($ac_try" in
9272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273   *) ac_try_echo=$ac_try;;
9274 esac
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276   (eval "$ac_try") 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); }; } &&
9280          { ac_try='test -s conftest$ac_exeext'
9281   { (case "(($ac_try" in
9282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283   *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286   (eval "$ac_try") 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); }; }; then
9290   ac_cv_search_el_init=$ac_res
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295
9296 fi
9297
9298 rm -f core conftest.err conftest.$ac_objext \
9299       conftest$ac_exeext
9300   if test "${ac_cv_search_el_init+set}" = set; then
9301   break
9302 fi
9303 done
9304 if test "${ac_cv_search_el_init+set}" = set; then
9305   :
9306 else
9307   ac_cv_search_el_init=no
9308 fi
9309 rm conftest.$ac_ext
9310 LIBS=$ac_func_search_save_LIBS
9311 fi
9312 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9313 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9314 ac_res=$ac_cv_search_el_init
9315 if test "$ac_res" != no; then
9316   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9317
9318 cat >>confdefs.h <<\_ACEOF
9319 #define HAVE_LIBEDIT 1
9320 _ACEOF
9321
9322 fi
9323
9324 fi
9325
9326 if test "$llvm_cv_enable_libffi" = "yes" ; then
9327   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9328 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9329 if test "${ac_cv_search_ffi_call+set}" = set; then
9330   echo $ECHO_N "(cached) $ECHO_C" >&6
9331 else
9332   ac_func_search_save_LIBS=$LIBS
9333 cat >conftest.$ac_ext <<_ACEOF
9334 /* confdefs.h.  */
9335 _ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h.  */
9339
9340 /* Override any GCC internal prototype to avoid an error.
9341    Use char because int might match the return type of a GCC
9342    builtin and then its argument prototype would still apply.  */
9343 #ifdef __cplusplus
9344 extern "C"
9345 #endif
9346 char ffi_call ();
9347 int
9348 main ()
9349 {
9350 return ffi_call ();
9351   ;
9352   return 0;
9353 }
9354 _ACEOF
9355 for ac_lib in '' ffi; do
9356   if test -z "$ac_lib"; then
9357     ac_res="none required"
9358   else
9359     ac_res=-l$ac_lib
9360     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9361   fi
9362   rm -f conftest.$ac_objext conftest$ac_exeext
9363 if { (ac_try="$ac_link"
9364 case "(($ac_try" in
9365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9366   *) ac_try_echo=$ac_try;;
9367 esac
9368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369   (eval "$ac_link") 2>conftest.er1
9370   ac_status=$?
9371   grep -v '^ *+' conftest.er1 >conftest.err
9372   rm -f conftest.er1
9373   cat conftest.err >&5
9374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375   (exit $ac_status); } &&
9376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9377   { (case "(($ac_try" in
9378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9379   *) ac_try_echo=$ac_try;;
9380 esac
9381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9382   (eval "$ac_try") 2>&5
9383   ac_status=$?
9384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385   (exit $ac_status); }; } &&
9386          { ac_try='test -s conftest$ac_exeext'
9387   { (case "(($ac_try" in
9388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389   *) ac_try_echo=$ac_try;;
9390 esac
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392   (eval "$ac_try") 2>&5
9393   ac_status=$?
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); }; }; then
9396   ac_cv_search_ffi_call=$ac_res
9397 else
9398   echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9400
9401
9402 fi
9403
9404 rm -f core conftest.err conftest.$ac_objext \
9405       conftest$ac_exeext
9406   if test "${ac_cv_search_ffi_call+set}" = set; then
9407   break
9408 fi
9409 done
9410 if test "${ac_cv_search_ffi_call+set}" = set; then
9411   :
9412 else
9413   ac_cv_search_ffi_call=no
9414 fi
9415 rm conftest.$ac_ext
9416 LIBS=$ac_func_search_save_LIBS
9417 fi
9418 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9419 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9420 ac_res=$ac_cv_search_ffi_call
9421 if test "$ac_res" != no; then
9422   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9423
9424 cat >>confdefs.h <<\_ACEOF
9425 #define HAVE_FFI_CALL 1
9426 _ACEOF
9427
9428 else
9429   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9430 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9431    { (exit 1); exit 1; }; }
9432 fi
9433
9434 fi
9435
9436 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9437 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9438 if test "${ac_cv_search_mallinfo+set}" = set; then
9439   echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441   ac_func_search_save_LIBS=$LIBS
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h.  */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h.  */
9448
9449 /* Override any GCC internal prototype to avoid an error.
9450    Use char because int might match the return type of a GCC
9451    builtin and then its argument prototype would still apply.  */
9452 #ifdef __cplusplus
9453 extern "C"
9454 #endif
9455 char mallinfo ();
9456 int
9457 main ()
9458 {
9459 return mallinfo ();
9460   ;
9461   return 0;
9462 }
9463 _ACEOF
9464 for ac_lib in '' malloc; do
9465   if test -z "$ac_lib"; then
9466     ac_res="none required"
9467   else
9468     ac_res=-l$ac_lib
9469     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9470   fi
9471   rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (ac_try="$ac_link"
9473 case "(($ac_try" in
9474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475   *) ac_try_echo=$ac_try;;
9476 esac
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478   (eval "$ac_link") 2>conftest.er1
9479   ac_status=$?
9480   grep -v '^ *+' conftest.er1 >conftest.err
9481   rm -f conftest.er1
9482   cat conftest.err >&5
9483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484   (exit $ac_status); } &&
9485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9486   { (case "(($ac_try" in
9487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488   *) ac_try_echo=$ac_try;;
9489 esac
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491   (eval "$ac_try") 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }; } &&
9495          { ac_try='test -s conftest$ac_exeext'
9496   { (case "(($ac_try" in
9497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9498   *) ac_try_echo=$ac_try;;
9499 esac
9500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9501   (eval "$ac_try") 2>&5
9502   ac_status=$?
9503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9504   (exit $ac_status); }; }; then
9505   ac_cv_search_mallinfo=$ac_res
9506 else
9507   echo "$as_me: failed program was:" >&5
9508 sed 's/^/| /' conftest.$ac_ext >&5
9509
9510
9511 fi
9512
9513 rm -f core conftest.err conftest.$ac_objext \
9514       conftest$ac_exeext
9515   if test "${ac_cv_search_mallinfo+set}" = set; then
9516   break
9517 fi
9518 done
9519 if test "${ac_cv_search_mallinfo+set}" = set; then
9520   :
9521 else
9522   ac_cv_search_mallinfo=no
9523 fi
9524 rm conftest.$ac_ext
9525 LIBS=$ac_func_search_save_LIBS
9526 fi
9527 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9528 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9529 ac_res=$ac_cv_search_mallinfo
9530 if test "$ac_res" != no; then
9531   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9532
9533 cat >>confdefs.h <<\_ACEOF
9534 #define HAVE_MALLINFO 1
9535 _ACEOF
9536
9537 fi
9538
9539
9540 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9541
9542 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9543 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9544 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9545   echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547   ac_check_lib_save_LIBS=$LIBS
9548 LIBS="-lpthread  $LIBS"
9549 cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h.  */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h.  */
9555
9556 /* Override any GCC internal prototype to avoid an error.
9557    Use char because int might match the return type of a GCC
9558    builtin and then its argument prototype would still apply.  */
9559 #ifdef __cplusplus
9560 extern "C"
9561 #endif
9562 char pthread_mutex_init ();
9563 int
9564 main ()
9565 {
9566 return pthread_mutex_init ();
9567   ;
9568   return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (ac_try="$ac_link"
9573 case "(($ac_try" in
9574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9575   *) ac_try_echo=$ac_try;;
9576 esac
9577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9578   (eval "$ac_link") 2>conftest.er1
9579   ac_status=$?
9580   grep -v '^ *+' conftest.er1 >conftest.err
9581   rm -f conftest.er1
9582   cat conftest.err >&5
9583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584   (exit $ac_status); } &&
9585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9586   { (case "(($ac_try" in
9587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9588   *) ac_try_echo=$ac_try;;
9589 esac
9590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9591   (eval "$ac_try") 2>&5
9592   ac_status=$?
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); }; } &&
9595          { ac_try='test -s conftest$ac_exeext'
9596   { (case "(($ac_try" in
9597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598   *) ac_try_echo=$ac_try;;
9599 esac
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601   (eval "$ac_try") 2>&5
9602   ac_status=$?
9603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604   (exit $ac_status); }; }; then
9605   ac_cv_lib_pthread_pthread_mutex_init=yes
9606 else
9607   echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9609
9610         ac_cv_lib_pthread_pthread_mutex_init=no
9611 fi
9612
9613 rm -f core conftest.err conftest.$ac_objext \
9614       conftest$ac_exeext conftest.$ac_ext
9615 LIBS=$ac_check_lib_save_LIBS
9616 fi
9617 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9618 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9619 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9620   cat >>confdefs.h <<_ACEOF
9621 #define HAVE_LIBPTHREAD 1
9622 _ACEOF
9623
9624   LIBS="-lpthread $LIBS"
9625
9626 fi
9627
9628   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9629 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9630 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9631   echo $ECHO_N "(cached) $ECHO_C" >&6
9632 else
9633   ac_func_search_save_LIBS=$LIBS
9634 cat >conftest.$ac_ext <<_ACEOF
9635 /* confdefs.h.  */
9636 _ACEOF
9637 cat confdefs.h >>conftest.$ac_ext
9638 cat >>conftest.$ac_ext <<_ACEOF
9639 /* end confdefs.h.  */
9640
9641 /* Override any GCC internal prototype to avoid an error.
9642    Use char because int might match the return type of a GCC
9643    builtin and then its argument prototype would still apply.  */
9644 #ifdef __cplusplus
9645 extern "C"
9646 #endif
9647 char pthread_mutex_lock ();
9648 int
9649 main ()
9650 {
9651 return pthread_mutex_lock ();
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 for ac_lib in '' pthread; do
9657   if test -z "$ac_lib"; then
9658     ac_res="none required"
9659   else
9660     ac_res=-l$ac_lib
9661     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9662   fi
9663   rm -f conftest.$ac_objext conftest$ac_exeext
9664 if { (ac_try="$ac_link"
9665 case "(($ac_try" in
9666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9667   *) ac_try_echo=$ac_try;;
9668 esac
9669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9670   (eval "$ac_link") 2>conftest.er1
9671   ac_status=$?
9672   grep -v '^ *+' conftest.er1 >conftest.err
9673   rm -f conftest.er1
9674   cat conftest.err >&5
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); } &&
9677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9678   { (case "(($ac_try" in
9679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680   *) ac_try_echo=$ac_try;;
9681 esac
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683   (eval "$ac_try") 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); }; } &&
9687          { ac_try='test -s conftest$ac_exeext'
9688   { (case "(($ac_try" in
9689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9690   *) ac_try_echo=$ac_try;;
9691 esac
9692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9693   (eval "$ac_try") 2>&5
9694   ac_status=$?
9695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696   (exit $ac_status); }; }; then
9697   ac_cv_search_pthread_mutex_lock=$ac_res
9698 else
9699   echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9701
9702
9703 fi
9704
9705 rm -f core conftest.err conftest.$ac_objext \
9706       conftest$ac_exeext
9707   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9708   break
9709 fi
9710 done
9711 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9712   :
9713 else
9714   ac_cv_search_pthread_mutex_lock=no
9715 fi
9716 rm conftest.$ac_ext
9717 LIBS=$ac_func_search_save_LIBS
9718 fi
9719 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9720 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9721 ac_res=$ac_cv_search_pthread_mutex_lock
9722 if test "$ac_res" != no; then
9723   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9724
9725 cat >>confdefs.h <<\_ACEOF
9726 #define HAVE_PTHREAD_MUTEX_LOCK 1
9727 _ACEOF
9728
9729 fi
9730
9731   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9732 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9733 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9734   echo $ECHO_N "(cached) $ECHO_C" >&6
9735 else
9736   ac_func_search_save_LIBS=$LIBS
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h.  */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h.  */
9743
9744 /* Override any GCC internal prototype to avoid an error.
9745    Use char because int might match the return type of a GCC
9746    builtin and then its argument prototype would still apply.  */
9747 #ifdef __cplusplus
9748 extern "C"
9749 #endif
9750 char pthread_rwlock_init ();
9751 int
9752 main ()
9753 {
9754 return pthread_rwlock_init ();
9755   ;
9756   return 0;
9757 }
9758 _ACEOF
9759 for ac_lib in '' pthread; do
9760   if test -z "$ac_lib"; then
9761     ac_res="none required"
9762   else
9763     ac_res=-l$ac_lib
9764     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9765   fi
9766   rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (ac_try="$ac_link"
9768 case "(($ac_try" in
9769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770   *) ac_try_echo=$ac_try;;
9771 esac
9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773   (eval "$ac_link") 2>conftest.er1
9774   ac_status=$?
9775   grep -v '^ *+' conftest.er1 >conftest.err
9776   rm -f conftest.er1
9777   cat conftest.err >&5
9778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); } &&
9780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9781   { (case "(($ac_try" in
9782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783   *) ac_try_echo=$ac_try;;
9784 esac
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786   (eval "$ac_try") 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); }; } &&
9790          { ac_try='test -s conftest$ac_exeext'
9791   { (case "(($ac_try" in
9792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793   *) ac_try_echo=$ac_try;;
9794 esac
9795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796   (eval "$ac_try") 2>&5
9797   ac_status=$?
9798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799   (exit $ac_status); }; }; then
9800   ac_cv_search_pthread_rwlock_init=$ac_res
9801 else
9802   echo "$as_me: failed program was:" >&5
9803 sed 's/^/| /' conftest.$ac_ext >&5
9804
9805
9806 fi
9807
9808 rm -f core conftest.err conftest.$ac_objext \
9809       conftest$ac_exeext
9810   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9811   break
9812 fi
9813 done
9814 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9815   :
9816 else
9817   ac_cv_search_pthread_rwlock_init=no
9818 fi
9819 rm conftest.$ac_ext
9820 LIBS=$ac_func_search_save_LIBS
9821 fi
9822 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9823 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9824 ac_res=$ac_cv_search_pthread_rwlock_init
9825 if test "$ac_res" != no; then
9826   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9827
9828 cat >>confdefs.h <<\_ACEOF
9829 #define HAVE_PTHREAD_RWLOCK_INIT 1
9830 _ACEOF
9831
9832 fi
9833
9834   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9835 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9836 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9837   echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839   ac_func_search_save_LIBS=$LIBS
9840 cat >conftest.$ac_ext <<_ACEOF
9841 /* confdefs.h.  */
9842 _ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h.  */
9846
9847 /* Override any GCC internal prototype to avoid an error.
9848    Use char because int might match the return type of a GCC
9849    builtin and then its argument prototype would still apply.  */
9850 #ifdef __cplusplus
9851 extern "C"
9852 #endif
9853 char pthread_getspecific ();
9854 int
9855 main ()
9856 {
9857 return pthread_getspecific ();
9858   ;
9859   return 0;
9860 }
9861 _ACEOF
9862 for ac_lib in '' pthread; do
9863   if test -z "$ac_lib"; then
9864     ac_res="none required"
9865   else
9866     ac_res=-l$ac_lib
9867     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9868   fi
9869   rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (ac_try="$ac_link"
9871 case "(($ac_try" in
9872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873   *) ac_try_echo=$ac_try;;
9874 esac
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876   (eval "$ac_link") 2>conftest.er1
9877   ac_status=$?
9878   grep -v '^ *+' conftest.er1 >conftest.err
9879   rm -f conftest.er1
9880   cat conftest.err >&5
9881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); } &&
9883          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9884   { (case "(($ac_try" in
9885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886   *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889   (eval "$ac_try") 2>&5
9890   ac_status=$?
9891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892   (exit $ac_status); }; } &&
9893          { ac_try='test -s conftest$ac_exeext'
9894   { (case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899   (eval "$ac_try") 2>&5
9900   ac_status=$?
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); }; }; then
9903   ac_cv_search_pthread_getspecific=$ac_res
9904 else
9905   echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9907
9908
9909 fi
9910
9911 rm -f core conftest.err conftest.$ac_objext \
9912       conftest$ac_exeext
9913   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9914   break
9915 fi
9916 done
9917 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9918   :
9919 else
9920   ac_cv_search_pthread_getspecific=no
9921 fi
9922 rm conftest.$ac_ext
9923 LIBS=$ac_func_search_save_LIBS
9924 fi
9925 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9926 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9927 ac_res=$ac_cv_search_pthread_getspecific
9928 if test "$ac_res" != no; then
9929   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9930
9931 cat >>confdefs.h <<\_ACEOF
9932 #define HAVE_PTHREAD_GETSPECIFIC 1
9933 _ACEOF
9934
9935 fi
9936
9937 fi
9938
9939 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9940
9941 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9942 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9943 if test "${ac_cv_lib_z_compress2+set}" = set; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 else
9946   ac_check_lib_save_LIBS=$LIBS
9947 LIBS="-lz  $LIBS"
9948 cat >conftest.$ac_ext <<_ACEOF
9949 /* confdefs.h.  */
9950 _ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h.  */
9954
9955 /* Override any GCC internal prototype to avoid an error.
9956    Use char because int might match the return type of a GCC
9957    builtin and then its argument prototype would still apply.  */
9958 #ifdef __cplusplus
9959 extern "C"
9960 #endif
9961 char compress2 ();
9962 int
9963 main ()
9964 {
9965 return compress2 ();
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext conftest$ac_exeext
9971 if { (ac_try="$ac_link"
9972 case "(($ac_try" in
9973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974   *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977   (eval "$ac_link") 2>conftest.er1
9978   ac_status=$?
9979   grep -v '^ *+' conftest.er1 >conftest.err
9980   rm -f conftest.er1
9981   cat conftest.err >&5
9982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983   (exit $ac_status); } &&
9984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9985   { (case "(($ac_try" in
9986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987   *) ac_try_echo=$ac_try;;
9988 esac
9989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9990   (eval "$ac_try") 2>&5
9991   ac_status=$?
9992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993   (exit $ac_status); }; } &&
9994          { ac_try='test -s conftest$ac_exeext'
9995   { (case "(($ac_try" in
9996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997   *) ac_try_echo=$ac_try;;
9998 esac
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000   (eval "$ac_try") 2>&5
10001   ac_status=$?
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); }; }; then
10004   ac_cv_lib_z_compress2=yes
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009         ac_cv_lib_z_compress2=no
10010 fi
10011
10012 rm -f core conftest.err conftest.$ac_objext \
10013       conftest$ac_exeext conftest.$ac_ext
10014 LIBS=$ac_check_lib_save_LIBS
10015 fi
10016 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
10017 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10018 if test $ac_cv_lib_z_compress2 = yes; then
10019   cat >>confdefs.h <<_ACEOF
10020 #define HAVE_LIBZ 1
10021 _ACEOF
10022
10023   LIBS="-lz $LIBS"
10024
10025 fi
10026
10027 fi
10028
10029
10030 # Check whether --with-oprofile was given.
10031 if test "${with_oprofile+set}" = set; then
10032   withval=$with_oprofile;
10033       USE_OPROFILE=1
10034
10035       case "$withval" in
10036         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10037         no) llvm_cv_oppath=
10038             USE_OPROFILE=0
10039  ;;
10040         *) llvm_cv_oppath="${withval}/lib/oprofile"
10041            CPPFLAGS="-I${withval}/include";;
10042       esac
10043       case $llvm_cv_os_type in
10044         Linux)
10045           if test -n "$llvm_cv_oppath" ; then
10046             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10047                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10048 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10049 if test "${ac_cv_search_bfd_init+set}" = set; then
10050   echo $ECHO_N "(cached) $ECHO_C" >&6
10051 else
10052   ac_func_search_save_LIBS=$LIBS
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059
10060 /* Override any GCC internal prototype to avoid an error.
10061    Use char because int might match the return type of a GCC
10062    builtin and then its argument prototype would still apply.  */
10063 #ifdef __cplusplus
10064 extern "C"
10065 #endif
10066 char bfd_init ();
10067 int
10068 main ()
10069 {
10070 return bfd_init ();
10071   ;
10072   return 0;
10073 }
10074 _ACEOF
10075 for ac_lib in '' bfd; do
10076   if test -z "$ac_lib"; then
10077     ac_res="none required"
10078   else
10079     ac_res=-l$ac_lib
10080     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10081   fi
10082   rm -f conftest.$ac_objext conftest$ac_exeext
10083 if { (ac_try="$ac_link"
10084 case "(($ac_try" in
10085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086   *) ac_try_echo=$ac_try;;
10087 esac
10088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089   (eval "$ac_link") 2>conftest.er1
10090   ac_status=$?
10091   grep -v '^ *+' conftest.er1 >conftest.err
10092   rm -f conftest.er1
10093   cat conftest.err >&5
10094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095   (exit $ac_status); } &&
10096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10097   { (case "(($ac_try" in
10098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099   *) ac_try_echo=$ac_try;;
10100 esac
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102   (eval "$ac_try") 2>&5
10103   ac_status=$?
10104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105   (exit $ac_status); }; } &&
10106          { ac_try='test -s conftest$ac_exeext'
10107   { (case "(($ac_try" in
10108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109   *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112   (eval "$ac_try") 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; }; then
10116   ac_cv_search_bfd_init=$ac_res
10117 else
10118   echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10120
10121
10122 fi
10123
10124 rm -f core conftest.err conftest.$ac_objext \
10125       conftest$ac_exeext
10126   if test "${ac_cv_search_bfd_init+set}" = set; then
10127   break
10128 fi
10129 done
10130 if test "${ac_cv_search_bfd_init+set}" = set; then
10131   :
10132 else
10133   ac_cv_search_bfd_init=no
10134 fi
10135 rm conftest.$ac_ext
10136 LIBS=$ac_func_search_save_LIBS
10137 fi
10138 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10139 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10140 ac_res=$ac_cv_search_bfd_init
10141 if test "$ac_res" != no; then
10142   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10143
10144 fi
10145
10146             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10147 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10148 if test "${ac_cv_search_op_open_agent+set}" = set; then
10149   echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151   ac_func_search_save_LIBS=$LIBS
10152 cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h.  */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h.  */
10158
10159 /* Override any GCC internal prototype to avoid an error.
10160    Use char because int might match the return type of a GCC
10161    builtin and then its argument prototype would still apply.  */
10162 #ifdef __cplusplus
10163 extern "C"
10164 #endif
10165 char op_open_agent ();
10166 int
10167 main ()
10168 {
10169 return op_open_agent ();
10170   ;
10171   return 0;
10172 }
10173 _ACEOF
10174 for ac_lib in '' opagent; do
10175   if test -z "$ac_lib"; then
10176     ac_res="none required"
10177   else
10178     ac_res=-l$ac_lib
10179     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10180   fi
10181   rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (ac_try="$ac_link"
10183 case "(($ac_try" in
10184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185   *) ac_try_echo=$ac_try;;
10186 esac
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188   (eval "$ac_link") 2>conftest.er1
10189   ac_status=$?
10190   grep -v '^ *+' conftest.er1 >conftest.err
10191   rm -f conftest.er1
10192   cat conftest.err >&5
10193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194   (exit $ac_status); } &&
10195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10196   { (case "(($ac_try" in
10197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198   *) ac_try_echo=$ac_try;;
10199 esac
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201   (eval "$ac_try") 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); }; } &&
10205          { ac_try='test -s conftest$ac_exeext'
10206   { (case "(($ac_try" in
10207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208   *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211   (eval "$ac_try") 2>&5
10212   ac_status=$?
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); }; }; then
10215   ac_cv_search_op_open_agent=$ac_res
10216 else
10217   echo "$as_me: failed program was:" >&5
10218 sed 's/^/| /' conftest.$ac_ext >&5
10219
10220
10221 fi
10222
10223 rm -f core conftest.err conftest.$ac_objext \
10224       conftest$ac_exeext
10225   if test "${ac_cv_search_op_open_agent+set}" = set; then
10226   break
10227 fi
10228 done
10229 if test "${ac_cv_search_op_open_agent+set}" = set; then
10230   :
10231 else
10232   ac_cv_search_op_open_agent=no
10233 fi
10234 rm conftest.$ac_ext
10235 LIBS=$ac_func_search_save_LIBS
10236 fi
10237 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10238 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10239 ac_res=$ac_cv_search_op_open_agent
10240 if test "$ac_res" != no; then
10241   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10242
10243 else
10244
10245               echo "Error! You need to have libopagent around."
10246               exit 1
10247
10248 fi
10249
10250             if test "${ac_cv_header_opagent_h+set}" = set; then
10251   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10252 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10253 if test "${ac_cv_header_opagent_h+set}" = set; then
10254   echo $ECHO_N "(cached) $ECHO_C" >&6
10255 fi
10256 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10257 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10258 else
10259   # Is the header compilable?
10260 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10261 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10262 cat >conftest.$ac_ext <<_ACEOF
10263 /* confdefs.h.  */
10264 _ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h.  */
10268 $ac_includes_default
10269 #include <opagent.h>
10270 _ACEOF
10271 rm -f conftest.$ac_objext
10272 if { (ac_try="$ac_compile"
10273 case "(($ac_try" in
10274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10275   *) ac_try_echo=$ac_try;;
10276 esac
10277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10278   (eval "$ac_compile") 2>conftest.er1
10279   ac_status=$?
10280   grep -v '^ *+' conftest.er1 >conftest.err
10281   rm -f conftest.er1
10282   cat conftest.err >&5
10283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284   (exit $ac_status); } &&
10285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10286   { (case "(($ac_try" in
10287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10288   *) ac_try_echo=$ac_try;;
10289 esac
10290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10291   (eval "$ac_try") 2>&5
10292   ac_status=$?
10293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294   (exit $ac_status); }; } &&
10295          { ac_try='test -s conftest.$ac_objext'
10296   { (case "(($ac_try" in
10297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298   *) ac_try_echo=$ac_try;;
10299 esac
10300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10301   (eval "$ac_try") 2>&5
10302   ac_status=$?
10303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304   (exit $ac_status); }; }; then
10305   ac_header_compiler=yes
10306 else
10307   echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10309
10310         ac_header_compiler=no
10311 fi
10312
10313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10315 echo "${ECHO_T}$ac_header_compiler" >&6; }
10316
10317 # Is the header present?
10318 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10319 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10320 cat >conftest.$ac_ext <<_ACEOF
10321 /* confdefs.h.  */
10322 _ACEOF
10323 cat confdefs.h >>conftest.$ac_ext
10324 cat >>conftest.$ac_ext <<_ACEOF
10325 /* end confdefs.h.  */
10326 #include <opagent.h>
10327 _ACEOF
10328 if { (ac_try="$ac_cpp conftest.$ac_ext"
10329 case "(($ac_try" in
10330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10331   *) ac_try_echo=$ac_try;;
10332 esac
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10335   ac_status=$?
10336   grep -v '^ *+' conftest.er1 >conftest.err
10337   rm -f conftest.er1
10338   cat conftest.err >&5
10339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340   (exit $ac_status); } >/dev/null; then
10341   if test -s conftest.err; then
10342     ac_cpp_err=$ac_c_preproc_warn_flag
10343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10344   else
10345     ac_cpp_err=
10346   fi
10347 else
10348   ac_cpp_err=yes
10349 fi
10350 if test -z "$ac_cpp_err"; then
10351   ac_header_preproc=yes
10352 else
10353   echo "$as_me: failed program was:" >&5
10354 sed 's/^/| /' conftest.$ac_ext >&5
10355
10356   ac_header_preproc=no
10357 fi
10358
10359 rm -f conftest.err conftest.$ac_ext
10360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10361 echo "${ECHO_T}$ac_header_preproc" >&6; }
10362
10363 # So?  What about this header?
10364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10365   yes:no: )
10366     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10367 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10368     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10369 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10370     ac_header_preproc=yes
10371     ;;
10372   no:yes:* )
10373     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10374 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10375     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10376 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10377     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10378 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10379     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10380 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10381     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10382 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10383     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10384 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10385     ( cat <<\_ASBOX
10386 ## ------------------------------------ ##
10387 ## Report this to http://llvm.org/bugs/ ##
10388 ## ------------------------------------ ##
10389 _ASBOX
10390      ) | sed "s/^/$as_me: WARNING:     /" >&2
10391     ;;
10392 esac
10393 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10394 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10395 if test "${ac_cv_header_opagent_h+set}" = set; then
10396   echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10398   ac_cv_header_opagent_h=$ac_header_preproc
10399 fi
10400 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10401 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10402
10403 fi
10404 if test $ac_cv_header_opagent_h = yes; then
10405   :
10406 else
10407
10408               echo "Error! You need to have opagent.h around."
10409               exit 1
10410
10411 fi
10412
10413
10414           fi ;;
10415         *)
10416           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10417 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10418    { (exit 1); exit 1; }; } ;;
10419       esac
10420
10421 else
10422
10423       USE_OPROFILE=0
10424
10425
10426 fi
10427
10428
10429 cat >>confdefs.h <<_ACEOF
10430 #define LLVM_USE_OPROFILE $USE_OPROFILE
10431 _ACEOF
10432
10433
10434
10435 # Check whether --with-intel-jitevents was given.
10436 if test "${with_intel_jitevents+set}" = set; then
10437   withval=$with_intel_jitevents;
10438        case "$withval" in
10439           yes) USE_INTEL_JITEVENTS=1
10440 ;;
10441           no)  USE_INTEL_JITEVENTS=0
10442 ;;
10443           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10444 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10445    { (exit 1); exit 1; }; };;
10446        esac
10447
10448       case $llvm_cv_os_type in
10449         Linux|Win32|Cygwin|MingW) ;;
10450         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10451 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10452    { (exit 1); exit 1; }; };;
10453       esac
10454
10455       case "$llvm_cv_target_arch" in
10456         x86|x86_64) ;;
10457         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10458 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10459    { (exit 1); exit 1; }; };;
10460       esac
10461
10462 else
10463
10464       USE_INTEL_JITEVENTS=0
10465
10466
10467 fi
10468
10469
10470 cat >>confdefs.h <<_ACEOF
10471 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10472 _ACEOF
10473
10474
10475 for ac_prog in xml2-config
10476 do
10477   # Extract the first word of "$ac_prog", so it can be a program name with args.
10478 set dummy $ac_prog; ac_word=$2
10479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10481 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10482   echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484   if test -n "$XML2CONFIG"; then
10485   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10486 else
10487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488 for as_dir in $PATH
10489 do
10490   IFS=$as_save_IFS
10491   test -z "$as_dir" && as_dir=.
10492   for ac_exec_ext in '' $ac_executable_extensions; do
10493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10494     ac_cv_prog_XML2CONFIG="$ac_prog"
10495     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10496     break 2
10497   fi
10498 done
10499 done
10500 IFS=$as_save_IFS
10501
10502 fi
10503 fi
10504 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10505 if test -n "$XML2CONFIG"; then
10506   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10507 echo "${ECHO_T}$XML2CONFIG" >&6; }
10508 else
10509   { echo "$as_me:$LINENO: result: no" >&5
10510 echo "${ECHO_T}no" >&6; }
10511 fi
10512
10513
10514   test -n "$XML2CONFIG" && break
10515 done
10516
10517
10518 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10519 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10520 if test "x$XML2CONFIG" = "x"; then
10521  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10522 echo "${ECHO_T}xml2-config not found" >&6; }
10523 else
10524  LIBXML2_INC=`$XML2CONFIG --cflags`
10525  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10526 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10527  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10528 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10529 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10530   echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532   ac_check_lib_save_LIBS=$LIBS
10533 LIBS="-lxml2  $LIBS"
10534 cat >conftest.$ac_ext <<_ACEOF
10535 /* confdefs.h.  */
10536 _ACEOF
10537 cat confdefs.h >>conftest.$ac_ext
10538 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h.  */
10540
10541 /* Override any GCC internal prototype to avoid an error.
10542    Use char because int might match the return type of a GCC
10543    builtin and then its argument prototype would still apply.  */
10544 #ifdef __cplusplus
10545 extern "C"
10546 #endif
10547 char xmlReadFile ();
10548 int
10549 main ()
10550 {
10551 return xmlReadFile ();
10552   ;
10553   return 0;
10554 }
10555 _ACEOF
10556 rm -f conftest.$ac_objext conftest$ac_exeext
10557 if { (ac_try="$ac_link"
10558 case "(($ac_try" in
10559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560   *) ac_try_echo=$ac_try;;
10561 esac
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563   (eval "$ac_link") 2>conftest.er1
10564   ac_status=$?
10565   grep -v '^ *+' conftest.er1 >conftest.err
10566   rm -f conftest.er1
10567   cat conftest.err >&5
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); } &&
10570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10571   { (case "(($ac_try" in
10572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573   *) ac_try_echo=$ac_try;;
10574 esac
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576   (eval "$ac_try") 2>&5
10577   ac_status=$?
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); }; } &&
10580          { ac_try='test -s conftest$ac_exeext'
10581   { (case "(($ac_try" in
10582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583   *) ac_try_echo=$ac_try;;
10584 esac
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586   (eval "$ac_try") 2>&5
10587   ac_status=$?
10588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); }; }; then
10590   ac_cv_lib_xml2_xmlReadFile=yes
10591 else
10592   echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10594
10595         ac_cv_lib_xml2_xmlReadFile=no
10596 fi
10597
10598 rm -f core conftest.err conftest.$ac_objext \
10599       conftest$ac_exeext conftest.$ac_ext
10600 LIBS=$ac_check_lib_save_LIBS
10601 fi
10602 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10603 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10604 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10605
10606 cat >>confdefs.h <<\_ACEOF
10607 #define CLANG_HAVE_LIBXML 1
10608 _ACEOF
10609
10610                                 LIBXML2_LIBS="-lxml2"
10611 fi
10612
10613 fi
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623 ac_header_dirent=no
10624 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10625   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10626 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10627 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10629   echo $ECHO_N "(cached) $ECHO_C" >&6
10630 else
10631   cat >conftest.$ac_ext <<_ACEOF
10632 /* confdefs.h.  */
10633 _ACEOF
10634 cat confdefs.h >>conftest.$ac_ext
10635 cat >>conftest.$ac_ext <<_ACEOF
10636 /* end confdefs.h.  */
10637 #include <sys/types.h>
10638 #include <$ac_hdr>
10639
10640 int
10641 main ()
10642 {
10643 if ((DIR *) 0)
10644 return 0;
10645   ;
10646   return 0;
10647 }
10648 _ACEOF
10649 rm -f conftest.$ac_objext
10650 if { (ac_try="$ac_compile"
10651 case "(($ac_try" in
10652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653   *) ac_try_echo=$ac_try;;
10654 esac
10655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10656   (eval "$ac_compile") 2>conftest.er1
10657   ac_status=$?
10658   grep -v '^ *+' conftest.er1 >conftest.err
10659   rm -f conftest.er1
10660   cat conftest.err >&5
10661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662   (exit $ac_status); } &&
10663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10664   { (case "(($ac_try" in
10665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10666   *) ac_try_echo=$ac_try;;
10667 esac
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669   (eval "$ac_try") 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); }; } &&
10673          { ac_try='test -s conftest.$ac_objext'
10674   { (case "(($ac_try" in
10675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676   *) ac_try_echo=$ac_try;;
10677 esac
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679   (eval "$ac_try") 2>&5
10680   ac_status=$?
10681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682   (exit $ac_status); }; }; then
10683   eval "$as_ac_Header=yes"
10684 else
10685   echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688         eval "$as_ac_Header=no"
10689 fi
10690
10691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692 fi
10693 ac_res=`eval echo '${'$as_ac_Header'}'`
10694                { echo "$as_me:$LINENO: result: $ac_res" >&5
10695 echo "${ECHO_T}$ac_res" >&6; }
10696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10697   cat >>confdefs.h <<_ACEOF
10698 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10699 _ACEOF
10700
10701 ac_header_dirent=$ac_hdr; break
10702 fi
10703
10704 done
10705 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10706 if test $ac_header_dirent = dirent.h; then
10707   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10708 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10709 if test "${ac_cv_search_opendir+set}" = set; then
10710   echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712   ac_func_search_save_LIBS=$LIBS
10713 cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h.  */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h.  */
10719
10720 /* Override any GCC internal prototype to avoid an error.
10721    Use char because int might match the return type of a GCC
10722    builtin and then its argument prototype would still apply.  */
10723 #ifdef __cplusplus
10724 extern "C"
10725 #endif
10726 char opendir ();
10727 int
10728 main ()
10729 {
10730 return opendir ();
10731   ;
10732   return 0;
10733 }
10734 _ACEOF
10735 for ac_lib in '' dir; do
10736   if test -z "$ac_lib"; then
10737     ac_res="none required"
10738   else
10739     ac_res=-l$ac_lib
10740     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10741   fi
10742   rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (ac_try="$ac_link"
10744 case "(($ac_try" in
10745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746   *) ac_try_echo=$ac_try;;
10747 esac
10748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749   (eval "$ac_link") 2>conftest.er1
10750   ac_status=$?
10751   grep -v '^ *+' conftest.er1 >conftest.err
10752   rm -f conftest.er1
10753   cat conftest.err >&5
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); } &&
10756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10757   { (case "(($ac_try" in
10758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10759   *) ac_try_echo=$ac_try;;
10760 esac
10761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10762   (eval "$ac_try") 2>&5
10763   ac_status=$?
10764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765   (exit $ac_status); }; } &&
10766          { ac_try='test -s conftest$ac_exeext'
10767   { (case "(($ac_try" in
10768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769   *) ac_try_echo=$ac_try;;
10770 esac
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772   (eval "$ac_try") 2>&5
10773   ac_status=$?
10774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775   (exit $ac_status); }; }; then
10776   ac_cv_search_opendir=$ac_res
10777 else
10778   echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10780
10781
10782 fi
10783
10784 rm -f core conftest.err conftest.$ac_objext \
10785       conftest$ac_exeext
10786   if test "${ac_cv_search_opendir+set}" = set; then
10787   break
10788 fi
10789 done
10790 if test "${ac_cv_search_opendir+set}" = set; then
10791   :
10792 else
10793   ac_cv_search_opendir=no
10794 fi
10795 rm conftest.$ac_ext
10796 LIBS=$ac_func_search_save_LIBS
10797 fi
10798 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10799 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10800 ac_res=$ac_cv_search_opendir
10801 if test "$ac_res" != no; then
10802   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10803
10804 fi
10805
10806 else
10807   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10808 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10809 if test "${ac_cv_search_opendir+set}" = set; then
10810   echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812   ac_func_search_save_LIBS=$LIBS
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h.  */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h.  */
10819
10820 /* Override any GCC internal prototype to avoid an error.
10821    Use char because int might match the return type of a GCC
10822    builtin and then its argument prototype would still apply.  */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 char opendir ();
10827 int
10828 main ()
10829 {
10830 return opendir ();
10831   ;
10832   return 0;
10833 }
10834 _ACEOF
10835 for ac_lib in '' x; do
10836   if test -z "$ac_lib"; then
10837     ac_res="none required"
10838   else
10839     ac_res=-l$ac_lib
10840     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10841   fi
10842   rm -f conftest.$ac_objext conftest$ac_exeext
10843 if { (ac_try="$ac_link"
10844 case "(($ac_try" in
10845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10846   *) ac_try_echo=$ac_try;;
10847 esac
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849   (eval "$ac_link") 2>conftest.er1
10850   ac_status=$?
10851   grep -v '^ *+' conftest.er1 >conftest.err
10852   rm -f conftest.er1
10853   cat conftest.err >&5
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); } &&
10856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10857   { (case "(($ac_try" in
10858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859   *) ac_try_echo=$ac_try;;
10860 esac
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862   (eval "$ac_try") 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); }; } &&
10866          { ac_try='test -s conftest$ac_exeext'
10867   { (case "(($ac_try" in
10868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869   *) ac_try_echo=$ac_try;;
10870 esac
10871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872   (eval "$ac_try") 2>&5
10873   ac_status=$?
10874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875   (exit $ac_status); }; }; then
10876   ac_cv_search_opendir=$ac_res
10877 else
10878   echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10880
10881
10882 fi
10883
10884 rm -f core conftest.err conftest.$ac_objext \
10885       conftest$ac_exeext
10886   if test "${ac_cv_search_opendir+set}" = set; then
10887   break
10888 fi
10889 done
10890 if test "${ac_cv_search_opendir+set}" = set; then
10891   :
10892 else
10893   ac_cv_search_opendir=no
10894 fi
10895 rm conftest.$ac_ext
10896 LIBS=$ac_func_search_save_LIBS
10897 fi
10898 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10899 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10900 ac_res=$ac_cv_search_opendir
10901 if test "$ac_res" != no; then
10902   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10903
10904 fi
10905
10906 fi
10907
10908 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10909 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10910 if test "${ac_cv_header_mmap_anon+set}" = set; then
10911   echo $ECHO_N "(cached) $ECHO_C" >&6
10912 else
10913    ac_ext=c
10914 ac_cpp='$CPP $CPPFLAGS'
10915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10918
10919   cat >conftest.$ac_ext <<_ACEOF
10920 /* confdefs.h.  */
10921 _ACEOF
10922 cat confdefs.h >>conftest.$ac_ext
10923 cat >>conftest.$ac_ext <<_ACEOF
10924 /* end confdefs.h.  */
10925 #include <sys/mman.h>
10926 #include <unistd.h>
10927 #include <fcntl.h>
10928 int
10929 main ()
10930 {
10931 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10932   ;
10933   return 0;
10934 }
10935 _ACEOF
10936 rm -f conftest.$ac_objext
10937 if { (ac_try="$ac_compile"
10938 case "(($ac_try" in
10939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940   *) ac_try_echo=$ac_try;;
10941 esac
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943   (eval "$ac_compile") 2>conftest.er1
10944   ac_status=$?
10945   grep -v '^ *+' conftest.er1 >conftest.err
10946   rm -f conftest.er1
10947   cat conftest.err >&5
10948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949   (exit $ac_status); } &&
10950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10951   { (case "(($ac_try" in
10952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953   *) ac_try_echo=$ac_try;;
10954 esac
10955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956   (eval "$ac_try") 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; } &&
10960          { ac_try='test -s conftest.$ac_objext'
10961   { (case "(($ac_try" in
10962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963   *) ac_try_echo=$ac_try;;
10964 esac
10965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966   (eval "$ac_try") 2>&5
10967   ac_status=$?
10968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969   (exit $ac_status); }; }; then
10970   ac_cv_header_mmap_anon=yes
10971 else
10972   echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10974
10975         ac_cv_header_mmap_anon=no
10976 fi
10977
10978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10979   ac_ext=c
10980 ac_cpp='$CPP $CPPFLAGS'
10981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10984
10985
10986 fi
10987 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10988 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10989 if test "$ac_cv_header_mmap_anon" = yes; then
10990
10991 cat >>confdefs.h <<\_ACEOF
10992 #define HAVE_MMAP_ANONYMOUS 1
10993 _ACEOF
10994
10995 fi
10996
10997 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10998 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10999 if test "${ac_cv_header_stat_broken+set}" = set; then
11000   echo $ECHO_N "(cached) $ECHO_C" >&6
11001 else
11002   cat >conftest.$ac_ext <<_ACEOF
11003 /* confdefs.h.  */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h.  */
11008 #include <sys/types.h>
11009 #include <sys/stat.h>
11010
11011 #if defined S_ISBLK && defined S_IFDIR
11012 # if S_ISBLK (S_IFDIR)
11013 You lose.
11014 # endif
11015 #endif
11016
11017 #if defined S_ISBLK && defined S_IFCHR
11018 # if S_ISBLK (S_IFCHR)
11019 You lose.
11020 # endif
11021 #endif
11022
11023 #if defined S_ISLNK && defined S_IFREG
11024 # if S_ISLNK (S_IFREG)
11025 You lose.
11026 # endif
11027 #endif
11028
11029 #if defined S_ISSOCK && defined S_IFREG
11030 # if S_ISSOCK (S_IFREG)
11031 You lose.
11032 # endif
11033 #endif
11034
11035 _ACEOF
11036 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11037   $EGREP "You lose" >/dev/null 2>&1; then
11038   ac_cv_header_stat_broken=yes
11039 else
11040   ac_cv_header_stat_broken=no
11041 fi
11042 rm -f conftest*
11043
11044 fi
11045 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11046 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11047 if test $ac_cv_header_stat_broken = yes; then
11048
11049 cat >>confdefs.h <<\_ACEOF
11050 #define STAT_MACROS_BROKEN 1
11051 _ACEOF
11052
11053 fi
11054
11055 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11056 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11057 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11058   echo $ECHO_N "(cached) $ECHO_C" >&6
11059 else
11060   cat >conftest.$ac_ext <<_ACEOF
11061 /* confdefs.h.  */
11062 _ACEOF
11063 cat confdefs.h >>conftest.$ac_ext
11064 cat >>conftest.$ac_ext <<_ACEOF
11065 /* end confdefs.h.  */
11066 #include <sys/types.h>
11067 #include <sys/wait.h>
11068 #ifndef WEXITSTATUS
11069 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11070 #endif
11071 #ifndef WIFEXITED
11072 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11073 #endif
11074
11075 int
11076 main ()
11077 {
11078   int s;
11079   wait (&s);
11080   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11081   ;
11082   return 0;
11083 }
11084 _ACEOF
11085 rm -f conftest.$ac_objext
11086 if { (ac_try="$ac_compile"
11087 case "(($ac_try" in
11088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089   *) ac_try_echo=$ac_try;;
11090 esac
11091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092   (eval "$ac_compile") 2>conftest.er1
11093   ac_status=$?
11094   grep -v '^ *+' conftest.er1 >conftest.err
11095   rm -f conftest.er1
11096   cat conftest.err >&5
11097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098   (exit $ac_status); } &&
11099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11100   { (case "(($ac_try" in
11101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11102   *) ac_try_echo=$ac_try;;
11103 esac
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105   (eval "$ac_try") 2>&5
11106   ac_status=$?
11107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108   (exit $ac_status); }; } &&
11109          { ac_try='test -s conftest.$ac_objext'
11110   { (case "(($ac_try" in
11111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11112   *) ac_try_echo=$ac_try;;
11113 esac
11114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11115   (eval "$ac_try") 2>&5
11116   ac_status=$?
11117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); }; }; then
11119   ac_cv_header_sys_wait_h=yes
11120 else
11121   echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11123
11124         ac_cv_header_sys_wait_h=no
11125 fi
11126
11127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128 fi
11129 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11130 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11131 if test $ac_cv_header_sys_wait_h = yes; then
11132
11133 cat >>confdefs.h <<\_ACEOF
11134 #define HAVE_SYS_WAIT_H 1
11135 _ACEOF
11136
11137 fi
11138
11139 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11140 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11141 if test "${ac_cv_header_time+set}" = set; then
11142   echo $ECHO_N "(cached) $ECHO_C" >&6
11143 else
11144   cat >conftest.$ac_ext <<_ACEOF
11145 /* confdefs.h.  */
11146 _ACEOF
11147 cat confdefs.h >>conftest.$ac_ext
11148 cat >>conftest.$ac_ext <<_ACEOF
11149 /* end confdefs.h.  */
11150 #include <sys/types.h>
11151 #include <sys/time.h>
11152 #include <time.h>
11153
11154 int
11155 main ()
11156 {
11157 if ((struct tm *) 0)
11158 return 0;
11159   ;
11160   return 0;
11161 }
11162 _ACEOF
11163 rm -f conftest.$ac_objext
11164 if { (ac_try="$ac_compile"
11165 case "(($ac_try" in
11166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11167   *) ac_try_echo=$ac_try;;
11168 esac
11169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11170   (eval "$ac_compile") 2>conftest.er1
11171   ac_status=$?
11172   grep -v '^ *+' conftest.er1 >conftest.err
11173   rm -f conftest.er1
11174   cat conftest.err >&5
11175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176   (exit $ac_status); } &&
11177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11178   { (case "(($ac_try" in
11179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180   *) ac_try_echo=$ac_try;;
11181 esac
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183   (eval "$ac_try") 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; } &&
11187          { ac_try='test -s conftest.$ac_objext'
11188   { (case "(($ac_try" in
11189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11190   *) ac_try_echo=$ac_try;;
11191 esac
11192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11193   (eval "$ac_try") 2>&5
11194   ac_status=$?
11195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196   (exit $ac_status); }; }; then
11197   ac_cv_header_time=yes
11198 else
11199   echo "$as_me: failed program was:" >&5
11200 sed 's/^/| /' conftest.$ac_ext >&5
11201
11202         ac_cv_header_time=no
11203 fi
11204
11205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11206 fi
11207 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11208 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11209 if test $ac_cv_header_time = yes; then
11210
11211 cat >>confdefs.h <<\_ACEOF
11212 #define TIME_WITH_SYS_TIME 1
11213 _ACEOF
11214
11215 fi
11216
11217
11218 ac_ext=cpp
11219 ac_cpp='$CXXCPP $CPPFLAGS'
11220 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11221 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11222 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11223
11224
11225 for ac_header in cxxabi.h
11226 do
11227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11231   echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233   cat >conftest.$ac_ext <<_ACEOF
11234 /* confdefs.h.  */
11235 _ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h.  */
11239 #include <stddef.h>
11240
11241
11242 #include <$ac_header>
11243 _ACEOF
11244 rm -f conftest.$ac_objext
11245 if { (ac_try="$ac_compile"
11246 case "(($ac_try" in
11247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11248   *) ac_try_echo=$ac_try;;
11249 esac
11250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11251   (eval "$ac_compile") 2>conftest.er1
11252   ac_status=$?
11253   grep -v '^ *+' conftest.er1 >conftest.err
11254   rm -f conftest.er1
11255   cat conftest.err >&5
11256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257   (exit $ac_status); } &&
11258          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11259   { (case "(($ac_try" in
11260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261   *) ac_try_echo=$ac_try;;
11262 esac
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264   (eval "$ac_try") 2>&5
11265   ac_status=$?
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); }; } &&
11268          { ac_try='test -s conftest.$ac_objext'
11269   { (case "(($ac_try" in
11270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271   *) ac_try_echo=$ac_try;;
11272 esac
11273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11274   (eval "$ac_try") 2>&5
11275   ac_status=$?
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); }; }; then
11278   eval "$as_ac_Header=yes"
11279 else
11280   echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283         eval "$as_ac_Header=no"
11284 fi
11285
11286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11287 fi
11288 ac_res=`eval echo '${'$as_ac_Header'}'`
11289                { echo "$as_me:$LINENO: result: $ac_res" >&5
11290 echo "${ECHO_T}$ac_res" >&6; }
11291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11292   cat >>confdefs.h <<_ACEOF
11293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11294 _ACEOF
11295
11296 fi
11297
11298 done
11299
11300 ac_ext=c
11301 ac_cpp='$CPP $CPPFLAGS'
11302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11305
11306
11307
11308
11309
11310
11311
11312 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11313 do
11314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11316   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11319   echo $ECHO_N "(cached) $ECHO_C" >&6
11320 fi
11321 ac_res=`eval echo '${'$as_ac_Header'}'`
11322                { echo "$as_me:$LINENO: result: $ac_res" >&5
11323 echo "${ECHO_T}$ac_res" >&6; }
11324 else
11325   # Is the header compilable?
11326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11328 cat >conftest.$ac_ext <<_ACEOF
11329 /* confdefs.h.  */
11330 _ACEOF
11331 cat confdefs.h >>conftest.$ac_ext
11332 cat >>conftest.$ac_ext <<_ACEOF
11333 /* end confdefs.h.  */
11334 $ac_includes_default
11335 #include <$ac_header>
11336 _ACEOF
11337 rm -f conftest.$ac_objext
11338 if { (ac_try="$ac_compile"
11339 case "(($ac_try" in
11340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341   *) ac_try_echo=$ac_try;;
11342 esac
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344   (eval "$ac_compile") 2>conftest.er1
11345   ac_status=$?
11346   grep -v '^ *+' conftest.er1 >conftest.err
11347   rm -f conftest.er1
11348   cat conftest.err >&5
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); } &&
11351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11352   { (case "(($ac_try" in
11353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354   *) ac_try_echo=$ac_try;;
11355 esac
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357   (eval "$ac_try") 2>&5
11358   ac_status=$?
11359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11360   (exit $ac_status); }; } &&
11361          { ac_try='test -s conftest.$ac_objext'
11362   { (case "(($ac_try" in
11363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364   *) ac_try_echo=$ac_try;;
11365 esac
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367   (eval "$ac_try") 2>&5
11368   ac_status=$?
11369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370   (exit $ac_status); }; }; then
11371   ac_header_compiler=yes
11372 else
11373   echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11375
11376         ac_header_compiler=no
11377 fi
11378
11379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11381 echo "${ECHO_T}$ac_header_compiler" >&6; }
11382
11383 # Is the header present?
11384 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11386 cat >conftest.$ac_ext <<_ACEOF
11387 /* confdefs.h.  */
11388 _ACEOF
11389 cat confdefs.h >>conftest.$ac_ext
11390 cat >>conftest.$ac_ext <<_ACEOF
11391 /* end confdefs.h.  */
11392 #include <$ac_header>
11393 _ACEOF
11394 if { (ac_try="$ac_cpp conftest.$ac_ext"
11395 case "(($ac_try" in
11396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397   *) ac_try_echo=$ac_try;;
11398 esac
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11401   ac_status=$?
11402   grep -v '^ *+' conftest.er1 >conftest.err
11403   rm -f conftest.er1
11404   cat conftest.err >&5
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); } >/dev/null; then
11407   if test -s conftest.err; then
11408     ac_cpp_err=$ac_c_preproc_warn_flag
11409     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11410   else
11411     ac_cpp_err=
11412   fi
11413 else
11414   ac_cpp_err=yes
11415 fi
11416 if test -z "$ac_cpp_err"; then
11417   ac_header_preproc=yes
11418 else
11419   echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11421
11422   ac_header_preproc=no
11423 fi
11424
11425 rm -f conftest.err conftest.$ac_ext
11426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11427 echo "${ECHO_T}$ac_header_preproc" >&6; }
11428
11429 # So?  What about this header?
11430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11431   yes:no: )
11432     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11434     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11436     ac_header_preproc=yes
11437     ;;
11438   no:yes:* )
11439     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11441     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11442 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11443     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11445     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11446 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11447     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11449     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11451     ( cat <<\_ASBOX
11452 ## ------------------------------------ ##
11453 ## Report this to http://llvm.org/bugs/ ##
11454 ## ------------------------------------ ##
11455 _ASBOX
11456      ) | sed "s/^/$as_me: WARNING:     /" >&2
11457     ;;
11458 esac
11459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11462   echo $ECHO_N "(cached) $ECHO_C" >&6
11463 else
11464   eval "$as_ac_Header=\$ac_header_preproc"
11465 fi
11466 ac_res=`eval echo '${'$as_ac_Header'}'`
11467                { echo "$as_me:$LINENO: result: $ac_res" >&5
11468 echo "${ECHO_T}$ac_res" >&6; }
11469
11470 fi
11471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11472   cat >>confdefs.h <<_ACEOF
11473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11474 _ACEOF
11475
11476 fi
11477
11478 done
11479
11480
11481
11482
11483
11484
11485
11486 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11487 do
11488 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493   echo $ECHO_N "(cached) $ECHO_C" >&6
11494 fi
11495 ac_res=`eval echo '${'$as_ac_Header'}'`
11496                { echo "$as_me:$LINENO: result: $ac_res" >&5
11497 echo "${ECHO_T}$ac_res" >&6; }
11498 else
11499   # Is the header compilable?
11500 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h.  */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h.  */
11508 $ac_includes_default
11509 #include <$ac_header>
11510 _ACEOF
11511 rm -f conftest.$ac_objext
11512 if { (ac_try="$ac_compile"
11513 case "(($ac_try" in
11514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11515   *) ac_try_echo=$ac_try;;
11516 esac
11517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11518   (eval "$ac_compile") 2>conftest.er1
11519   ac_status=$?
11520   grep -v '^ *+' conftest.er1 >conftest.err
11521   rm -f conftest.er1
11522   cat conftest.err >&5
11523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524   (exit $ac_status); } &&
11525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11526   { (case "(($ac_try" in
11527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528   *) ac_try_echo=$ac_try;;
11529 esac
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531   (eval "$ac_try") 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); }; } &&
11535          { ac_try='test -s conftest.$ac_objext'
11536   { (case "(($ac_try" in
11537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538   *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541   (eval "$ac_try") 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; }; then
11545   ac_header_compiler=yes
11546 else
11547   echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11549
11550         ac_header_compiler=no
11551 fi
11552
11553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11555 echo "${ECHO_T}$ac_header_compiler" >&6; }
11556
11557 # Is the header present?
11558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11560 cat >conftest.$ac_ext <<_ACEOF
11561 /* confdefs.h.  */
11562 _ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h.  */
11566 #include <$ac_header>
11567 _ACEOF
11568 if { (ac_try="$ac_cpp conftest.$ac_ext"
11569 case "(($ac_try" in
11570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571   *) ac_try_echo=$ac_try;;
11572 esac
11573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11575   ac_status=$?
11576   grep -v '^ *+' conftest.er1 >conftest.err
11577   rm -f conftest.er1
11578   cat conftest.err >&5
11579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580   (exit $ac_status); } >/dev/null; then
11581   if test -s conftest.err; then
11582     ac_cpp_err=$ac_c_preproc_warn_flag
11583     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11584   else
11585     ac_cpp_err=
11586   fi
11587 else
11588   ac_cpp_err=yes
11589 fi
11590 if test -z "$ac_cpp_err"; then
11591   ac_header_preproc=yes
11592 else
11593   echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11595
11596   ac_header_preproc=no
11597 fi
11598
11599 rm -f conftest.err conftest.$ac_ext
11600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11601 echo "${ECHO_T}$ac_header_preproc" >&6; }
11602
11603 # So?  What about this header?
11604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11605   yes:no: )
11606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11610     ac_header_preproc=yes
11611     ;;
11612   no:yes:* )
11613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11615     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11616 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11617     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11619     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11620 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11623     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11625     ( cat <<\_ASBOX
11626 ## ------------------------------------ ##
11627 ## Report this to http://llvm.org/bugs/ ##
11628 ## ------------------------------------ ##
11629 _ASBOX
11630      ) | sed "s/^/$as_me: WARNING:     /" >&2
11631     ;;
11632 esac
11633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11636   echo $ECHO_N "(cached) $ECHO_C" >&6
11637 else
11638   eval "$as_ac_Header=\$ac_header_preproc"
11639 fi
11640 ac_res=`eval echo '${'$as_ac_Header'}'`
11641                { echo "$as_me:$LINENO: result: $ac_res" >&5
11642 echo "${ECHO_T}$ac_res" >&6; }
11643
11644 fi
11645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11646   cat >>confdefs.h <<_ACEOF
11647 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11648 _ACEOF
11649
11650 fi
11651
11652 done
11653
11654
11655 for ac_header in utime.h
11656 do
11657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11659   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11662   echo $ECHO_N "(cached) $ECHO_C" >&6
11663 fi
11664 ac_res=`eval echo '${'$as_ac_Header'}'`
11665                { echo "$as_me:$LINENO: result: $ac_res" >&5
11666 echo "${ECHO_T}$ac_res" >&6; }
11667 else
11668   # Is the header compilable?
11669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11671 cat >conftest.$ac_ext <<_ACEOF
11672 /* confdefs.h.  */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h.  */
11677 $ac_includes_default
11678 #include <$ac_header>
11679 _ACEOF
11680 rm -f conftest.$ac_objext
11681 if { (ac_try="$ac_compile"
11682 case "(($ac_try" in
11683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684   *) ac_try_echo=$ac_try;;
11685 esac
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687   (eval "$ac_compile") 2>conftest.er1
11688   ac_status=$?
11689   grep -v '^ *+' conftest.er1 >conftest.err
11690   rm -f conftest.er1
11691   cat conftest.err >&5
11692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693   (exit $ac_status); } &&
11694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11695   { (case "(($ac_try" in
11696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697   *) ac_try_echo=$ac_try;;
11698 esac
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700   (eval "$ac_try") 2>&5
11701   ac_status=$?
11702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703   (exit $ac_status); }; } &&
11704          { ac_try='test -s conftest.$ac_objext'
11705   { (case "(($ac_try" in
11706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11707   *) ac_try_echo=$ac_try;;
11708 esac
11709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11710   (eval "$ac_try") 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; }; then
11714   ac_header_compiler=yes
11715 else
11716   echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11718
11719         ac_header_compiler=no
11720 fi
11721
11722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11724 echo "${ECHO_T}$ac_header_compiler" >&6; }
11725
11726 # Is the header present?
11727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11729 cat >conftest.$ac_ext <<_ACEOF
11730 /* confdefs.h.  */
11731 _ACEOF
11732 cat confdefs.h >>conftest.$ac_ext
11733 cat >>conftest.$ac_ext <<_ACEOF
11734 /* end confdefs.h.  */
11735 #include <$ac_header>
11736 _ACEOF
11737 if { (ac_try="$ac_cpp conftest.$ac_ext"
11738 case "(($ac_try" in
11739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740   *) ac_try_echo=$ac_try;;
11741 esac
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11744   ac_status=$?
11745   grep -v '^ *+' conftest.er1 >conftest.err
11746   rm -f conftest.er1
11747   cat conftest.err >&5
11748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749   (exit $ac_status); } >/dev/null; then
11750   if test -s conftest.err; then
11751     ac_cpp_err=$ac_c_preproc_warn_flag
11752     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11753   else
11754     ac_cpp_err=
11755   fi
11756 else
11757   ac_cpp_err=yes
11758 fi
11759 if test -z "$ac_cpp_err"; then
11760   ac_header_preproc=yes
11761 else
11762   echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765   ac_header_preproc=no
11766 fi
11767
11768 rm -f conftest.err conftest.$ac_ext
11769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11770 echo "${ECHO_T}$ac_header_preproc" >&6; }
11771
11772 # So?  What about this header?
11773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11774   yes:no: )
11775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11779     ac_header_preproc=yes
11780     ;;
11781   no:yes:* )
11782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11784     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11785 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11786     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11788     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11789 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11792     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11794     ( cat <<\_ASBOX
11795 ## ------------------------------------ ##
11796 ## Report this to http://llvm.org/bugs/ ##
11797 ## ------------------------------------ ##
11798 _ASBOX
11799      ) | sed "s/^/$as_me: WARNING:     /" >&2
11800     ;;
11801 esac
11802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11805   echo $ECHO_N "(cached) $ECHO_C" >&6
11806 else
11807   eval "$as_ac_Header=\$ac_header_preproc"
11808 fi
11809 ac_res=`eval echo '${'$as_ac_Header'}'`
11810                { echo "$as_me:$LINENO: result: $ac_res" >&5
11811 echo "${ECHO_T}$ac_res" >&6; }
11812
11813 fi
11814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11815   cat >>confdefs.h <<_ACEOF
11816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11817 _ACEOF
11818
11819 fi
11820
11821 done
11822
11823
11824
11825
11826
11827
11828 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11829 do
11830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11832   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11835   echo $ECHO_N "(cached) $ECHO_C" >&6
11836 fi
11837 ac_res=`eval echo '${'$as_ac_Header'}'`
11838                { echo "$as_me:$LINENO: result: $ac_res" >&5
11839 echo "${ECHO_T}$ac_res" >&6; }
11840 else
11841   # Is the header compilable?
11842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11844 cat >conftest.$ac_ext <<_ACEOF
11845 /* confdefs.h.  */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h.  */
11850 $ac_includes_default
11851 #include <$ac_header>
11852 _ACEOF
11853 rm -f conftest.$ac_objext
11854 if { (ac_try="$ac_compile"
11855 case "(($ac_try" in
11856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857   *) ac_try_echo=$ac_try;;
11858 esac
11859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860   (eval "$ac_compile") 2>conftest.er1
11861   ac_status=$?
11862   grep -v '^ *+' conftest.er1 >conftest.err
11863   rm -f conftest.er1
11864   cat conftest.err >&5
11865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866   (exit $ac_status); } &&
11867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11868   { (case "(($ac_try" in
11869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11870   *) ac_try_echo=$ac_try;;
11871 esac
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873   (eval "$ac_try") 2>&5
11874   ac_status=$?
11875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876   (exit $ac_status); }; } &&
11877          { ac_try='test -s conftest.$ac_objext'
11878   { (case "(($ac_try" in
11879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880   *) ac_try_echo=$ac_try;;
11881 esac
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883   (eval "$ac_try") 2>&5
11884   ac_status=$?
11885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886   (exit $ac_status); }; }; then
11887   ac_header_compiler=yes
11888 else
11889   echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.$ac_ext >&5
11891
11892         ac_header_compiler=no
11893 fi
11894
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11897 echo "${ECHO_T}$ac_header_compiler" >&6; }
11898
11899 # Is the header present?
11900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h.  */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h.  */
11908 #include <$ac_header>
11909 _ACEOF
11910 if { (ac_try="$ac_cpp conftest.$ac_ext"
11911 case "(($ac_try" in
11912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913   *) ac_try_echo=$ac_try;;
11914 esac
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11917   ac_status=$?
11918   grep -v '^ *+' conftest.er1 >conftest.err
11919   rm -f conftest.er1
11920   cat conftest.err >&5
11921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922   (exit $ac_status); } >/dev/null; then
11923   if test -s conftest.err; then
11924     ac_cpp_err=$ac_c_preproc_warn_flag
11925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11926   else
11927     ac_cpp_err=
11928   fi
11929 else
11930   ac_cpp_err=yes
11931 fi
11932 if test -z "$ac_cpp_err"; then
11933   ac_header_preproc=yes
11934 else
11935   echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.$ac_ext >&5
11937
11938   ac_header_preproc=no
11939 fi
11940
11941 rm -f conftest.err conftest.$ac_ext
11942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11943 echo "${ECHO_T}$ac_header_preproc" >&6; }
11944
11945 # So?  What about this header?
11946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11947   yes:no: )
11948     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11952     ac_header_preproc=yes
11953     ;;
11954   no:yes:* )
11955     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11957     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11958 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11959     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11961     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11962 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11963     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11965     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11967     ( cat <<\_ASBOX
11968 ## ------------------------------------ ##
11969 ## Report this to http://llvm.org/bugs/ ##
11970 ## ------------------------------------ ##
11971 _ASBOX
11972      ) | sed "s/^/$as_me: WARNING:     /" >&2
11973     ;;
11974 esac
11975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11978   echo $ECHO_N "(cached) $ECHO_C" >&6
11979 else
11980   eval "$as_ac_Header=\$ac_header_preproc"
11981 fi
11982 ac_res=`eval echo '${'$as_ac_Header'}'`
11983                { echo "$as_me:$LINENO: result: $ac_res" >&5
11984 echo "${ECHO_T}$ac_res" >&6; }
11985
11986 fi
11987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11988   cat >>confdefs.h <<_ACEOF
11989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11990 _ACEOF
11991
11992 fi
11993
11994 done
11995
11996
11997
11998
11999 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
12000 do
12001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12003   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12006   echo $ECHO_N "(cached) $ECHO_C" >&6
12007 fi
12008 ac_res=`eval echo '${'$as_ac_Header'}'`
12009                { echo "$as_me:$LINENO: result: $ac_res" >&5
12010 echo "${ECHO_T}$ac_res" >&6; }
12011 else
12012   # Is the header compilable?
12013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12015 cat >conftest.$ac_ext <<_ACEOF
12016 /* confdefs.h.  */
12017 _ACEOF
12018 cat confdefs.h >>conftest.$ac_ext
12019 cat >>conftest.$ac_ext <<_ACEOF
12020 /* end confdefs.h.  */
12021 $ac_includes_default
12022 #include <$ac_header>
12023 _ACEOF
12024 rm -f conftest.$ac_objext
12025 if { (ac_try="$ac_compile"
12026 case "(($ac_try" in
12027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12028   *) ac_try_echo=$ac_try;;
12029 esac
12030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12031   (eval "$ac_compile") 2>conftest.er1
12032   ac_status=$?
12033   grep -v '^ *+' conftest.er1 >conftest.err
12034   rm -f conftest.er1
12035   cat conftest.err >&5
12036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037   (exit $ac_status); } &&
12038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12039   { (case "(($ac_try" in
12040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041   *) ac_try_echo=$ac_try;;
12042 esac
12043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12044   (eval "$ac_try") 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; } &&
12048          { ac_try='test -s conftest.$ac_objext'
12049   { (case "(($ac_try" in
12050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051   *) ac_try_echo=$ac_try;;
12052 esac
12053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12054   (eval "$ac_try") 2>&5
12055   ac_status=$?
12056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057   (exit $ac_status); }; }; then
12058   ac_header_compiler=yes
12059 else
12060   echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12062
12063         ac_header_compiler=no
12064 fi
12065
12066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12068 echo "${ECHO_T}$ac_header_compiler" >&6; }
12069
12070 # Is the header present?
12071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12073 cat >conftest.$ac_ext <<_ACEOF
12074 /* confdefs.h.  */
12075 _ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h.  */
12079 #include <$ac_header>
12080 _ACEOF
12081 if { (ac_try="$ac_cpp conftest.$ac_ext"
12082 case "(($ac_try" in
12083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12084   *) ac_try_echo=$ac_try;;
12085 esac
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12088   ac_status=$?
12089   grep -v '^ *+' conftest.er1 >conftest.err
12090   rm -f conftest.er1
12091   cat conftest.err >&5
12092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093   (exit $ac_status); } >/dev/null; then
12094   if test -s conftest.err; then
12095     ac_cpp_err=$ac_c_preproc_warn_flag
12096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12097   else
12098     ac_cpp_err=
12099   fi
12100 else
12101   ac_cpp_err=yes
12102 fi
12103 if test -z "$ac_cpp_err"; then
12104   ac_header_preproc=yes
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12108
12109   ac_header_preproc=no
12110 fi
12111
12112 rm -f conftest.err conftest.$ac_ext
12113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12114 echo "${ECHO_T}$ac_header_preproc" >&6; }
12115
12116 # So?  What about this header?
12117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12118   yes:no: )
12119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12123     ac_header_preproc=yes
12124     ;;
12125   no:yes:* )
12126     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12128     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12129 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12130     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12132     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12133 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12136     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12138     ( cat <<\_ASBOX
12139 ## ------------------------------------ ##
12140 ## Report this to http://llvm.org/bugs/ ##
12141 ## ------------------------------------ ##
12142 _ASBOX
12143      ) | sed "s/^/$as_me: WARNING:     /" >&2
12144     ;;
12145 esac
12146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12149   echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151   eval "$as_ac_Header=\$ac_header_preproc"
12152 fi
12153 ac_res=`eval echo '${'$as_ac_Header'}'`
12154                { echo "$as_me:$LINENO: result: $ac_res" >&5
12155 echo "${ECHO_T}$ac_res" >&6; }
12156
12157 fi
12158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12159   cat >>confdefs.h <<_ACEOF
12160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12161 _ACEOF
12162
12163 fi
12164
12165 done
12166
12167
12168 for ac_header in valgrind/valgrind.h
12169 do
12170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12172   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12175   echo $ECHO_N "(cached) $ECHO_C" >&6
12176 fi
12177 ac_res=`eval echo '${'$as_ac_Header'}'`
12178                { echo "$as_me:$LINENO: result: $ac_res" >&5
12179 echo "${ECHO_T}$ac_res" >&6; }
12180 else
12181   # Is the header compilable?
12182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12184 cat >conftest.$ac_ext <<_ACEOF
12185 /* confdefs.h.  */
12186 _ACEOF
12187 cat confdefs.h >>conftest.$ac_ext
12188 cat >>conftest.$ac_ext <<_ACEOF
12189 /* end confdefs.h.  */
12190 $ac_includes_default
12191 #include <$ac_header>
12192 _ACEOF
12193 rm -f conftest.$ac_objext
12194 if { (ac_try="$ac_compile"
12195 case "(($ac_try" in
12196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12197   *) ac_try_echo=$ac_try;;
12198 esac
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200   (eval "$ac_compile") 2>conftest.er1
12201   ac_status=$?
12202   grep -v '^ *+' conftest.er1 >conftest.err
12203   rm -f conftest.er1
12204   cat conftest.err >&5
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); } &&
12207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208   { (case "(($ac_try" in
12209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210   *) ac_try_echo=$ac_try;;
12211 esac
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213   (eval "$ac_try") 2>&5
12214   ac_status=$?
12215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216   (exit $ac_status); }; } &&
12217          { ac_try='test -s conftest.$ac_objext'
12218   { (case "(($ac_try" in
12219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220   *) ac_try_echo=$ac_try;;
12221 esac
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223   (eval "$ac_try") 2>&5
12224   ac_status=$?
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); }; }; then
12227   ac_header_compiler=yes
12228 else
12229   echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232         ac_header_compiler=no
12233 fi
12234
12235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12237 echo "${ECHO_T}$ac_header_compiler" >&6; }
12238
12239 # Is the header present?
12240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12242 cat >conftest.$ac_ext <<_ACEOF
12243 /* confdefs.h.  */
12244 _ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h.  */
12248 #include <$ac_header>
12249 _ACEOF
12250 if { (ac_try="$ac_cpp conftest.$ac_ext"
12251 case "(($ac_try" in
12252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253   *) ac_try_echo=$ac_try;;
12254 esac
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12257   ac_status=$?
12258   grep -v '^ *+' conftest.er1 >conftest.err
12259   rm -f conftest.er1
12260   cat conftest.err >&5
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); } >/dev/null; then
12263   if test -s conftest.err; then
12264     ac_cpp_err=$ac_c_preproc_warn_flag
12265     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12266   else
12267     ac_cpp_err=
12268   fi
12269 else
12270   ac_cpp_err=yes
12271 fi
12272 if test -z "$ac_cpp_err"; then
12273   ac_header_preproc=yes
12274 else
12275   echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12277
12278   ac_header_preproc=no
12279 fi
12280
12281 rm -f conftest.err conftest.$ac_ext
12282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12283 echo "${ECHO_T}$ac_header_preproc" >&6; }
12284
12285 # So?  What about this header?
12286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12287   yes:no: )
12288     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12292     ac_header_preproc=yes
12293     ;;
12294   no:yes:* )
12295     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12297     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12298 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12299     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12301     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12302 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12305     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12307     ( cat <<\_ASBOX
12308 ## ------------------------------------ ##
12309 ## Report this to http://llvm.org/bugs/ ##
12310 ## ------------------------------------ ##
12311 _ASBOX
12312      ) | sed "s/^/$as_me: WARNING:     /" >&2
12313     ;;
12314 esac
12315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12318   echo $ECHO_N "(cached) $ECHO_C" >&6
12319 else
12320   eval "$as_ac_Header=\$ac_header_preproc"
12321 fi
12322 ac_res=`eval echo '${'$as_ac_Header'}'`
12323                { echo "$as_me:$LINENO: result: $ac_res" >&5
12324 echo "${ECHO_T}$ac_res" >&6; }
12325
12326 fi
12327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12328   cat >>confdefs.h <<_ACEOF
12329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12330 _ACEOF
12331
12332 fi
12333
12334 done
12335
12336
12337 for ac_header in fenv.h
12338 do
12339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12341   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12344   echo $ECHO_N "(cached) $ECHO_C" >&6
12345 fi
12346 ac_res=`eval echo '${'$as_ac_Header'}'`
12347                { echo "$as_me:$LINENO: result: $ac_res" >&5
12348 echo "${ECHO_T}$ac_res" >&6; }
12349 else
12350   # Is the header compilable?
12351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12353 cat >conftest.$ac_ext <<_ACEOF
12354 /* confdefs.h.  */
12355 _ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h.  */
12359 $ac_includes_default
12360 #include <$ac_header>
12361 _ACEOF
12362 rm -f conftest.$ac_objext
12363 if { (ac_try="$ac_compile"
12364 case "(($ac_try" in
12365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366   *) ac_try_echo=$ac_try;;
12367 esac
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369   (eval "$ac_compile") 2>conftest.er1
12370   ac_status=$?
12371   grep -v '^ *+' conftest.er1 >conftest.err
12372   rm -f conftest.er1
12373   cat conftest.err >&5
12374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375   (exit $ac_status); } &&
12376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12377   { (case "(($ac_try" in
12378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12379   *) ac_try_echo=$ac_try;;
12380 esac
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382   (eval "$ac_try") 2>&5
12383   ac_status=$?
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); }; } &&
12386          { ac_try='test -s conftest.$ac_objext'
12387   { (case "(($ac_try" in
12388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389   *) ac_try_echo=$ac_try;;
12390 esac
12391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12392   (eval "$ac_try") 2>&5
12393   ac_status=$?
12394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395   (exit $ac_status); }; }; then
12396   ac_header_compiler=yes
12397 else
12398   echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12400
12401         ac_header_compiler=no
12402 fi
12403
12404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12406 echo "${ECHO_T}$ac_header_compiler" >&6; }
12407
12408 # Is the header present?
12409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12411 cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417 #include <$ac_header>
12418 _ACEOF
12419 if { (ac_try="$ac_cpp conftest.$ac_ext"
12420 case "(($ac_try" in
12421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422   *) ac_try_echo=$ac_try;;
12423 esac
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12426   ac_status=$?
12427   grep -v '^ *+' conftest.er1 >conftest.err
12428   rm -f conftest.er1
12429   cat conftest.err >&5
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); } >/dev/null; then
12432   if test -s conftest.err; then
12433     ac_cpp_err=$ac_c_preproc_warn_flag
12434     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12435   else
12436     ac_cpp_err=
12437   fi
12438 else
12439   ac_cpp_err=yes
12440 fi
12441 if test -z "$ac_cpp_err"; then
12442   ac_header_preproc=yes
12443 else
12444   echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447   ac_header_preproc=no
12448 fi
12449
12450 rm -f conftest.err conftest.$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12452 echo "${ECHO_T}$ac_header_preproc" >&6; }
12453
12454 # So?  What about this header?
12455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12456   yes:no: )
12457     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12458 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12459     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12460 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12461     ac_header_preproc=yes
12462     ;;
12463   no:yes:* )
12464     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12466     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12467 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12468     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12469 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12470     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12471 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12473 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12474     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12475 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12476     ( cat <<\_ASBOX
12477 ## ------------------------------------ ##
12478 ## Report this to http://llvm.org/bugs/ ##
12479 ## ------------------------------------ ##
12480 _ASBOX
12481      ) | sed "s/^/$as_me: WARNING:     /" >&2
12482     ;;
12483 esac
12484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12487   echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489   eval "$as_ac_Header=\$ac_header_preproc"
12490 fi
12491 ac_res=`eval echo '${'$as_ac_Header'}'`
12492                { echo "$as_me:$LINENO: result: $ac_res" >&5
12493 echo "${ECHO_T}$ac_res" >&6; }
12494
12495 fi
12496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12497   cat >>confdefs.h <<_ACEOF
12498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12499 _ACEOF
12500
12501 fi
12502
12503 done
12504
12505 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12506 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12507 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12508   echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510   cat >conftest.$ac_ext <<_ACEOF
12511 /* confdefs.h.  */
12512 _ACEOF
12513 cat confdefs.h >>conftest.$ac_ext
12514 cat >>conftest.$ac_ext <<_ACEOF
12515 /* end confdefs.h.  */
12516 #include <fenv.h>
12517
12518 int
12519 main ()
12520 {
12521 #ifndef FE_ALL_EXCEPT
12522   char *p = (char *) FE_ALL_EXCEPT;
12523   return !p;
12524 #endif
12525
12526   ;
12527   return 0;
12528 }
12529 _ACEOF
12530 rm -f conftest.$ac_objext
12531 if { (ac_try="$ac_compile"
12532 case "(($ac_try" in
12533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534   *) ac_try_echo=$ac_try;;
12535 esac
12536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537   (eval "$ac_compile") 2>conftest.er1
12538   ac_status=$?
12539   grep -v '^ *+' conftest.er1 >conftest.err
12540   rm -f conftest.er1
12541   cat conftest.err >&5
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   (exit $ac_status); } &&
12544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12545   { (case "(($ac_try" in
12546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547   *) ac_try_echo=$ac_try;;
12548 esac
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550   (eval "$ac_try") 2>&5
12551   ac_status=$?
12552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553   (exit $ac_status); }; } &&
12554          { ac_try='test -s conftest.$ac_objext'
12555   { (case "(($ac_try" in
12556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557   *) ac_try_echo=$ac_try;;
12558 esac
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560   (eval "$ac_try") 2>&5
12561   ac_status=$?
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); }; }; then
12564   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12565 else
12566   echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569         ac_cv_have_decl_FE_ALL_EXCEPT=no
12570 fi
12571
12572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12573 fi
12574 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12575 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12576 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12577
12578 cat >>confdefs.h <<_ACEOF
12579 #define HAVE_DECL_FE_ALL_EXCEPT 1
12580 _ACEOF
12581
12582
12583 else
12584   cat >>confdefs.h <<_ACEOF
12585 #define HAVE_DECL_FE_ALL_EXCEPT 0
12586 _ACEOF
12587
12588
12589 fi
12590 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12591 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12592 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12593   echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595   cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h.  */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h.  */
12601 #include <fenv.h>
12602
12603 int
12604 main ()
12605 {
12606 #ifndef FE_INEXACT
12607   char *p = (char *) FE_INEXACT;
12608   return !p;
12609 #endif
12610
12611   ;
12612   return 0;
12613 }
12614 _ACEOF
12615 rm -f conftest.$ac_objext
12616 if { (ac_try="$ac_compile"
12617 case "(($ac_try" in
12618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12619   *) ac_try_echo=$ac_try;;
12620 esac
12621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12622   (eval "$ac_compile") 2>conftest.er1
12623   ac_status=$?
12624   grep -v '^ *+' conftest.er1 >conftest.err
12625   rm -f conftest.er1
12626   cat conftest.err >&5
12627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628   (exit $ac_status); } &&
12629          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12630   { (case "(($ac_try" in
12631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632   *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635   (eval "$ac_try") 2>&5
12636   ac_status=$?
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); }; } &&
12639          { ac_try='test -s conftest.$ac_objext'
12640   { (case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_try") 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; }; then
12649   ac_cv_have_decl_FE_INEXACT=yes
12650 else
12651   echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12653
12654         ac_cv_have_decl_FE_INEXACT=no
12655 fi
12656
12657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12658 fi
12659 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12660 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12661 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12662
12663 cat >>confdefs.h <<_ACEOF
12664 #define HAVE_DECL_FE_INEXACT 1
12665 _ACEOF
12666
12667
12668 else
12669   cat >>confdefs.h <<_ACEOF
12670 #define HAVE_DECL_FE_INEXACT 0
12671 _ACEOF
12672
12673
12674 fi
12675
12676
12677 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12678
12679 for ac_header in pthread.h
12680 do
12681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12683   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 fi
12688 ac_res=`eval echo '${'$as_ac_Header'}'`
12689                { echo "$as_me:$LINENO: result: $ac_res" >&5
12690 echo "${ECHO_T}$ac_res" >&6; }
12691 else
12692   # Is the header compilable?
12693 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12695 cat >conftest.$ac_ext <<_ACEOF
12696 /* confdefs.h.  */
12697 _ACEOF
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h.  */
12701 $ac_includes_default
12702 #include <$ac_header>
12703 _ACEOF
12704 rm -f conftest.$ac_objext
12705 if { (ac_try="$ac_compile"
12706 case "(($ac_try" in
12707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708   *) ac_try_echo=$ac_try;;
12709 esac
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711   (eval "$ac_compile") 2>conftest.er1
12712   ac_status=$?
12713   grep -v '^ *+' conftest.er1 >conftest.err
12714   rm -f conftest.er1
12715   cat conftest.err >&5
12716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717   (exit $ac_status); } &&
12718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12719   { (case "(($ac_try" in
12720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12721   *) ac_try_echo=$ac_try;;
12722 esac
12723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724   (eval "$ac_try") 2>&5
12725   ac_status=$?
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); }; } &&
12728          { ac_try='test -s conftest.$ac_objext'
12729   { (case "(($ac_try" in
12730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731   *) ac_try_echo=$ac_try;;
12732 esac
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734   (eval "$ac_try") 2>&5
12735   ac_status=$?
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); }; }; then
12738   ac_header_compiler=yes
12739 else
12740   echo "$as_me: failed program was:" >&5
12741 sed 's/^/| /' conftest.$ac_ext >&5
12742
12743         ac_header_compiler=no
12744 fi
12745
12746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12748 echo "${ECHO_T}$ac_header_compiler" >&6; }
12749
12750 # Is the header present?
12751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12753 cat >conftest.$ac_ext <<_ACEOF
12754 /* confdefs.h.  */
12755 _ACEOF
12756 cat confdefs.h >>conftest.$ac_ext
12757 cat >>conftest.$ac_ext <<_ACEOF
12758 /* end confdefs.h.  */
12759 #include <$ac_header>
12760 _ACEOF
12761 if { (ac_try="$ac_cpp conftest.$ac_ext"
12762 case "(($ac_try" in
12763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764   *) ac_try_echo=$ac_try;;
12765 esac
12766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12768   ac_status=$?
12769   grep -v '^ *+' conftest.er1 >conftest.err
12770   rm -f conftest.er1
12771   cat conftest.err >&5
12772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773   (exit $ac_status); } >/dev/null; then
12774   if test -s conftest.err; then
12775     ac_cpp_err=$ac_c_preproc_warn_flag
12776     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12777   else
12778     ac_cpp_err=
12779   fi
12780 else
12781   ac_cpp_err=yes
12782 fi
12783 if test -z "$ac_cpp_err"; then
12784   ac_header_preproc=yes
12785 else
12786   echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.$ac_ext >&5
12788
12789   ac_header_preproc=no
12790 fi
12791
12792 rm -f conftest.err conftest.$ac_ext
12793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12794 echo "${ECHO_T}$ac_header_preproc" >&6; }
12795
12796 # So?  What about this header?
12797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12798   yes:no: )
12799     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12803     ac_header_preproc=yes
12804     ;;
12805   no:yes:* )
12806     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12808     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12809 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12810     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12812     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12813 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12816     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12818     ( cat <<\_ASBOX
12819 ## ------------------------------------ ##
12820 ## Report this to http://llvm.org/bugs/ ##
12821 ## ------------------------------------ ##
12822 _ASBOX
12823      ) | sed "s/^/$as_me: WARNING:     /" >&2
12824     ;;
12825 esac
12826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12829   echo $ECHO_N "(cached) $ECHO_C" >&6
12830 else
12831   eval "$as_ac_Header=\$ac_header_preproc"
12832 fi
12833 ac_res=`eval echo '${'$as_ac_Header'}'`
12834                { echo "$as_me:$LINENO: result: $ac_res" >&5
12835 echo "${ECHO_T}$ac_res" >&6; }
12836
12837 fi
12838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12839   cat >>confdefs.h <<_ACEOF
12840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12841 _ACEOF
12842  HAVE_PTHREAD=1
12843
12844 else
12845   HAVE_PTHREAD=0
12846
12847 fi
12848
12849 done
12850
12851 else
12852   HAVE_PTHREAD=0
12853
12854 fi
12855 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12856
12857 for ac_header in zlib.h
12858 do
12859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12861   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12864   echo $ECHO_N "(cached) $ECHO_C" >&6
12865 fi
12866 ac_res=`eval echo '${'$as_ac_Header'}'`
12867                { echo "$as_me:$LINENO: result: $ac_res" >&5
12868 echo "${ECHO_T}$ac_res" >&6; }
12869 else
12870   # Is the header compilable?
12871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12873 cat >conftest.$ac_ext <<_ACEOF
12874 /* confdefs.h.  */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h.  */
12879 $ac_includes_default
12880 #include <$ac_header>
12881 _ACEOF
12882 rm -f conftest.$ac_objext
12883 if { (ac_try="$ac_compile"
12884 case "(($ac_try" in
12885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886   *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889   (eval "$ac_compile") 2>conftest.er1
12890   ac_status=$?
12891   grep -v '^ *+' conftest.er1 >conftest.err
12892   rm -f conftest.er1
12893   cat conftest.err >&5
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); } &&
12896          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12897   { (case "(($ac_try" in
12898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899   *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902   (eval "$ac_try") 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; } &&
12906          { ac_try='test -s conftest.$ac_objext'
12907   { (case "(($ac_try" in
12908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909   *) ac_try_echo=$ac_try;;
12910 esac
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912   (eval "$ac_try") 2>&5
12913   ac_status=$?
12914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915   (exit $ac_status); }; }; then
12916   ac_header_compiler=yes
12917 else
12918   echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12920
12921         ac_header_compiler=no
12922 fi
12923
12924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12925 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12926 echo "${ECHO_T}$ac_header_compiler" >&6; }
12927
12928 # Is the header present?
12929 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12931 cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h.  */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h.  */
12937 #include <$ac_header>
12938 _ACEOF
12939 if { (ac_try="$ac_cpp conftest.$ac_ext"
12940 case "(($ac_try" in
12941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942   *) ac_try_echo=$ac_try;;
12943 esac
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12946   ac_status=$?
12947   grep -v '^ *+' conftest.er1 >conftest.err
12948   rm -f conftest.er1
12949   cat conftest.err >&5
12950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951   (exit $ac_status); } >/dev/null; then
12952   if test -s conftest.err; then
12953     ac_cpp_err=$ac_c_preproc_warn_flag
12954     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12955   else
12956     ac_cpp_err=
12957   fi
12958 else
12959   ac_cpp_err=yes
12960 fi
12961 if test -z "$ac_cpp_err"; then
12962   ac_header_preproc=yes
12963 else
12964   echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12966
12967   ac_header_preproc=no
12968 fi
12969
12970 rm -f conftest.err conftest.$ac_ext
12971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12972 echo "${ECHO_T}$ac_header_preproc" >&6; }
12973
12974 # So?  What about this header?
12975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12976   yes:no: )
12977     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12978 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12980 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12981     ac_header_preproc=yes
12982     ;;
12983   no:yes:* )
12984     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12985 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12986     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12987 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12988     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12989 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12990     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12991 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12994     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12995 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12996     ( cat <<\_ASBOX
12997 ## ------------------------------------ ##
12998 ## Report this to http://llvm.org/bugs/ ##
12999 ## ------------------------------------ ##
13000 _ASBOX
13001      ) | sed "s/^/$as_me: WARNING:     /" >&2
13002     ;;
13003 esac
13004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13007   echo $ECHO_N "(cached) $ECHO_C" >&6
13008 else
13009   eval "$as_ac_Header=\$ac_header_preproc"
13010 fi
13011 ac_res=`eval echo '${'$as_ac_Header'}'`
13012                { echo "$as_me:$LINENO: result: $ac_res" >&5
13013 echo "${ECHO_T}$ac_res" >&6; }
13014
13015 fi
13016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13017   cat >>confdefs.h <<_ACEOF
13018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13019 _ACEOF
13020  HAVE_LIBZ=1
13021
13022 else
13023   HAVE_LIBZ=0
13024
13025 fi
13026
13027 done
13028
13029 else
13030   HAVE_LIBZ=0
13031
13032 fi
13033
13034 if test "$llvm_cv_enable_libffi" = "yes" ; then
13035
13036
13037 for ac_header in ffi.h ffi/ffi.h
13038 do
13039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13041   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13044   echo $ECHO_N "(cached) $ECHO_C" >&6
13045 fi
13046 ac_res=`eval echo '${'$as_ac_Header'}'`
13047                { echo "$as_me:$LINENO: result: $ac_res" >&5
13048 echo "${ECHO_T}$ac_res" >&6; }
13049 else
13050   # Is the header compilable?
13051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13053 cat >conftest.$ac_ext <<_ACEOF
13054 /* confdefs.h.  */
13055 _ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h.  */
13059 $ac_includes_default
13060 #include <$ac_header>
13061 _ACEOF
13062 rm -f conftest.$ac_objext
13063 if { (ac_try="$ac_compile"
13064 case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_compile") 2>conftest.er1
13070   ac_status=$?
13071   grep -v '^ *+' conftest.er1 >conftest.err
13072   rm -f conftest.er1
13073   cat conftest.err >&5
13074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075   (exit $ac_status); } &&
13076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13077   { (case "(($ac_try" in
13078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079   *) ac_try_echo=$ac_try;;
13080 esac
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082   (eval "$ac_try") 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; } &&
13086          { ac_try='test -s conftest.$ac_objext'
13087   { (case "(($ac_try" in
13088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089   *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092   (eval "$ac_try") 2>&5
13093   ac_status=$?
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; }; then
13096   ac_header_compiler=yes
13097 else
13098   echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13100
13101         ac_header_compiler=no
13102 fi
13103
13104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13106 echo "${ECHO_T}$ac_header_compiler" >&6; }
13107
13108 # Is the header present?
13109 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13111 cat >conftest.$ac_ext <<_ACEOF
13112 /* confdefs.h.  */
13113 _ACEOF
13114 cat confdefs.h >>conftest.$ac_ext
13115 cat >>conftest.$ac_ext <<_ACEOF
13116 /* end confdefs.h.  */
13117 #include <$ac_header>
13118 _ACEOF
13119 if { (ac_try="$ac_cpp conftest.$ac_ext"
13120 case "(($ac_try" in
13121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122   *) ac_try_echo=$ac_try;;
13123 esac
13124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13125   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13126   ac_status=$?
13127   grep -v '^ *+' conftest.er1 >conftest.err
13128   rm -f conftest.er1
13129   cat conftest.err >&5
13130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); } >/dev/null; then
13132   if test -s conftest.err; then
13133     ac_cpp_err=$ac_c_preproc_warn_flag
13134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13135   else
13136     ac_cpp_err=
13137   fi
13138 else
13139   ac_cpp_err=yes
13140 fi
13141 if test -z "$ac_cpp_err"; then
13142   ac_header_preproc=yes
13143 else
13144   echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13146
13147   ac_header_preproc=no
13148 fi
13149
13150 rm -f conftest.err conftest.$ac_ext
13151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13152 echo "${ECHO_T}$ac_header_preproc" >&6; }
13153
13154 # So?  What about this header?
13155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13156   yes:no: )
13157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13161     ac_header_preproc=yes
13162     ;;
13163   no:yes:* )
13164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13166     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13167 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13168     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13170     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13171 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13174     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13176     ( cat <<\_ASBOX
13177 ## ------------------------------------ ##
13178 ## Report this to http://llvm.org/bugs/ ##
13179 ## ------------------------------------ ##
13180 _ASBOX
13181      ) | sed "s/^/$as_me: WARNING:     /" >&2
13182     ;;
13183 esac
13184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13187   echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189   eval "$as_ac_Header=\$ac_header_preproc"
13190 fi
13191 ac_res=`eval echo '${'$as_ac_Header'}'`
13192                { echo "$as_me:$LINENO: result: $ac_res" >&5
13193 echo "${ECHO_T}$ac_res" >&6; }
13194
13195 fi
13196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13197   cat >>confdefs.h <<_ACEOF
13198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13199 _ACEOF
13200
13201 fi
13202
13203 done
13204
13205 fi
13206
13207
13208 for ac_header in CrashReporterClient.h
13209 do
13210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13212   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13215   echo $ECHO_N "(cached) $ECHO_C" >&6
13216 fi
13217 ac_res=`eval echo '${'$as_ac_Header'}'`
13218                { echo "$as_me:$LINENO: result: $ac_res" >&5
13219 echo "${ECHO_T}$ac_res" >&6; }
13220 else
13221   # Is the header compilable?
13222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13224 cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h.  */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h.  */
13230 $ac_includes_default
13231 #include <$ac_header>
13232 _ACEOF
13233 rm -f conftest.$ac_objext
13234 if { (ac_try="$ac_compile"
13235 case "(($ac_try" in
13236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237   *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240   (eval "$ac_compile") 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } &&
13247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13248   { (case "(($ac_try" in
13249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13250   *) ac_try_echo=$ac_try;;
13251 esac
13252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13253   (eval "$ac_try") 2>&5
13254   ac_status=$?
13255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256   (exit $ac_status); }; } &&
13257          { ac_try='test -s conftest.$ac_objext'
13258   { (case "(($ac_try" in
13259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260   *) ac_try_echo=$ac_try;;
13261 esac
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263   (eval "$ac_try") 2>&5
13264   ac_status=$?
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); }; }; then
13267   ac_header_compiler=yes
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272         ac_header_compiler=no
13273 fi
13274
13275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13277 echo "${ECHO_T}$ac_header_compiler" >&6; }
13278
13279 # Is the header present?
13280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13282 cat >conftest.$ac_ext <<_ACEOF
13283 /* confdefs.h.  */
13284 _ACEOF
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h.  */
13288 #include <$ac_header>
13289 _ACEOF
13290 if { (ac_try="$ac_cpp conftest.$ac_ext"
13291 case "(($ac_try" in
13292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293   *) ac_try_echo=$ac_try;;
13294 esac
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13297   ac_status=$?
13298   grep -v '^ *+' conftest.er1 >conftest.err
13299   rm -f conftest.er1
13300   cat conftest.err >&5
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); } >/dev/null; then
13303   if test -s conftest.err; then
13304     ac_cpp_err=$ac_c_preproc_warn_flag
13305     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13306   else
13307     ac_cpp_err=
13308   fi
13309 else
13310   ac_cpp_err=yes
13311 fi
13312 if test -z "$ac_cpp_err"; then
13313   ac_header_preproc=yes
13314 else
13315   echo "$as_me: failed program was:" >&5
13316 sed 's/^/| /' conftest.$ac_ext >&5
13317
13318   ac_header_preproc=no
13319 fi
13320
13321 rm -f conftest.err conftest.$ac_ext
13322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13323 echo "${ECHO_T}$ac_header_preproc" >&6; }
13324
13325 # So?  What about this header?
13326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13327   yes:no: )
13328     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13330     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13332     ac_header_preproc=yes
13333     ;;
13334   no:yes:* )
13335     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13337     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13338 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13339     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13341     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13342 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13343     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13345     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13347     ( cat <<\_ASBOX
13348 ## ------------------------------------ ##
13349 ## Report this to http://llvm.org/bugs/ ##
13350 ## ------------------------------------ ##
13351 _ASBOX
13352      ) | sed "s/^/$as_me: WARNING:     /" >&2
13353     ;;
13354 esac
13355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13358   echo $ECHO_N "(cached) $ECHO_C" >&6
13359 else
13360   eval "$as_ac_Header=\$ac_header_preproc"
13361 fi
13362 ac_res=`eval echo '${'$as_ac_Header'}'`
13363                { echo "$as_me:$LINENO: result: $ac_res" >&5
13364 echo "${ECHO_T}$ac_res" >&6; }
13365
13366 fi
13367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13368   cat >>confdefs.h <<_ACEOF
13369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13370 _ACEOF
13371
13372 fi
13373
13374 done
13375
13376
13377 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13378 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13379 cat >conftest.$ac_ext <<_ACEOF
13380
13381   /* confdefs.h.  */
13382 _ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h.  */
13386
13387     extern const char *__crashreporter_info__;
13388     int main() {
13389       __crashreporter_info__ = "test";
13390       return 0;
13391     }
13392
13393
13394 _ACEOF
13395 rm -f conftest.$ac_objext conftest$ac_exeext
13396 if { (ac_try="$ac_link"
13397 case "(($ac_try" in
13398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399   *) ac_try_echo=$ac_try;;
13400 esac
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402   (eval "$ac_link") 2>conftest.er1
13403   ac_status=$?
13404   grep -v '^ *+' conftest.er1 >conftest.err
13405   rm -f conftest.er1
13406   cat conftest.err >&5
13407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408   (exit $ac_status); } &&
13409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13410   { (case "(($ac_try" in
13411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412   *) ac_try_echo=$ac_try;;
13413 esac
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415   (eval "$ac_try") 2>&5
13416   ac_status=$?
13417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418   (exit $ac_status); }; } &&
13419          { ac_try='test -s conftest$ac_exeext'
13420   { (case "(($ac_try" in
13421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422   *) ac_try_echo=$ac_try;;
13423 esac
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425   (eval "$ac_try") 2>&5
13426   ac_status=$?
13427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428   (exit $ac_status); }; }; then
13429
13430   { echo "$as_me:$LINENO: result: yes" >&5
13431 echo "${ECHO_T}yes" >&6; }
13432
13433 cat >>confdefs.h <<\_ACEOF
13434 #define HAVE_CRASHREPORTER_INFO 1
13435 _ACEOF
13436
13437
13438 else
13439   echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13441
13442
13443   { echo "$as_me:$LINENO: result: no" >&5
13444 echo "${ECHO_T}no" >&6; }
13445
13446 cat >>confdefs.h <<\_ACEOF
13447 #define HAVE_CRASHREPORTER_INFO 0
13448 _ACEOF
13449
13450
13451 fi
13452
13453 rm -f core conftest.err conftest.$ac_objext \
13454       conftest$ac_exeext conftest.$ac_ext
13455
13456
13457
13458   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13459 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13460 if test "${ac_cv_huge_val_sanity+set}" = set; then
13461   echo $ECHO_N "(cached) $ECHO_C" >&6
13462 else
13463
13464     ac_ext=cpp
13465 ac_cpp='$CXXCPP $CPPFLAGS'
13466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13469
13470     ac_save_CXXFLAGS=$CXXFLAGS
13471     CXXFLAGS="$CXXFLAGS -pedantic"
13472     if test "$cross_compiling" = yes; then
13473   ac_cv_huge_val_sanity=yes
13474 else
13475   cat >conftest.$ac_ext <<_ACEOF
13476 /* confdefs.h.  */
13477 _ACEOF
13478 cat confdefs.h >>conftest.$ac_ext
13479 cat >>conftest.$ac_ext <<_ACEOF
13480 /* end confdefs.h.  */
13481 #include <math.h>
13482 int
13483 main ()
13484 {
13485 double x = HUGE_VAL; return x != x;
13486   ;
13487   return 0;
13488 }
13489 _ACEOF
13490 rm -f conftest$ac_exeext
13491 if { (ac_try="$ac_link"
13492 case "(($ac_try" in
13493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494   *) ac_try_echo=$ac_try;;
13495 esac
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497   (eval "$ac_link") 2>&5
13498   ac_status=$?
13499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13501   { (case "(($ac_try" in
13502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503   *) ac_try_echo=$ac_try;;
13504 esac
13505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506   (eval "$ac_try") 2>&5
13507   ac_status=$?
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); }; }; then
13510   ac_cv_huge_val_sanity=yes
13511 else
13512   echo "$as_me: program exited with status $ac_status" >&5
13513 echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13515
13516 ( exit $ac_status )
13517 ac_cv_huge_val_sanity=no
13518 fi
13519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13520 fi
13521
13522
13523     CXXFLAGS=$ac_save_CXXFLAGS
13524     ac_ext=c
13525 ac_cpp='$CPP $CPPFLAGS'
13526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13529
13530
13531 fi
13532 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13533 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13534   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13535
13536
13537 { echo "$as_me:$LINENO: checking for pid_t" >&5
13538 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13539 if test "${ac_cv_type_pid_t+set}" = set; then
13540   echo $ECHO_N "(cached) $ECHO_C" >&6
13541 else
13542   cat >conftest.$ac_ext <<_ACEOF
13543 /* confdefs.h.  */
13544 _ACEOF
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h.  */
13548 $ac_includes_default
13549 typedef pid_t ac__type_new_;
13550 int
13551 main ()
13552 {
13553 if ((ac__type_new_ *) 0)
13554   return 0;
13555 if (sizeof (ac__type_new_))
13556   return 0;
13557   ;
13558   return 0;
13559 }
13560 _ACEOF
13561 rm -f conftest.$ac_objext
13562 if { (ac_try="$ac_compile"
13563 case "(($ac_try" in
13564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565   *) ac_try_echo=$ac_try;;
13566 esac
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568   (eval "$ac_compile") 2>conftest.er1
13569   ac_status=$?
13570   grep -v '^ *+' conftest.er1 >conftest.err
13571   rm -f conftest.er1
13572   cat conftest.err >&5
13573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574   (exit $ac_status); } &&
13575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13576   { (case "(($ac_try" in
13577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578   *) ac_try_echo=$ac_try;;
13579 esac
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581   (eval "$ac_try") 2>&5
13582   ac_status=$?
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); }; } &&
13585          { ac_try='test -s conftest.$ac_objext'
13586   { (case "(($ac_try" in
13587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588   *) ac_try_echo=$ac_try;;
13589 esac
13590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591   (eval "$ac_try") 2>&5
13592   ac_status=$?
13593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); }; }; then
13595   ac_cv_type_pid_t=yes
13596 else
13597   echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13599
13600         ac_cv_type_pid_t=no
13601 fi
13602
13603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13604 fi
13605 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13606 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13607 if test $ac_cv_type_pid_t = yes; then
13608   :
13609 else
13610
13611 cat >>confdefs.h <<_ACEOF
13612 #define pid_t int
13613 _ACEOF
13614
13615 fi
13616
13617 { echo "$as_me:$LINENO: checking for size_t" >&5
13618 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13619 if test "${ac_cv_type_size_t+set}" = set; then
13620   echo $ECHO_N "(cached) $ECHO_C" >&6
13621 else
13622   cat >conftest.$ac_ext <<_ACEOF
13623 /* confdefs.h.  */
13624 _ACEOF
13625 cat confdefs.h >>conftest.$ac_ext
13626 cat >>conftest.$ac_ext <<_ACEOF
13627 /* end confdefs.h.  */
13628 $ac_includes_default
13629 typedef size_t ac__type_new_;
13630 int
13631 main ()
13632 {
13633 if ((ac__type_new_ *) 0)
13634   return 0;
13635 if (sizeof (ac__type_new_))
13636   return 0;
13637   ;
13638   return 0;
13639 }
13640 _ACEOF
13641 rm -f conftest.$ac_objext
13642 if { (ac_try="$ac_compile"
13643 case "(($ac_try" in
13644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13645   *) ac_try_echo=$ac_try;;
13646 esac
13647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13648   (eval "$ac_compile") 2>conftest.er1
13649   ac_status=$?
13650   grep -v '^ *+' conftest.er1 >conftest.err
13651   rm -f conftest.er1
13652   cat conftest.err >&5
13653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654   (exit $ac_status); } &&
13655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13656   { (case "(($ac_try" in
13657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658   *) ac_try_echo=$ac_try;;
13659 esac
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661   (eval "$ac_try") 2>&5
13662   ac_status=$?
13663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664   (exit $ac_status); }; } &&
13665          { ac_try='test -s conftest.$ac_objext'
13666   { (case "(($ac_try" in
13667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668   *) ac_try_echo=$ac_try;;
13669 esac
13670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671   (eval "$ac_try") 2>&5
13672   ac_status=$?
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); }; }; then
13675   ac_cv_type_size_t=yes
13676 else
13677   echo "$as_me: failed program was:" >&5
13678 sed 's/^/| /' conftest.$ac_ext >&5
13679
13680         ac_cv_type_size_t=no
13681 fi
13682
13683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13684 fi
13685 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13686 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13687 if test $ac_cv_type_size_t = yes; then
13688   :
13689 else
13690
13691 cat >>confdefs.h <<_ACEOF
13692 #define size_t unsigned int
13693 _ACEOF
13694
13695 fi
13696
13697
13698 cat >>confdefs.h <<_ACEOF
13699 #define RETSIGTYPE void
13700 _ACEOF
13701
13702 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13703 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13704 if test "${ac_cv_struct_tm+set}" = set; then
13705   echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707   cat >conftest.$ac_ext <<_ACEOF
13708 /* confdefs.h.  */
13709 _ACEOF
13710 cat confdefs.h >>conftest.$ac_ext
13711 cat >>conftest.$ac_ext <<_ACEOF
13712 /* end confdefs.h.  */
13713 #include <sys/types.h>
13714 #include <time.h>
13715
13716 int
13717 main ()
13718 {
13719 struct tm *tp; tp->tm_sec;
13720   ;
13721   return 0;
13722 }
13723 _ACEOF
13724 rm -f conftest.$ac_objext
13725 if { (ac_try="$ac_compile"
13726 case "(($ac_try" in
13727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728   *) ac_try_echo=$ac_try;;
13729 esac
13730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731   (eval "$ac_compile") 2>conftest.er1
13732   ac_status=$?
13733   grep -v '^ *+' conftest.er1 >conftest.err
13734   rm -f conftest.er1
13735   cat conftest.err >&5
13736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737   (exit $ac_status); } &&
13738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13739   { (case "(($ac_try" in
13740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741   *) ac_try_echo=$ac_try;;
13742 esac
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744   (eval "$ac_try") 2>&5
13745   ac_status=$?
13746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747   (exit $ac_status); }; } &&
13748          { ac_try='test -s conftest.$ac_objext'
13749   { (case "(($ac_try" in
13750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13751   *) ac_try_echo=$ac_try;;
13752 esac
13753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13754   (eval "$ac_try") 2>&5
13755   ac_status=$?
13756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757   (exit $ac_status); }; }; then
13758   ac_cv_struct_tm=time.h
13759 else
13760   echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763         ac_cv_struct_tm=sys/time.h
13764 fi
13765
13766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13767 fi
13768 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13769 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13770 if test $ac_cv_struct_tm = sys/time.h; then
13771
13772 cat >>confdefs.h <<\_ACEOF
13773 #define TM_IN_SYS_TIME 1
13774 _ACEOF
13775
13776 fi
13777
13778 { echo "$as_me:$LINENO: checking for int64_t" >&5
13779 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13780 if test "${ac_cv_type_int64_t+set}" = set; then
13781   echo $ECHO_N "(cached) $ECHO_C" >&6
13782 else
13783   cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h.  */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h.  */
13789 $ac_includes_default
13790 typedef int64_t ac__type_new_;
13791 int
13792 main ()
13793 {
13794 if ((ac__type_new_ *) 0)
13795   return 0;
13796 if (sizeof (ac__type_new_))
13797   return 0;
13798   ;
13799   return 0;
13800 }
13801 _ACEOF
13802 rm -f conftest.$ac_objext
13803 if { (ac_try="$ac_compile"
13804 case "(($ac_try" in
13805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806   *) ac_try_echo=$ac_try;;
13807 esac
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809   (eval "$ac_compile") 2>conftest.er1
13810   ac_status=$?
13811   grep -v '^ *+' conftest.er1 >conftest.err
13812   rm -f conftest.er1
13813   cat conftest.err >&5
13814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815   (exit $ac_status); } &&
13816          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13817   { (case "(($ac_try" in
13818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819   *) ac_try_echo=$ac_try;;
13820 esac
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822   (eval "$ac_try") 2>&5
13823   ac_status=$?
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); }; } &&
13826          { ac_try='test -s conftest.$ac_objext'
13827   { (case "(($ac_try" in
13828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13829   *) ac_try_echo=$ac_try;;
13830 esac
13831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13832   (eval "$ac_try") 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; }; then
13836   ac_cv_type_int64_t=yes
13837 else
13838   echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841         ac_cv_type_int64_t=no
13842 fi
13843
13844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13845 fi
13846 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13847 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13848 if test $ac_cv_type_int64_t = yes; then
13849
13850 cat >>confdefs.h <<_ACEOF
13851 #define HAVE_INT64_T 1
13852 _ACEOF
13853
13854
13855 else
13856   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13857 echo "$as_me: error: Type int64_t required but not found" >&2;}
13858    { (exit 1); exit 1; }; }
13859 fi
13860
13861 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13862 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13863 if test "${ac_cv_type_uint64_t+set}" = set; then
13864   echo $ECHO_N "(cached) $ECHO_C" >&6
13865 else
13866   cat >conftest.$ac_ext <<_ACEOF
13867 /* confdefs.h.  */
13868 _ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h.  */
13872 $ac_includes_default
13873 typedef uint64_t ac__type_new_;
13874 int
13875 main ()
13876 {
13877 if ((ac__type_new_ *) 0)
13878   return 0;
13879 if (sizeof (ac__type_new_))
13880   return 0;
13881   ;
13882   return 0;
13883 }
13884 _ACEOF
13885 rm -f conftest.$ac_objext
13886 if { (ac_try="$ac_compile"
13887 case "(($ac_try" in
13888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889   *) ac_try_echo=$ac_try;;
13890 esac
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892   (eval "$ac_compile") 2>conftest.er1
13893   ac_status=$?
13894   grep -v '^ *+' conftest.er1 >conftest.err
13895   rm -f conftest.er1
13896   cat conftest.err >&5
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); } &&
13899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13900   { (case "(($ac_try" in
13901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902   *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905   (eval "$ac_try") 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; } &&
13909          { ac_try='test -s conftest.$ac_objext'
13910   { (case "(($ac_try" in
13911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13912   *) ac_try_echo=$ac_try;;
13913 esac
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915   (eval "$ac_try") 2>&5
13916   ac_status=$?
13917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918   (exit $ac_status); }; }; then
13919   ac_cv_type_uint64_t=yes
13920 else
13921   echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.$ac_ext >&5
13923
13924         ac_cv_type_uint64_t=no
13925 fi
13926
13927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13928 fi
13929 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13930 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13931 if test $ac_cv_type_uint64_t = yes; then
13932
13933 cat >>confdefs.h <<_ACEOF
13934 #define HAVE_UINT64_T 1
13935 _ACEOF
13936
13937
13938 else
13939   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13940 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13941 if test "${ac_cv_type_u_int64_t+set}" = set; then
13942   echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944   cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h.  */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h.  */
13950 $ac_includes_default
13951 typedef u_int64_t ac__type_new_;
13952 int
13953 main ()
13954 {
13955 if ((ac__type_new_ *) 0)
13956   return 0;
13957 if (sizeof (ac__type_new_))
13958   return 0;
13959   ;
13960   return 0;
13961 }
13962 _ACEOF
13963 rm -f conftest.$ac_objext
13964 if { (ac_try="$ac_compile"
13965 case "(($ac_try" in
13966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13967   *) ac_try_echo=$ac_try;;
13968 esac
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970   (eval "$ac_compile") 2>conftest.er1
13971   ac_status=$?
13972   grep -v '^ *+' conftest.er1 >conftest.err
13973   rm -f conftest.er1
13974   cat conftest.err >&5
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); } &&
13977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13978   { (case "(($ac_try" in
13979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13980   *) ac_try_echo=$ac_try;;
13981 esac
13982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13983   (eval "$ac_try") 2>&5
13984   ac_status=$?
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); }; } &&
13987          { ac_try='test -s conftest.$ac_objext'
13988   { (case "(($ac_try" in
13989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990   *) ac_try_echo=$ac_try;;
13991 esac
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993   (eval "$ac_try") 2>&5
13994   ac_status=$?
13995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); }; }; then
13997   ac_cv_type_u_int64_t=yes
13998 else
13999   echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14001
14002         ac_cv_type_u_int64_t=no
14003 fi
14004
14005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14006 fi
14007 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
14008 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
14009 if test $ac_cv_type_u_int64_t = yes; then
14010
14011 cat >>confdefs.h <<_ACEOF
14012 #define HAVE_U_INT64_T 1
14013 _ACEOF
14014
14015
14016 else
14017   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14018 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14019    { (exit 1); exit 1; }; }
14020 fi
14021
14022 fi
14023
14024
14025
14026
14027
14028 for ac_func in backtrace getcwd
14029 do
14030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14034   echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036   cat >conftest.$ac_ext <<_ACEOF
14037 /* confdefs.h.  */
14038 _ACEOF
14039 cat confdefs.h >>conftest.$ac_ext
14040 cat >>conftest.$ac_ext <<_ACEOF
14041 /* end confdefs.h.  */
14042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14044 #define $ac_func innocuous_$ac_func
14045
14046 /* System header to define __stub macros and hopefully few prototypes,
14047     which can conflict with char $ac_func (); below.
14048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14049     <limits.h> exists even on freestanding compilers.  */
14050
14051 #ifdef __STDC__
14052 # include <limits.h>
14053 #else
14054 # include <assert.h>
14055 #endif
14056
14057 #undef $ac_func
14058
14059 /* Override any GCC internal prototype to avoid an error.
14060    Use char because int might match the return type of a GCC
14061    builtin and then its argument prototype would still apply.  */
14062 #ifdef __cplusplus
14063 extern "C"
14064 #endif
14065 char $ac_func ();
14066 /* The GNU C library defines this for functions which it implements
14067     to always fail with ENOSYS.  Some functions are actually named
14068     something starting with __ and the normal name is an alias.  */
14069 #if defined __stub_$ac_func || defined __stub___$ac_func
14070 choke me
14071 #endif
14072
14073 int
14074 main ()
14075 {
14076 return $ac_func ();
14077   ;
14078   return 0;
14079 }
14080 _ACEOF
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (ac_try="$ac_link"
14083 case "(($ac_try" in
14084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085   *) ac_try_echo=$ac_try;;
14086 esac
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088   (eval "$ac_link") 2>conftest.er1
14089   ac_status=$?
14090   grep -v '^ *+' conftest.er1 >conftest.err
14091   rm -f conftest.er1
14092   cat conftest.err >&5
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); } &&
14095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14096   { (case "(($ac_try" in
14097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098   *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101   (eval "$ac_try") 2>&5
14102   ac_status=$?
14103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104   (exit $ac_status); }; } &&
14105          { ac_try='test -s conftest$ac_exeext'
14106   { (case "(($ac_try" in
14107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108   *) ac_try_echo=$ac_try;;
14109 esac
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111   (eval "$ac_try") 2>&5
14112   ac_status=$?
14113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114   (exit $ac_status); }; }; then
14115   eval "$as_ac_var=yes"
14116 else
14117   echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14119
14120         eval "$as_ac_var=no"
14121 fi
14122
14123 rm -f core conftest.err conftest.$ac_objext \
14124       conftest$ac_exeext conftest.$ac_ext
14125 fi
14126 ac_res=`eval echo '${'$as_ac_var'}'`
14127                { echo "$as_me:$LINENO: result: $ac_res" >&5
14128 echo "${ECHO_T}$ac_res" >&6; }
14129 if test `eval echo '${'$as_ac_var'}'` = yes; then
14130   cat >>confdefs.h <<_ACEOF
14131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14132 _ACEOF
14133
14134 fi
14135 done
14136
14137
14138
14139
14140
14141
14142 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14143 do
14144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14148   echo $ECHO_N "(cached) $ECHO_C" >&6
14149 else
14150   cat >conftest.$ac_ext <<_ACEOF
14151 /* confdefs.h.  */
14152 _ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h.  */
14156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14157    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14158 #define $ac_func innocuous_$ac_func
14159
14160 /* System header to define __stub macros and hopefully few prototypes,
14161     which can conflict with char $ac_func (); below.
14162     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14163     <limits.h> exists even on freestanding compilers.  */
14164
14165 #ifdef __STDC__
14166 # include <limits.h>
14167 #else
14168 # include <assert.h>
14169 #endif
14170
14171 #undef $ac_func
14172
14173 /* Override any GCC internal prototype to avoid an error.
14174    Use char because int might match the return type of a GCC
14175    builtin and then its argument prototype would still apply.  */
14176 #ifdef __cplusplus
14177 extern "C"
14178 #endif
14179 char $ac_func ();
14180 /* The GNU C library defines this for functions which it implements
14181     to always fail with ENOSYS.  Some functions are actually named
14182     something starting with __ and the normal name is an alias.  */
14183 #if defined __stub_$ac_func || defined __stub___$ac_func
14184 choke me
14185 #endif
14186
14187 int
14188 main ()
14189 {
14190 return $ac_func ();
14191   ;
14192   return 0;
14193 }
14194 _ACEOF
14195 rm -f conftest.$ac_objext conftest$ac_exeext
14196 if { (ac_try="$ac_link"
14197 case "(($ac_try" in
14198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199   *) ac_try_echo=$ac_try;;
14200 esac
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202   (eval "$ac_link") 2>conftest.er1
14203   ac_status=$?
14204   grep -v '^ *+' conftest.er1 >conftest.err
14205   rm -f conftest.er1
14206   cat conftest.err >&5
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); } &&
14209          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14210   { (case "(($ac_try" in
14211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212   *) ac_try_echo=$ac_try;;
14213 esac
14214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215   (eval "$ac_try") 2>&5
14216   ac_status=$?
14217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218   (exit $ac_status); }; } &&
14219          { ac_try='test -s conftest$ac_exeext'
14220   { (case "(($ac_try" in
14221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222   *) ac_try_echo=$ac_try;;
14223 esac
14224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225   (eval "$ac_try") 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); }; }; then
14229   eval "$as_ac_var=yes"
14230 else
14231   echo "$as_me: failed program was:" >&5
14232 sed 's/^/| /' conftest.$ac_ext >&5
14233
14234         eval "$as_ac_var=no"
14235 fi
14236
14237 rm -f core conftest.err conftest.$ac_objext \
14238       conftest$ac_exeext conftest.$ac_ext
14239 fi
14240 ac_res=`eval echo '${'$as_ac_var'}'`
14241                { echo "$as_me:$LINENO: result: $ac_res" >&5
14242 echo "${ECHO_T}$ac_res" >&6; }
14243 if test `eval echo '${'$as_ac_var'}'` = yes; then
14244   cat >>confdefs.h <<_ACEOF
14245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14246 _ACEOF
14247
14248 fi
14249 done
14250
14251
14252
14253
14254 for ac_func in isatty mkdtemp mkstemp
14255 do
14256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14260   echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262   cat >conftest.$ac_ext <<_ACEOF
14263 /* confdefs.h.  */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h.  */
14268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14269    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14270 #define $ac_func innocuous_$ac_func
14271
14272 /* System header to define __stub macros and hopefully few prototypes,
14273     which can conflict with char $ac_func (); below.
14274     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14275     <limits.h> exists even on freestanding compilers.  */
14276
14277 #ifdef __STDC__
14278 # include <limits.h>
14279 #else
14280 # include <assert.h>
14281 #endif
14282
14283 #undef $ac_func
14284
14285 /* Override any GCC internal prototype to avoid an error.
14286    Use char because int might match the return type of a GCC
14287    builtin and then its argument prototype would still apply.  */
14288 #ifdef __cplusplus
14289 extern "C"
14290 #endif
14291 char $ac_func ();
14292 /* The GNU C library defines this for functions which it implements
14293     to always fail with ENOSYS.  Some functions are actually named
14294     something starting with __ and the normal name is an alias.  */
14295 #if defined __stub_$ac_func || defined __stub___$ac_func
14296 choke me
14297 #endif
14298
14299 int
14300 main ()
14301 {
14302 return $ac_func ();
14303   ;
14304   return 0;
14305 }
14306 _ACEOF
14307 rm -f conftest.$ac_objext conftest$ac_exeext
14308 if { (ac_try="$ac_link"
14309 case "(($ac_try" in
14310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311   *) ac_try_echo=$ac_try;;
14312 esac
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314   (eval "$ac_link") 2>conftest.er1
14315   ac_status=$?
14316   grep -v '^ *+' conftest.er1 >conftest.err
14317   rm -f conftest.er1
14318   cat conftest.err >&5
14319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); } &&
14321          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14322   { (case "(($ac_try" in
14323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14324   *) ac_try_echo=$ac_try;;
14325 esac
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327   (eval "$ac_try") 2>&5
14328   ac_status=$?
14329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330   (exit $ac_status); }; } &&
14331          { ac_try='test -s conftest$ac_exeext'
14332   { (case "(($ac_try" in
14333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334   *) ac_try_echo=$ac_try;;
14335 esac
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337   (eval "$ac_try") 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); }; }; then
14341   eval "$as_ac_var=yes"
14342 else
14343   echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14345
14346         eval "$as_ac_var=no"
14347 fi
14348
14349 rm -f core conftest.err conftest.$ac_objext \
14350       conftest$ac_exeext conftest.$ac_ext
14351 fi
14352 ac_res=`eval echo '${'$as_ac_var'}'`
14353                { echo "$as_me:$LINENO: result: $ac_res" >&5
14354 echo "${ECHO_T}$ac_res" >&6; }
14355 if test `eval echo '${'$as_ac_var'}'` = yes; then
14356   cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14358 _ACEOF
14359
14360 fi
14361 done
14362
14363
14364
14365
14366
14367
14368
14369 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14370 do
14371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14375   echo $ECHO_N "(cached) $ECHO_C" >&6
14376 else
14377   cat >conftest.$ac_ext <<_ACEOF
14378 /* confdefs.h.  */
14379 _ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h.  */
14383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14385 #define $ac_func innocuous_$ac_func
14386
14387 /* System header to define __stub macros and hopefully few prototypes,
14388     which can conflict with char $ac_func (); below.
14389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14390     <limits.h> exists even on freestanding compilers.  */
14391
14392 #ifdef __STDC__
14393 # include <limits.h>
14394 #else
14395 # include <assert.h>
14396 #endif
14397
14398 #undef $ac_func
14399
14400 /* Override any GCC internal prototype to avoid an error.
14401    Use char because int might match the return type of a GCC
14402    builtin and then its argument prototype would still apply.  */
14403 #ifdef __cplusplus
14404 extern "C"
14405 #endif
14406 char $ac_func ();
14407 /* The GNU C library defines this for functions which it implements
14408     to always fail with ENOSYS.  Some functions are actually named
14409     something starting with __ and the normal name is an alias.  */
14410 #if defined __stub_$ac_func || defined __stub___$ac_func
14411 choke me
14412 #endif
14413
14414 int
14415 main ()
14416 {
14417 return $ac_func ();
14418   ;
14419   return 0;
14420 }
14421 _ACEOF
14422 rm -f conftest.$ac_objext conftest$ac_exeext
14423 if { (ac_try="$ac_link"
14424 case "(($ac_try" in
14425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426   *) ac_try_echo=$ac_try;;
14427 esac
14428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429   (eval "$ac_link") 2>conftest.er1
14430   ac_status=$?
14431   grep -v '^ *+' conftest.er1 >conftest.err
14432   rm -f conftest.er1
14433   cat conftest.err >&5
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); } &&
14436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14437   { (case "(($ac_try" in
14438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439   *) ac_try_echo=$ac_try;;
14440 esac
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442   (eval "$ac_try") 2>&5
14443   ac_status=$?
14444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445   (exit $ac_status); }; } &&
14446          { ac_try='test -s conftest$ac_exeext'
14447   { (case "(($ac_try" in
14448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449   *) ac_try_echo=$ac_try;;
14450 esac
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452   (eval "$ac_try") 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); }; }; then
14456   eval "$as_ac_var=yes"
14457 else
14458   echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14460
14461         eval "$as_ac_var=no"
14462 fi
14463
14464 rm -f core conftest.err conftest.$ac_objext \
14465       conftest$ac_exeext conftest.$ac_ext
14466 fi
14467 ac_res=`eval echo '${'$as_ac_var'}'`
14468                { echo "$as_me:$LINENO: result: $ac_res" >&5
14469 echo "${ECHO_T}$ac_res" >&6; }
14470 if test `eval echo '${'$as_ac_var'}'` = yes; then
14471   cat >>confdefs.h <<_ACEOF
14472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14473 _ACEOF
14474
14475 fi
14476 done
14477
14478
14479
14480
14481 for ac_func in strerror strerror_r setenv
14482 do
14483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14487   echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489   cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h.  */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h.  */
14495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14497 #define $ac_func innocuous_$ac_func
14498
14499 /* System header to define __stub macros and hopefully few prototypes,
14500     which can conflict with char $ac_func (); below.
14501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14502     <limits.h> exists even on freestanding compilers.  */
14503
14504 #ifdef __STDC__
14505 # include <limits.h>
14506 #else
14507 # include <assert.h>
14508 #endif
14509
14510 #undef $ac_func
14511
14512 /* Override any GCC internal prototype to avoid an error.
14513    Use char because int might match the return type of a GCC
14514    builtin and then its argument prototype would still apply.  */
14515 #ifdef __cplusplus
14516 extern "C"
14517 #endif
14518 char $ac_func ();
14519 /* The GNU C library defines this for functions which it implements
14520     to always fail with ENOSYS.  Some functions are actually named
14521     something starting with __ and the normal name is an alias.  */
14522 #if defined __stub_$ac_func || defined __stub___$ac_func
14523 choke me
14524 #endif
14525
14526 int
14527 main ()
14528 {
14529 return $ac_func ();
14530   ;
14531   return 0;
14532 }
14533 _ACEOF
14534 rm -f conftest.$ac_objext conftest$ac_exeext
14535 if { (ac_try="$ac_link"
14536 case "(($ac_try" in
14537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538   *) ac_try_echo=$ac_try;;
14539 esac
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541   (eval "$ac_link") 2>conftest.er1
14542   ac_status=$?
14543   grep -v '^ *+' conftest.er1 >conftest.err
14544   rm -f conftest.er1
14545   cat conftest.err >&5
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); } &&
14548          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14549   { (case "(($ac_try" in
14550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551   *) ac_try_echo=$ac_try;;
14552 esac
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554   (eval "$ac_try") 2>&5
14555   ac_status=$?
14556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557   (exit $ac_status); }; } &&
14558          { ac_try='test -s conftest$ac_exeext'
14559   { (case "(($ac_try" in
14560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561   *) ac_try_echo=$ac_try;;
14562 esac
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564   (eval "$ac_try") 2>&5
14565   ac_status=$?
14566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567   (exit $ac_status); }; }; then
14568   eval "$as_ac_var=yes"
14569 else
14570   echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573         eval "$as_ac_var=no"
14574 fi
14575
14576 rm -f core conftest.err conftest.$ac_objext \
14577       conftest$ac_exeext conftest.$ac_ext
14578 fi
14579 ac_res=`eval echo '${'$as_ac_var'}'`
14580                { echo "$as_me:$LINENO: result: $ac_res" >&5
14581 echo "${ECHO_T}$ac_res" >&6; }
14582 if test `eval echo '${'$as_ac_var'}'` = yes; then
14583   cat >>confdefs.h <<_ACEOF
14584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14585 _ACEOF
14586
14587 fi
14588 done
14589
14590
14591
14592
14593
14594 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14595 do
14596 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14597 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14598 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14599 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14600   echo $ECHO_N "(cached) $ECHO_C" >&6
14601 else
14602   cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h.  */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h.  */
14608 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14609    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14610 #define $ac_func innocuous_$ac_func
14611
14612 /* System header to define __stub macros and hopefully few prototypes,
14613     which can conflict with char $ac_func (); below.
14614     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14615     <limits.h> exists even on freestanding compilers.  */
14616
14617 #ifdef __STDC__
14618 # include <limits.h>
14619 #else
14620 # include <assert.h>
14621 #endif
14622
14623 #undef $ac_func
14624
14625 /* Override any GCC internal prototype to avoid an error.
14626    Use char because int might match the return type of a GCC
14627    builtin and then its argument prototype would still apply.  */
14628 #ifdef __cplusplus
14629 extern "C"
14630 #endif
14631 char $ac_func ();
14632 /* The GNU C library defines this for functions which it implements
14633     to always fail with ENOSYS.  Some functions are actually named
14634     something starting with __ and the normal name is an alias.  */
14635 #if defined __stub_$ac_func || defined __stub___$ac_func
14636 choke me
14637 #endif
14638
14639 int
14640 main ()
14641 {
14642 return $ac_func ();
14643   ;
14644   return 0;
14645 }
14646 _ACEOF
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (ac_try="$ac_link"
14649 case "(($ac_try" in
14650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14651   *) ac_try_echo=$ac_try;;
14652 esac
14653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14654   (eval "$ac_link") 2>conftest.er1
14655   ac_status=$?
14656   grep -v '^ *+' conftest.er1 >conftest.err
14657   rm -f conftest.er1
14658   cat conftest.err >&5
14659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660   (exit $ac_status); } &&
14661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14662   { (case "(($ac_try" in
14663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664   *) ac_try_echo=$ac_try;;
14665 esac
14666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667   (eval "$ac_try") 2>&5
14668   ac_status=$?
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); }; } &&
14671          { ac_try='test -s conftest$ac_exeext'
14672   { (case "(($ac_try" in
14673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674   *) ac_try_echo=$ac_try;;
14675 esac
14676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14677   (eval "$ac_try") 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; }; then
14681   eval "$as_ac_var=yes"
14682 else
14683   echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14685
14686         eval "$as_ac_var=no"
14687 fi
14688
14689 rm -f core conftest.err conftest.$ac_objext \
14690       conftest$ac_exeext conftest.$ac_ext
14691 fi
14692 ac_res=`eval echo '${'$as_ac_var'}'`
14693                { echo "$as_me:$LINENO: result: $ac_res" >&5
14694 echo "${ECHO_T}$ac_res" >&6; }
14695 if test `eval echo '${'$as_ac_var'}'` = yes; then
14696   cat >>confdefs.h <<_ACEOF
14697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14698 _ACEOF
14699
14700 fi
14701 done
14702
14703
14704
14705
14706
14707
14708 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14709 do
14710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14714   echo $ECHO_N "(cached) $ECHO_C" >&6
14715 else
14716   cat >conftest.$ac_ext <<_ACEOF
14717 /* confdefs.h.  */
14718 _ACEOF
14719 cat confdefs.h >>conftest.$ac_ext
14720 cat >>conftest.$ac_ext <<_ACEOF
14721 /* end confdefs.h.  */
14722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14724 #define $ac_func innocuous_$ac_func
14725
14726 /* System header to define __stub macros and hopefully few prototypes,
14727     which can conflict with char $ac_func (); below.
14728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14729     <limits.h> exists even on freestanding compilers.  */
14730
14731 #ifdef __STDC__
14732 # include <limits.h>
14733 #else
14734 # include <assert.h>
14735 #endif
14736
14737 #undef $ac_func
14738
14739 /* Override any GCC internal prototype to avoid an error.
14740    Use char because int might match the return type of a GCC
14741    builtin and then its argument prototype would still apply.  */
14742 #ifdef __cplusplus
14743 extern "C"
14744 #endif
14745 char $ac_func ();
14746 /* The GNU C library defines this for functions which it implements
14747     to always fail with ENOSYS.  Some functions are actually named
14748     something starting with __ and the normal name is an alias.  */
14749 #if defined __stub_$ac_func || defined __stub___$ac_func
14750 choke me
14751 #endif
14752
14753 int
14754 main ()
14755 {
14756 return $ac_func ();
14757   ;
14758   return 0;
14759 }
14760 _ACEOF
14761 rm -f conftest.$ac_objext conftest$ac_exeext
14762 if { (ac_try="$ac_link"
14763 case "(($ac_try" in
14764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765   *) ac_try_echo=$ac_try;;
14766 esac
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768   (eval "$ac_link") 2>conftest.er1
14769   ac_status=$?
14770   grep -v '^ *+' conftest.er1 >conftest.err
14771   rm -f conftest.er1
14772   cat conftest.err >&5
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } &&
14775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14776   { (case "(($ac_try" in
14777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778   *) ac_try_echo=$ac_try;;
14779 esac
14780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14781   (eval "$ac_try") 2>&5
14782   ac_status=$?
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); }; } &&
14785          { ac_try='test -s conftest$ac_exeext'
14786   { (case "(($ac_try" in
14787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14788   *) ac_try_echo=$ac_try;;
14789 esac
14790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14791   (eval "$ac_try") 2>&5
14792   ac_status=$?
14793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794   (exit $ac_status); }; }; then
14795   eval "$as_ac_var=yes"
14796 else
14797   echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14799
14800         eval "$as_ac_var=no"
14801 fi
14802
14803 rm -f core conftest.err conftest.$ac_objext \
14804       conftest$ac_exeext conftest.$ac_ext
14805 fi
14806 ac_res=`eval echo '${'$as_ac_var'}'`
14807                { echo "$as_me:$LINENO: result: $ac_res" >&5
14808 echo "${ECHO_T}$ac_res" >&6; }
14809 if test `eval echo '${'$as_ac_var'}'` = yes; then
14810   cat >>confdefs.h <<_ACEOF
14811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14812 _ACEOF
14813
14814 fi
14815 done
14816
14817
14818
14819 for ac_func in futimes futimens
14820 do
14821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14825   echo $ECHO_N "(cached) $ECHO_C" >&6
14826 else
14827   cat >conftest.$ac_ext <<_ACEOF
14828 /* confdefs.h.  */
14829 _ACEOF
14830 cat confdefs.h >>conftest.$ac_ext
14831 cat >>conftest.$ac_ext <<_ACEOF
14832 /* end confdefs.h.  */
14833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14835 #define $ac_func innocuous_$ac_func
14836
14837 /* System header to define __stub macros and hopefully few prototypes,
14838     which can conflict with char $ac_func (); below.
14839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14840     <limits.h> exists even on freestanding compilers.  */
14841
14842 #ifdef __STDC__
14843 # include <limits.h>
14844 #else
14845 # include <assert.h>
14846 #endif
14847
14848 #undef $ac_func
14849
14850 /* Override any GCC internal prototype to avoid an error.
14851    Use char because int might match the return type of a GCC
14852    builtin and then its argument prototype would still apply.  */
14853 #ifdef __cplusplus
14854 extern "C"
14855 #endif
14856 char $ac_func ();
14857 /* The GNU C library defines this for functions which it implements
14858     to always fail with ENOSYS.  Some functions are actually named
14859     something starting with __ and the normal name is an alias.  */
14860 #if defined __stub_$ac_func || defined __stub___$ac_func
14861 choke me
14862 #endif
14863
14864 int
14865 main ()
14866 {
14867 return $ac_func ();
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (ac_try="$ac_link"
14874 case "(($ac_try" in
14875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876   *) ac_try_echo=$ac_try;;
14877 esac
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879   (eval "$ac_link") 2>conftest.er1
14880   ac_status=$?
14881   grep -v '^ *+' conftest.er1 >conftest.err
14882   rm -f conftest.er1
14883   cat conftest.err >&5
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); } &&
14886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887   { (case "(($ac_try" in
14888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889   *) ac_try_echo=$ac_try;;
14890 esac
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892   (eval "$ac_try") 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); }; } &&
14896          { ac_try='test -s conftest$ac_exeext'
14897   { (case "(($ac_try" in
14898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899   *) ac_try_echo=$ac_try;;
14900 esac
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902   (eval "$ac_try") 2>&5
14903   ac_status=$?
14904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905   (exit $ac_status); }; }; then
14906   eval "$as_ac_var=yes"
14907 else
14908   echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14910
14911         eval "$as_ac_var=no"
14912 fi
14913
14914 rm -f core conftest.err conftest.$ac_objext \
14915       conftest$ac_exeext conftest.$ac_ext
14916 fi
14917 ac_res=`eval echo '${'$as_ac_var'}'`
14918                { echo "$as_me:$LINENO: result: $ac_res" >&5
14919 echo "${ECHO_T}$ac_res" >&6; }
14920 if test `eval echo '${'$as_ac_var'}'` = yes; then
14921   cat >>confdefs.h <<_ACEOF
14922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14923 _ACEOF
14924
14925 fi
14926 done
14927
14928 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14929 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14930 if test "${llvm_cv_c_printf_a+set}" = set; then
14931   echo $ECHO_N "(cached) $ECHO_C" >&6
14932 else
14933   ac_ext=c
14934 ac_cpp='$CPP $CPPFLAGS'
14935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14938
14939  if test "$cross_compiling" = yes; then
14940   llvmac_cv_c_printf_a=no
14941 else
14942   cat >conftest.$ac_ext <<_ACEOF
14943
14944   /* confdefs.h.  */
14945 _ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h.  */
14949
14950 #include <stdio.h>
14951 #include <stdlib.h>
14952
14953 int
14954 main ()
14955 {
14956
14957 volatile double A, B;
14958 char Buffer[100];
14959 A = 1;
14960 A /= 10.0;
14961 sprintf(Buffer, "%a", A);
14962 B = atof(Buffer);
14963 if (A != B)
14964   return (1);
14965 if (A != 0x1.999999999999ap-4)
14966   return (1);
14967 return (0);
14968   ;
14969   return 0;
14970 }
14971 _ACEOF
14972 rm -f conftest$ac_exeext
14973 if { (ac_try="$ac_link"
14974 case "(($ac_try" in
14975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976   *) ac_try_echo=$ac_try;;
14977 esac
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979   (eval "$ac_link") 2>&5
14980   ac_status=$?
14981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14983   { (case "(($ac_try" in
14984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985   *) ac_try_echo=$ac_try;;
14986 esac
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988   (eval "$ac_try") 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; }; then
14992   llvm_cv_c_printf_a=yes
14993 else
14994   echo "$as_me: program exited with status $ac_status" >&5
14995 echo "$as_me: failed program was:" >&5
14996 sed 's/^/| /' conftest.$ac_ext >&5
14997
14998 ( exit $ac_status )
14999 llvmac_cv_c_printf_a=no
15000 fi
15001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15002 fi
15003
15004
15005  ac_ext=c
15006 ac_cpp='$CPP $CPPFLAGS'
15007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15010
15011 fi
15012 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
15013 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
15014  if test "$llvm_cv_c_printf_a" = "yes"; then
15015
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_PRINTF_A 1
15018 _ACEOF
15019
15020  fi
15021
15022
15023
15024   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15025 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15026 if test "${ac_cv_func_rand48+set}" = set; then
15027   echo $ECHO_N "(cached) $ECHO_C" >&6
15028 else
15029
15030     ac_ext=cpp
15031 ac_cpp='$CXXCPP $CPPFLAGS'
15032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15035
15036     cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h.  */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h.  */
15042 #include <stdlib.h>
15043 int
15044 main ()
15045 {
15046 srand48(0);lrand48();drand48();
15047   ;
15048   return 0;
15049 }
15050 _ACEOF
15051 rm -f conftest.$ac_objext
15052 if { (ac_try="$ac_compile"
15053 case "(($ac_try" in
15054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055   *) ac_try_echo=$ac_try;;
15056 esac
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058   (eval "$ac_compile") 2>conftest.er1
15059   ac_status=$?
15060   grep -v '^ *+' conftest.er1 >conftest.err
15061   rm -f conftest.er1
15062   cat conftest.err >&5
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); } &&
15065          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15066   { (case "(($ac_try" in
15067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068   *) ac_try_echo=$ac_try;;
15069 esac
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071   (eval "$ac_try") 2>&5
15072   ac_status=$?
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); }; } &&
15075          { ac_try='test -s conftest.$ac_objext'
15076   { (case "(($ac_try" in
15077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078   *) ac_try_echo=$ac_try;;
15079 esac
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081   (eval "$ac_try") 2>&5
15082   ac_status=$?
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); }; }; then
15085   ac_cv_func_rand48=yes
15086 else
15087   echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090         ac_cv_func_rand48=no
15091 fi
15092
15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094     ac_ext=c
15095 ac_cpp='$CPP $CPPFLAGS'
15096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15099
15100
15101 fi
15102 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15103 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15104
15105 if test "$ac_cv_func_rand48" = "yes" ; then
15106
15107 cat >>confdefs.h <<\_ACEOF
15108 #define HAVE_RAND48 1
15109 _ACEOF
15110
15111 fi
15112
15113
15114 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15115 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15116 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15117   echo $ECHO_N "(cached) $ECHO_C" >&6
15118 else
15119   cat >conftest.$ac_ext <<_ACEOF
15120 /* confdefs.h.  */
15121 _ACEOF
15122 cat confdefs.h >>conftest.$ac_ext
15123 cat >>conftest.$ac_ext <<_ACEOF
15124 /* end confdefs.h.  */
15125 $ac_includes_default
15126 int
15127 main ()
15128 {
15129 #ifndef arc4random
15130   char *p = (char *) arc4random;
15131   return !p;
15132 #endif
15133
15134   ;
15135   return 0;
15136 }
15137 _ACEOF
15138 rm -f conftest.$ac_objext
15139 if { (ac_try="$ac_compile"
15140 case "(($ac_try" in
15141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142   *) ac_try_echo=$ac_try;;
15143 esac
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145   (eval "$ac_compile") 2>conftest.er1
15146   ac_status=$?
15147   grep -v '^ *+' conftest.er1 >conftest.err
15148   rm -f conftest.er1
15149   cat conftest.err >&5
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); } &&
15152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15153   { (case "(($ac_try" in
15154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155   *) ac_try_echo=$ac_try;;
15156 esac
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158   (eval "$ac_try") 2>&5
15159   ac_status=$?
15160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161   (exit $ac_status); }; } &&
15162          { ac_try='test -s conftest.$ac_objext'
15163   { (case "(($ac_try" in
15164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165   *) ac_try_echo=$ac_try;;
15166 esac
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168   (eval "$ac_try") 2>&5
15169   ac_status=$?
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); }; }; then
15172   ac_cv_have_decl_arc4random=yes
15173 else
15174   echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15176
15177         ac_cv_have_decl_arc4random=no
15178 fi
15179
15180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15181 fi
15182 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15183 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15184 if test $ac_cv_have_decl_arc4random = yes; then
15185
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE_DECL_ARC4RANDOM 1
15188 _ACEOF
15189
15190
15191 else
15192   cat >>confdefs.h <<_ACEOF
15193 #define HAVE_DECL_ARC4RANDOM 0
15194 _ACEOF
15195
15196
15197 fi
15198
15199
15200
15201 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15202 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15203 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15204   echo $ECHO_N "(cached) $ECHO_C" >&6
15205 else
15206   cat >conftest.$ac_ext <<_ACEOF
15207 /* confdefs.h.  */
15208 _ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h.  */
15212 $ac_includes_default
15213 int
15214 main ()
15215 {
15216 #ifndef strerror_s
15217   char *p = (char *) strerror_s;
15218   return !p;
15219 #endif
15220
15221   ;
15222   return 0;
15223 }
15224 _ACEOF
15225 rm -f conftest.$ac_objext
15226 if { (ac_try="$ac_compile"
15227 case "(($ac_try" in
15228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229   *) ac_try_echo=$ac_try;;
15230 esac
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232   (eval "$ac_compile") 2>conftest.er1
15233   ac_status=$?
15234   grep -v '^ *+' conftest.er1 >conftest.err
15235   rm -f conftest.er1
15236   cat conftest.err >&5
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); } &&
15239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15240   { (case "(($ac_try" in
15241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242   *) ac_try_echo=$ac_try;;
15243 esac
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245   (eval "$ac_try") 2>&5
15246   ac_status=$?
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); }; } &&
15249          { ac_try='test -s conftest.$ac_objext'
15250   { (case "(($ac_try" in
15251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252   *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255   (eval "$ac_try") 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); }; }; then
15259   ac_cv_have_decl_strerror_s=yes
15260 else
15261   echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15263
15264         ac_cv_have_decl_strerror_s=no
15265 fi
15266
15267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15268 fi
15269 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15270 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15271 if test $ac_cv_have_decl_strerror_s = yes; then
15272
15273 cat >>confdefs.h <<_ACEOF
15274 #define HAVE_DECL_STRERROR_S 1
15275 _ACEOF
15276
15277
15278 else
15279   cat >>confdefs.h <<_ACEOF
15280 #define HAVE_DECL_STRERROR_S 0
15281 _ACEOF
15282
15283
15284 fi
15285
15286
15287
15288 if test "$llvm_cv_os_type" = "MingW" ; then
15289   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15290 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15291 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15292   echo $ECHO_N "(cached) $ECHO_C" >&6
15293 else
15294   ac_check_lib_save_LIBS=$LIBS
15295 LIBS="-lgcc  $LIBS"
15296 cat >conftest.$ac_ext <<_ACEOF
15297 /* confdefs.h.  */
15298 _ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h.  */
15302
15303 /* Override any GCC internal prototype to avoid an error.
15304    Use char because int might match the return type of a GCC
15305    builtin and then its argument prototype would still apply.  */
15306 #ifdef __cplusplus
15307 extern "C"
15308 #endif
15309 char _alloca ();
15310 int
15311 main ()
15312 {
15313 return _alloca ();
15314   ;
15315   return 0;
15316 }
15317 _ACEOF
15318 rm -f conftest.$ac_objext conftest$ac_exeext
15319 if { (ac_try="$ac_link"
15320 case "(($ac_try" in
15321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322   *) ac_try_echo=$ac_try;;
15323 esac
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325   (eval "$ac_link") 2>conftest.er1
15326   ac_status=$?
15327   grep -v '^ *+' conftest.er1 >conftest.err
15328   rm -f conftest.er1
15329   cat conftest.err >&5
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); } &&
15332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15333   { (case "(($ac_try" in
15334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335   *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338   (eval "$ac_try") 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); }; } &&
15342          { ac_try='test -s conftest$ac_exeext'
15343   { (case "(($ac_try" in
15344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345   *) ac_try_echo=$ac_try;;
15346 esac
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348   (eval "$ac_try") 2>&5
15349   ac_status=$?
15350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351   (exit $ac_status); }; }; then
15352   ac_cv_lib_gcc__alloca=yes
15353 else
15354   echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15356
15357         ac_cv_lib_gcc__alloca=no
15358 fi
15359
15360 rm -f core conftest.err conftest.$ac_objext \
15361       conftest$ac_exeext conftest.$ac_ext
15362 LIBS=$ac_check_lib_save_LIBS
15363 fi
15364 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15365 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15366 if test $ac_cv_lib_gcc__alloca = yes; then
15367
15368 cat >>confdefs.h <<\_ACEOF
15369 #define HAVE__ALLOCA 1
15370 _ACEOF
15371
15372 fi
15373
15374   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15375 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15376 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15377   echo $ECHO_N "(cached) $ECHO_C" >&6
15378 else
15379   ac_check_lib_save_LIBS=$LIBS
15380 LIBS="-lgcc  $LIBS"
15381 cat >conftest.$ac_ext <<_ACEOF
15382 /* confdefs.h.  */
15383 _ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h.  */
15387
15388 /* Override any GCC internal prototype to avoid an error.
15389    Use char because int might match the return type of a GCC
15390    builtin and then its argument prototype would still apply.  */
15391 #ifdef __cplusplus
15392 extern "C"
15393 #endif
15394 char __alloca ();
15395 int
15396 main ()
15397 {
15398 return __alloca ();
15399   ;
15400   return 0;
15401 }
15402 _ACEOF
15403 rm -f conftest.$ac_objext conftest$ac_exeext
15404 if { (ac_try="$ac_link"
15405 case "(($ac_try" in
15406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407   *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410   (eval "$ac_link") 2>conftest.er1
15411   ac_status=$?
15412   grep -v '^ *+' conftest.er1 >conftest.err
15413   rm -f conftest.er1
15414   cat conftest.err >&5
15415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416   (exit $ac_status); } &&
15417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15418   { (case "(($ac_try" in
15419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420   *) ac_try_echo=$ac_try;;
15421 esac
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423   (eval "$ac_try") 2>&5
15424   ac_status=$?
15425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426   (exit $ac_status); }; } &&
15427          { ac_try='test -s conftest$ac_exeext'
15428   { (case "(($ac_try" in
15429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430   *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433   (eval "$ac_try") 2>&5
15434   ac_status=$?
15435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436   (exit $ac_status); }; }; then
15437   ac_cv_lib_gcc___alloca=yes
15438 else
15439   echo "$as_me: failed program was:" >&5
15440 sed 's/^/| /' conftest.$ac_ext >&5
15441
15442         ac_cv_lib_gcc___alloca=no
15443 fi
15444
15445 rm -f core conftest.err conftest.$ac_objext \
15446       conftest$ac_exeext conftest.$ac_ext
15447 LIBS=$ac_check_lib_save_LIBS
15448 fi
15449 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15450 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15451 if test $ac_cv_lib_gcc___alloca = yes; then
15452
15453 cat >>confdefs.h <<\_ACEOF
15454 #define HAVE___ALLOCA 1
15455 _ACEOF
15456
15457 fi
15458
15459   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15460 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15461 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15462   echo $ECHO_N "(cached) $ECHO_C" >&6
15463 else
15464   ac_check_lib_save_LIBS=$LIBS
15465 LIBS="-lgcc  $LIBS"
15466 cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h.  */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h.  */
15472
15473 /* Override any GCC internal prototype to avoid an error.
15474    Use char because int might match the return type of a GCC
15475    builtin and then its argument prototype would still apply.  */
15476 #ifdef __cplusplus
15477 extern "C"
15478 #endif
15479 char __chkstk ();
15480 int
15481 main ()
15482 {
15483 return __chkstk ();
15484   ;
15485   return 0;
15486 }
15487 _ACEOF
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (ac_try="$ac_link"
15490 case "(($ac_try" in
15491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492   *) ac_try_echo=$ac_try;;
15493 esac
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495   (eval "$ac_link") 2>conftest.er1
15496   ac_status=$?
15497   grep -v '^ *+' conftest.er1 >conftest.err
15498   rm -f conftest.er1
15499   cat conftest.err >&5
15500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501   (exit $ac_status); } &&
15502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15503   { (case "(($ac_try" in
15504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505   *) ac_try_echo=$ac_try;;
15506 esac
15507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15508   (eval "$ac_try") 2>&5
15509   ac_status=$?
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); }; } &&
15512          { ac_try='test -s conftest$ac_exeext'
15513   { (case "(($ac_try" in
15514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515   *) ac_try_echo=$ac_try;;
15516 esac
15517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15518   (eval "$ac_try") 2>&5
15519   ac_status=$?
15520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521   (exit $ac_status); }; }; then
15522   ac_cv_lib_gcc___chkstk=yes
15523 else
15524   echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15526
15527         ac_cv_lib_gcc___chkstk=no
15528 fi
15529
15530 rm -f core conftest.err conftest.$ac_objext \
15531       conftest$ac_exeext conftest.$ac_ext
15532 LIBS=$ac_check_lib_save_LIBS
15533 fi
15534 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15535 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15536 if test $ac_cv_lib_gcc___chkstk = yes; then
15537
15538 cat >>confdefs.h <<\_ACEOF
15539 #define HAVE___CHKSTK 1
15540 _ACEOF
15541
15542 fi
15543
15544   { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15545 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15546 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15547   echo $ECHO_N "(cached) $ECHO_C" >&6
15548 else
15549   ac_check_lib_save_LIBS=$LIBS
15550 LIBS="-lgcc  $LIBS"
15551 cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h.  */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h.  */
15557
15558 /* Override any GCC internal prototype to avoid an error.
15559    Use char because int might match the return type of a GCC
15560    builtin and then its argument prototype would still apply.  */
15561 #ifdef __cplusplus
15562 extern "C"
15563 #endif
15564 char __chkstk_ms ();
15565 int
15566 main ()
15567 {
15568 return __chkstk_ms ();
15569   ;
15570   return 0;
15571 }
15572 _ACEOF
15573 rm -f conftest.$ac_objext conftest$ac_exeext
15574 if { (ac_try="$ac_link"
15575 case "(($ac_try" in
15576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577   *) ac_try_echo=$ac_try;;
15578 esac
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580   (eval "$ac_link") 2>conftest.er1
15581   ac_status=$?
15582   grep -v '^ *+' conftest.er1 >conftest.err
15583   rm -f conftest.er1
15584   cat conftest.err >&5
15585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586   (exit $ac_status); } &&
15587          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15588   { (case "(($ac_try" in
15589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15590   *) ac_try_echo=$ac_try;;
15591 esac
15592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15593   (eval "$ac_try") 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; } &&
15597          { ac_try='test -s conftest$ac_exeext'
15598   { (case "(($ac_try" in
15599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600   *) ac_try_echo=$ac_try;;
15601 esac
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603   (eval "$ac_try") 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); }; }; then
15607   ac_cv_lib_gcc___chkstk_ms=yes
15608 else
15609   echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15611
15612         ac_cv_lib_gcc___chkstk_ms=no
15613 fi
15614
15615 rm -f core conftest.err conftest.$ac_objext \
15616       conftest$ac_exeext conftest.$ac_ext
15617 LIBS=$ac_check_lib_save_LIBS
15618 fi
15619 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15620 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15621 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15622
15623 cat >>confdefs.h <<\_ACEOF
15624 #define HAVE___CHKSTK_MS 1
15625 _ACEOF
15626
15627 fi
15628
15629   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15630 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15631 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15632   echo $ECHO_N "(cached) $ECHO_C" >&6
15633 else
15634   ac_check_lib_save_LIBS=$LIBS
15635 LIBS="-lgcc  $LIBS"
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h.  */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h.  */
15642
15643 /* Override any GCC internal prototype to avoid an error.
15644    Use char because int might match the return type of a GCC
15645    builtin and then its argument prototype would still apply.  */
15646 #ifdef __cplusplus
15647 extern "C"
15648 #endif
15649 char ___chkstk ();
15650 int
15651 main ()
15652 {
15653 return ___chkstk ();
15654   ;
15655   return 0;
15656 }
15657 _ACEOF
15658 rm -f conftest.$ac_objext conftest$ac_exeext
15659 if { (ac_try="$ac_link"
15660 case "(($ac_try" in
15661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662   *) ac_try_echo=$ac_try;;
15663 esac
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665   (eval "$ac_link") 2>conftest.er1
15666   ac_status=$?
15667   grep -v '^ *+' conftest.er1 >conftest.err
15668   rm -f conftest.er1
15669   cat conftest.err >&5
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); } &&
15672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15673   { (case "(($ac_try" in
15674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675   *) ac_try_echo=$ac_try;;
15676 esac
15677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15678   (eval "$ac_try") 2>&5
15679   ac_status=$?
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); }; } &&
15682          { ac_try='test -s conftest$ac_exeext'
15683   { (case "(($ac_try" in
15684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685   *) ac_try_echo=$ac_try;;
15686 esac
15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688   (eval "$ac_try") 2>&5
15689   ac_status=$?
15690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691   (exit $ac_status); }; }; then
15692   ac_cv_lib_gcc____chkstk=yes
15693 else
15694   echo "$as_me: failed program was:" >&5
15695 sed 's/^/| /' conftest.$ac_ext >&5
15696
15697         ac_cv_lib_gcc____chkstk=no
15698 fi
15699
15700 rm -f core conftest.err conftest.$ac_objext \
15701       conftest$ac_exeext conftest.$ac_ext
15702 LIBS=$ac_check_lib_save_LIBS
15703 fi
15704 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15705 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15706 if test $ac_cv_lib_gcc____chkstk = yes; then
15707
15708 cat >>confdefs.h <<\_ACEOF
15709 #define HAVE____CHKSTK 1
15710 _ACEOF
15711
15712 fi
15713
15714   { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15715 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15716 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15717   echo $ECHO_N "(cached) $ECHO_C" >&6
15718 else
15719   ac_check_lib_save_LIBS=$LIBS
15720 LIBS="-lgcc  $LIBS"
15721 cat >conftest.$ac_ext <<_ACEOF
15722 /* confdefs.h.  */
15723 _ACEOF
15724 cat confdefs.h >>conftest.$ac_ext
15725 cat >>conftest.$ac_ext <<_ACEOF
15726 /* end confdefs.h.  */
15727
15728 /* Override any GCC internal prototype to avoid an error.
15729    Use char because int might match the return type of a GCC
15730    builtin and then its argument prototype would still apply.  */
15731 #ifdef __cplusplus
15732 extern "C"
15733 #endif
15734 char ___chkstk_ms ();
15735 int
15736 main ()
15737 {
15738 return ___chkstk_ms ();
15739   ;
15740   return 0;
15741 }
15742 _ACEOF
15743 rm -f conftest.$ac_objext conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747   *) ac_try_echo=$ac_try;;
15748 esac
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750   (eval "$ac_link") 2>conftest.er1
15751   ac_status=$?
15752   grep -v '^ *+' conftest.er1 >conftest.err
15753   rm -f conftest.er1
15754   cat conftest.err >&5
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); } &&
15757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15758   { (case "(($ac_try" in
15759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760   *) ac_try_echo=$ac_try;;
15761 esac
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763   (eval "$ac_try") 2>&5
15764   ac_status=$?
15765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); }; } &&
15767          { ac_try='test -s conftest$ac_exeext'
15768   { (case "(($ac_try" in
15769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770   *) ac_try_echo=$ac_try;;
15771 esac
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773   (eval "$ac_try") 2>&5
15774   ac_status=$?
15775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776   (exit $ac_status); }; }; then
15777   ac_cv_lib_gcc____chkstk_ms=yes
15778 else
15779   echo "$as_me: failed program was:" >&5
15780 sed 's/^/| /' conftest.$ac_ext >&5
15781
15782         ac_cv_lib_gcc____chkstk_ms=no
15783 fi
15784
15785 rm -f core conftest.err conftest.$ac_objext \
15786       conftest$ac_exeext conftest.$ac_ext
15787 LIBS=$ac_check_lib_save_LIBS
15788 fi
15789 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15790 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15791 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15792
15793 cat >>confdefs.h <<\_ACEOF
15794 #define HAVE____CHKSTK_MS 1
15795 _ACEOF
15796
15797 fi
15798
15799
15800   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15801 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15802 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15803   echo $ECHO_N "(cached) $ECHO_C" >&6
15804 else
15805   ac_check_lib_save_LIBS=$LIBS
15806 LIBS="-lgcc  $LIBS"
15807 cat >conftest.$ac_ext <<_ACEOF
15808 /* confdefs.h.  */
15809 _ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h.  */
15813
15814 /* Override any GCC internal prototype to avoid an error.
15815    Use char because int might match the return type of a GCC
15816    builtin and then its argument prototype would still apply.  */
15817 #ifdef __cplusplus
15818 extern "C"
15819 #endif
15820 char __ashldi3 ();
15821 int
15822 main ()
15823 {
15824 return __ashldi3 ();
15825   ;
15826   return 0;
15827 }
15828 _ACEOF
15829 rm -f conftest.$ac_objext conftest$ac_exeext
15830 if { (ac_try="$ac_link"
15831 case "(($ac_try" in
15832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833   *) ac_try_echo=$ac_try;;
15834 esac
15835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836   (eval "$ac_link") 2>conftest.er1
15837   ac_status=$?
15838   grep -v '^ *+' conftest.er1 >conftest.err
15839   rm -f conftest.er1
15840   cat conftest.err >&5
15841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842   (exit $ac_status); } &&
15843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15844   { (case "(($ac_try" in
15845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15846   *) ac_try_echo=$ac_try;;
15847 esac
15848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15849   (eval "$ac_try") 2>&5
15850   ac_status=$?
15851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852   (exit $ac_status); }; } &&
15853          { ac_try='test -s conftest$ac_exeext'
15854   { (case "(($ac_try" in
15855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15856   *) ac_try_echo=$ac_try;;
15857 esac
15858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15859   (eval "$ac_try") 2>&5
15860   ac_status=$?
15861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862   (exit $ac_status); }; }; then
15863   ac_cv_lib_gcc___ashldi3=yes
15864 else
15865   echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15867
15868         ac_cv_lib_gcc___ashldi3=no
15869 fi
15870
15871 rm -f core conftest.err conftest.$ac_objext \
15872       conftest$ac_exeext conftest.$ac_ext
15873 LIBS=$ac_check_lib_save_LIBS
15874 fi
15875 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15876 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15877 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15878
15879 cat >>confdefs.h <<\_ACEOF
15880 #define HAVE___ASHLDI3 1
15881 _ACEOF
15882
15883 fi
15884
15885   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15886 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15887 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15888   echo $ECHO_N "(cached) $ECHO_C" >&6
15889 else
15890   ac_check_lib_save_LIBS=$LIBS
15891 LIBS="-lgcc  $LIBS"
15892 cat >conftest.$ac_ext <<_ACEOF
15893 /* confdefs.h.  */
15894 _ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h.  */
15898
15899 /* Override any GCC internal prototype to avoid an error.
15900    Use char because int might match the return type of a GCC
15901    builtin and then its argument prototype would still apply.  */
15902 #ifdef __cplusplus
15903 extern "C"
15904 #endif
15905 char __ashrdi3 ();
15906 int
15907 main ()
15908 {
15909 return __ashrdi3 ();
15910   ;
15911   return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (ac_try="$ac_link"
15916 case "(($ac_try" in
15917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918   *) ac_try_echo=$ac_try;;
15919 esac
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921   (eval "$ac_link") 2>conftest.er1
15922   ac_status=$?
15923   grep -v '^ *+' conftest.er1 >conftest.err
15924   rm -f conftest.er1
15925   cat conftest.err >&5
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); } &&
15928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15929   { (case "(($ac_try" in
15930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931   *) ac_try_echo=$ac_try;;
15932 esac
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934   (eval "$ac_try") 2>&5
15935   ac_status=$?
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); }; } &&
15938          { ac_try='test -s conftest$ac_exeext'
15939   { (case "(($ac_try" in
15940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15941   *) ac_try_echo=$ac_try;;
15942 esac
15943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15944   (eval "$ac_try") 2>&5
15945   ac_status=$?
15946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947   (exit $ac_status); }; }; then
15948   ac_cv_lib_gcc___ashrdi3=yes
15949 else
15950   echo "$as_me: failed program was:" >&5
15951 sed 's/^/| /' conftest.$ac_ext >&5
15952
15953         ac_cv_lib_gcc___ashrdi3=no
15954 fi
15955
15956 rm -f core conftest.err conftest.$ac_objext \
15957       conftest$ac_exeext conftest.$ac_ext
15958 LIBS=$ac_check_lib_save_LIBS
15959 fi
15960 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15961 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15962 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15963
15964 cat >>confdefs.h <<\_ACEOF
15965 #define HAVE___ASHRDI3 1
15966 _ACEOF
15967
15968 fi
15969
15970   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15971 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15972 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15973   echo $ECHO_N "(cached) $ECHO_C" >&6
15974 else
15975   ac_check_lib_save_LIBS=$LIBS
15976 LIBS="-lgcc  $LIBS"
15977 cat >conftest.$ac_ext <<_ACEOF
15978 /* confdefs.h.  */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h.  */
15983
15984 /* Override any GCC internal prototype to avoid an error.
15985    Use char because int might match the return type of a GCC
15986    builtin and then its argument prototype would still apply.  */
15987 #ifdef __cplusplus
15988 extern "C"
15989 #endif
15990 char __divdi3 ();
15991 int
15992 main ()
15993 {
15994 return __divdi3 ();
15995   ;
15996   return 0;
15997 }
15998 _ACEOF
15999 rm -f conftest.$ac_objext conftest$ac_exeext
16000 if { (ac_try="$ac_link"
16001 case "(($ac_try" in
16002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003   *) ac_try_echo=$ac_try;;
16004 esac
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006   (eval "$ac_link") 2>conftest.er1
16007   ac_status=$?
16008   grep -v '^ *+' conftest.er1 >conftest.err
16009   rm -f conftest.er1
16010   cat conftest.err >&5
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); } &&
16013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16014   { (case "(($ac_try" in
16015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16016   *) ac_try_echo=$ac_try;;
16017 esac
16018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16019   (eval "$ac_try") 2>&5
16020   ac_status=$?
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   (exit $ac_status); }; } &&
16023          { ac_try='test -s conftest$ac_exeext'
16024   { (case "(($ac_try" in
16025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16026   *) ac_try_echo=$ac_try;;
16027 esac
16028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16029   (eval "$ac_try") 2>&5
16030   ac_status=$?
16031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032   (exit $ac_status); }; }; then
16033   ac_cv_lib_gcc___divdi3=yes
16034 else
16035   echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16037
16038         ac_cv_lib_gcc___divdi3=no
16039 fi
16040
16041 rm -f core conftest.err conftest.$ac_objext \
16042       conftest$ac_exeext conftest.$ac_ext
16043 LIBS=$ac_check_lib_save_LIBS
16044 fi
16045 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16046 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16047 if test $ac_cv_lib_gcc___divdi3 = yes; then
16048
16049 cat >>confdefs.h <<\_ACEOF
16050 #define HAVE___DIVDI3 1
16051 _ACEOF
16052
16053 fi
16054
16055   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16056 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16057 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16058   echo $ECHO_N "(cached) $ECHO_C" >&6
16059 else
16060   ac_check_lib_save_LIBS=$LIBS
16061 LIBS="-lgcc  $LIBS"
16062 cat >conftest.$ac_ext <<_ACEOF
16063 /* confdefs.h.  */
16064 _ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h.  */
16068
16069 /* Override any GCC internal prototype to avoid an error.
16070    Use char because int might match the return type of a GCC
16071    builtin and then its argument prototype would still apply.  */
16072 #ifdef __cplusplus
16073 extern "C"
16074 #endif
16075 char __fixdfdi ();
16076 int
16077 main ()
16078 {
16079 return __fixdfdi ();
16080   ;
16081   return 0;
16082 }
16083 _ACEOF
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (ac_try="$ac_link"
16086 case "(($ac_try" in
16087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16088   *) ac_try_echo=$ac_try;;
16089 esac
16090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16091   (eval "$ac_link") 2>conftest.er1
16092   ac_status=$?
16093   grep -v '^ *+' conftest.er1 >conftest.err
16094   rm -f conftest.er1
16095   cat conftest.err >&5
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   (exit $ac_status); } &&
16098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16099   { (case "(($ac_try" in
16100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16101   *) ac_try_echo=$ac_try;;
16102 esac
16103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16104   (eval "$ac_try") 2>&5
16105   ac_status=$?
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); }; } &&
16108          { ac_try='test -s conftest$ac_exeext'
16109   { (case "(($ac_try" in
16110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111   *) ac_try_echo=$ac_try;;
16112 esac
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114   (eval "$ac_try") 2>&5
16115   ac_status=$?
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   (exit $ac_status); }; }; then
16118   ac_cv_lib_gcc___fixdfdi=yes
16119 else
16120   echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16122
16123         ac_cv_lib_gcc___fixdfdi=no
16124 fi
16125
16126 rm -f core conftest.err conftest.$ac_objext \
16127       conftest$ac_exeext conftest.$ac_ext
16128 LIBS=$ac_check_lib_save_LIBS
16129 fi
16130 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16131 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16132 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16133
16134 cat >>confdefs.h <<\_ACEOF
16135 #define HAVE___FIXDFDI 1
16136 _ACEOF
16137
16138 fi
16139
16140   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16141 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16142 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16143   echo $ECHO_N "(cached) $ECHO_C" >&6
16144 else
16145   ac_check_lib_save_LIBS=$LIBS
16146 LIBS="-lgcc  $LIBS"
16147 cat >conftest.$ac_ext <<_ACEOF
16148 /* confdefs.h.  */
16149 _ACEOF
16150 cat confdefs.h >>conftest.$ac_ext
16151 cat >>conftest.$ac_ext <<_ACEOF
16152 /* end confdefs.h.  */
16153
16154 /* Override any GCC internal prototype to avoid an error.
16155    Use char because int might match the return type of a GCC
16156    builtin and then its argument prototype would still apply.  */
16157 #ifdef __cplusplus
16158 extern "C"
16159 #endif
16160 char __fixsfdi ();
16161 int
16162 main ()
16163 {
16164 return __fixsfdi ();
16165   ;
16166   return 0;
16167 }
16168 _ACEOF
16169 rm -f conftest.$ac_objext conftest$ac_exeext
16170 if { (ac_try="$ac_link"
16171 case "(($ac_try" in
16172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173   *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176   (eval "$ac_link") 2>conftest.er1
16177   ac_status=$?
16178   grep -v '^ *+' conftest.er1 >conftest.err
16179   rm -f conftest.er1
16180   cat conftest.err >&5
16181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182   (exit $ac_status); } &&
16183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16184   { (case "(($ac_try" in
16185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186   *) ac_try_echo=$ac_try;;
16187 esac
16188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16189   (eval "$ac_try") 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); }; } &&
16193          { ac_try='test -s conftest$ac_exeext'
16194   { (case "(($ac_try" in
16195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196   *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199   (eval "$ac_try") 2>&5
16200   ac_status=$?
16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202   (exit $ac_status); }; }; then
16203   ac_cv_lib_gcc___fixsfdi=yes
16204 else
16205   echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16207
16208         ac_cv_lib_gcc___fixsfdi=no
16209 fi
16210
16211 rm -f core conftest.err conftest.$ac_objext \
16212       conftest$ac_exeext conftest.$ac_ext
16213 LIBS=$ac_check_lib_save_LIBS
16214 fi
16215 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16216 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16217 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16218
16219 cat >>confdefs.h <<\_ACEOF
16220 #define HAVE___FIXSFDI 1
16221 _ACEOF
16222
16223 fi
16224
16225   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16226 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16227 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16228   echo $ECHO_N "(cached) $ECHO_C" >&6
16229 else
16230   ac_check_lib_save_LIBS=$LIBS
16231 LIBS="-lgcc  $LIBS"
16232 cat >conftest.$ac_ext <<_ACEOF
16233 /* confdefs.h.  */
16234 _ACEOF
16235 cat confdefs.h >>conftest.$ac_ext
16236 cat >>conftest.$ac_ext <<_ACEOF
16237 /* end confdefs.h.  */
16238
16239 /* Override any GCC internal prototype to avoid an error.
16240    Use char because int might match the return type of a GCC
16241    builtin and then its argument prototype would still apply.  */
16242 #ifdef __cplusplus
16243 extern "C"
16244 #endif
16245 char __floatdidf ();
16246 int
16247 main ()
16248 {
16249 return __floatdidf ();
16250   ;
16251   return 0;
16252 }
16253 _ACEOF
16254 rm -f conftest.$ac_objext conftest$ac_exeext
16255 if { (ac_try="$ac_link"
16256 case "(($ac_try" in
16257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258   *) ac_try_echo=$ac_try;;
16259 esac
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261   (eval "$ac_link") 2>conftest.er1
16262   ac_status=$?
16263   grep -v '^ *+' conftest.er1 >conftest.err
16264   rm -f conftest.er1
16265   cat conftest.err >&5
16266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267   (exit $ac_status); } &&
16268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16269   { (case "(($ac_try" in
16270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271   *) ac_try_echo=$ac_try;;
16272 esac
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274   (eval "$ac_try") 2>&5
16275   ac_status=$?
16276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277   (exit $ac_status); }; } &&
16278          { ac_try='test -s conftest$ac_exeext'
16279   { (case "(($ac_try" in
16280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281   *) ac_try_echo=$ac_try;;
16282 esac
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284   (eval "$ac_try") 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; }; then
16288   ac_cv_lib_gcc___floatdidf=yes
16289 else
16290   echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293         ac_cv_lib_gcc___floatdidf=no
16294 fi
16295
16296 rm -f core conftest.err conftest.$ac_objext \
16297       conftest$ac_exeext conftest.$ac_ext
16298 LIBS=$ac_check_lib_save_LIBS
16299 fi
16300 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16301 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16302 if test $ac_cv_lib_gcc___floatdidf = yes; then
16303
16304 cat >>confdefs.h <<\_ACEOF
16305 #define HAVE___FLOATDIDF 1
16306 _ACEOF
16307
16308 fi
16309
16310   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16311 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16312 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16313   echo $ECHO_N "(cached) $ECHO_C" >&6
16314 else
16315   ac_check_lib_save_LIBS=$LIBS
16316 LIBS="-lgcc  $LIBS"
16317 cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323
16324 /* Override any GCC internal prototype to avoid an error.
16325    Use char because int might match the return type of a GCC
16326    builtin and then its argument prototype would still apply.  */
16327 #ifdef __cplusplus
16328 extern "C"
16329 #endif
16330 char __lshrdi3 ();
16331 int
16332 main ()
16333 {
16334 return __lshrdi3 ();
16335   ;
16336   return 0;
16337 }
16338 _ACEOF
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (ac_try="$ac_link"
16341 case "(($ac_try" in
16342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16343   *) ac_try_echo=$ac_try;;
16344 esac
16345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16346   (eval "$ac_link") 2>conftest.er1
16347   ac_status=$?
16348   grep -v '^ *+' conftest.er1 >conftest.err
16349   rm -f conftest.er1
16350   cat conftest.err >&5
16351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352   (exit $ac_status); } &&
16353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16354   { (case "(($ac_try" in
16355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356   *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359   (eval "$ac_try") 2>&5
16360   ac_status=$?
16361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362   (exit $ac_status); }; } &&
16363          { ac_try='test -s conftest$ac_exeext'
16364   { (case "(($ac_try" in
16365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366   *) ac_try_echo=$ac_try;;
16367 esac
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369   (eval "$ac_try") 2>&5
16370   ac_status=$?
16371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372   (exit $ac_status); }; }; then
16373   ac_cv_lib_gcc___lshrdi3=yes
16374 else
16375   echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16377
16378         ac_cv_lib_gcc___lshrdi3=no
16379 fi
16380
16381 rm -f core conftest.err conftest.$ac_objext \
16382       conftest$ac_exeext conftest.$ac_ext
16383 LIBS=$ac_check_lib_save_LIBS
16384 fi
16385 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16386 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16387 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16388
16389 cat >>confdefs.h <<\_ACEOF
16390 #define HAVE___LSHRDI3 1
16391 _ACEOF
16392
16393 fi
16394
16395   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16396 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16397 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16398   echo $ECHO_N "(cached) $ECHO_C" >&6
16399 else
16400   ac_check_lib_save_LIBS=$LIBS
16401 LIBS="-lgcc  $LIBS"
16402 cat >conftest.$ac_ext <<_ACEOF
16403 /* confdefs.h.  */
16404 _ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h.  */
16408
16409 /* Override any GCC internal prototype to avoid an error.
16410    Use char because int might match the return type of a GCC
16411    builtin and then its argument prototype would still apply.  */
16412 #ifdef __cplusplus
16413 extern "C"
16414 #endif
16415 char __moddi3 ();
16416 int
16417 main ()
16418 {
16419 return __moddi3 ();
16420   ;
16421   return 0;
16422 }
16423 _ACEOF
16424 rm -f conftest.$ac_objext conftest$ac_exeext
16425 if { (ac_try="$ac_link"
16426 case "(($ac_try" in
16427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428   *) ac_try_echo=$ac_try;;
16429 esac
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431   (eval "$ac_link") 2>conftest.er1
16432   ac_status=$?
16433   grep -v '^ *+' conftest.er1 >conftest.err
16434   rm -f conftest.er1
16435   cat conftest.err >&5
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); } &&
16438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16439   { (case "(($ac_try" in
16440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16441   *) ac_try_echo=$ac_try;;
16442 esac
16443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16444   (eval "$ac_try") 2>&5
16445   ac_status=$?
16446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447   (exit $ac_status); }; } &&
16448          { ac_try='test -s conftest$ac_exeext'
16449   { (case "(($ac_try" in
16450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451   *) ac_try_echo=$ac_try;;
16452 esac
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454   (eval "$ac_try") 2>&5
16455   ac_status=$?
16456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457   (exit $ac_status); }; }; then
16458   ac_cv_lib_gcc___moddi3=yes
16459 else
16460   echo "$as_me: failed program was:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16462
16463         ac_cv_lib_gcc___moddi3=no
16464 fi
16465
16466 rm -f core conftest.err conftest.$ac_objext \
16467       conftest$ac_exeext conftest.$ac_ext
16468 LIBS=$ac_check_lib_save_LIBS
16469 fi
16470 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16471 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16472 if test $ac_cv_lib_gcc___moddi3 = yes; then
16473
16474 cat >>confdefs.h <<\_ACEOF
16475 #define HAVE___MODDI3 1
16476 _ACEOF
16477
16478 fi
16479
16480   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16481 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16482 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16483   echo $ECHO_N "(cached) $ECHO_C" >&6
16484 else
16485   ac_check_lib_save_LIBS=$LIBS
16486 LIBS="-lgcc  $LIBS"
16487 cat >conftest.$ac_ext <<_ACEOF
16488 /* confdefs.h.  */
16489 _ACEOF
16490 cat confdefs.h >>conftest.$ac_ext
16491 cat >>conftest.$ac_ext <<_ACEOF
16492 /* end confdefs.h.  */
16493
16494 /* Override any GCC internal prototype to avoid an error.
16495    Use char because int might match the return type of a GCC
16496    builtin and then its argument prototype would still apply.  */
16497 #ifdef __cplusplus
16498 extern "C"
16499 #endif
16500 char __udivdi3 ();
16501 int
16502 main ()
16503 {
16504 return __udivdi3 ();
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (ac_try="$ac_link"
16511 case "(($ac_try" in
16512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513   *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516   (eval "$ac_link") 2>conftest.er1
16517   ac_status=$?
16518   grep -v '^ *+' conftest.er1 >conftest.err
16519   rm -f conftest.er1
16520   cat conftest.err >&5
16521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522   (exit $ac_status); } &&
16523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16524   { (case "(($ac_try" in
16525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526   *) ac_try_echo=$ac_try;;
16527 esac
16528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529   (eval "$ac_try") 2>&5
16530   ac_status=$?
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); }; } &&
16533          { ac_try='test -s conftest$ac_exeext'
16534   { (case "(($ac_try" in
16535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536   *) ac_try_echo=$ac_try;;
16537 esac
16538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539   (eval "$ac_try") 2>&5
16540   ac_status=$?
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); }; }; then
16543   ac_cv_lib_gcc___udivdi3=yes
16544 else
16545   echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548         ac_cv_lib_gcc___udivdi3=no
16549 fi
16550
16551 rm -f core conftest.err conftest.$ac_objext \
16552       conftest$ac_exeext conftest.$ac_ext
16553 LIBS=$ac_check_lib_save_LIBS
16554 fi
16555 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16556 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16557 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16558
16559 cat >>confdefs.h <<\_ACEOF
16560 #define HAVE___UDIVDI3 1
16561 _ACEOF
16562
16563 fi
16564
16565   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16566 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16567 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16568   echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570   ac_check_lib_save_LIBS=$LIBS
16571 LIBS="-lgcc  $LIBS"
16572 cat >conftest.$ac_ext <<_ACEOF
16573 /* confdefs.h.  */
16574 _ACEOF
16575 cat confdefs.h >>conftest.$ac_ext
16576 cat >>conftest.$ac_ext <<_ACEOF
16577 /* end confdefs.h.  */
16578
16579 /* Override any GCC internal prototype to avoid an error.
16580    Use char because int might match the return type of a GCC
16581    builtin and then its argument prototype would still apply.  */
16582 #ifdef __cplusplus
16583 extern "C"
16584 #endif
16585 char __umoddi3 ();
16586 int
16587 main ()
16588 {
16589 return __umoddi3 ();
16590   ;
16591   return 0;
16592 }
16593 _ACEOF
16594 rm -f conftest.$ac_objext conftest$ac_exeext
16595 if { (ac_try="$ac_link"
16596 case "(($ac_try" in
16597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598   *) ac_try_echo=$ac_try;;
16599 esac
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601   (eval "$ac_link") 2>conftest.er1
16602   ac_status=$?
16603   grep -v '^ *+' conftest.er1 >conftest.err
16604   rm -f conftest.er1
16605   cat conftest.err >&5
16606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); } &&
16608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16609   { (case "(($ac_try" in
16610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16611   *) ac_try_echo=$ac_try;;
16612 esac
16613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16614   (eval "$ac_try") 2>&5
16615   ac_status=$?
16616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617   (exit $ac_status); }; } &&
16618          { ac_try='test -s conftest$ac_exeext'
16619   { (case "(($ac_try" in
16620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16621   *) ac_try_echo=$ac_try;;
16622 esac
16623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16624   (eval "$ac_try") 2>&5
16625   ac_status=$?
16626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627   (exit $ac_status); }; }; then
16628   ac_cv_lib_gcc___umoddi3=yes
16629 else
16630   echo "$as_me: failed program was:" >&5
16631 sed 's/^/| /' conftest.$ac_ext >&5
16632
16633         ac_cv_lib_gcc___umoddi3=no
16634 fi
16635
16636 rm -f core conftest.err conftest.$ac_objext \
16637       conftest$ac_exeext conftest.$ac_ext
16638 LIBS=$ac_check_lib_save_LIBS
16639 fi
16640 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16641 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16642 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16643
16644 cat >>confdefs.h <<\_ACEOF
16645 #define HAVE___UMODDI3 1
16646 _ACEOF
16647
16648 fi
16649
16650
16651   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16652 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16653 if test "${ac_cv_lib_gcc___main+set}" = set; then
16654   echo $ECHO_N "(cached) $ECHO_C" >&6
16655 else
16656   ac_check_lib_save_LIBS=$LIBS
16657 LIBS="-lgcc  $LIBS"
16658 cat >conftest.$ac_ext <<_ACEOF
16659 /* confdefs.h.  */
16660 _ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h.  */
16664
16665 /* Override any GCC internal prototype to avoid an error.
16666    Use char because int might match the return type of a GCC
16667    builtin and then its argument prototype would still apply.  */
16668 #ifdef __cplusplus
16669 extern "C"
16670 #endif
16671 char __main ();
16672 int
16673 main ()
16674 {
16675 return __main ();
16676   ;
16677   return 0;
16678 }
16679 _ACEOF
16680 rm -f conftest.$ac_objext conftest$ac_exeext
16681 if { (ac_try="$ac_link"
16682 case "(($ac_try" in
16683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684   *) ac_try_echo=$ac_try;;
16685 esac
16686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687   (eval "$ac_link") 2>conftest.er1
16688   ac_status=$?
16689   grep -v '^ *+' conftest.er1 >conftest.err
16690   rm -f conftest.er1
16691   cat conftest.err >&5
16692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693   (exit $ac_status); } &&
16694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16695   { (case "(($ac_try" in
16696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697   *) ac_try_echo=$ac_try;;
16698 esac
16699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700   (eval "$ac_try") 2>&5
16701   ac_status=$?
16702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703   (exit $ac_status); }; } &&
16704          { ac_try='test -s conftest$ac_exeext'
16705   { (case "(($ac_try" in
16706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707   *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710   (eval "$ac_try") 2>&5
16711   ac_status=$?
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); }; }; then
16714   ac_cv_lib_gcc___main=yes
16715 else
16716   echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16718
16719         ac_cv_lib_gcc___main=no
16720 fi
16721
16722 rm -f core conftest.err conftest.$ac_objext \
16723       conftest$ac_exeext conftest.$ac_ext
16724 LIBS=$ac_check_lib_save_LIBS
16725 fi
16726 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16727 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16728 if test $ac_cv_lib_gcc___main = yes; then
16729
16730 cat >>confdefs.h <<\_ACEOF
16731 #define HAVE___MAIN 1
16732 _ACEOF
16733
16734 fi
16735
16736   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16737 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16738 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16739   echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741   ac_check_lib_save_LIBS=$LIBS
16742 LIBS="-lgcc  $LIBS"
16743 cat >conftest.$ac_ext <<_ACEOF
16744 /* confdefs.h.  */
16745 _ACEOF
16746 cat confdefs.h >>conftest.$ac_ext
16747 cat >>conftest.$ac_ext <<_ACEOF
16748 /* end confdefs.h.  */
16749
16750 /* Override any GCC internal prototype to avoid an error.
16751    Use char because int might match the return type of a GCC
16752    builtin and then its argument prototype would still apply.  */
16753 #ifdef __cplusplus
16754 extern "C"
16755 #endif
16756 char __cmpdi2 ();
16757 int
16758 main ()
16759 {
16760 return __cmpdi2 ();
16761   ;
16762   return 0;
16763 }
16764 _ACEOF
16765 rm -f conftest.$ac_objext conftest$ac_exeext
16766 if { (ac_try="$ac_link"
16767 case "(($ac_try" in
16768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769   *) ac_try_echo=$ac_try;;
16770 esac
16771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16772   (eval "$ac_link") 2>conftest.er1
16773   ac_status=$?
16774   grep -v '^ *+' conftest.er1 >conftest.err
16775   rm -f conftest.er1
16776   cat conftest.err >&5
16777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778   (exit $ac_status); } &&
16779          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16780   { (case "(($ac_try" in
16781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782   *) ac_try_echo=$ac_try;;
16783 esac
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785   (eval "$ac_try") 2>&5
16786   ac_status=$?
16787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788   (exit $ac_status); }; } &&
16789          { ac_try='test -s conftest$ac_exeext'
16790   { (case "(($ac_try" in
16791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792   *) ac_try_echo=$ac_try;;
16793 esac
16794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16795   (eval "$ac_try") 2>&5
16796   ac_status=$?
16797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798   (exit $ac_status); }; }; then
16799   ac_cv_lib_gcc___cmpdi2=yes
16800 else
16801   echo "$as_me: failed program was:" >&5
16802 sed 's/^/| /' conftest.$ac_ext >&5
16803
16804         ac_cv_lib_gcc___cmpdi2=no
16805 fi
16806
16807 rm -f core conftest.err conftest.$ac_objext \
16808       conftest$ac_exeext conftest.$ac_ext
16809 LIBS=$ac_check_lib_save_LIBS
16810 fi
16811 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16812 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16813 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16814
16815 cat >>confdefs.h <<\_ACEOF
16816 #define HAVE___CMPDI2 1
16817 _ACEOF
16818
16819 fi
16820
16821 fi
16822
16823 if test "$llvm_cv_os_type" = "MingW" ; then
16824   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16825 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16826   cat >conftest.$ac_ext <<_ACEOF
16827
16828   /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833
16834     #include <windows.h>
16835     #include <imagehlp.h>
16836     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16837     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16838
16839
16840 _ACEOF
16841 rm -f conftest.$ac_objext
16842 if { (ac_try="$ac_compile"
16843 case "(($ac_try" in
16844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845   *) ac_try_echo=$ac_try;;
16846 esac
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848   (eval "$ac_compile") 2>conftest.er1
16849   ac_status=$?
16850   grep -v '^ *+' conftest.er1 >conftest.err
16851   rm -f conftest.er1
16852   cat conftest.err >&5
16853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854   (exit $ac_status); } &&
16855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16856   { (case "(($ac_try" in
16857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858   *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861   (eval "$ac_try") 2>&5
16862   ac_status=$?
16863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864   (exit $ac_status); }; } &&
16865          { ac_try='test -s conftest.$ac_objext'
16866   { (case "(($ac_try" in
16867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868   *) ac_try_echo=$ac_try;;
16869 esac
16870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16871   (eval "$ac_try") 2>&5
16872   ac_status=$?
16873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874   (exit $ac_status); }; }; then
16875
16876   { echo "$as_me:$LINENO: result: yes" >&5
16877 echo "${ECHO_T}yes" >&6; }
16878   llvm_cv_win32_elmcb_pcstr="PCSTR"
16879
16880 else
16881   echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16883
16884
16885   { echo "$as_me:$LINENO: result: no" >&5
16886 echo "${ECHO_T}no" >&6; }
16887   llvm_cv_win32_elmcb_pcstr="PSTR"
16888
16889 fi
16890
16891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16892
16893 cat >>confdefs.h <<_ACEOF
16894 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16895 _ACEOF
16896
16897 fi
16898
16899 if test "$llvm_cv_platform_type" = "Unix" ; then
16900
16901
16902 for ac_header in stdlib.h unistd.h
16903 do
16904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16906   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16909   echo $ECHO_N "(cached) $ECHO_C" >&6
16910 fi
16911 ac_res=`eval echo '${'$as_ac_Header'}'`
16912                { echo "$as_me:$LINENO: result: $ac_res" >&5
16913 echo "${ECHO_T}$ac_res" >&6; }
16914 else
16915   # Is the header compilable?
16916 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16918 cat >conftest.$ac_ext <<_ACEOF
16919 /* confdefs.h.  */
16920 _ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h.  */
16924 $ac_includes_default
16925 #include <$ac_header>
16926 _ACEOF
16927 rm -f conftest.$ac_objext
16928 if { (ac_try="$ac_compile"
16929 case "(($ac_try" in
16930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931   *) ac_try_echo=$ac_try;;
16932 esac
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934   (eval "$ac_compile") 2>conftest.er1
16935   ac_status=$?
16936   grep -v '^ *+' conftest.er1 >conftest.err
16937   rm -f conftest.er1
16938   cat conftest.err >&5
16939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940   (exit $ac_status); } &&
16941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16942   { (case "(($ac_try" in
16943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944   *) ac_try_echo=$ac_try;;
16945 esac
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947   (eval "$ac_try") 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); }; } &&
16951          { ac_try='test -s conftest.$ac_objext'
16952   { (case "(($ac_try" in
16953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954   *) ac_try_echo=$ac_try;;
16955 esac
16956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16957   (eval "$ac_try") 2>&5
16958   ac_status=$?
16959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960   (exit $ac_status); }; }; then
16961   ac_header_compiler=yes
16962 else
16963   echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16965
16966         ac_header_compiler=no
16967 fi
16968
16969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16971 echo "${ECHO_T}$ac_header_compiler" >&6; }
16972
16973 # Is the header present?
16974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16976 cat >conftest.$ac_ext <<_ACEOF
16977 /* confdefs.h.  */
16978 _ACEOF
16979 cat confdefs.h >>conftest.$ac_ext
16980 cat >>conftest.$ac_ext <<_ACEOF
16981 /* end confdefs.h.  */
16982 #include <$ac_header>
16983 _ACEOF
16984 if { (ac_try="$ac_cpp conftest.$ac_ext"
16985 case "(($ac_try" in
16986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987   *) ac_try_echo=$ac_try;;
16988 esac
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16991   ac_status=$?
16992   grep -v '^ *+' conftest.er1 >conftest.err
16993   rm -f conftest.er1
16994   cat conftest.err >&5
16995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996   (exit $ac_status); } >/dev/null; then
16997   if test -s conftest.err; then
16998     ac_cpp_err=$ac_c_preproc_warn_flag
16999     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17000   else
17001     ac_cpp_err=
17002   fi
17003 else
17004   ac_cpp_err=yes
17005 fi
17006 if test -z "$ac_cpp_err"; then
17007   ac_header_preproc=yes
17008 else
17009   echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17011
17012   ac_header_preproc=no
17013 fi
17014
17015 rm -f conftest.err conftest.$ac_ext
17016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17017 echo "${ECHO_T}$ac_header_preproc" >&6; }
17018
17019 # So?  What about this header?
17020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17021   yes:no: )
17022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17026     ac_header_preproc=yes
17027     ;;
17028   no:yes:* )
17029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17041     ( cat <<\_ASBOX
17042 ## ------------------------------------ ##
17043 ## Report this to http://llvm.org/bugs/ ##
17044 ## ------------------------------------ ##
17045 _ASBOX
17046      ) | sed "s/^/$as_me: WARNING:     /" >&2
17047     ;;
17048 esac
17049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17052   echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054   eval "$as_ac_Header=\$ac_header_preproc"
17055 fi
17056 ac_res=`eval echo '${'$as_ac_Header'}'`
17057                { echo "$as_me:$LINENO: result: $ac_res" >&5
17058 echo "${ECHO_T}$ac_res" >&6; }
17059
17060 fi
17061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17062   cat >>confdefs.h <<_ACEOF
17063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17064 _ACEOF
17065
17066 fi
17067
17068 done
17069
17070
17071 for ac_func in getpagesize
17072 do
17073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17077   echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079   cat >conftest.$ac_ext <<_ACEOF
17080 /* confdefs.h.  */
17081 _ACEOF
17082 cat confdefs.h >>conftest.$ac_ext
17083 cat >>conftest.$ac_ext <<_ACEOF
17084 /* end confdefs.h.  */
17085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17087 #define $ac_func innocuous_$ac_func
17088
17089 /* System header to define __stub macros and hopefully few prototypes,
17090     which can conflict with char $ac_func (); below.
17091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17092     <limits.h> exists even on freestanding compilers.  */
17093
17094 #ifdef __STDC__
17095 # include <limits.h>
17096 #else
17097 # include <assert.h>
17098 #endif
17099
17100 #undef $ac_func
17101
17102 /* Override any GCC internal prototype to avoid an error.
17103    Use char because int might match the return type of a GCC
17104    builtin and then its argument prototype would still apply.  */
17105 #ifdef __cplusplus
17106 extern "C"
17107 #endif
17108 char $ac_func ();
17109 /* The GNU C library defines this for functions which it implements
17110     to always fail with ENOSYS.  Some functions are actually named
17111     something starting with __ and the normal name is an alias.  */
17112 #if defined __stub_$ac_func || defined __stub___$ac_func
17113 choke me
17114 #endif
17115
17116 int
17117 main ()
17118 {
17119 return $ac_func ();
17120   ;
17121   return 0;
17122 }
17123 _ACEOF
17124 rm -f conftest.$ac_objext conftest$ac_exeext
17125 if { (ac_try="$ac_link"
17126 case "(($ac_try" in
17127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17128   *) ac_try_echo=$ac_try;;
17129 esac
17130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17131   (eval "$ac_link") 2>conftest.er1
17132   ac_status=$?
17133   grep -v '^ *+' conftest.er1 >conftest.err
17134   rm -f conftest.er1
17135   cat conftest.err >&5
17136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137   (exit $ac_status); } &&
17138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17139   { (case "(($ac_try" in
17140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17141   *) ac_try_echo=$ac_try;;
17142 esac
17143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17144   (eval "$ac_try") 2>&5
17145   ac_status=$?
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); }; } &&
17148          { ac_try='test -s conftest$ac_exeext'
17149   { (case "(($ac_try" in
17150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151   *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154   (eval "$ac_try") 2>&5
17155   ac_status=$?
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); }; }; then
17158   eval "$as_ac_var=yes"
17159 else
17160   echo "$as_me: failed program was:" >&5
17161 sed 's/^/| /' conftest.$ac_ext >&5
17162
17163         eval "$as_ac_var=no"
17164 fi
17165
17166 rm -f core conftest.err conftest.$ac_objext \
17167       conftest$ac_exeext conftest.$ac_ext
17168 fi
17169 ac_res=`eval echo '${'$as_ac_var'}'`
17170                { echo "$as_me:$LINENO: result: $ac_res" >&5
17171 echo "${ECHO_T}$ac_res" >&6; }
17172 if test `eval echo '${'$as_ac_var'}'` = yes; then
17173   cat >>confdefs.h <<_ACEOF
17174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17175 _ACEOF
17176
17177 fi
17178 done
17179
17180 { echo "$as_me:$LINENO: checking for working mmap" >&5
17181 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17182 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17183   echo $ECHO_N "(cached) $ECHO_C" >&6
17184 else
17185   if test "$cross_compiling" = yes; then
17186   ac_cv_func_mmap_fixed_mapped=no
17187 else
17188   cat >conftest.$ac_ext <<_ACEOF
17189 /* confdefs.h.  */
17190 _ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h.  */
17194 $ac_includes_default
17195 /* malloc might have been renamed as rpl_malloc. */
17196 #undef malloc
17197
17198 /* Thanks to Mike Haertel and Jim Avera for this test.
17199    Here is a matrix of mmap possibilities:
17200         mmap private not fixed
17201         mmap private fixed at somewhere currently unmapped
17202         mmap private fixed at somewhere already mapped
17203         mmap shared not fixed
17204         mmap shared fixed at somewhere currently unmapped
17205         mmap shared fixed at somewhere already mapped
17206    For private mappings, we should verify that changes cannot be read()
17207    back from the file, nor mmap's back from the file at a different
17208    address.  (There have been systems where private was not correctly
17209    implemented like the infamous i386 svr4.0, and systems where the
17210    VM page cache was not coherent with the file system buffer cache
17211    like early versions of FreeBSD and possibly contemporary NetBSD.)
17212    For shared mappings, we should conversely verify that changes get
17213    propagated back to all the places they're supposed to be.
17214
17215    Grep wants private fixed already mapped.
17216    The main things grep needs to know about mmap are:
17217    * does it exist and is it safe to write into the mmap'd area
17218    * how to use it (BSD variants)  */
17219
17220 #include <fcntl.h>
17221 #include <sys/mman.h>
17222
17223 #if !STDC_HEADERS && !HAVE_STDLIB_H
17224 char *malloc ();
17225 #endif
17226
17227 /* This mess was copied from the GNU getpagesize.h.  */
17228 #if !HAVE_GETPAGESIZE
17229 /* Assume that all systems that can run configure have sys/param.h.  */
17230 # if !HAVE_SYS_PARAM_H
17231 #  define HAVE_SYS_PARAM_H 1
17232 # endif
17233
17234 # ifdef _SC_PAGESIZE
17235 #  define getpagesize() sysconf(_SC_PAGESIZE)
17236 # else /* no _SC_PAGESIZE */
17237 #  if HAVE_SYS_PARAM_H
17238 #   include <sys/param.h>
17239 #   ifdef EXEC_PAGESIZE
17240 #    define getpagesize() EXEC_PAGESIZE
17241 #   else /* no EXEC_PAGESIZE */
17242 #    ifdef NBPG
17243 #     define getpagesize() NBPG * CLSIZE
17244 #     ifndef CLSIZE
17245 #      define CLSIZE 1
17246 #     endif /* no CLSIZE */
17247 #    else /* no NBPG */
17248 #     ifdef NBPC
17249 #      define getpagesize() NBPC
17250 #     else /* no NBPC */
17251 #      ifdef PAGESIZE
17252 #       define getpagesize() PAGESIZE
17253 #      endif /* PAGESIZE */
17254 #     endif /* no NBPC */
17255 #    endif /* no NBPG */
17256 #   endif /* no EXEC_PAGESIZE */
17257 #  else /* no HAVE_SYS_PARAM_H */
17258 #   define getpagesize() 8192   /* punt totally */
17259 #  endif /* no HAVE_SYS_PARAM_H */
17260 # endif /* no _SC_PAGESIZE */
17261
17262 #endif /* no HAVE_GETPAGESIZE */
17263
17264 int
17265 main ()
17266 {
17267   char *data, *data2, *data3;
17268   int i, pagesize;
17269   int fd;
17270
17271   pagesize = getpagesize ();
17272
17273   /* First, make a file with some known garbage in it. */
17274   data = (char *) malloc (pagesize);
17275   if (!data)
17276     return 1;
17277   for (i = 0; i < pagesize; ++i)
17278     *(data + i) = rand ();
17279   umask (0);
17280   fd = creat ("conftest.mmap", 0600);
17281   if (fd < 0)
17282     return 1;
17283   if (write (fd, data, pagesize) != pagesize)
17284     return 1;
17285   close (fd);
17286
17287   /* Next, try to mmap the file at a fixed address which already has
17288      something else allocated at it.  If we can, also make sure that
17289      we see the same garbage.  */
17290   fd = open ("conftest.mmap", O_RDWR);
17291   if (fd < 0)
17292     return 1;
17293   data2 = (char *) malloc (2 * pagesize);
17294   if (!data2)
17295     return 1;
17296   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17297   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17298                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17299     return 1;
17300   for (i = 0; i < pagesize; ++i)
17301     if (*(data + i) != *(data2 + i))
17302       return 1;
17303
17304   /* Finally, make sure that changes to the mapped area do not
17305      percolate back to the file as seen by read().  (This is a bug on
17306      some variants of i386 svr4.0.)  */
17307   for (i = 0; i < pagesize; ++i)
17308     *(data2 + i) = *(data2 + i) + 1;
17309   data3 = (char *) malloc (pagesize);
17310   if (!data3)
17311     return 1;
17312   if (read (fd, data3, pagesize) != pagesize)
17313     return 1;
17314   for (i = 0; i < pagesize; ++i)
17315     if (*(data + i) != *(data3 + i))
17316       return 1;
17317   close (fd);
17318   return 0;
17319 }
17320 _ACEOF
17321 rm -f conftest$ac_exeext
17322 if { (ac_try="$ac_link"
17323 case "(($ac_try" in
17324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325   *) ac_try_echo=$ac_try;;
17326 esac
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328   (eval "$ac_link") 2>&5
17329   ac_status=$?
17330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17331   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17332   { (case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17337   (eval "$ac_try") 2>&5
17338   ac_status=$?
17339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340   (exit $ac_status); }; }; then
17341   ac_cv_func_mmap_fixed_mapped=yes
17342 else
17343   echo "$as_me: program exited with status $ac_status" >&5
17344 echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17346
17347 ( exit $ac_status )
17348 ac_cv_func_mmap_fixed_mapped=no
17349 fi
17350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17351 fi
17352
17353
17354 fi
17355 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17356 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17357 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17358
17359 cat >>confdefs.h <<\_ACEOF
17360 #define HAVE_MMAP 1
17361 _ACEOF
17362
17363 fi
17364 rm -f conftest.mmap
17365
17366   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17367 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17368 if test "${ac_cv_func_mmap_file+set}" = set; then
17369   echo $ECHO_N "(cached) $ECHO_C" >&6
17370 else
17371    ac_ext=c
17372 ac_cpp='$CPP $CPPFLAGS'
17373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17376
17377   if test "$cross_compiling" = yes; then
17378   ac_cv_func_mmap_file=no
17379 else
17380   cat >conftest.$ac_ext <<_ACEOF
17381
17382     /* confdefs.h.  */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h.  */
17387
17388 #include <sys/types.h>
17389 #include <sys/mman.h>
17390 #include <fcntl.h>
17391
17392 int
17393 main ()
17394 {
17395
17396   int fd;
17397   fd = creat ("foo",0777);
17398   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17399   unlink ("foo");
17400   return (fd != (int) MAP_FAILED);
17401   ;
17402   return 0;
17403 }
17404 _ACEOF
17405 rm -f conftest$ac_exeext
17406 if { (ac_try="$ac_link"
17407 case "(($ac_try" in
17408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409   *) ac_try_echo=$ac_try;;
17410 esac
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412   (eval "$ac_link") 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17416   { (case "(($ac_try" in
17417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418   *) ac_try_echo=$ac_try;;
17419 esac
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421   (eval "$ac_try") 2>&5
17422   ac_status=$?
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); }; }; then
17425   ac_cv_func_mmap_file=yes
17426 else
17427   echo "$as_me: program exited with status $ac_status" >&5
17428 echo "$as_me: failed program was:" >&5
17429 sed 's/^/| /' conftest.$ac_ext >&5
17430
17431 ( exit $ac_status )
17432 ac_cv_func_mmap_file=no
17433 fi
17434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17435 fi
17436
17437
17438   ac_ext=c
17439 ac_cpp='$CPP $CPPFLAGS'
17440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17443
17444
17445 fi
17446 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17447 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17448 if test "$ac_cv_func_mmap_file" = yes; then
17449
17450 cat >>confdefs.h <<\_ACEOF
17451 #define HAVE_MMAP_FILE
17452 _ACEOF
17453
17454    MMAP_FILE=yes
17455
17456 fi
17457
17458   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17459 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17460 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17461   echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463   if test "$llvm_cv_os_type" = "Interix" ; then
17464    ac_cv_need_dev_zero_for_mmap=yes
17465  else
17466    ac_cv_need_dev_zero_for_mmap=no
17467  fi
17468
17469 fi
17470 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17471 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17472 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17473
17474 cat >>confdefs.h <<\_ACEOF
17475 #define NEED_DEV_ZERO_FOR_MMAP 1
17476 _ACEOF
17477
17478 fi
17479
17480   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17481   then
17482     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17483 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17484   fi
17485   if test "$ac_cv_func_mmap_file" = "no"
17486   then
17487     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17488 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17489   fi
17490 fi
17491
17492 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17493 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17494 ac_ext=cpp
17495 ac_cpp='$CXXCPP $CPPFLAGS'
17496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17499
17500 cat >conftest.$ac_ext <<_ACEOF
17501
17502   /* confdefs.h.  */
17503 _ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h.  */
17507
17508     int main() {
17509       volatile unsigned long val = 1;
17510       __sync_synchronize();
17511       __sync_val_compare_and_swap(&val, 1, 0);
17512       __sync_add_and_fetch(&val, 1);
17513       __sync_sub_and_fetch(&val, 1);
17514       return 0;
17515     }
17516
17517
17518 _ACEOF
17519 rm -f conftest.$ac_objext conftest$ac_exeext
17520 if { (ac_try="$ac_link"
17521 case "(($ac_try" in
17522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17523   *) ac_try_echo=$ac_try;;
17524 esac
17525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17526   (eval "$ac_link") 2>conftest.er1
17527   ac_status=$?
17528   grep -v '^ *+' conftest.er1 >conftest.err
17529   rm -f conftest.er1
17530   cat conftest.err >&5
17531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532   (exit $ac_status); } &&
17533          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17534   { (case "(($ac_try" in
17535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536   *) ac_try_echo=$ac_try;;
17537 esac
17538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17539   (eval "$ac_try") 2>&5
17540   ac_status=$?
17541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542   (exit $ac_status); }; } &&
17543          { ac_try='test -s conftest$ac_exeext'
17544   { (case "(($ac_try" in
17545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546   *) ac_try_echo=$ac_try;;
17547 esac
17548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549   (eval "$ac_try") 2>&5
17550   ac_status=$?
17551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552   (exit $ac_status); }; }; then
17553
17554   { echo "$as_me:$LINENO: result: yes" >&5
17555 echo "${ECHO_T}yes" >&6; }
17556
17557 cat >>confdefs.h <<\_ACEOF
17558 #define LLVM_HAS_ATOMICS 1
17559 _ACEOF
17560
17561
17562 else
17563   echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17565
17566
17567   { echo "$as_me:$LINENO: result: no" >&5
17568 echo "${ECHO_T}no" >&6; }
17569
17570 cat >>confdefs.h <<\_ACEOF
17571 #define LLVM_HAS_ATOMICS 0
17572 _ACEOF
17573
17574   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17575 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17576
17577 fi
17578
17579 rm -f core conftest.err conftest.$ac_objext \
17580       conftest$ac_exeext conftest.$ac_ext
17581 ac_ext=c
17582 ac_cpp='$CPP $CPPFLAGS'
17583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17586
17587
17588
17589 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17590   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17591 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17592 if test "${llvm_cv_linux_mixed+set}" = set; then
17593   echo $ECHO_N "(cached) $ECHO_C" >&6
17594 else
17595    ac_ext=c
17596 ac_cpp='$CPP $CPPFLAGS'
17597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17600
17601   cat >conftest.$ac_ext <<_ACEOF
17602 /* confdefs.h.  */
17603 _ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h.  */
17607 #ifndef __x86_64__
17608        error: Not x86-64 even if uname says so!
17609       #endif
17610
17611 int
17612 main ()
17613 {
17614
17615   ;
17616   return 0;
17617 }
17618 _ACEOF
17619 rm -f conftest.$ac_objext
17620 if { (ac_try="$ac_compile"
17621 case "(($ac_try" in
17622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623   *) ac_try_echo=$ac_try;;
17624 esac
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626   (eval "$ac_compile") 2>conftest.er1
17627   ac_status=$?
17628   grep -v '^ *+' conftest.er1 >conftest.err
17629   rm -f conftest.er1
17630   cat conftest.err >&5
17631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632   (exit $ac_status); } &&
17633          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17634   { (case "(($ac_try" in
17635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636   *) ac_try_echo=$ac_try;;
17637 esac
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639   (eval "$ac_try") 2>&5
17640   ac_status=$?
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); }; } &&
17643          { ac_try='test -s conftest.$ac_objext'
17644   { (case "(($ac_try" in
17645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646   *) ac_try_echo=$ac_try;;
17647 esac
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649   (eval "$ac_try") 2>&5
17650   ac_status=$?
17651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652   (exit $ac_status); }; }; then
17653   llvm_cv_linux_mixed=no
17654 else
17655   echo "$as_me: failed program was:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17657
17658         llvm_cv_linux_mixed=yes
17659 fi
17660
17661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662   ac_ext=c
17663 ac_cpp='$CPP $CPPFLAGS'
17664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17667
17668
17669 fi
17670 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17671 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17672
17673   if test "$llvm_cv_linux_mixed" = "yes"; then
17674     llvm_cv_target_arch="x86"
17675     ARCH="x86"
17676   fi
17677 fi
17678
17679
17680 for ac_func in __dso_handle
17681 do
17682 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17686   echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688   cat >conftest.$ac_ext <<_ACEOF
17689 /* confdefs.h.  */
17690 _ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h.  */
17694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17696 #define $ac_func innocuous_$ac_func
17697
17698 /* System header to define __stub macros and hopefully few prototypes,
17699     which can conflict with char $ac_func (); below.
17700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17701     <limits.h> exists even on freestanding compilers.  */
17702
17703 #ifdef __STDC__
17704 # include <limits.h>
17705 #else
17706 # include <assert.h>
17707 #endif
17708
17709 #undef $ac_func
17710
17711 /* Override any GCC internal prototype to avoid an error.
17712    Use char because int might match the return type of a GCC
17713    builtin and then its argument prototype would still apply.  */
17714 #ifdef __cplusplus
17715 extern "C"
17716 #endif
17717 char $ac_func ();
17718 /* The GNU C library defines this for functions which it implements
17719     to always fail with ENOSYS.  Some functions are actually named
17720     something starting with __ and the normal name is an alias.  */
17721 #if defined __stub_$ac_func || defined __stub___$ac_func
17722 choke me
17723 #endif
17724
17725 int
17726 main ()
17727 {
17728 return $ac_func ();
17729   ;
17730   return 0;
17731 }
17732 _ACEOF
17733 rm -f conftest.$ac_objext conftest$ac_exeext
17734 if { (ac_try="$ac_link"
17735 case "(($ac_try" in
17736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737   *) ac_try_echo=$ac_try;;
17738 esac
17739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17740   (eval "$ac_link") 2>conftest.er1
17741   ac_status=$?
17742   grep -v '^ *+' conftest.er1 >conftest.err
17743   rm -f conftest.er1
17744   cat conftest.err >&5
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); } &&
17747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17748   { (case "(($ac_try" in
17749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750   *) ac_try_echo=$ac_try;;
17751 esac
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753   (eval "$ac_try") 2>&5
17754   ac_status=$?
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); }; } &&
17757          { ac_try='test -s conftest$ac_exeext'
17758   { (case "(($ac_try" in
17759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760   *) ac_try_echo=$ac_try;;
17761 esac
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763   (eval "$ac_try") 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; }; then
17767   eval "$as_ac_var=yes"
17768 else
17769   echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17771
17772         eval "$as_ac_var=no"
17773 fi
17774
17775 rm -f core conftest.err conftest.$ac_objext \
17776       conftest$ac_exeext conftest.$ac_ext
17777 fi
17778 ac_res=`eval echo '${'$as_ac_var'}'`
17779                { echo "$as_me:$LINENO: result: $ac_res" >&5
17780 echo "${ECHO_T}$ac_res" >&6; }
17781 if test `eval echo '${'$as_ac_var'}'` = yes; then
17782   cat >>confdefs.h <<_ACEOF
17783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17784 _ACEOF
17785
17786 fi
17787 done
17788
17789
17790 SHLIBEXT=$llvm_shlib_ext
17791
17792
17793 if test "${prefix}" = "NONE" ; then
17794   prefix="/usr/local"
17795 fi
17796 eval LLVM_PREFIX="${prefix}";
17797 eval LLVM_BINDIR="${prefix}/bin";
17798 eval LLVM_DATADIR="${prefix}/share/llvm";
17799 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17800 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17801 eval LLVM_INCLUDEDIR="${prefix}/include";
17802 eval LLVM_INFODIR="${prefix}/info";
17803 eval LLVM_MANDIR="${prefix}/man";
17804 LLVM_CONFIGTIME=`date`
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17816   LLVM_CONFIGTIME="(timestamp not enabled)"
17817 fi
17818
17819
17820 cat >>confdefs.h <<_ACEOF
17821 #define LLVM_PREFIX "$LLVM_PREFIX"
17822 _ACEOF
17823
17824
17825 cat >>confdefs.h <<_ACEOF
17826 #define LLVM_BINDIR "$LLVM_BINDIR"
17827 _ACEOF
17828
17829
17830 cat >>confdefs.h <<_ACEOF
17831 #define LLVM_DATADIR "$LLVM_DATADIR"
17832 _ACEOF
17833
17834
17835 cat >>confdefs.h <<_ACEOF
17836 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17837 _ACEOF
17838
17839
17840 cat >>confdefs.h <<_ACEOF
17841 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17842 _ACEOF
17843
17844
17845 cat >>confdefs.h <<_ACEOF
17846 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17847 _ACEOF
17848
17849
17850 cat >>confdefs.h <<_ACEOF
17851 #define LLVM_INFODIR "$LLVM_INFODIR"
17852 _ACEOF
17853
17854
17855 cat >>confdefs.h <<_ACEOF
17856 #define LLVM_MANDIR "$LLVM_MANDIR"
17857 _ACEOF
17858
17859
17860 cat >>confdefs.h <<_ACEOF
17861 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17862 _ACEOF
17863
17864
17865 cat >>confdefs.h <<_ACEOF
17866 #define LLVM_HOST_TRIPLE "$host"
17867 _ACEOF
17868
17869
17870 cat >>confdefs.h <<_ACEOF
17871 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17872 _ACEOF
17873
17874
17875 if test "$BINDINGS_TO_BUILD" = auto ; then
17876   BINDINGS_TO_BUILD=""
17877   if test "x$OCAMLFIND" != x ; then
17878     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17879   fi
17880   if test "x$GO" != x ; then
17881     if $GO run ${srcdir}/bindings/go/conftest.go ; then
17882       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17883     fi
17884   fi
17885 fi
17886 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17887
17888
17889 binding_prereqs_failed=0
17890 for a_binding in $BINDINGS_TO_BUILD ; do
17891   case "$a_binding" in
17892   ocaml)
17893     if test "x$OCAMLFIND" = x ; then
17894       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17895 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17896       binding_prereqs_failed=1
17897     fi
17898
17899     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17900       HAVE_OCAMLOPT=1
17901     else
17902       HAVE_OCAMLOPT=0
17903     fi
17904
17905
17906     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17907       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17908 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17909       binding_prereqs_failed=1
17910     fi
17911
17912     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17913       HAVE_OCAML_OUNIT=1
17914     else
17915       HAVE_OCAML_OUNIT=0
17916       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17917 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17918           fi
17919
17920
17921     if test "x$with_ocaml_libdir" != xauto ; then
17922       OCAML_LIBDIR=$with_ocaml_libdir
17923
17924     else
17925       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17926       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17927       then
17928         # ocaml stdlib is beneath our prefix; use stdlib
17929         OCAML_LIBDIR=$ocaml_stdlib
17930
17931       else
17932         # ocaml stdlib is outside our prefix; use libdir/ocaml
17933         OCAML_LIBDIR=${prefix}/lib/ocaml
17934
17935       fi
17936     fi
17937     ;;
17938   go)
17939     if test "x$GO" = x ; then
17940       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17941 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17942       binding_prereqs_failed=1
17943     else
17944       if $GO run ${srcdir}/bindings/go/conftest.go ; then
17945         :
17946       else
17947         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17948 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17949         binding_prereqs_failed=1
17950       fi
17951     fi
17952     ;;
17953   esac
17954 done
17955 if test "$binding_prereqs_failed" = 1 ; then
17956   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17957 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17958    { (exit 1); exit 1; }; }
17959 fi
17960
17961 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17962 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17963 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17964   echo $ECHO_N "(cached) $ECHO_C" >&6
17965 else
17966    ac_ext=cpp
17967 ac_cpp='$CXXCPP $CPPFLAGS'
17968 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17969 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17970 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17971
17972   oldcxxflags="$CXXFLAGS"
17973   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17974   cat >conftest.$ac_ext <<_ACEOF
17975 /* confdefs.h.  */
17976 _ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h.  */
17980 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17981 int
17982 main ()
17983 {
17984 X<int>().f();
17985   ;
17986   return 0;
17987 }
17988 _ACEOF
17989 rm -f conftest.$ac_objext
17990 if { (ac_try="$ac_compile"
17991 case "(($ac_try" in
17992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993   *) ac_try_echo=$ac_try;;
17994 esac
17995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17996   (eval "$ac_compile") 2>conftest.er1
17997   ac_status=$?
17998   grep -v '^ *+' conftest.er1 >conftest.err
17999   rm -f conftest.er1
18000   cat conftest.err >&5
18001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002   (exit $ac_status); } &&
18003          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18004   { (case "(($ac_try" in
18005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006   *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009   (eval "$ac_try") 2>&5
18010   ac_status=$?
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); }; } &&
18013          { ac_try='test -s conftest.$ac_objext'
18014   { (case "(($ac_try" in
18015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016   *) ac_try_echo=$ac_try;;
18017 esac
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019   (eval "$ac_try") 2>&5
18020   ac_status=$?
18021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022   (exit $ac_status); }; }; then
18023   llvm_cv_cxx_visibility_inlines_hidden=yes
18024 else
18025   echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028         llvm_cv_cxx_visibility_inlines_hidden=no
18029 fi
18030
18031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18032   CXXFLAGS="$oldcxxflags"
18033   ac_ext=c
18034 ac_cpp='$CPP $CPPFLAGS'
18035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18038
18039
18040 fi
18041 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18042 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18043 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18044   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18045
18046 else
18047   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18048
18049 fi
18050
18051
18052 if test "$llvm_cv_link_use_r" = "yes" ; then
18053   RPATH="-Wl,-R"
18054 else
18055   RPATH="-Wl,-rpath"
18056 fi
18057
18058
18059 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18060   RDYNAMIC="-rdynamic"
18061 else
18062   RDYNAMIC=""
18063 fi
18064
18065
18066
18067 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18068
18069
18070
18071
18072
18073
18074 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18075
18076 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18077
18078 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18079
18080 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18081
18082 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18083
18084
18085 ac_config_files="$ac_config_files Makefile.config"
18086
18087
18088 ac_config_files="$ac_config_files llvm.spec"
18089
18090
18091 ac_config_files="$ac_config_files docs/doxygen.cfg"
18092
18093
18094 if test "${clang_src_root}" = ""; then
18095   clang_src_root="$srcdir/tools/clang"
18096 fi
18097 if test -f ${clang_src_root}/README.txt; then
18098
18099 cat >>confdefs.h <<_ACEOF
18100 #define CLANG_LIBDIR_SUFFIX ""
18101 _ACEOF
18102
18103
18104     configh="include/clang/Config/config.h"
18105   doxy="docs/doxygen.cfg"
18106   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18107
18108   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18109
18110 fi
18111
18112 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18113
18114
18115 test "x$program_prefix" = "xNONE" && program_prefix=""
18116
18117
18118
18119 ac_config_commands="$ac_config_commands setup"
18120
18121 ac_config_commands="$ac_config_commands Makefile"
18122
18123
18124 ac_config_commands="$ac_config_commands Makefile.common"
18125
18126
18127 ac_config_commands="$ac_config_commands examples/Makefile"
18128
18129
18130 ac_config_commands="$ac_config_commands lib/Makefile"
18131
18132
18133 ac_config_commands="$ac_config_commands test/Makefile"
18134
18135
18136 ac_config_commands="$ac_config_commands test/Makefile.tests"
18137
18138
18139 ac_config_commands="$ac_config_commands unittests/Makefile"
18140
18141
18142 ac_config_commands="$ac_config_commands tools/Makefile"
18143
18144
18145 ac_config_commands="$ac_config_commands utils/Makefile"
18146
18147
18148 ac_config_commands="$ac_config_commands projects/Makefile"
18149
18150
18151 ac_config_commands="$ac_config_commands bindings/Makefile"
18152
18153
18154 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18155
18156
18157
18158 cat >confcache <<\_ACEOF
18159 # This file is a shell script that caches the results of configure
18160 # tests run on this system so they can be shared between configure
18161 # scripts and configure runs, see configure's option --config-cache.
18162 # It is not useful on other systems.  If it contains results you don't
18163 # want to keep, you may remove or edit it.
18164 #
18165 # config.status only pays attention to the cache file if you give it
18166 # the --recheck option to rerun configure.
18167 #
18168 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18169 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18170 # following values.
18171
18172 _ACEOF
18173
18174 # The following way of writing the cache mishandles newlines in values,
18175 # but we know of no workaround that is simple, portable, and efficient.
18176 # So, we kill variables containing newlines.
18177 # Ultrix sh set writes to stderr and can't be redirected directly,
18178 # and sets the high bit in the cache file unless we assign to the vars.
18179 (
18180   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18181     eval ac_val=\$$ac_var
18182     case $ac_val in #(
18183     *${as_nl}*)
18184       case $ac_var in #(
18185       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18186 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18187       esac
18188       case $ac_var in #(
18189       _ | IFS | as_nl) ;; #(
18190       *) $as_unset $ac_var ;;
18191       esac ;;
18192     esac
18193   done
18194
18195   (set) 2>&1 |
18196     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18197     *${as_nl}ac_space=\ *)
18198       # `set' does not quote correctly, so add quotes (double-quote
18199       # substitution turns \\\\ into \\, and sed turns \\ into \).
18200       sed -n \
18201         "s/'/'\\\\''/g;
18202           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18203       ;; #(
18204     *)
18205       # `set' quotes correctly as required by POSIX, so do not add quotes.
18206       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18207       ;;
18208     esac |
18209     sort
18210 ) |
18211   sed '
18212      /^ac_cv_env_/b end
18213      t clear
18214      :clear
18215      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18216      t end
18217      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18218      :end' >>confcache
18219 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18220   if test -w "$cache_file"; then
18221     test "x$cache_file" != "x/dev/null" &&
18222       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18223 echo "$as_me: updating cache $cache_file" >&6;}
18224     cat confcache >$cache_file
18225   else
18226     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18227 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18228   fi
18229 fi
18230 rm -f confcache
18231
18232 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18233 # Let make expand exec_prefix.
18234 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18235
18236 DEFS=-DHAVE_CONFIG_H
18237
18238 ac_libobjs=
18239 ac_ltlibobjs=
18240 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18241   # 1. Remove the extension, and $U if already installed.
18242   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18243   ac_i=`echo "$ac_i" | sed "$ac_script"`
18244   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18245   #    will be set to the directory where LIBOBJS objects are built.
18246   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18247   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18248 done
18249 LIBOBJS=$ac_libobjs
18250
18251 LTLIBOBJS=$ac_ltlibobjs
18252
18253
18254
18255 : ${CONFIG_STATUS=./config.status}
18256 ac_clean_files_save=$ac_clean_files
18257 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18258 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18259 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18260 cat >$CONFIG_STATUS <<_ACEOF
18261 #! $SHELL
18262 # Generated by $as_me.
18263 # Run this file to recreate the current configuration.
18264 # Compiler output produced by configure, useful for debugging
18265 # configure, is in config.log if it exists.
18266
18267 debug=false
18268 ac_cs_recheck=false
18269 ac_cs_silent=false
18270 SHELL=\${CONFIG_SHELL-$SHELL}
18271 _ACEOF
18272
18273 cat >>$CONFIG_STATUS <<\_ACEOF
18274 ## --------------------- ##
18275 ## M4sh Initialization.  ##
18276 ## --------------------- ##
18277
18278 # Be Bourne compatible
18279 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18280   emulate sh
18281   NULLCMD=:
18282   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18283   # is contrary to our usage.  Disable this feature.
18284   alias -g '${1+"$@"}'='"$@"'
18285   setopt NO_GLOB_SUBST
18286 else
18287   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18288 fi
18289 BIN_SH=xpg4; export BIN_SH # for Tru64
18290 DUALCASE=1; export DUALCASE # for MKS sh
18291
18292
18293 # PATH needs CR
18294 # Avoid depending upon Character Ranges.
18295 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18296 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18297 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18298 as_cr_digits='0123456789'
18299 as_cr_alnum=$as_cr_Letters$as_cr_digits
18300
18301 # The user is always right.
18302 if test "${PATH_SEPARATOR+set}" != set; then
18303   echo "#! /bin/sh" >conf$$.sh
18304   echo  "exit 0"   >>conf$$.sh
18305   chmod +x conf$$.sh
18306   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18307     PATH_SEPARATOR=';'
18308   else
18309     PATH_SEPARATOR=:
18310   fi
18311   rm -f conf$$.sh
18312 fi
18313
18314 # Support unset when possible.
18315 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18316   as_unset=unset
18317 else
18318   as_unset=false
18319 fi
18320
18321
18322 # IFS
18323 # We need space, tab and new line, in precisely that order.  Quoting is
18324 # there to prevent editors from complaining about space-tab.
18325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18326 # splitting by setting IFS to empty value.)
18327 as_nl='
18328 '
18329 IFS=" ""        $as_nl"
18330
18331 # Find who we are.  Look in the path if we contain no directory separator.
18332 case $0 in
18333   *[\\/]* ) as_myself=$0 ;;
18334   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18335 for as_dir in $PATH
18336 do
18337   IFS=$as_save_IFS
18338   test -z "$as_dir" && as_dir=.
18339   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18340 done
18341 IFS=$as_save_IFS
18342
18343      ;;
18344 esac
18345 # We did not find ourselves, most probably we were run as `sh COMMAND'
18346 # in which case we are not to be found in the path.
18347 if test "x$as_myself" = x; then
18348   as_myself=$0
18349 fi
18350 if test ! -f "$as_myself"; then
18351   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18352   { (exit 1); exit 1; }
18353 fi
18354
18355 # Work around bugs in pre-3.0 UWIN ksh.
18356 for as_var in ENV MAIL MAILPATH
18357 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18358 done
18359 PS1='$ '
18360 PS2='> '
18361 PS4='+ '
18362
18363 # NLS nuisances.
18364 for as_var in \
18365   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18366   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18367   LC_TELEPHONE LC_TIME
18368 do
18369   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18370     eval $as_var=C; export $as_var
18371   else
18372     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18373   fi
18374 done
18375
18376 # Required to use basename.
18377 if expr a : '\(a\)' >/dev/null 2>&1 &&
18378    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18379   as_expr=expr
18380 else
18381   as_expr=false
18382 fi
18383
18384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18385   as_basename=basename
18386 else
18387   as_basename=false
18388 fi
18389
18390
18391 # Name of the executable.
18392 as_me=`$as_basename -- "$0" ||
18393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18394          X"$0" : 'X\(//\)$' \| \
18395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18396 echo X/"$0" |
18397     sed '/^.*\/\([^/][^/]*\)\/*$/{
18398             s//\1/
18399             q
18400           }
18401           /^X\/\(\/\/\)$/{
18402             s//\1/
18403             q
18404           }
18405           /^X\/\(\/\).*/{
18406             s//\1/
18407             q
18408           }
18409           s/.*/./; q'`
18410
18411 # CDPATH.
18412 $as_unset CDPATH
18413
18414
18415
18416   as_lineno_1=$LINENO
18417   as_lineno_2=$LINENO
18418   test "x$as_lineno_1" != "x$as_lineno_2" &&
18419   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18420
18421   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18422   # uniformly replaced by the line number.  The first 'sed' inserts a
18423   # line-number line after each line using $LINENO; the second 'sed'
18424   # does the real work.  The second script uses 'N' to pair each
18425   # line-number line with the line containing $LINENO, and appends
18426   # trailing '-' during substitution so that $LINENO is not a special
18427   # case at line end.
18428   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18429   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18430   # E. McMahon (1931-1989) for sed's syntax.  :-)
18431   sed -n '
18432     p
18433     /[$]LINENO/=
18434   ' <$as_myself |
18435     sed '
18436       s/[$]LINENO.*/&-/
18437       t lineno
18438       b
18439       :lineno
18440       N
18441       :loop
18442       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18443       t loop
18444       s/-\n.*//
18445     ' >$as_me.lineno &&
18446   chmod +x "$as_me.lineno" ||
18447     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18448    { (exit 1); exit 1; }; }
18449
18450   # Don't try to exec as it changes $[0], causing all sort of problems
18451   # (the dirname of $[0] is not the place where we might find the
18452   # original and so on.  Autoconf is especially sensitive to this).
18453   . "./$as_me.lineno"
18454   # Exit status is that of the last command.
18455   exit
18456 }
18457
18458
18459 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18460   as_dirname=dirname
18461 else
18462   as_dirname=false
18463 fi
18464
18465 ECHO_C= ECHO_N= ECHO_T=
18466 case `echo -n x` in
18467 -n*)
18468   case `echo 'x\c'` in
18469   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18470   *)   ECHO_C='\c';;
18471   esac;;
18472 *)
18473   ECHO_N='-n';;
18474 esac
18475
18476 if expr a : '\(a\)' >/dev/null 2>&1 &&
18477    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18478   as_expr=expr
18479 else
18480   as_expr=false
18481 fi
18482
18483 rm -f conf$$ conf$$.exe conf$$.file
18484 if test -d conf$$.dir; then
18485   rm -f conf$$.dir/conf$$.file
18486 else
18487   rm -f conf$$.dir
18488   mkdir conf$$.dir
18489 fi
18490 echo >conf$$.file
18491 if ln -s conf$$.file conf$$ 2>/dev/null; then
18492   as_ln_s='ln -s'
18493   # ... but there are two gotchas:
18494   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18495   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18496   # In both cases, we have to default to `cp -p'.
18497   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18498     as_ln_s='cp -p'
18499 elif ln conf$$.file conf$$ 2>/dev/null; then
18500   as_ln_s=ln
18501 else
18502   as_ln_s='cp -p'
18503 fi
18504 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18505 rmdir conf$$.dir 2>/dev/null
18506
18507 if mkdir -p . 2>/dev/null; then
18508   as_mkdir_p=:
18509 else
18510   test -d ./-p && rmdir ./-p
18511   as_mkdir_p=false
18512 fi
18513
18514 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18515 # systems may use methods other than mode bits to determine executability.
18516 cat >conf$$.file <<_ASEOF
18517 #! /bin/sh
18518 exit 0
18519 _ASEOF
18520 chmod +x conf$$.file
18521 if test -x conf$$.file >/dev/null 2>&1; then
18522   as_executable_p="test -x"
18523 else
18524   as_executable_p=:
18525 fi
18526 rm -f conf$$.file
18527
18528 # Sed expression to map a string onto a valid CPP name.
18529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18530
18531 # Sed expression to map a string onto a valid variable name.
18532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18533
18534
18535 exec 6>&1
18536
18537 # Save the log message, to keep $[0] and so on meaningful, and to
18538 # report actual input values of CONFIG_FILES etc. instead of their
18539 # values after options handling.
18540 ac_log="
18541 This file was extended by LLVM $as_me 3.7.0svn, which was
18542 generated by GNU Autoconf 2.60.  Invocation command line was
18543
18544   CONFIG_FILES    = $CONFIG_FILES
18545   CONFIG_HEADERS  = $CONFIG_HEADERS
18546   CONFIG_LINKS    = $CONFIG_LINKS
18547   CONFIG_COMMANDS = $CONFIG_COMMANDS
18548   $ $0 $@
18549
18550 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18551 "
18552
18553 _ACEOF
18554
18555 cat >>$CONFIG_STATUS <<_ACEOF
18556 # Files that config.status was made for.
18557 config_files="$ac_config_files"
18558 config_headers="$ac_config_headers"
18559 config_commands="$ac_config_commands"
18560
18561 _ACEOF
18562
18563 cat >>$CONFIG_STATUS <<\_ACEOF
18564 ac_cs_usage="\
18565 \`$as_me' instantiates files from templates according to the
18566 current configuration.
18567
18568 Usage: $0 [OPTIONS] [FILE]...
18569
18570   -h, --help       print this help, then exit
18571   -V, --version    print version number, then exit
18572   -q, --quiet      do not print progress messages
18573   -d, --debug      don't remove temporary files
18574       --recheck    update $as_me by reconfiguring in the same conditions
18575   --file=FILE[:TEMPLATE]
18576                    instantiate the configuration file FILE
18577   --header=FILE[:TEMPLATE]
18578                    instantiate the configuration header FILE
18579
18580 Configuration files:
18581 $config_files
18582
18583 Configuration headers:
18584 $config_headers
18585
18586 Configuration commands:
18587 $config_commands
18588
18589 Report bugs to <bug-autoconf@gnu.org>."
18590
18591 _ACEOF
18592 cat >>$CONFIG_STATUS <<_ACEOF
18593 ac_cs_version="\\
18594 LLVM config.status 3.7.0svn
18595 configured by $0, generated by GNU Autoconf 2.60,
18596   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18597
18598 Copyright (C) 2006 Free Software Foundation, Inc.
18599 This config.status script is free software; the Free Software Foundation
18600 gives unlimited permission to copy, distribute and modify it."
18601
18602 ac_pwd='$ac_pwd'
18603 srcdir='$srcdir'
18604 INSTALL='$INSTALL'
18605 _ACEOF
18606
18607 cat >>$CONFIG_STATUS <<\_ACEOF
18608 # If no file are specified by the user, then we need to provide default
18609 # value.  By we need to know if files were specified by the user.
18610 ac_need_defaults=:
18611 while test $# != 0
18612 do
18613   case $1 in
18614   --*=*)
18615     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18616     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18617     ac_shift=:
18618     ;;
18619   *)
18620     ac_option=$1
18621     ac_optarg=$2
18622     ac_shift=shift
18623     ;;
18624   esac
18625
18626   case $ac_option in
18627   # Handling of the options.
18628   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18629     ac_cs_recheck=: ;;
18630   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18631     echo "$ac_cs_version"; exit ;;
18632   --debug | --debu | --deb | --de | --d | -d )
18633     debug=: ;;
18634   --file | --fil | --fi | --f )
18635     $ac_shift
18636     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18637     ac_need_defaults=false;;
18638   --header | --heade | --head | --hea )
18639     $ac_shift
18640     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18641     ac_need_defaults=false;;
18642   --he | --h)
18643     # Conflict between --help and --header
18644     { echo "$as_me: error: ambiguous option: $1
18645 Try \`$0 --help' for more information." >&2
18646    { (exit 1); exit 1; }; };;
18647   --help | --hel | -h )
18648     echo "$ac_cs_usage"; exit ;;
18649   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18650   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18651     ac_cs_silent=: ;;
18652
18653   # This is an error.
18654   -*) { echo "$as_me: error: unrecognized option: $1
18655 Try \`$0 --help' for more information." >&2
18656    { (exit 1); exit 1; }; } ;;
18657
18658   *) ac_config_targets="$ac_config_targets $1"
18659      ac_need_defaults=false ;;
18660
18661   esac
18662   shift
18663 done
18664
18665 ac_configure_extra_args=
18666
18667 if $ac_cs_silent; then
18668   exec 6>/dev/null
18669   ac_configure_extra_args="$ac_configure_extra_args --silent"
18670 fi
18671
18672 _ACEOF
18673 cat >>$CONFIG_STATUS <<_ACEOF
18674 if \$ac_cs_recheck; then
18675   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18676   CONFIG_SHELL=$SHELL
18677   export CONFIG_SHELL
18678   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18679 fi
18680
18681 _ACEOF
18682 cat >>$CONFIG_STATUS <<\_ACEOF
18683 exec 5>>config.log
18684 {
18685   echo
18686   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18687 ## Running $as_me. ##
18688 _ASBOX
18689   echo "$ac_log"
18690 } >&5
18691
18692 _ACEOF
18693 cat >>$CONFIG_STATUS <<_ACEOF
18694 #
18695 # INIT-COMMANDS
18696 #
18697 llvm_src="${srcdir}"
18698
18699 _ACEOF
18700
18701 cat >>$CONFIG_STATUS <<\_ACEOF
18702
18703 # Handling of arguments.
18704 for ac_config_target in $ac_config_targets
18705 do
18706   case $ac_config_target in
18707     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18708     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18709     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18710     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18711     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18712     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18713     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18714     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18715     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18716     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18717     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18718     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18719     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18720     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18721     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18722     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18723     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18724     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18725     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18726     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18727     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18728     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18729     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18730     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18731     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18732     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18733
18734   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18735 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18736    { (exit 1); exit 1; }; };;
18737   esac
18738 done
18739
18740
18741 # If the user did not use the arguments to specify the items to instantiate,
18742 # then the envvar interface is used.  Set only those that are not.
18743 # We use the long form for the default assignment because of an extremely
18744 # bizarre bug on SunOS 4.1.3.
18745 if $ac_need_defaults; then
18746   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18747   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18748   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18749 fi
18750
18751 # Have a temporary directory for convenience.  Make it in the build tree
18752 # simply because there is no reason against having it here, and in addition,
18753 # creating and moving files from /tmp can sometimes cause problems.
18754 # Hook for its removal unless debugging.
18755 # Note that there is a small window in which the directory will not be cleaned:
18756 # after its creation but before its name has been assigned to `$tmp'.
18757 $debug ||
18758 {
18759   tmp=
18760   trap 'exit_status=$?
18761   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18762 ' 0
18763   trap '{ (exit 1); exit 1; }' 1 2 13 15
18764 }
18765 # Create a (secure) tmp directory for tmp files.
18766
18767 {
18768   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18769   test -n "$tmp" && test -d "$tmp"
18770 }  ||
18771 {
18772   tmp=./conf$$-$RANDOM
18773   (umask 077 && mkdir "$tmp")
18774 } ||
18775 {
18776    echo "$me: cannot create a temporary directory in ." >&2
18777    { (exit 1); exit 1; }
18778 }
18779
18780 #
18781 # Set up the sed scripts for CONFIG_FILES section.
18782 #
18783
18784 # No need to generate the scripts if there are no CONFIG_FILES.
18785 # This happens for instance when ./config.status config.h
18786 if test -n "$CONFIG_FILES"; then
18787
18788 _ACEOF
18789
18790
18791
18792 ac_delim='%!_!# '
18793 for ac_last_try in false false false false false :; do
18794   cat >conf$$subs.sed <<_ACEOF
18795 SHELL!$SHELL$ac_delim
18796 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18797 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18798 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18799 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18800 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18801 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18802 exec_prefix!$exec_prefix$ac_delim
18803 prefix!$prefix$ac_delim
18804 program_transform_name!$program_transform_name$ac_delim
18805 bindir!$bindir$ac_delim
18806 sbindir!$sbindir$ac_delim
18807 libexecdir!$libexecdir$ac_delim
18808 datarootdir!$datarootdir$ac_delim
18809 datadir!$datadir$ac_delim
18810 sysconfdir!$sysconfdir$ac_delim
18811 sharedstatedir!$sharedstatedir$ac_delim
18812 localstatedir!$localstatedir$ac_delim
18813 includedir!$includedir$ac_delim
18814 oldincludedir!$oldincludedir$ac_delim
18815 docdir!$docdir$ac_delim
18816 infodir!$infodir$ac_delim
18817 htmldir!$htmldir$ac_delim
18818 dvidir!$dvidir$ac_delim
18819 pdfdir!$pdfdir$ac_delim
18820 psdir!$psdir$ac_delim
18821 libdir!$libdir$ac_delim
18822 localedir!$localedir$ac_delim
18823 mandir!$mandir$ac_delim
18824 DEFS!$DEFS$ac_delim
18825 ECHO_C!$ECHO_C$ac_delim
18826 ECHO_N!$ECHO_N$ac_delim
18827 ECHO_T!$ECHO_T$ac_delim
18828 LIBS!$LIBS$ac_delim
18829 build_alias!$build_alias$ac_delim
18830 host_alias!$host_alias$ac_delim
18831 target_alias!$target_alias$ac_delim
18832 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18833 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18834 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18835 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18836 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18837 CC!$CC$ac_delim
18838 CFLAGS!$CFLAGS$ac_delim
18839 LDFLAGS!$LDFLAGS$ac_delim
18840 CPPFLAGS!$CPPFLAGS$ac_delim
18841 ac_ct_CC!$ac_ct_CC$ac_delim
18842 EXEEXT!$EXEEXT$ac_delim
18843 OBJEXT!$OBJEXT$ac_delim
18844 CXX!$CXX$ac_delim
18845 CXXFLAGS!$CXXFLAGS$ac_delim
18846 ac_ct_CXX!$ac_ct_CXX$ac_delim
18847 CPP!$CPP$ac_delim
18848 subdirs!$subdirs$ac_delim
18849 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18850 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18851 build!$build$ac_delim
18852 build_cpu!$build_cpu$ac_delim
18853 build_vendor!$build_vendor$ac_delim
18854 build_os!$build_os$ac_delim
18855 host!$host$ac_delim
18856 host_cpu!$host_cpu$ac_delim
18857 host_vendor!$host_vendor$ac_delim
18858 host_os!$host_os$ac_delim
18859 target!$target$ac_delim
18860 target_cpu!$target_cpu$ac_delim
18861 target_vendor!$target_vendor$ac_delim
18862 target_os!$target_os$ac_delim
18863 OS!$OS$ac_delim
18864 HOST_OS!$HOST_OS$ac_delim
18865 TARGET_OS!$TARGET_OS$ac_delim
18866 LINKALL!$LINKALL$ac_delim
18867 NOLINKALL!$NOLINKALL$ac_delim
18868 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18869 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18870 ARCH!$ARCH$ac_delim
18871 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18872 HOST_ARCH!$HOST_ARCH$ac_delim
18873 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18874 BUILD_CC!$BUILD_CC$ac_delim
18875 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18876 BUILD_CXX!$BUILD_CXX$ac_delim
18877 CVSBUILD!$CVSBUILD$ac_delim
18878 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18879 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18880 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18881 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18882 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18883 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18884 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18885 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18886 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18887 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18888 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18889 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18890 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18891 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18892 _ACEOF
18893
18894   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18895     break
18896   elif $ac_last_try; then
18897     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18898 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18899    { (exit 1); exit 1; }; }
18900   else
18901     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18902   fi
18903 done
18904
18905 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18906 if test -n "$ac_eof"; then
18907   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18908   ac_eof=`expr $ac_eof + 1`
18909 fi
18910
18911 cat >>$CONFIG_STATUS <<_ACEOF
18912 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18913 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18914 _ACEOF
18915 sed '
18916 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18917 s/^/s,@/; s/!/@,|#_!!_#|/
18918 :n
18919 t n
18920 s/'"$ac_delim"'$/,g/; t
18921 s/$/\\/; p
18922 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18923 ' >>$CONFIG_STATUS <conf$$subs.sed
18924 rm -f conf$$subs.sed
18925 cat >>$CONFIG_STATUS <<_ACEOF
18926 CEOF$ac_eof
18927 _ACEOF
18928
18929
18930 ac_delim='%!_!# '
18931 for ac_last_try in false false false false false :; do
18932   cat >conf$$subs.sed <<_ACEOF
18933 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18934 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18935 JIT!$JIT$ac_delim
18936 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18937 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18938 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18939 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18940 enable_searchengine!$enable_searchengine$ac_delim
18941 enable_external_search!$enable_external_search$ac_delim
18942 enable_server_based_search!$enable_server_based_search$ac_delim
18943 searchengine_url!$searchengine_url$ac_delim
18944 extra_search_mappings!$extra_search_mappings$ac_delim
18945 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18946 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18947 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18948 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18949 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18950 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18951 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18952 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18953 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18954 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18955 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18956 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18957 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18958 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18959 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18960 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18961 ENABLE_PIC!$ENABLE_PIC$ac_delim
18962 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18963 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18964 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18965 ALL_TARGETS!$ALL_TARGETS$ac_delim
18966 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18967 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18968 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18969 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18970 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18971 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18972 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18973 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18974 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18975 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18976 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18977 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18978 ifGNUmake!$ifGNUmake$ac_delim
18979 LN_S!$LN_S$ac_delim
18980 NM!$NM$ac_delim
18981 CMP!$CMP$ac_delim
18982 CP!$CP$ac_delim
18983 DATE!$DATE$ac_delim
18984 FIND!$FIND$ac_delim
18985 GREP!$GREP$ac_delim
18986 MKDIR!$MKDIR$ac_delim
18987 MV!$MV$ac_delim
18988 RANLIB!$RANLIB$ac_delim
18989 AR!$AR$ac_delim
18990 RM!$RM$ac_delim
18991 SED!$SED$ac_delim
18992 TAR!$TAR$ac_delim
18993 BINPWD!$BINPWD$ac_delim
18994 DOT!$DOT$ac_delim
18995 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18996 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18997 INSTALL_DATA!$INSTALL_DATA$ac_delim
18998 BZIP2!$BZIP2$ac_delim
18999 CAT!$CAT$ac_delim
19000 DOXYGEN!$DOXYGEN$ac_delim
19001 GROFF!$GROFF$ac_delim
19002 GZIPBIN!$GZIPBIN$ac_delim
19003 PDFROFF!$PDFROFF$ac_delim
19004 ZIP!$ZIP$ac_delim
19005 GO!$GO$ac_delim
19006 OCAMLFIND!$OCAMLFIND$ac_delim
19007 GAS!$GAS$ac_delim
19008 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
19009 EGREP!$EGREP$ac_delim
19010 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
19011 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
19012 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
19013 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
19014 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
19015 NO_COMMENT!$NO_COMMENT$ac_delim
19016 PYTHON!$PYTHON$ac_delim
19017 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19018 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19019 USE_OPROFILE!$USE_OPROFILE$ac_delim
19020 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19021 XML2CONFIG!$XML2CONFIG$ac_delim
19022 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19023 LIBXML2_INC!$LIBXML2_INC$ac_delim
19024 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19025 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19026 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19027 MMAP_FILE!$MMAP_FILE$ac_delim
19028 SHLIBEXT!$SHLIBEXT$ac_delim
19029 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19030 _ACEOF
19031
19032   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19033     break
19034   elif $ac_last_try; then
19035     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19036 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19037    { (exit 1); exit 1; }; }
19038   else
19039     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19040   fi
19041 done
19042
19043 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19044 if test -n "$ac_eof"; then
19045   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19046   ac_eof=`expr $ac_eof + 1`
19047 fi
19048
19049 cat >>$CONFIG_STATUS <<_ACEOF
19050 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19052 _ACEOF
19053 sed '
19054 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19055 s/^/s,@/; s/!/@,|#_!!_#|/
19056 :n
19057 t n
19058 s/'"$ac_delim"'$/,g/; t
19059 s/$/\\/; p
19060 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19061 ' >>$CONFIG_STATUS <conf$$subs.sed
19062 rm -f conf$$subs.sed
19063 cat >>$CONFIG_STATUS <<_ACEOF
19064 CEOF$ac_eof
19065 _ACEOF
19066
19067
19068 ac_delim='%!_!# '
19069 for ac_last_try in false false false false false :; do
19070   cat >conf$$subs.sed <<_ACEOF
19071 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19072 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19073 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19074 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19075 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19076 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19077 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19078 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19079 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19080 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19081 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19082 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19083 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19084 RPATH!$RPATH$ac_delim
19085 RDYNAMIC!$RDYNAMIC$ac_delim
19086 program_prefix!$program_prefix$ac_delim
19087 LIBOBJS!$LIBOBJS$ac_delim
19088 LTLIBOBJS!$LTLIBOBJS$ac_delim
19089 _ACEOF
19090
19091   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19092     break
19093   elif $ac_last_try; then
19094     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19095 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19096    { (exit 1); exit 1; }; }
19097   else
19098     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19099   fi
19100 done
19101
19102 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19103 if test -n "$ac_eof"; then
19104   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19105   ac_eof=`expr $ac_eof + 1`
19106 fi
19107
19108 cat >>$CONFIG_STATUS <<_ACEOF
19109 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19111 _ACEOF
19112 sed '
19113 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19114 s/^/s,@/; s/!/@,|#_!!_#|/
19115 :n
19116 t n
19117 s/'"$ac_delim"'$/,g/; t
19118 s/$/\\/; p
19119 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19120 ' >>$CONFIG_STATUS <conf$$subs.sed
19121 rm -f conf$$subs.sed
19122 cat >>$CONFIG_STATUS <<_ACEOF
19123 :end
19124 s/|#_!!_#|//g
19125 CEOF$ac_eof
19126 _ACEOF
19127
19128
19129 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19130 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19131 # trailing colons and then remove the whole line if VPATH becomes empty
19132 # (actually we leave an empty line to preserve line numbers).
19133 if test "x$srcdir" = x.; then
19134   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19135 s/:*\$(srcdir):*/:/
19136 s/:*\${srcdir}:*/:/
19137 s/:*@srcdir@:*/:/
19138 s/^\([^=]*=[     ]*\):*/\1/
19139 s/:*$//
19140 s/^[^=]*=[       ]*$//
19141 }'
19142 fi
19143
19144 cat >>$CONFIG_STATUS <<\_ACEOF
19145 fi # test -n "$CONFIG_FILES"
19146
19147
19148 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19149 do
19150   case $ac_tag in
19151   :[FHLC]) ac_mode=$ac_tag; continue;;
19152   esac
19153   case $ac_mode$ac_tag in
19154   :[FHL]*:*);;
19155   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19156 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19157    { (exit 1); exit 1; }; };;
19158   :[FH]-) ac_tag=-:-;;
19159   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19160   esac
19161   ac_save_IFS=$IFS
19162   IFS=:
19163   set x $ac_tag
19164   IFS=$ac_save_IFS
19165   shift
19166   ac_file=$1
19167   shift
19168
19169   case $ac_mode in
19170   :L) ac_source=$1;;
19171   :[FH])
19172     ac_file_inputs=
19173     for ac_f
19174     do
19175       case $ac_f in
19176       -) ac_f="$tmp/stdin";;
19177       *) # Look for the file first in the build tree, then in the source tree
19178          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19179          # because $ac_f cannot contain `:'.
19180          test -f "$ac_f" ||
19181            case $ac_f in
19182            [\\/$]*) false;;
19183            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19184            esac ||
19185            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19186 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19187    { (exit 1); exit 1; }; };;
19188       esac
19189       ac_file_inputs="$ac_file_inputs $ac_f"
19190     done
19191
19192     # Let's still pretend it is `configure' which instantiates (i.e., don't
19193     # use $as_me), people would be surprised to read:
19194     #    /* config.h.  Generated by config.status.  */
19195     configure_input="Generated from "`IFS=:
19196           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19197     if test x"$ac_file" != x-; then
19198       configure_input="$ac_file.  $configure_input"
19199       { echo "$as_me:$LINENO: creating $ac_file" >&5
19200 echo "$as_me: creating $ac_file" >&6;}
19201     fi
19202
19203     case $ac_tag in
19204     *:-:* | *:-) cat >"$tmp/stdin";;
19205     esac
19206     ;;
19207   esac
19208
19209   ac_dir=`$as_dirname -- "$ac_file" ||
19210 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19211          X"$ac_file" : 'X\(//\)[^/]' \| \
19212          X"$ac_file" : 'X\(//\)$' \| \
19213          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19214 echo X"$ac_file" |
19215     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19216             s//\1/
19217             q
19218           }
19219           /^X\(\/\/\)[^/].*/{
19220             s//\1/
19221             q
19222           }
19223           /^X\(\/\/\)$/{
19224             s//\1/
19225             q
19226           }
19227           /^X\(\/\).*/{
19228             s//\1/
19229             q
19230           }
19231           s/.*/./; q'`
19232   { as_dir="$ac_dir"
19233   case $as_dir in #(
19234   -*) as_dir=./$as_dir;;
19235   esac
19236   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19237     as_dirs=
19238     while :; do
19239       case $as_dir in #(
19240       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19241       *) as_qdir=$as_dir;;
19242       esac
19243       as_dirs="'$as_qdir' $as_dirs"
19244       as_dir=`$as_dirname -- "$as_dir" ||
19245 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19246          X"$as_dir" : 'X\(//\)[^/]' \| \
19247          X"$as_dir" : 'X\(//\)$' \| \
19248          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19249 echo X"$as_dir" |
19250     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19251             s//\1/
19252             q
19253           }
19254           /^X\(\/\/\)[^/].*/{
19255             s//\1/
19256             q
19257           }
19258           /^X\(\/\/\)$/{
19259             s//\1/
19260             q
19261           }
19262           /^X\(\/\).*/{
19263             s//\1/
19264             q
19265           }
19266           s/.*/./; q'`
19267       test -d "$as_dir" && break
19268     done
19269     test -z "$as_dirs" || eval "mkdir $as_dirs"
19270   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19271 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19272    { (exit 1); exit 1; }; }; }
19273   ac_builddir=.
19274
19275 case "$ac_dir" in
19276 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19277 *)
19278   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19279   # A ".." for each directory in $ac_dir_suffix.
19280   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19281   case $ac_top_builddir_sub in
19282   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19283   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19284   esac ;;
19285 esac
19286 ac_abs_top_builddir=$ac_pwd
19287 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19288 # for backward compatibility:
19289 ac_top_builddir=$ac_top_build_prefix
19290
19291 case $srcdir in
19292   .)  # We are building in place.
19293     ac_srcdir=.
19294     ac_top_srcdir=$ac_top_builddir_sub
19295     ac_abs_top_srcdir=$ac_pwd ;;
19296   [\\/]* | ?:[\\/]* )  # Absolute name.
19297     ac_srcdir=$srcdir$ac_dir_suffix;
19298     ac_top_srcdir=$srcdir
19299     ac_abs_top_srcdir=$srcdir ;;
19300   *) # Relative name.
19301     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19302     ac_top_srcdir=$ac_top_build_prefix$srcdir
19303     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19304 esac
19305 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19306
19307
19308   case $ac_mode in
19309   :F)
19310   #
19311   # CONFIG_FILE
19312   #
19313
19314   case $INSTALL in
19315   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19316   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19317   esac
19318 _ACEOF
19319
19320 cat >>$CONFIG_STATUS <<\_ACEOF
19321 # If the template does not know about datarootdir, expand it.
19322 # FIXME: This hack should be removed a few years after 2.60.
19323 ac_datarootdir_hack=; ac_datarootdir_seen=
19324
19325 case `sed -n '/datarootdir/ {
19326   p
19327   q
19328 }
19329 /@datadir@/p
19330 /@docdir@/p
19331 /@infodir@/p
19332 /@localedir@/p
19333 /@mandir@/p
19334 ' $ac_file_inputs` in
19335 *datarootdir*) ac_datarootdir_seen=yes;;
19336 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19337   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19338 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19339 _ACEOF
19340 cat >>$CONFIG_STATUS <<_ACEOF
19341   ac_datarootdir_hack='
19342   s&@datadir@&$datadir&g
19343   s&@docdir@&$docdir&g
19344   s&@infodir@&$infodir&g
19345   s&@localedir@&$localedir&g
19346   s&@mandir@&$mandir&g
19347     s&\\\${datarootdir}&$datarootdir&g' ;;
19348 esac
19349 _ACEOF
19350
19351 # Neutralize VPATH when `$srcdir' = `.'.
19352 # Shell code in configure.ac might set extrasub.
19353 # FIXME: do we really want to maintain this feature?
19354 cat >>$CONFIG_STATUS <<_ACEOF
19355   sed "$ac_vpsub
19356 $extrasub
19357 _ACEOF
19358 cat >>$CONFIG_STATUS <<\_ACEOF
19359 :t
19360 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19361 s&@configure_input@&$configure_input&;t t
19362 s&@top_builddir@&$ac_top_builddir_sub&;t t
19363 s&@srcdir@&$ac_srcdir&;t t
19364 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19365 s&@top_srcdir@&$ac_top_srcdir&;t t
19366 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19367 s&@builddir@&$ac_builddir&;t t
19368 s&@abs_builddir@&$ac_abs_builddir&;t t
19369 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19370 s&@INSTALL@&$ac_INSTALL&;t t
19371 $ac_datarootdir_hack
19372 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19373
19374 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19375   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19376   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19377   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19378 which seems to be undefined.  Please make sure it is defined." >&5
19379 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19380 which seems to be undefined.  Please make sure it is defined." >&2;}
19381
19382   rm -f "$tmp/stdin"
19383   case $ac_file in
19384   -) cat "$tmp/out"; rm -f "$tmp/out";;
19385   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19386   esac
19387  ;;
19388   :H)
19389   #
19390   # CONFIG_HEADER
19391   #
19392 _ACEOF
19393
19394 # Transform confdefs.h into a sed script `conftest.defines', that
19395 # substitutes the proper values into config.h.in to produce config.h.
19396 rm -f conftest.defines conftest.tail
19397 # First, append a space to every undef/define line, to ease matching.
19398 echo 's/$/ /' >conftest.defines
19399 # Then, protect against being on the right side of a sed subst, or in
19400 # an unquoted here document, in config.status.  If some macros were
19401 # called several times there might be several #defines for the same
19402 # symbol, which is useless.  But do not sort them, since the last
19403 # AC_DEFINE must be honored.
19404 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19405 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19406 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19407 # PARAMS is the parameter list in the macro definition--in most cases, it's
19408 # just an empty string.
19409 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19410 ac_dB='\\)[      (].*,\\1define\\2'
19411 ac_dC=' '
19412 ac_dD=' ,'
19413
19414 uniq confdefs.h |
19415   sed -n '
19416         t rset
19417         :rset
19418         s/^[     ]*#[    ]*define[       ][      ]*//
19419         t ok
19420         d
19421         :ok
19422         s/[\\&,]/\\&/g
19423         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19424         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19425   ' >>conftest.defines
19426
19427 # Remove the space that was appended to ease matching.
19428 # Then replace #undef with comments.  This is necessary, for
19429 # example, in the case of _POSIX_SOURCE, which is predefined and required
19430 # on some systems where configure will not decide to define it.
19431 # (The regexp can be short, since the line contains either #define or #undef.)
19432 echo 's/ $//
19433 s,^[     #]*u.*,/* & */,' >>conftest.defines
19434
19435 # Break up conftest.defines:
19436 ac_max_sed_lines=50
19437
19438 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19439 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19440 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19441 # et cetera.
19442 ac_in='$ac_file_inputs'
19443 ac_out='"$tmp/out1"'
19444 ac_nxt='"$tmp/out2"'
19445
19446 while :
19447 do
19448   # Write a here document:
19449     cat >>$CONFIG_STATUS <<_ACEOF
19450     # First, check the format of the line:
19451     cat >"\$tmp/defines.sed" <<\\CEOF
19452 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19453 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19454 b
19455 :def
19456 _ACEOF
19457   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19458   echo 'CEOF
19459     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19460   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19461   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19462   grep . conftest.tail >/dev/null || break
19463   rm -f conftest.defines
19464   mv conftest.tail conftest.defines
19465 done
19466 rm -f conftest.defines conftest.tail
19467
19468 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19469 cat >>$CONFIG_STATUS <<\_ACEOF
19470   if test x"$ac_file" != x-; then
19471     echo "/* $configure_input  */" >"$tmp/config.h"
19472     cat "$ac_result" >>"$tmp/config.h"
19473     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19474       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19475 echo "$as_me: $ac_file is unchanged" >&6;}
19476     else
19477       rm -f $ac_file
19478       mv "$tmp/config.h" $ac_file
19479     fi
19480   else
19481     echo "/* $configure_input  */"
19482     cat "$ac_result"
19483   fi
19484   rm -f "$tmp/out12"
19485  ;;
19486
19487   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19488 echo "$as_me: executing $ac_file commands" >&6;}
19489  ;;
19490   esac
19491
19492
19493   case $ac_file$ac_mode in
19494     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19495    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19496     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19497    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19498     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19499    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19500     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19501    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19502     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19503    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19504     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19505    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19506     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19507    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19508     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19509    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19510     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19511    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19512     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19513    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19514     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19515    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19516     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19517    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19518
19519   esac
19520 done # for ac_tag
19521
19522
19523 { (exit 0); exit 0; }
19524 _ACEOF
19525 chmod +x $CONFIG_STATUS
19526 ac_clean_files=$ac_clean_files_save
19527
19528
19529 # configure is writing to config.log, and then calls config.status.
19530 # config.status does its own redirection, appending to config.log.
19531 # Unfortunately, on DOS this fails, as config.log is still kept open
19532 # by configure, so config.status won't be able to write to it; its
19533 # output is simply discarded.  So we exec the FD to /dev/null,
19534 # effectively closing config.log, so it can be properly (re)opened and
19535 # appended to by config.status.  When coming back to configure, we
19536 # need to make the FD available again.
19537 if test "$no_create" != yes; then
19538   ac_cs_success=:
19539   ac_config_status_args=
19540   test "$silent" = yes &&
19541     ac_config_status_args="$ac_config_status_args --quiet"
19542   exec 5>/dev/null
19543   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19544   exec 5>>config.log
19545   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19546   # would make configure fail if this is the last instruction.
19547   $ac_cs_success || { (exit 1); exit 1; }
19548 fi
19549
19550 #
19551 # CONFIG_SUBDIRS section.
19552 #
19553 if test "$no_recursion" != yes; then
19554
19555   # Remove --cache-file and --srcdir arguments so they do not pile up.
19556   ac_sub_configure_args=
19557   ac_prev=
19558   eval "set x $ac_configure_args"
19559   shift
19560   for ac_arg
19561   do
19562     if test -n "$ac_prev"; then
19563       ac_prev=
19564       continue
19565     fi
19566     case $ac_arg in
19567     -cache-file | --cache-file | --cache-fil | --cache-fi \
19568     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19569       ac_prev=cache_file ;;
19570     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19571     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19572     | --c=*)
19573       ;;
19574     --config-cache | -C)
19575       ;;
19576     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19577       ac_prev=srcdir ;;
19578     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19579       ;;
19580     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19581       ac_prev=prefix ;;
19582     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19583       ;;
19584     *)
19585       case $ac_arg in
19586       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19587       esac
19588       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19589     esac
19590   done
19591
19592   # Always prepend --prefix to ensure using the same prefix
19593   # in subdir configurations.
19594   ac_arg="--prefix=$prefix"
19595   case $ac_arg in
19596   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19597   esac
19598   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19599
19600   ac_popdir=`pwd`
19601   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19602
19603     # Do not complain, so a configure script can configure whichever
19604     # parts of a large source tree are present.
19605     test -d "$srcdir/$ac_dir" || continue
19606
19607     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19608     echo "$as_me:$LINENO: $ac_msg" >&5
19609     echo "$ac_msg" >&6
19610     { as_dir="$ac_dir"
19611   case $as_dir in #(
19612   -*) as_dir=./$as_dir;;
19613   esac
19614   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19615     as_dirs=
19616     while :; do
19617       case $as_dir in #(
19618       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19619       *) as_qdir=$as_dir;;
19620       esac
19621       as_dirs="'$as_qdir' $as_dirs"
19622       as_dir=`$as_dirname -- "$as_dir" ||
19623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19624          X"$as_dir" : 'X\(//\)[^/]' \| \
19625          X"$as_dir" : 'X\(//\)$' \| \
19626          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19627 echo X"$as_dir" |
19628     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19629             s//\1/
19630             q
19631           }
19632           /^X\(\/\/\)[^/].*/{
19633             s//\1/
19634             q
19635           }
19636           /^X\(\/\/\)$/{
19637             s//\1/
19638             q
19639           }
19640           /^X\(\/\).*/{
19641             s//\1/
19642             q
19643           }
19644           s/.*/./; q'`
19645       test -d "$as_dir" && break
19646     done
19647     test -z "$as_dirs" || eval "mkdir $as_dirs"
19648   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19649 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19650    { (exit 1); exit 1; }; }; }
19651     ac_builddir=.
19652
19653 case "$ac_dir" in
19654 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19655 *)
19656   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19657   # A ".." for each directory in $ac_dir_suffix.
19658   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19659   case $ac_top_builddir_sub in
19660   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19661   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19662   esac ;;
19663 esac
19664 ac_abs_top_builddir=$ac_pwd
19665 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19666 # for backward compatibility:
19667 ac_top_builddir=$ac_top_build_prefix
19668
19669 case $srcdir in
19670   .)  # We are building in place.
19671     ac_srcdir=.
19672     ac_top_srcdir=$ac_top_builddir_sub
19673     ac_abs_top_srcdir=$ac_pwd ;;
19674   [\\/]* | ?:[\\/]* )  # Absolute name.
19675     ac_srcdir=$srcdir$ac_dir_suffix;
19676     ac_top_srcdir=$srcdir
19677     ac_abs_top_srcdir=$srcdir ;;
19678   *) # Relative name.
19679     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19680     ac_top_srcdir=$ac_top_build_prefix$srcdir
19681     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19682 esac
19683 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19684
19685
19686     cd "$ac_dir"
19687
19688     # Check for guested configure; otherwise get Cygnus style configure.
19689     if test -f "$ac_srcdir/configure.gnu"; then
19690       ac_sub_configure=$ac_srcdir/configure.gnu
19691     elif test -f "$ac_srcdir/configure"; then
19692       ac_sub_configure=$ac_srcdir/configure
19693     elif test -f "$ac_srcdir/configure.in"; then
19694       # This should be Cygnus configure.
19695       ac_sub_configure=$ac_aux_dir/configure
19696     else
19697       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19698 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19699       ac_sub_configure=
19700     fi
19701
19702     # The recursion is here.
19703     if test -n "$ac_sub_configure"; then
19704       # Make the cache file name correct relative to the subdirectory.
19705       case $cache_file in
19706       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19707       *) # Relative name.
19708         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19709       esac
19710
19711       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19712 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19713       # The eval makes quoting arguments work.
19714       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19715            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19716         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19717 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19718    { (exit 1); exit 1; }; }
19719     fi
19720
19721     cd "$ac_popdir"
19722   done
19723 fi
19724