[TableGen] Put a space between '*' and description in the autogenerated tablegen...
[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, and
1466                           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-binutils-include Specify path to binutils/include/ containing
1499                           plugin-api.h file for gold plugin.
1500   --with-bug-report-url   Specify the URL where bug reports should be
1501                           submitted (default=http://llvm.org/bugs/)
1502   --with-internal-prefix  Installation directory for internal files
1503   --with-python           path to python
1504   --with-oprofile=<prefix>
1505                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1506   --with-intel-jitevents  Notify Intel JIT profiling API of generated code
1507
1508
1509 Some influential environment variables:
1510   CC          C compiler command
1511   CFLAGS      C compiler flags
1512   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1513               nonstandard directory <lib dir>
1514   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515               you have headers in a nonstandard directory <include dir>
1516   CXX         C++ compiler command
1517   CXXFLAGS    C++ compiler flags
1518   CPP         C preprocessor
1519
1520 Use these variables to override the choices made by `configure' or to help
1521 it to find libraries and programs with nonstandard names/locations.
1522
1523 Report bugs to <http://llvm.org/bugs/>.
1524 _ACEOF
1525 ac_status=$?
1526 fi
1527
1528 if test "$ac_init_help" = "recursive"; then
1529   # If there are subdirs, report their specific --help.
1530   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531     test -d "$ac_dir" || continue
1532     ac_builddir=.
1533
1534 case "$ac_dir" in
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 *)
1537   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1538   # A ".." for each directory in $ac_dir_suffix.
1539   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1540   case $ac_top_builddir_sub in
1541   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1543   esac ;;
1544 esac
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1549
1550 case $srcdir in
1551   .)  # We are building in place.
1552     ac_srcdir=.
1553     ac_top_srcdir=$ac_top_builddir_sub
1554     ac_abs_top_srcdir=$ac_pwd ;;
1555   [\\/]* | ?:[\\/]* )  # Absolute name.
1556     ac_srcdir=$srcdir$ac_dir_suffix;
1557     ac_top_srcdir=$srcdir
1558     ac_abs_top_srcdir=$srcdir ;;
1559   *) # Relative name.
1560     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561     ac_top_srcdir=$ac_top_build_prefix$srcdir
1562     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1563 esac
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565
1566     cd "$ac_dir" || { ac_status=$?; continue; }
1567     # Check for guested configure.
1568     if test -f "$ac_srcdir/configure.gnu"; then
1569       echo &&
1570       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571     elif test -f "$ac_srcdir/configure"; then
1572       echo &&
1573       $SHELL "$ac_srcdir/configure" --help=recursive
1574     else
1575       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1576     fi || ac_status=$?
1577     cd "$ac_pwd" || { ac_status=$?; break; }
1578   done
1579 fi
1580
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1583   cat <<\_ACEOF
1584 LLVM configure 3.7.0svn
1585 generated by GNU Autoconf 2.60
1586
1587 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1588 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1591
1592 Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign.
1593 _ACEOF
1594   exit
1595 fi
1596 cat >config.log <<_ACEOF
1597 This file contains any messages produced by compilers while
1598 running configure, to aid debugging if configure makes a mistake.
1599
1600 It was created by LLVM $as_me 3.7.0svn, which was
1601 generated by GNU Autoconf 2.60.  Invocation command line was
1602
1603   $ $0 $@
1604
1605 _ACEOF
1606 exec 5>>config.log
1607 {
1608 cat <<_ASUNAME
1609 ## --------- ##
1610 ## Platform. ##
1611 ## --------- ##
1612
1613 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1614 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1615 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1616 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1617 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1618
1619 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1620 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1621
1622 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1623 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1624 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1625 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1626 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1627 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1628 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1629
1630 _ASUNAME
1631
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1634 do
1635   IFS=$as_save_IFS
1636   test -z "$as_dir" && as_dir=.
1637   echo "PATH: $as_dir"
1638 done
1639 IFS=$as_save_IFS
1640
1641 } >&5
1642
1643 cat >&5 <<_ACEOF
1644
1645
1646 ## ----------- ##
1647 ## Core tests. ##
1648 ## ----------- ##
1649
1650 _ACEOF
1651
1652
1653 # Keep a trace of the command line.
1654 # Strip out --no-create and --no-recursion so they do not pile up.
1655 # Strip out --silent because we don't want to record it for future runs.
1656 # Also quote any args containing shell meta-characters.
1657 # Make two passes to allow for proper duplicate-argument suppression.
1658 ac_configure_args=
1659 ac_configure_args0=
1660 ac_configure_args1=
1661 ac_must_keep_next=false
1662 for ac_pass in 1 2
1663 do
1664   for ac_arg
1665   do
1666     case $ac_arg in
1667     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1668     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1669     | -silent | --silent | --silen | --sile | --sil)
1670       continue ;;
1671     *\'*)
1672       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1673     esac
1674     case $ac_pass in
1675     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1676     2)
1677       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1678       if test $ac_must_keep_next = true; then
1679         ac_must_keep_next=false # Got value, back to normal.
1680       else
1681         case $ac_arg in
1682           *=* | --config-cache | -C | -disable-* | --disable-* \
1683           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1684           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1685           | -with-* | --with-* | -without-* | --without-* | --x)
1686             case "$ac_configure_args0 " in
1687               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1688             esac
1689             ;;
1690           -* ) ac_must_keep_next=true ;;
1691         esac
1692       fi
1693       ac_configure_args="$ac_configure_args '$ac_arg'"
1694       ;;
1695     esac
1696   done
1697 done
1698 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1699 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1700
1701 # When interrupted or exit'd, cleanup temporary files, and complete
1702 # config.log.  We remove comments because anyway the quotes in there
1703 # would cause problems or look ugly.
1704 # WARNING: Use '\'' to represent an apostrophe within the trap.
1705 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1706 trap 'exit_status=$?
1707   # Save into config.log some information that might help in debugging.
1708   {
1709     echo
1710
1711     cat <<\_ASBOX
1712 ## ---------------- ##
1713 ## Cache variables. ##
1714 ## ---------------- ##
1715 _ASBOX
1716     echo
1717     # The following way of writing the cache mishandles newlines in values,
1718 (
1719   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1720     eval ac_val=\$$ac_var
1721     case $ac_val in #(
1722     *${as_nl}*)
1723       case $ac_var in #(
1724       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1725 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1726       esac
1727       case $ac_var in #(
1728       _ | IFS | as_nl) ;; #(
1729       *) $as_unset $ac_var ;;
1730       esac ;;
1731     esac
1732   done
1733   (set) 2>&1 |
1734     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1735     *${as_nl}ac_space=\ *)
1736       sed -n \
1737         "s/'\''/'\''\\\\'\'''\''/g;
1738           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1739       ;; #(
1740     *)
1741       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1742       ;;
1743     esac |
1744     sort
1745 )
1746     echo
1747
1748     cat <<\_ASBOX
1749 ## ----------------- ##
1750 ## Output variables. ##
1751 ## ----------------- ##
1752 _ASBOX
1753     echo
1754     for ac_var in $ac_subst_vars
1755     do
1756       eval ac_val=\$$ac_var
1757       case $ac_val in
1758       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1759       esac
1760       echo "$ac_var='\''$ac_val'\''"
1761     done | sort
1762     echo
1763
1764     if test -n "$ac_subst_files"; then
1765       cat <<\_ASBOX
1766 ## ------------------- ##
1767 ## File substitutions. ##
1768 ## ------------------- ##
1769 _ASBOX
1770       echo
1771       for ac_var in $ac_subst_files
1772       do
1773         eval ac_val=\$$ac_var
1774         case $ac_val in
1775         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1776         esac
1777         echo "$ac_var='\''$ac_val'\''"
1778       done | sort
1779       echo
1780     fi
1781
1782     if test -s confdefs.h; then
1783       cat <<\_ASBOX
1784 ## ----------- ##
1785 ## confdefs.h. ##
1786 ## ----------- ##
1787 _ASBOX
1788       echo
1789       cat confdefs.h
1790       echo
1791     fi
1792     test "$ac_signal" != 0 &&
1793       echo "$as_me: caught signal $ac_signal"
1794     echo "$as_me: exit $exit_status"
1795   } >&5
1796   rm -f core *.core core.conftest.* &&
1797     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1798     exit $exit_status
1799 ' 0
1800 for ac_signal in 1 2 13 15; do
1801   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1802 done
1803 ac_signal=0
1804
1805 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1806 rm -f -r conftest* confdefs.h
1807
1808 # Predefined preprocessor variables.
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_NAME "$PACKAGE_NAME"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1822 _ACEOF
1823
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_STRING "$PACKAGE_STRING"
1827 _ACEOF
1828
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1832 _ACEOF
1833
1834
1835 # Let the site file select an alternate cache file if it wants to.
1836 # Prefer explicitly selected file to automatically selected ones.
1837 if test -n "$CONFIG_SITE"; then
1838   set x "$CONFIG_SITE"
1839 elif test "x$prefix" != xNONE; then
1840   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1841 else
1842   set x "$ac_default_prefix/share/config.site" \
1843         "$ac_default_prefix/etc/config.site"
1844 fi
1845 shift
1846 for ac_site_file
1847 do
1848   if test -r "$ac_site_file"; then
1849     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1850 echo "$as_me: loading site script $ac_site_file" >&6;}
1851     sed 's/^/| /' "$ac_site_file" >&5
1852     . "$ac_site_file"
1853   fi
1854 done
1855
1856 if test -r "$cache_file"; then
1857   # Some versions of bash will fail to source /dev/null (special
1858   # files actually), so we avoid doing that.
1859   if test -f "$cache_file"; then
1860     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1861 echo "$as_me: loading cache $cache_file" >&6;}
1862     case $cache_file in
1863       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1864       *)                      . "./$cache_file";;
1865     esac
1866   fi
1867 else
1868   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1869 echo "$as_me: creating cache $cache_file" >&6;}
1870   >$cache_file
1871 fi
1872
1873 # Check that the precious variables saved in the cache have kept the same
1874 # value.
1875 ac_cache_corrupted=false
1876 for ac_var in $ac_precious_vars; do
1877   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1878   eval ac_new_set=\$ac_env_${ac_var}_set
1879   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1880   eval ac_new_val=\$ac_env_${ac_var}_value
1881   case $ac_old_set,$ac_new_set in
1882     set,)
1883       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1884 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1885       ac_cache_corrupted=: ;;
1886     ,set)
1887       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1888 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1889       ac_cache_corrupted=: ;;
1890     ,);;
1891     *)
1892       if test "x$ac_old_val" != "x$ac_new_val"; then
1893         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1894 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1895         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1896 echo "$as_me:   former value:  $ac_old_val" >&2;}
1897         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1898 echo "$as_me:   current value: $ac_new_val" >&2;}
1899         ac_cache_corrupted=:
1900       fi;;
1901   esac
1902   # Pass precious variables to config.status.
1903   if test "$ac_new_set" = set; then
1904     case $ac_new_val in
1905     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1906     *) ac_arg=$ac_var=$ac_new_val ;;
1907     esac
1908     case " $ac_configure_args " in
1909       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1910       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1911     esac
1912   fi
1913 done
1914 if $ac_cache_corrupted; then
1915   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1916 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1917   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1918 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1919    { (exit 1); exit 1; }; }
1920 fi
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946 ac_ext=c
1947 ac_cpp='$CPP $CPPFLAGS'
1948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951
1952
1953
1954 LLVM_VERSION_MAJOR=3
1955 LLVM_VERSION_MINOR=7
1956 LLVM_VERSION_PATCH=0
1957 LLVM_VERSION_SUFFIX=svn
1958
1959
1960 cat >>confdefs.h <<_ACEOF
1961 #define LLVM_VERSION_MAJOR $LLVM_VERSION_MAJOR
1962 _ACEOF
1963
1964
1965 cat >>confdefs.h <<_ACEOF
1966 #define LLVM_VERSION_MINOR $LLVM_VERSION_MINOR
1967 _ACEOF
1968
1969
1970 cat >>confdefs.h <<_ACEOF
1971 #define LLVM_VERSION_PATCH $LLVM_VERSION_PATCH
1972 _ACEOF
1973
1974
1975 cat >>confdefs.h <<_ACEOF
1976 #define LLVM_VERSION_STRING "$PACKAGE_VERSION"
1977 _ACEOF
1978
1979
1980
1981
1982
1983
1984
1985 LLVM_COPYRIGHT="Copyright (c) 2003-2015 University of Illinois at Urbana-Champaign."
1986
1987
1988
1989
1990
1991
1992
1993 ac_aux_dir=
1994 for ac_dir in autoconf "$srcdir"/autoconf; do
1995   if test -f "$ac_dir/install-sh"; then
1996     ac_aux_dir=$ac_dir
1997     ac_install_sh="$ac_aux_dir/install-sh -c"
1998     break
1999   elif test -f "$ac_dir/install.sh"; then
2000     ac_aux_dir=$ac_dir
2001     ac_install_sh="$ac_aux_dir/install.sh -c"
2002     break
2003   elif test -f "$ac_dir/shtool"; then
2004     ac_aux_dir=$ac_dir
2005     ac_install_sh="$ac_aux_dir/shtool install -c"
2006     break
2007   fi
2008 done
2009 if test -z "$ac_aux_dir"; then
2010   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2011 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
2012    { (exit 1); exit 1; }; }
2013 fi
2014
2015 # These three variables are undocumented and unsupported,
2016 # and are intended to be withdrawn in a future Autoconf release.
2017 # They can cause serious problems if a builder's source tree is in a directory
2018 # whose full name contains unusual characters.
2019 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2020 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2021 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2022
2023
2024
2025 if test ${srcdir} != "." ; then
2026   if test -f ${srcdir}/include/llvm/Config/config.h ; then
2027     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
2028 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2029    { (exit 1); exit 1; }; }
2030   fi
2031 fi
2032
2033 if test ${srcdir} == "." ; then
2034   { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2035 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2036   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2037 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2038   { echo "$as_me:$LINENO: WARNING: *                                   WARNING                                          *" >&5
2039 echo "$as_me: WARNING: *                                   WARNING                                          *" >&2;}
2040   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2041 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2042   { echo "$as_me:$LINENO: WARNING: *                        In-source builds are deprecated.                            *" >&5
2043 echo "$as_me: WARNING: *                        In-source builds are deprecated.                            *" >&2;}
2044   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2045 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2046   { echo "$as_me:$LINENO: WARNING: *               Please configure from a separate build directory!                    *" >&5
2047 echo "$as_me: WARNING: *               Please configure from a separate build directory!                    *" >&2;}
2048   { echo "$as_me:$LINENO: WARNING: *                                                                                    *" >&5
2049 echo "$as_me: WARNING: *                                                                                    *" >&2;}
2050   { echo "$as_me:$LINENO: WARNING: **************************************************************************************" >&5
2051 echo "$as_me: WARNING: **************************************************************************************" >&2;}
2052 fi
2053
2054 : ${CFLAGS=}
2055 : ${CXXFLAGS=}
2056
2057 ac_ext=c
2058 ac_cpp='$CPP $CPPFLAGS'
2059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2062 if test -n "$ac_tool_prefix"; then
2063   for ac_prog in clang gcc
2064   do
2065     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2066 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2069 if test "${ac_cv_prog_CC+set}" = set; then
2070   echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072   if test -n "$CC"; then
2073   ac_cv_prog_CC="$CC" # Let the user override the test.
2074 else
2075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076 for as_dir in $PATH
2077 do
2078   IFS=$as_save_IFS
2079   test -z "$as_dir" && as_dir=.
2080   for ac_exec_ext in '' $ac_executable_extensions; do
2081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2082     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084     break 2
2085   fi
2086 done
2087 done
2088 IFS=$as_save_IFS
2089
2090 fi
2091 fi
2092 CC=$ac_cv_prog_CC
2093 if test -n "$CC"; then
2094   { echo "$as_me:$LINENO: result: $CC" >&5
2095 echo "${ECHO_T}$CC" >&6; }
2096 else
2097   { echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6; }
2099 fi
2100
2101
2102     test -n "$CC" && break
2103   done
2104 fi
2105 if test -z "$CC"; then
2106   ac_ct_CC=$CC
2107   for ac_prog in clang gcc
2108 do
2109   # Extract the first word of "$ac_prog", so it can be a program name with args.
2110 set dummy $ac_prog; ac_word=$2
2111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2113 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2114   echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116   if test -n "$ac_ct_CC"; then
2117   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2118 else
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122   IFS=$as_save_IFS
2123   test -z "$as_dir" && as_dir=.
2124   for ac_exec_ext in '' $ac_executable_extensions; do
2125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2126     ac_cv_prog_ac_ct_CC="$ac_prog"
2127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128     break 2
2129   fi
2130 done
2131 done
2132 IFS=$as_save_IFS
2133
2134 fi
2135 fi
2136 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2137 if test -n "$ac_ct_CC"; then
2138   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2139 echo "${ECHO_T}$ac_ct_CC" >&6; }
2140 else
2141   { echo "$as_me:$LINENO: result: no" >&5
2142 echo "${ECHO_T}no" >&6; }
2143 fi
2144
2145
2146   test -n "$ac_ct_CC" && break
2147 done
2148
2149   if test "x$ac_ct_CC" = x; then
2150     CC=""
2151   else
2152     case $cross_compiling:$ac_tool_warned in
2153 yes:)
2154 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2155 whose name does not start with the host triplet.  If you think this
2156 configuration is useful to you, please write to autoconf@gnu.org." >&5
2157 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2158 whose name does not start with the host triplet.  If you think this
2159 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2160 ac_tool_warned=yes ;;
2161 esac
2162     CC=$ac_ct_CC
2163   fi
2164 fi
2165
2166
2167 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2168 See \`config.log' for more details." >&5
2169 echo "$as_me: error: no acceptable C compiler found in \$PATH
2170 See \`config.log' for more details." >&2;}
2171    { (exit 1); exit 1; }; }
2172
2173 # Provide some information about the compiler.
2174 echo "$as_me:$LINENO: checking for C compiler version" >&5
2175 ac_compiler=`set X $ac_compile; echo $2`
2176 { (ac_try="$ac_compiler --version >&5"
2177 case "(($ac_try" in
2178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179   *) ac_try_echo=$ac_try;;
2180 esac
2181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2182   (eval "$ac_compiler --version >&5") 2>&5
2183   ac_status=$?
2184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185   (exit $ac_status); }
2186 { (ac_try="$ac_compiler -v >&5"
2187 case "(($ac_try" in
2188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2189   *) ac_try_echo=$ac_try;;
2190 esac
2191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2192   (eval "$ac_compiler -v >&5") 2>&5
2193   ac_status=$?
2194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195   (exit $ac_status); }
2196 { (ac_try="$ac_compiler -V >&5"
2197 case "(($ac_try" in
2198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199   *) ac_try_echo=$ac_try;;
2200 esac
2201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2202   (eval "$ac_compiler -V >&5") 2>&5
2203   ac_status=$?
2204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205   (exit $ac_status); }
2206
2207 cat >conftest.$ac_ext <<_ACEOF
2208 /* confdefs.h.  */
2209 _ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h.  */
2213
2214 int
2215 main ()
2216 {
2217
2218   ;
2219   return 0;
2220 }
2221 _ACEOF
2222 ac_clean_files_save=$ac_clean_files
2223 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2224 # Try to create an executable without -o first, disregard a.out.
2225 # It will help us diagnose broken compilers, and finding out an intuition
2226 # of exeext.
2227 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2228 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2229 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2230 #
2231 # List of possible output files, starting from the most likely.
2232 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2233 # only as a last resort.  b.out is created by i960 compilers.
2234 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2235 #
2236 # The IRIX 6 linker writes into existing files which may not be
2237 # executable, retaining their permissions.  Remove them first so a
2238 # subsequent execution test works.
2239 ac_rmfiles=
2240 for ac_file in $ac_files
2241 do
2242   case $ac_file in
2243     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2244     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2245   esac
2246 done
2247 rm -f $ac_rmfiles
2248
2249 if { (ac_try="$ac_link_default"
2250 case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2255   (eval "$ac_link_default") 2>&5
2256   ac_status=$?
2257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258   (exit $ac_status); }; then
2259   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2260 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2261 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2262 # so that the user can short-circuit this test for compilers unknown to
2263 # Autoconf.
2264 for ac_file in $ac_files
2265 do
2266   test -f "$ac_file" || continue
2267   case $ac_file in
2268     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2269         ;;
2270     [ab].out )
2271         # We found the default executable, but exeext='' is most
2272         # certainly right.
2273         break;;
2274     *.* )
2275         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2276         then :; else
2277            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2278         fi
2279         # We set ac_cv_exeext here because the later test for it is not
2280         # safe: cross compilers may not add the suffix if given an `-o'
2281         # argument, so we may need to know it at that point already.
2282         # Even if this section looks crufty: it has the advantage of
2283         # actually working.
2284         break;;
2285     * )
2286         break;;
2287   esac
2288 done
2289 test "$ac_cv_exeext" = no && ac_cv_exeext=
2290
2291 else
2292   echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2296 See \`config.log' for more details." >&5
2297 echo "$as_me: error: C compiler cannot create executables
2298 See \`config.log' for more details." >&2;}
2299    { (exit 77); exit 77; }; }
2300 fi
2301
2302 ac_exeext=$ac_cv_exeext
2303 { echo "$as_me:$LINENO: result: $ac_file" >&5
2304 echo "${ECHO_T}$ac_file" >&6; }
2305
2306 # Check that the compiler produces executables we can run.  If not, either
2307 # the compiler is broken, or we cross compile.
2308 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2309 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2310 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2311 # If not cross compiling, check that we can run a simple program.
2312 if test "$cross_compiling" != yes; then
2313   if { ac_try='./$ac_file'
2314   { (case "(($ac_try" in
2315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316   *) ac_try_echo=$ac_try;;
2317 esac
2318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2319   (eval "$ac_try") 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; }; then
2323     cross_compiling=no
2324   else
2325     if test "$cross_compiling" = maybe; then
2326         cross_compiling=yes
2327     else
2328         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2329 If you meant to cross compile, use \`--host'.
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot run C compiled programs.
2332 If you meant to cross compile, use \`--host'.
2333 See \`config.log' for more details." >&2;}
2334    { (exit 1); exit 1; }; }
2335     fi
2336   fi
2337 fi
2338 { echo "$as_me:$LINENO: result: yes" >&5
2339 echo "${ECHO_T}yes" >&6; }
2340
2341 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2342 ac_clean_files=$ac_clean_files_save
2343 # Check that the compiler produces executables we can run.  If not, either
2344 # the compiler is broken, or we cross compile.
2345 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2346 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2347 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2348 echo "${ECHO_T}$cross_compiling" >&6; }
2349
2350 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2351 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2352 if { (ac_try="$ac_link"
2353 case "(($ac_try" in
2354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355   *) ac_try_echo=$ac_try;;
2356 esac
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358   (eval "$ac_link") 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }; then
2362   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2363 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2364 # work properly (i.e., refer to `conftest.exe'), while it won't with
2365 # `rm'.
2366 for ac_file in conftest.exe conftest conftest.*; do
2367   test -f "$ac_file" || continue
2368   case $ac_file in
2369     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2370     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2371           break;;
2372     * ) break;;
2373   esac
2374 done
2375 else
2376   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2377 See \`config.log' for more details." >&5
2378 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&2;}
2380    { (exit 1); exit 1; }; }
2381 fi
2382
2383 rm -f conftest$ac_cv_exeext
2384 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2385 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2386
2387 rm -f conftest.$ac_ext
2388 EXEEXT=$ac_cv_exeext
2389 ac_exeext=$EXEEXT
2390 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2391 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2392 if test "${ac_cv_objext+set}" = set; then
2393   echo $ECHO_N "(cached) $ECHO_C" >&6
2394 else
2395   cat >conftest.$ac_ext <<_ACEOF
2396 /* confdefs.h.  */
2397 _ACEOF
2398 cat confdefs.h >>conftest.$ac_ext
2399 cat >>conftest.$ac_ext <<_ACEOF
2400 /* end confdefs.h.  */
2401
2402 int
2403 main ()
2404 {
2405
2406   ;
2407   return 0;
2408 }
2409 _ACEOF
2410 rm -f conftest.o conftest.obj
2411 if { (ac_try="$ac_compile"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417   (eval "$ac_compile") 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }; then
2421   for ac_file in conftest.o conftest.obj conftest.*; do
2422   test -f "$ac_file" || continue;
2423   case $ac_file in
2424     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2425     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2426        break;;
2427   esac
2428 done
2429 else
2430   echo "$as_me: failed program was:" >&5
2431 sed 's/^/| /' conftest.$ac_ext >&5
2432
2433 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2434 See \`config.log' for more details." >&5
2435 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2436 See \`config.log' for more details." >&2;}
2437    { (exit 1); exit 1; }; }
2438 fi
2439
2440 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2441 fi
2442 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2443 echo "${ECHO_T}$ac_cv_objext" >&6; }
2444 OBJEXT=$ac_cv_objext
2445 ac_objext=$OBJEXT
2446 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2447 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2448 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h.  */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h.  */
2457
2458 int
2459 main ()
2460 {
2461 #ifndef __GNUC__
2462        choke me
2463 #endif
2464
2465   ;
2466   return 0;
2467 }
2468 _ACEOF
2469 rm -f conftest.$ac_objext
2470 if { (ac_try="$ac_compile"
2471 case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2476   (eval "$ac_compile") 2>conftest.er1
2477   ac_status=$?
2478   grep -v '^ *+' conftest.er1 >conftest.err
2479   rm -f conftest.er1
2480   cat conftest.err >&5
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); } &&
2483          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2484   { (case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489   (eval "$ac_try") 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; } &&
2493          { ac_try='test -s conftest.$ac_objext'
2494   { (case "(($ac_try" in
2495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496   *) ac_try_echo=$ac_try;;
2497 esac
2498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2499   (eval "$ac_try") 2>&5
2500   ac_status=$?
2501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }; }; then
2503   ac_compiler_gnu=yes
2504 else
2505   echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508         ac_compiler_gnu=no
2509 fi
2510
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2513
2514 fi
2515 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2516 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2517 GCC=`test $ac_compiler_gnu = yes && echo yes`
2518 ac_test_CFLAGS=${CFLAGS+set}
2519 ac_save_CFLAGS=$CFLAGS
2520 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2521 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_cc_g+set}" = set; then
2523   echo $ECHO_N "(cached) $ECHO_C" >&6
2524 else
2525   ac_save_c_werror_flag=$ac_c_werror_flag
2526    ac_c_werror_flag=yes
2527    ac_cv_prog_cc_g=no
2528    CFLAGS="-g"
2529    cat >conftest.$ac_ext <<_ACEOF
2530 /* confdefs.h.  */
2531 _ACEOF
2532 cat confdefs.h >>conftest.$ac_ext
2533 cat >>conftest.$ac_ext <<_ACEOF
2534 /* end confdefs.h.  */
2535
2536 int
2537 main ()
2538 {
2539
2540   ;
2541   return 0;
2542 }
2543 _ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (ac_try="$ac_compile"
2546 case "(($ac_try" in
2547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2548   *) ac_try_echo=$ac_try;;
2549 esac
2550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2551   (eval "$ac_compile") 2>conftest.er1
2552   ac_status=$?
2553   grep -v '^ *+' conftest.er1 >conftest.err
2554   rm -f conftest.er1
2555   cat conftest.err >&5
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2559   { (case "(($ac_try" in
2560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2561   *) ac_try_echo=$ac_try;;
2562 esac
2563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2564   (eval "$ac_try") 2>&5
2565   ac_status=$?
2566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567   (exit $ac_status); }; } &&
2568          { ac_try='test -s conftest.$ac_objext'
2569   { (case "(($ac_try" in
2570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2571   *) ac_try_echo=$ac_try;;
2572 esac
2573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2574   (eval "$ac_try") 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }; }; then
2578   ac_cv_prog_cc_g=yes
2579 else
2580   echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583         CFLAGS=""
2584       cat >conftest.$ac_ext <<_ACEOF
2585 /* confdefs.h.  */
2586 _ACEOF
2587 cat confdefs.h >>conftest.$ac_ext
2588 cat >>conftest.$ac_ext <<_ACEOF
2589 /* end confdefs.h.  */
2590
2591 int
2592 main ()
2593 {
2594
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 rm -f conftest.$ac_objext
2600 if { (ac_try="$ac_compile"
2601 case "(($ac_try" in
2602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2603   *) ac_try_echo=$ac_try;;
2604 esac
2605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2606   (eval "$ac_compile") 2>conftest.er1
2607   ac_status=$?
2608   grep -v '^ *+' conftest.er1 >conftest.err
2609   rm -f conftest.er1
2610   cat conftest.err >&5
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); } &&
2613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2614   { (case "(($ac_try" in
2615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616   *) ac_try_echo=$ac_try;;
2617 esac
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619   (eval "$ac_try") 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; } &&
2623          { ac_try='test -s conftest.$ac_objext'
2624   { (case "(($ac_try" in
2625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2626   *) ac_try_echo=$ac_try;;
2627 esac
2628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2629   (eval "$ac_try") 2>&5
2630   ac_status=$?
2631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632   (exit $ac_status); }; }; then
2633   :
2634 else
2635   echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638         ac_c_werror_flag=$ac_save_c_werror_flag
2639          CFLAGS="-g"
2640          cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646
2647 int
2648 main ()
2649 {
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (ac_try="$ac_compile"
2657 case "(($ac_try" in
2658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2659   *) ac_try_echo=$ac_try;;
2660 esac
2661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2662   (eval "$ac_compile") 2>conftest.er1
2663   ac_status=$?
2664   grep -v '^ *+' conftest.er1 >conftest.err
2665   rm -f conftest.er1
2666   cat conftest.err >&5
2667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668   (exit $ac_status); } &&
2669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2670   { (case "(($ac_try" in
2671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672   *) ac_try_echo=$ac_try;;
2673 esac
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675   (eval "$ac_try") 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; } &&
2679          { ac_try='test -s conftest.$ac_objext'
2680   { (case "(($ac_try" in
2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682   *) ac_try_echo=$ac_try;;
2683 esac
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685   (eval "$ac_try") 2>&5
2686   ac_status=$?
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); }; }; then
2689   ac_cv_prog_cc_g=yes
2690 else
2691   echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2693
2694
2695 fi
2696
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 fi
2699
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701 fi
2702
2703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2704    ac_c_werror_flag=$ac_save_c_werror_flag
2705 fi
2706 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2707 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2708 if test "$ac_test_CFLAGS" = set; then
2709   CFLAGS=$ac_save_CFLAGS
2710 elif test $ac_cv_prog_cc_g = yes; then
2711   if test "$GCC" = yes; then
2712     CFLAGS="-g -O2"
2713   else
2714     CFLAGS="-g"
2715   fi
2716 else
2717   if test "$GCC" = yes; then
2718     CFLAGS="-O2"
2719   else
2720     CFLAGS=
2721   fi
2722 fi
2723 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2724 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2725 if test "${ac_cv_prog_cc_c89+set}" = set; then
2726   echo $ECHO_N "(cached) $ECHO_C" >&6
2727 else
2728   ac_cv_prog_cc_c89=no
2729 ac_save_CC=$CC
2730 cat >conftest.$ac_ext <<_ACEOF
2731 /* confdefs.h.  */
2732 _ACEOF
2733 cat confdefs.h >>conftest.$ac_ext
2734 cat >>conftest.$ac_ext <<_ACEOF
2735 /* end confdefs.h.  */
2736 #include <stdarg.h>
2737 #include <stdio.h>
2738 #include <sys/types.h>
2739 #include <sys/stat.h>
2740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2741 struct buf { int x; };
2742 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2743 static char *e (p, i)
2744      char **p;
2745      int i;
2746 {
2747   return p[i];
2748 }
2749 static char *f (char * (*g) (char **, int), char **p, ...)
2750 {
2751   char *s;
2752   va_list v;
2753   va_start (v,p);
2754   s = g (p, va_arg (v,int));
2755   va_end (v);
2756   return s;
2757 }
2758
2759 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2760    function prototypes and stuff, but not '\xHH' hex character constants.
2761    These don't provoke an error unfortunately, instead are silently treated
2762    as 'x'.  The following induces an error, until -std is added to get
2763    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2764    array size at least.  It's necessary to write '\x00'==0 to get something
2765    that's true only with -std.  */
2766 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2767
2768 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2769    inside strings and character constants.  */
2770 #define FOO(x) 'x'
2771 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2772
2773 int test (int i, double x);
2774 struct s1 {int (*f) (int a);};
2775 struct s2 {int (*f) (double a);};
2776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2777 int argc;
2778 char **argv;
2779 int
2780 main ()
2781 {
2782 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2788         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2789 do
2790   CC="$ac_save_CC $ac_arg"
2791   rm -f conftest.$ac_objext
2792 if { (ac_try="$ac_compile"
2793 case "(($ac_try" in
2794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795   *) ac_try_echo=$ac_try;;
2796 esac
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798   (eval "$ac_compile") 2>conftest.er1
2799   ac_status=$?
2800   grep -v '^ *+' conftest.er1 >conftest.err
2801   rm -f conftest.er1
2802   cat conftest.err >&5
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); } &&
2805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2806   { (case "(($ac_try" in
2807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808   *) ac_try_echo=$ac_try;;
2809 esac
2810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811   (eval "$ac_try") 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; } &&
2815          { ac_try='test -s conftest.$ac_objext'
2816   { (case "(($ac_try" in
2817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818   *) ac_try_echo=$ac_try;;
2819 esac
2820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821   (eval "$ac_try") 2>&5
2822   ac_status=$?
2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824   (exit $ac_status); }; }; then
2825   ac_cv_prog_cc_c89=$ac_arg
2826 else
2827   echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2829
2830
2831 fi
2832
2833 rm -f core conftest.err conftest.$ac_objext
2834   test "x$ac_cv_prog_cc_c89" != "xno" && break
2835 done
2836 rm -f conftest.$ac_ext
2837 CC=$ac_save_CC
2838
2839 fi
2840 # AC_CACHE_VAL
2841 case "x$ac_cv_prog_cc_c89" in
2842   x)
2843     { echo "$as_me:$LINENO: result: none needed" >&5
2844 echo "${ECHO_T}none needed" >&6; } ;;
2845   xno)
2846     { echo "$as_me:$LINENO: result: unsupported" >&5
2847 echo "${ECHO_T}unsupported" >&6; } ;;
2848   *)
2849     CC="$CC $ac_cv_prog_cc_c89"
2850     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2851 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2852 esac
2853
2854
2855 ac_ext=c
2856 ac_cpp='$CPP $CPPFLAGS'
2857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2860
2861 ac_ext=cpp
2862 ac_cpp='$CXXCPP $CPPFLAGS'
2863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2866 if test -z "$CXX"; then
2867   if test -n "$CCC"; then
2868     CXX=$CCC
2869   else
2870     if test -n "$ac_tool_prefix"; then
2871   for ac_prog in clang++ g++
2872   do
2873     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2874 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2877 if test "${ac_cv_prog_CXX+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   if test -n "$CXX"; then
2881   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886   IFS=$as_save_IFS
2887   test -z "$as_dir" && as_dir=.
2888   for ac_exec_ext in '' $ac_executable_extensions; do
2889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2890     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892     break 2
2893   fi
2894 done
2895 done
2896 IFS=$as_save_IFS
2897
2898 fi
2899 fi
2900 CXX=$ac_cv_prog_CXX
2901 if test -n "$CXX"; then
2902   { echo "$as_me:$LINENO: result: $CXX" >&5
2903 echo "${ECHO_T}$CXX" >&6; }
2904 else
2905   { echo "$as_me:$LINENO: result: no" >&5
2906 echo "${ECHO_T}no" >&6; }
2907 fi
2908
2909
2910     test -n "$CXX" && break
2911   done
2912 fi
2913 if test -z "$CXX"; then
2914   ac_ct_CXX=$CXX
2915   for ac_prog in clang++ g++
2916 do
2917   # Extract the first word of "$ac_prog", so it can be a program name with args.
2918 set dummy $ac_prog; ac_word=$2
2919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2921 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924   if test -n "$ac_ct_CXX"; then
2925   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930   IFS=$as_save_IFS
2931   test -z "$as_dir" && as_dir=.
2932   for ac_exec_ext in '' $ac_executable_extensions; do
2933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2934     ac_cv_prog_ac_ct_CXX="$ac_prog"
2935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936     break 2
2937   fi
2938 done
2939 done
2940 IFS=$as_save_IFS
2941
2942 fi
2943 fi
2944 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2945 if test -n "$ac_ct_CXX"; then
2946   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2947 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2948 else
2949   { echo "$as_me:$LINENO: result: no" >&5
2950 echo "${ECHO_T}no" >&6; }
2951 fi
2952
2953
2954   test -n "$ac_ct_CXX" && break
2955 done
2956
2957   if test "x$ac_ct_CXX" = x; then
2958     CXX="g++"
2959   else
2960     case $cross_compiling:$ac_tool_warned in
2961 yes:)
2962 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2963 whose name does not start with the host triplet.  If you think this
2964 configuration is useful to you, please write to autoconf@gnu.org." >&5
2965 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2966 whose name does not start with the host triplet.  If you think this
2967 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2968 ac_tool_warned=yes ;;
2969 esac
2970     CXX=$ac_ct_CXX
2971   fi
2972 fi
2973
2974   fi
2975 fi
2976 # Provide some information about the compiler.
2977 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2978 ac_compiler=`set X $ac_compile; echo $2`
2979 { (ac_try="$ac_compiler --version >&5"
2980 case "(($ac_try" in
2981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982   *) ac_try_echo=$ac_try;;
2983 esac
2984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985   (eval "$ac_compiler --version >&5") 2>&5
2986   ac_status=$?
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); }
2989 { (ac_try="$ac_compiler -v >&5"
2990 case "(($ac_try" in
2991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992   *) ac_try_echo=$ac_try;;
2993 esac
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995   (eval "$ac_compiler -v >&5") 2>&5
2996   ac_status=$?
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); }
2999 { (ac_try="$ac_compiler -V >&5"
3000 case "(($ac_try" in
3001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002   *) ac_try_echo=$ac_try;;
3003 esac
3004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3005   (eval "$ac_compiler -V >&5") 2>&5
3006   ac_status=$?
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); }
3009
3010 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3011 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3012 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3013   echo $ECHO_N "(cached) $ECHO_C" >&6
3014 else
3015   cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h.  */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
3020 /* end confdefs.h.  */
3021
3022 int
3023 main ()
3024 {
3025 #ifndef __GNUC__
3026        choke me
3027 #endif
3028
3029   ;
3030   return 0;
3031 }
3032 _ACEOF
3033 rm -f conftest.$ac_objext
3034 if { (ac_try="$ac_compile"
3035 case "(($ac_try" in
3036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037   *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040   (eval "$ac_compile") 2>conftest.er1
3041   ac_status=$?
3042   grep -v '^ *+' conftest.er1 >conftest.err
3043   rm -f conftest.er1
3044   cat conftest.err >&5
3045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046   (exit $ac_status); } &&
3047          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3048   { (case "(($ac_try" in
3049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050   *) ac_try_echo=$ac_try;;
3051 esac
3052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053   (eval "$ac_try") 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); }; } &&
3057          { ac_try='test -s conftest.$ac_objext'
3058   { (case "(($ac_try" in
3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060   *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063   (eval "$ac_try") 2>&5
3064   ac_status=$?
3065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066   (exit $ac_status); }; }; then
3067   ac_compiler_gnu=yes
3068 else
3069   echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3071
3072         ac_compiler_gnu=no
3073 fi
3074
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3076 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3077
3078 fi
3079 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3080 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3081 GXX=`test $ac_compiler_gnu = yes && echo yes`
3082 ac_test_CXXFLAGS=${CXXFLAGS+set}
3083 ac_save_CXXFLAGS=$CXXFLAGS
3084 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3085 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3086 if test "${ac_cv_prog_cxx_g+set}" = set; then
3087   echo $ECHO_N "(cached) $ECHO_C" >&6
3088 else
3089   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3090    ac_cxx_werror_flag=yes
3091    ac_cv_prog_cxx_g=no
3092    CXXFLAGS="-g"
3093    cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099
3100 int
3101 main ()
3102 {
3103
3104   ;
3105   return 0;
3106 }
3107 _ACEOF
3108 rm -f conftest.$ac_objext
3109 if { (ac_try="$ac_compile"
3110 case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_compile") 2>conftest.er1
3116   ac_status=$?
3117   grep -v '^ *+' conftest.er1 >conftest.err
3118   rm -f conftest.er1
3119   cat conftest.err >&5
3120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121   (exit $ac_status); } &&
3122          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3123   { (case "(($ac_try" in
3124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125   *) ac_try_echo=$ac_try;;
3126 esac
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128   (eval "$ac_try") 2>&5
3129   ac_status=$?
3130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131   (exit $ac_status); }; } &&
3132          { ac_try='test -s conftest.$ac_objext'
3133   { (case "(($ac_try" in
3134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135   *) ac_try_echo=$ac_try;;
3136 esac
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138   (eval "$ac_try") 2>&5
3139   ac_status=$?
3140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141   (exit $ac_status); }; }; then
3142   ac_cv_prog_cxx_g=yes
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147         CXXFLAGS=""
3148       cat >conftest.$ac_ext <<_ACEOF
3149 /* confdefs.h.  */
3150 _ACEOF
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h.  */
3154
3155 int
3156 main ()
3157 {
3158
3159   ;
3160   return 0;
3161 }
3162 _ACEOF
3163 rm -f conftest.$ac_objext
3164 if { (ac_try="$ac_compile"
3165 case "(($ac_try" in
3166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167   *) ac_try_echo=$ac_try;;
3168 esac
3169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170   (eval "$ac_compile") 2>conftest.er1
3171   ac_status=$?
3172   grep -v '^ *+' conftest.er1 >conftest.err
3173   rm -f conftest.er1
3174   cat conftest.err >&5
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); } &&
3177          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3178   { (case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_try") 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }; } &&
3187          { ac_try='test -s conftest.$ac_objext'
3188   { (case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193   (eval "$ac_try") 2>&5
3194   ac_status=$?
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); }; }; then
3197   :
3198 else
3199   echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3203          CXXFLAGS="-g"
3204          cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h.  */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h.  */
3210
3211 int
3212 main ()
3213 {
3214
3215   ;
3216   return 0;
3217 }
3218 _ACEOF
3219 rm -f conftest.$ac_objext
3220 if { (ac_try="$ac_compile"
3221 case "(($ac_try" in
3222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223   *) ac_try_echo=$ac_try;;
3224 esac
3225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3226   (eval "$ac_compile") 2>conftest.er1
3227   ac_status=$?
3228   grep -v '^ *+' conftest.er1 >conftest.err
3229   rm -f conftest.er1
3230   cat conftest.err >&5
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); } &&
3233          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3234   { (case "(($ac_try" in
3235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236   *) ac_try_echo=$ac_try;;
3237 esac
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239   (eval "$ac_try") 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }; } &&
3243          { ac_try='test -s conftest.$ac_objext'
3244   { (case "(($ac_try" in
3245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246   *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249   (eval "$ac_try") 2>&5
3250   ac_status=$?
3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); }; }; then
3253   ac_cv_prog_cxx_g=yes
3254 else
3255   echo "$as_me: failed program was:" >&5
3256 sed 's/^/| /' conftest.$ac_ext >&5
3257
3258
3259 fi
3260
3261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 fi
3263
3264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 fi
3266
3267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3268    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3269 fi
3270 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3271 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3272 if test "$ac_test_CXXFLAGS" = set; then
3273   CXXFLAGS=$ac_save_CXXFLAGS
3274 elif test $ac_cv_prog_cxx_g = yes; then
3275   if test "$GXX" = yes; then
3276     CXXFLAGS="-g -O2"
3277   else
3278     CXXFLAGS="-g"
3279   fi
3280 else
3281   if test "$GXX" = yes; then
3282     CXXFLAGS="-O2"
3283   else
3284     CXXFLAGS=
3285   fi
3286 fi
3287 ac_ext=c
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3292
3293 ac_ext=c
3294 ac_cpp='$CPP $CPPFLAGS'
3295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3299 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3300 # On Suns, sometimes $CPP names a directory.
3301 if test -n "$CPP" && test -d "$CPP"; then
3302   CPP=
3303 fi
3304 if test -z "$CPP"; then
3305   if test "${ac_cv_prog_CPP+set}" = set; then
3306   echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308       # Double quotes because CPP needs to be expanded
3309     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3310     do
3311       ac_preproc_ok=false
3312 for ac_c_preproc_warn_flag in '' yes
3313 do
3314   # Use a header file that comes with gcc, so configuring glibc
3315   # with a fresh cross-compiler works.
3316   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3317   # <limits.h> exists even on freestanding compilers.
3318   # On the NeXT, cc -E runs the code through the compiler's parser,
3319   # not just through cpp. "Syntax error" is here to catch this case.
3320   cat >conftest.$ac_ext <<_ACEOF
3321 /* confdefs.h.  */
3322 _ACEOF
3323 cat confdefs.h >>conftest.$ac_ext
3324 cat >>conftest.$ac_ext <<_ACEOF
3325 /* end confdefs.h.  */
3326 #ifdef __STDC__
3327 # include <limits.h>
3328 #else
3329 # include <assert.h>
3330 #endif
3331                      Syntax error
3332 _ACEOF
3333 if { (ac_try="$ac_cpp conftest.$ac_ext"
3334 case "(($ac_try" in
3335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336   *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3340   ac_status=$?
3341   grep -v '^ *+' conftest.er1 >conftest.err
3342   rm -f conftest.er1
3343   cat conftest.err >&5
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } >/dev/null; then
3346   if test -s conftest.err; then
3347     ac_cpp_err=$ac_c_preproc_warn_flag
3348     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3349   else
3350     ac_cpp_err=
3351   fi
3352 else
3353   ac_cpp_err=yes
3354 fi
3355 if test -z "$ac_cpp_err"; then
3356   :
3357 else
3358   echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3360
3361   # Broken: fails on valid input.
3362 continue
3363 fi
3364
3365 rm -f conftest.err conftest.$ac_ext
3366
3367   # OK, works on sane cases.  Now check whether nonexistent headers
3368   # can be detected and how.
3369   cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375 #include <ac_nonexistent.h>
3376 _ACEOF
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3378 case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384   ac_status=$?
3385   grep -v '^ *+' conftest.er1 >conftest.err
3386   rm -f conftest.er1
3387   cat conftest.err >&5
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); } >/dev/null; then
3390   if test -s conftest.err; then
3391     ac_cpp_err=$ac_c_preproc_warn_flag
3392     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3393   else
3394     ac_cpp_err=
3395   fi
3396 else
3397   ac_cpp_err=yes
3398 fi
3399 if test -z "$ac_cpp_err"; then
3400   # Broken: success on invalid input.
3401 continue
3402 else
3403   echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406   # Passes both tests.
3407 ac_preproc_ok=:
3408 break
3409 fi
3410
3411 rm -f conftest.err conftest.$ac_ext
3412
3413 done
3414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3415 rm -f conftest.err conftest.$ac_ext
3416 if $ac_preproc_ok; then
3417   break
3418 fi
3419
3420     done
3421     ac_cv_prog_CPP=$CPP
3422
3423 fi
3424   CPP=$ac_cv_prog_CPP
3425 else
3426   ac_cv_prog_CPP=$CPP
3427 fi
3428 { echo "$as_me:$LINENO: result: $CPP" >&5
3429 echo "${ECHO_T}$CPP" >&6; }
3430 ac_preproc_ok=false
3431 for ac_c_preproc_warn_flag in '' yes
3432 do
3433   # Use a header file that comes with gcc, so configuring glibc
3434   # with a fresh cross-compiler works.
3435   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3436   # <limits.h> exists even on freestanding compilers.
3437   # On the NeXT, cc -E runs the code through the compiler's parser,
3438   # not just through cpp. "Syntax error" is here to catch this case.
3439   cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445 #ifdef __STDC__
3446 # include <limits.h>
3447 #else
3448 # include <assert.h>
3449 #endif
3450                      Syntax error
3451 _ACEOF
3452 if { (ac_try="$ac_cpp conftest.$ac_ext"
3453 case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3459   ac_status=$?
3460   grep -v '^ *+' conftest.er1 >conftest.err
3461   rm -f conftest.er1
3462   cat conftest.err >&5
3463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464   (exit $ac_status); } >/dev/null; then
3465   if test -s conftest.err; then
3466     ac_cpp_err=$ac_c_preproc_warn_flag
3467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3468   else
3469     ac_cpp_err=
3470   fi
3471 else
3472   ac_cpp_err=yes
3473 fi
3474 if test -z "$ac_cpp_err"; then
3475   :
3476 else
3477   echo "$as_me: failed program was:" >&5
3478 sed 's/^/| /' conftest.$ac_ext >&5
3479
3480   # Broken: fails on valid input.
3481 continue
3482 fi
3483
3484 rm -f conftest.err conftest.$ac_ext
3485
3486   # OK, works on sane cases.  Now check whether nonexistent headers
3487   # can be detected and how.
3488   cat >conftest.$ac_ext <<_ACEOF
3489 /* confdefs.h.  */
3490 _ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h.  */
3494 #include <ac_nonexistent.h>
3495 _ACEOF
3496 if { (ac_try="$ac_cpp conftest.$ac_ext"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3503   ac_status=$?
3504   grep -v '^ *+' conftest.er1 >conftest.err
3505   rm -f conftest.er1
3506   cat conftest.err >&5
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } >/dev/null; then
3509   if test -s conftest.err; then
3510     ac_cpp_err=$ac_c_preproc_warn_flag
3511     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3512   else
3513     ac_cpp_err=
3514   fi
3515 else
3516   ac_cpp_err=yes
3517 fi
3518 if test -z "$ac_cpp_err"; then
3519   # Broken: success on invalid input.
3520 continue
3521 else
3522   echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3524
3525   # Passes both tests.
3526 ac_preproc_ok=:
3527 break
3528 fi
3529
3530 rm -f conftest.err conftest.$ac_ext
3531
3532 done
3533 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3534 rm -f conftest.err conftest.$ac_ext
3535 if $ac_preproc_ok; then
3536   :
3537 else
3538   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3539 See \`config.log' for more details." >&5
3540 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&2;}
3542    { (exit 1); exit 1; }; }
3543 fi
3544
3545 ac_ext=c
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550
3551
3552 if test "$CXX" = "clang++" ; then
3553   { echo "$as_me:$LINENO: checking whether clang works" >&5
3554 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3555   ac_ext=cpp
3556 ac_cpp='$CXXCPP $CPPFLAGS'
3557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3560
3561
3562 cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h.  */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h.  */
3568 #include <limits>
3569 #if __has_include (<cxxabi.h>)
3570 #include <cxxabi.h>
3571 #endif
3572 #if __has_include (<unwind.h>)
3573 #include <unwind.h>
3574 #endif
3575
3576 int
3577 main ()
3578 {
3579
3580   ;
3581   return 0;
3582 }
3583 _ACEOF
3584 rm -f conftest.$ac_objext
3585 if { (ac_try="$ac_compile"
3586 case "(($ac_try" in
3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588   *) ac_try_echo=$ac_try;;
3589 esac
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591   (eval "$ac_compile") 2>conftest.er1
3592   ac_status=$?
3593   grep -v '^ *+' conftest.er1 >conftest.err
3594   rm -f conftest.er1
3595   cat conftest.err >&5
3596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597   (exit $ac_status); } &&
3598          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3599   { (case "(($ac_try" in
3600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601   *) ac_try_echo=$ac_try;;
3602 esac
3603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3604   (eval "$ac_try") 2>&5
3605   ac_status=$?
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); }; } &&
3608          { ac_try='test -s conftest.$ac_objext'
3609   { (case "(($ac_try" in
3610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611   *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614   (eval "$ac_try") 2>&5
3615   ac_status=$?
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); }; }; then
3618
3619   { echo "$as_me:$LINENO: result: yes" >&5
3620 echo "${ECHO_T}yes" >&6; }
3621
3622 else
3623   echo "$as_me: failed program was:" >&5
3624 sed 's/^/| /' conftest.$ac_ext >&5
3625
3626
3627   { echo "$as_me:$LINENO: result: no" >&5
3628 echo "${ECHO_T}no" >&6; }
3629   { { 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
3630 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;}
3631    { (exit 1); exit 1; }; }
3632
3633 fi
3634
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636   ac_ext=c
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3641
3642 fi
3643
3644 { echo "$as_me:$LINENO: checking whether GCC or Clang is our host compiler" >&5
3645 echo $ECHO_N "checking whether GCC or Clang is our host compiler... $ECHO_C" >&6; }
3646 ac_ext=cpp
3647 ac_cpp='$CXXCPP $CPPFLAGS'
3648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3651
3652 llvm_cv_cxx_compiler=unknown
3653 cat >conftest.$ac_ext <<_ACEOF
3654 /* confdefs.h.  */
3655 _ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h.  */
3659 #if ! __clang__
3660                                     #error
3661                                     #endif
3662
3663 _ACEOF
3664 rm -f conftest.$ac_objext
3665 if { (ac_try="$ac_compile"
3666 case "(($ac_try" in
3667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668   *) ac_try_echo=$ac_try;;
3669 esac
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671   (eval "$ac_compile") 2>conftest.er1
3672   ac_status=$?
3673   grep -v '^ *+' conftest.er1 >conftest.err
3674   rm -f conftest.er1
3675   cat conftest.err >&5
3676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677   (exit $ac_status); } &&
3678          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3679   { (case "(($ac_try" in
3680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681   *) ac_try_echo=$ac_try;;
3682 esac
3683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3684   (eval "$ac_try") 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; } &&
3688          { ac_try='test -s conftest.$ac_objext'
3689   { (case "(($ac_try" in
3690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691   *) ac_try_echo=$ac_try;;
3692 esac
3693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694   (eval "$ac_try") 2>&5
3695   ac_status=$?
3696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697   (exit $ac_status); }; }; then
3698   llvm_cv_cxx_compiler=clang
3699 else
3700   echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703         cat >conftest.$ac_ext <<_ACEOF
3704 /* confdefs.h.  */
3705 _ACEOF
3706 cat confdefs.h >>conftest.$ac_ext
3707 cat >>conftest.$ac_ext <<_ACEOF
3708 /* end confdefs.h.  */
3709 #if ! __GNUC__
3710                                                        #error
3711                                                        #endif
3712
3713 _ACEOF
3714 rm -f conftest.$ac_objext
3715 if { (ac_try="$ac_compile"
3716 case "(($ac_try" in
3717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718   *) ac_try_echo=$ac_try;;
3719 esac
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721   (eval "$ac_compile") 2>conftest.er1
3722   ac_status=$?
3723   grep -v '^ *+' conftest.er1 >conftest.err
3724   rm -f conftest.er1
3725   cat conftest.err >&5
3726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); } &&
3728          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3729   { (case "(($ac_try" in
3730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731   *) ac_try_echo=$ac_try;;
3732 esac
3733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3734   (eval "$ac_try") 2>&5
3735   ac_status=$?
3736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737   (exit $ac_status); }; } &&
3738          { ac_try='test -s conftest.$ac_objext'
3739   { (case "(($ac_try" in
3740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741   *) ac_try_echo=$ac_try;;
3742 esac
3743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744   (eval "$ac_try") 2>&5
3745   ac_status=$?
3746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747   (exit $ac_status); }; }; then
3748   llvm_cv_cxx_compiler=gcc
3749 else
3750   echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753
3754 fi
3755
3756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3757 fi
3758
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760 ac_ext=c
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3765
3766 { echo "$as_me:$LINENO: result: ${llvm_cv_cxx_compiler}" >&5
3767 echo "${ECHO_T}${llvm_cv_cxx_compiler}" >&6; }
3768
3769
3770
3771 if test -d ${srcdir}/projects/test-suite ; then
3772   subdirs="$subdirs projects/test-suite"
3773
3774 fi
3775
3776 if test -d ${srcdir}/projects/llvm-test ; then
3777   subdirs="$subdirs projects/llvm-test"
3778
3779 fi
3780
3781 if test -d ${srcdir}/projects/poolalloc ; then
3782   subdirs="$subdirs projects/poolalloc"
3783
3784 fi
3785
3786 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3787   subdirs="$subdirs projects/llvm-poolalloc"
3788
3789 fi
3790
3791 for i in `ls ${srcdir}/projects`
3792 do
3793   if test -d ${srcdir}/projects/${i} ; then
3794     case ${i} in
3795       safecode)     subdirs="$subdirs projects/safecode"
3796  ;;
3797       compiler-rt)       ;;
3798       test-suite)     ;;
3799       llvm-test)      ;;
3800       poolalloc)      ;;
3801       llvm-poolalloc) ;;
3802       *)
3803         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3804 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3805         ;;
3806     esac
3807   fi
3808 done
3809
3810 # Check whether --enable-polly was given.
3811 if test "${enable_polly+set}" = set; then
3812   enableval=$enable_polly;
3813 else
3814   enableval=default
3815 fi
3816
3817 case "$enableval" in
3818   yes) ENABLE_POLLY=1
3819  ;;
3820   no)  ENABLE_POLLY=0
3821  ;;
3822   default) ENABLE_POLLY=1
3823  ;;
3824   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3825 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3826    { (exit 1); exit 1; }; } ;;
3827 esac
3828
3829
3830 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3831   LLVM_HAS_POLLY=1
3832
3833   subdirs="$subdirs tools/polly"
3834
3835 fi
3836
3837
3838 # Make sure we can run config.sub.
3839 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3840   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3841 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3842    { (exit 1); exit 1; }; }
3843
3844 { echo "$as_me:$LINENO: checking build system type" >&5
3845 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3846 if test "${ac_cv_build+set}" = set; then
3847   echo $ECHO_N "(cached) $ECHO_C" >&6
3848 else
3849   ac_build_alias=$build_alias
3850 test "x$ac_build_alias" = x &&
3851   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3852 test "x$ac_build_alias" = x &&
3853   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3854 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3855    { (exit 1); exit 1; }; }
3856 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3857   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3858 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3859    { (exit 1); exit 1; }; }
3860
3861 fi
3862 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3863 echo "${ECHO_T}$ac_cv_build" >&6; }
3864 case $ac_cv_build in
3865 *-*-*) ;;
3866 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3867 echo "$as_me: error: invalid value of canonical build" >&2;}
3868    { (exit 1); exit 1; }; };;
3869 esac
3870 build=$ac_cv_build
3871 ac_save_IFS=$IFS; IFS='-'
3872 set x $ac_cv_build
3873 shift
3874 build_cpu=$1
3875 build_vendor=$2
3876 shift; shift
3877 # Remember, the first character of IFS is used to create $*,
3878 # except with old shells:
3879 build_os=$*
3880 IFS=$ac_save_IFS
3881 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3882
3883
3884 { echo "$as_me:$LINENO: checking host system type" >&5
3885 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3886 if test "${ac_cv_host+set}" = set; then
3887   echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889   if test "x$host_alias" = x; then
3890   ac_cv_host=$ac_cv_build
3891 else
3892   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3893     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3894 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3895    { (exit 1); exit 1; }; }
3896 fi
3897
3898 fi
3899 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3900 echo "${ECHO_T}$ac_cv_host" >&6; }
3901 case $ac_cv_host in
3902 *-*-*) ;;
3903 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3904 echo "$as_me: error: invalid value of canonical host" >&2;}
3905    { (exit 1); exit 1; }; };;
3906 esac
3907 host=$ac_cv_host
3908 ac_save_IFS=$IFS; IFS='-'
3909 set x $ac_cv_host
3910 shift
3911 host_cpu=$1
3912 host_vendor=$2
3913 shift; shift
3914 # Remember, the first character of IFS is used to create $*,
3915 # except with old shells:
3916 host_os=$*
3917 IFS=$ac_save_IFS
3918 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3919
3920
3921 { echo "$as_me:$LINENO: checking target system type" >&5
3922 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3923 if test "${ac_cv_target+set}" = set; then
3924   echo $ECHO_N "(cached) $ECHO_C" >&6
3925 else
3926   if test "x$target_alias" = x; then
3927   ac_cv_target=$ac_cv_host
3928 else
3929   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3930     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3931 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3932    { (exit 1); exit 1; }; }
3933 fi
3934
3935 fi
3936 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3937 echo "${ECHO_T}$ac_cv_target" >&6; }
3938 case $ac_cv_target in
3939 *-*-*) ;;
3940 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3941 echo "$as_me: error: invalid value of canonical target" >&2;}
3942    { (exit 1); exit 1; }; };;
3943 esac
3944 target=$ac_cv_target
3945 ac_save_IFS=$IFS; IFS='-'
3946 set x $ac_cv_target
3947 shift
3948 target_cpu=$1
3949 target_vendor=$2
3950 shift; shift
3951 # Remember, the first character of IFS is used to create $*,
3952 # except with old shells:
3953 target_os=$*
3954 IFS=$ac_save_IFS
3955 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3956
3957
3958 # The aliases save the names the user supplied, while $host etc.
3959 # will get canonicalized.
3960 test -n "$target_alias" &&
3961   test "$program_prefix$program_suffix$program_transform_name" = \
3962     NONENONEs,x,x, &&
3963   program_prefix=${target_alias}-
3964
3965 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3966 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3967 if test "${llvm_cv_os_type+set}" = set; then
3968   echo $ECHO_N "(cached) $ECHO_C" >&6
3969 else
3970   case $host in
3971   *-*-aix*)
3972     llvm_cv_link_all_option="-Wl,--whole-archive"
3973     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3974     llvm_cv_os_type="AIX"
3975     llvm_cv_platform_type="Unix" ;;
3976   *-*-irix*)
3977     llvm_cv_link_all_option="-Wl,--whole-archive"
3978     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3979     llvm_cv_os_type="IRIX"
3980     llvm_cv_platform_type="Unix" ;;
3981   *-*-cygwin*)
3982     llvm_cv_link_all_option="-Wl,--whole-archive"
3983     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3984     llvm_cv_os_type="Cygwin"
3985     llvm_cv_platform_type="Unix" ;;
3986   *-*-darwin*)
3987     llvm_cv_link_all_option="-Wl,-all_load"
3988     llvm_cv_no_link_all_option="-Wl,-noall_load"
3989     llvm_cv_os_type="Darwin"
3990     llvm_cv_platform_type="Unix" ;;
3991   *-*-minix*)
3992     llvm_cv_link_all_option="-Wl,-all_load"
3993     llvm_cv_no_link_all_option="-Wl,-noall_load"
3994     llvm_cv_os_type="Minix"
3995     llvm_cv_platform_type="Unix" ;;
3996   *-*-freebsd*)
3997     llvm_cv_link_all_option="-Wl,--whole-archive"
3998     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3999     llvm_cv_os_type="FreeBSD"
4000     llvm_cv_platform_type="Unix" ;;
4001   *-*-kfreebsd-gnu)
4002     llvm_cv_link_all_option="-Wl,--whole-archive"
4003     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4004     llvm_cv_os_type="GNU/kFreeBSD"
4005     llvm_cv_platform_type="Unix" ;;
4006   *-*-openbsd*)
4007     llvm_cv_link_all_option="-Wl,--whole-archive"
4008     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4009     llvm_cv_os_type="OpenBSD"
4010     llvm_cv_platform_type="Unix" ;;
4011   *-*-netbsd*)
4012     llvm_cv_link_all_option="-Wl,--whole-archive"
4013     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4014     llvm_cv_os_type="NetBSD"
4015     llvm_cv_platform_type="Unix" ;;
4016   *-*-dragonfly*)
4017     llvm_cv_link_all_option="-Wl,--whole-archive"
4018     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4019     llvm_cv_os_type="DragonFly"
4020     llvm_cv_platform_type="Unix" ;;
4021   *-*-bitrig*)
4022     llvm_cv_link_all_option="-Wl,--whole-archive"
4023     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4024     llvm_cv_os_type="Bitrig"
4025     llvm_cv_platform_type="Unix" ;;
4026   *-*-hpux*)
4027     llvm_cv_link_all_option="-Wl,--whole-archive"
4028     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4029     llvm_cv_os_type="HP-UX"
4030     llvm_cv_platform_type="Unix" ;;
4031   *-*-interix*)
4032     llvm_cv_link_all_option="-Wl,--whole-archive"
4033     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4034     llvm_cv_os_type="Interix"
4035     llvm_cv_platform_type="Unix" ;;
4036   *-*-linux*)
4037     llvm_cv_link_all_option="-Wl,--whole-archive"
4038     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4039     llvm_cv_os_type="Linux"
4040     llvm_cv_platform_type="Unix" ;;
4041   *-*-gnu*)
4042     llvm_cv_link_all_option="-Wl,--whole-archive"
4043     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4044     llvm_cv_os_type="GNU"
4045     llvm_cv_platform_type="Unix" ;;
4046   *-*-solaris*)
4047     llvm_cv_link_all_option="-Wl,-z,allextract"
4048     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
4049     llvm_cv_os_type="SunOS"
4050     llvm_cv_platform_type="Unix" ;;
4051   *-*-win32*)
4052     llvm_cv_link_all_option="-Wl,--whole-archive"
4053     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4054     llvm_cv_os_type="Win32"
4055     llvm_cv_platform_type="Win32" ;;
4056   *-*-mingw*)
4057     llvm_cv_link_all_option="-Wl,--whole-archive"
4058     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4059     llvm_cv_os_type="MingW"
4060     llvm_cv_platform_type="Win32" ;;
4061   *-*-haiku*)
4062     llvm_cv_link_all_option="-Wl,--whole-archive"
4063     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4064     llvm_cv_os_type="Haiku"
4065     llvm_cv_platform_type="Unix" ;;
4066   *-unknown-eabi*)
4067     llvm_cv_link_all_option="-Wl,--whole-archive"
4068     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4069     llvm_cv_os_type="Freestanding"
4070     llvm_cv_platform_type="Unix" ;;
4071   *-unknown-elf*)
4072     llvm_cv_link_all_option="-Wl,--whole-archive"
4073     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
4074     llvm_cv_os_type="Freestanding"
4075     llvm_cv_platform_type="Unix" ;;
4076   *)
4077     llvm_cv_link_all_option=""
4078     llvm_cv_no_link_all_option=""
4079     llvm_cv_os_type="Unknown"
4080     llvm_cv_platform_type="Unknown" ;;
4081 esac
4082 fi
4083 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
4084 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
4085
4086 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
4087 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
4088 if test "${llvm_cv_target_os_type+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   case $target in
4092   *-*-aix*)
4093     llvm_cv_target_os_type="AIX" ;;
4094   *-*-irix*)
4095     llvm_cv_target_os_type="IRIX" ;;
4096   *-*-cygwin*)
4097     llvm_cv_target_os_type="Cygwin" ;;
4098   *-*-darwin*)
4099     llvm_cv_target_os_type="Darwin" ;;
4100   *-*-minix*)
4101     llvm_cv_target_os_type="Minix" ;;
4102   *-*-freebsd*)
4103     llvm_cv_target_os_type="FreeBSD" ;;
4104   *-*-kfreebsd-gnu)
4105     llvm_cv_target_os_type="GNU/kFreeBSD" ;;
4106   *-*-openbsd*)
4107     llvm_cv_target_os_type="OpenBSD" ;;
4108   *-*-netbsd*)
4109     llvm_cv_target_os_type="NetBSD" ;;
4110   *-*-dragonfly*)
4111     llvm_cv_target_os_type="DragonFly" ;;
4112   *-*-bitrig*)
4113     llvm_cv_target_os_type="Bitrig" ;;
4114   *-*-hpux*)
4115     llvm_cv_target_os_type="HP-UX" ;;
4116   *-*-interix*)
4117     llvm_cv_target_os_type="Interix" ;;
4118   *-*-linux*)
4119     llvm_cv_target_os_type="Linux" ;;
4120   *-*-gnu*)
4121     llvm_cv_target_os_type="GNU" ;;
4122   *-*-solaris*)
4123     llvm_cv_target_os_type="SunOS" ;;
4124   *-*-win32*)
4125     llvm_cv_target_os_type="Win32" ;;
4126   *-*-mingw*)
4127     llvm_cv_target_os_type="MingW" ;;
4128   *-*-haiku*)
4129     llvm_cv_target_os_type="Haiku" ;;
4130   *-*-rtems*)
4131     llvm_cv_target_os_type="RTEMS" ;;
4132   *-*-nacl*)
4133     llvm_cv_target_os_type="NativeClient" ;;
4134   *-unknown-eabi*)
4135     llvm_cv_target_os_type="Freestanding" ;;
4136   *-*-ps4)
4137     llvm_cv_target_os_type="PS4" ;;
4138   *)
4139     llvm_cv_target_os_type="Unknown" ;;
4140 esac
4141 fi
4142 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
4143 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
4144
4145 if test "$llvm_cv_os_type" = "Unknown" ; then
4146   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
4147 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
4148    { (exit 1); exit 1; }; }
4149 fi
4150
4151 OS=$llvm_cv_os_type
4152
4153 HOST_OS=$llvm_cv_os_type
4154
4155 TARGET_OS=$llvm_cv_target_os_type
4156
4157
4158 LINKALL=$llvm_cv_link_all_option
4159
4160 NOLINKALL=$llvm_cv_no_link_all_option
4161
4162
4163 case $llvm_cv_platform_type in
4164   Unix)
4165
4166 cat >>confdefs.h <<\_ACEOF
4167 #define LLVM_ON_UNIX 1
4168 _ACEOF
4169
4170     LLVM_ON_UNIX=1
4171
4172     LLVM_ON_WIN32=0
4173
4174     ;;
4175   Win32)
4176
4177 cat >>confdefs.h <<\_ACEOF
4178 #define LLVM_ON_WIN32 1
4179 _ACEOF
4180
4181     LLVM_ON_UNIX=0
4182
4183     LLVM_ON_WIN32=1
4184
4185     ;;
4186 esac
4187
4188 { echo "$as_me:$LINENO: checking target architecture" >&5
4189 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4190 if test "${llvm_cv_target_arch+set}" = set; then
4191   echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193   case $target in
4194   i?86-*)                 llvm_cv_target_arch="x86" ;;
4195   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
4196   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
4197   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
4198   arm64*-*)               llvm_cv_target_arch="AArch64" ;;
4199   arm*-*)                 llvm_cv_target_arch="ARM" ;;
4200   aarch64*-*)             llvm_cv_target_arch="AArch64" ;;
4201   mips-* | mips64-*)      llvm_cv_target_arch="Mips" ;;
4202   mipsel-* | mips64el-*)  llvm_cv_target_arch="Mips" ;;
4203   xcore-*)                llvm_cv_target_arch="XCore" ;;
4204   msp430-*)               llvm_cv_target_arch="MSP430" ;;
4205   hexagon-*)              llvm_cv_target_arch="Hexagon" ;;
4206   nvptx-*)                llvm_cv_target_arch="NVPTX" ;;
4207   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
4208   *)                      llvm_cv_target_arch="Unknown" ;;
4209 esac
4210 fi
4211 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4212 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4213
4214 if test "$llvm_cv_target_arch" = "Unknown" ; then
4215   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4216 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4217 fi
4218
4219 case "$llvm_cv_target_arch" in
4220     x86)     LLVM_NATIVE_ARCH="X86" ;;
4221     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
4222     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4223 esac
4224
4225 ARCH=$llvm_cv_target_arch
4226
4227 LLVM_NATIVE_ARCH=$LLVM_NATIVE_ARCH
4228
4229
4230 case $host in
4231   i?86-*)                 host_arch="x86" ;;
4232   amd64-* | x86_64-*)     host_arch="x86_64" ;;
4233   sparc*-*)               host_arch="Sparc" ;;
4234   powerpc*-*)             host_arch="PowerPC" ;;
4235   arm64*-*)               host_arch="AArch64" ;;
4236   arm*-*)                 host_arch="ARM" ;;
4237   aarch64*-*)             host_arch="AArch64" ;;
4238   mips-* | mips64-*)      host_arch="Mips" ;;
4239   mipsel-* | mips64el-*)  host_arch="Mips" ;;
4240   xcore-*)                host_arch="XCore" ;;
4241   msp430-*)               host_arch="MSP430" ;;
4242   hexagon-*)              host_arch="Hexagon" ;;
4243   s390x-*)                host_arch="SystemZ" ;;
4244   *)                      host_arch="Unknown" ;;
4245 esac
4246
4247 if test "$host_arch" = "Unknown" ; then
4248   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4249 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4250 fi
4251
4252 HOST_ARCH=$host_arch
4253
4254
4255 if test "$cross_compiling" = yes; then
4256   LLVM_CROSS_COMPILING=1
4257
4258
4259 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4260 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4261 if test "${ac_cv_build_exeext+set}" = set; then
4262   echo $ECHO_N "(cached) $ECHO_C" >&6
4263 else
4264   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4265   ac_cv_build_exeext=.exe
4266 else
4267   ac_build_prefix=${build_alias}-
4268
4269   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4270 set dummy ${ac_build_prefix}gcc; ac_word=$2
4271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4273 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   if test -n "$BUILD_CC"; then
4277   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4278 else
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 for as_dir in $PATH
4281 do
4282   IFS=$as_save_IFS
4283   test -z "$as_dir" && as_dir=.
4284   for ac_exec_ext in '' $ac_executable_extensions; do
4285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4286     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4287     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4288     break 2
4289   fi
4290 done
4291 done
4292 IFS=$as_save_IFS
4293
4294 fi
4295 fi
4296 BUILD_CC=$ac_cv_prog_BUILD_CC
4297 if test -n "$BUILD_CC"; then
4298   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4299 echo "${ECHO_T}$BUILD_CC" >&6; }
4300 else
4301   { echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6; }
4303 fi
4304
4305
4306   if test -z "$BUILD_CC"; then
4307      # Extract the first word of "gcc", so it can be a program name with args.
4308 set dummy gcc; ac_word=$2
4309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4311 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4312   echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314   if test -n "$BUILD_CC"; then
4315   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4316 else
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4318 for as_dir in $PATH
4319 do
4320   IFS=$as_save_IFS
4321   test -z "$as_dir" && as_dir=.
4322   for ac_exec_ext in '' $ac_executable_extensions; do
4323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4324     ac_cv_prog_BUILD_CC="gcc"
4325     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326     break 2
4327   fi
4328 done
4329 done
4330 IFS=$as_save_IFS
4331
4332 fi
4333 fi
4334 BUILD_CC=$ac_cv_prog_BUILD_CC
4335 if test -n "$BUILD_CC"; then
4336   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4337 echo "${ECHO_T}$BUILD_CC" >&6; }
4338 else
4339   { echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6; }
4341 fi
4342
4343
4344      if test -z "$BUILD_CC"; then
4345        # Extract the first word of "cc", so it can be a program name with args.
4346 set dummy cc; ac_word=$2
4347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4349 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352   if test -n "$BUILD_CC"; then
4353   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4354 else
4355   ac_prog_rejected=no
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4358 do
4359   IFS=$as_save_IFS
4360   test -z "$as_dir" && as_dir=.
4361   for ac_exec_ext in '' $ac_executable_extensions; do
4362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4363     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4364        ac_prog_rejected=yes
4365        continue
4366      fi
4367     ac_cv_prog_BUILD_CC="cc"
4368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369     break 2
4370   fi
4371 done
4372 done
4373 IFS=$as_save_IFS
4374
4375 if test $ac_prog_rejected = yes; then
4376   # We found a bogon in the path, so make sure we never use it.
4377   set dummy $ac_cv_prog_BUILD_CC
4378   shift
4379   if test $# != 0; then
4380     # We chose a different compiler from the bogus one.
4381     # However, it has the same basename, so the bogon will be chosen
4382     # first if we set BUILD_CC to just the basename; use the full file name.
4383     shift
4384     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4385   fi
4386 fi
4387 fi
4388 fi
4389 BUILD_CC=$ac_cv_prog_BUILD_CC
4390 if test -n "$BUILD_CC"; then
4391   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4392 echo "${ECHO_T}$BUILD_CC" >&6; }
4393 else
4394   { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4396 fi
4397
4398
4399      fi
4400   fi
4401   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4402 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4403    { (exit 1); exit 1; }; }
4404   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4405   rm -f conftest*
4406   echo 'int main () { return 0; }' > conftest.$ac_ext
4407   ac_cv_build_exeext=
4408   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4409   (eval $ac_build_link) 2>&5
4410   ac_status=$?
4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); }; then
4413     for file in conftest.*; do
4414       case $file in
4415       *.c | *.o | *.obj | *.dSYM) ;;
4416       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4417       esac
4418     done
4419   else
4420     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4421 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4422    { (exit 1); exit 1; }; }
4423   fi
4424   rm -f conftest*
4425   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4426 fi
4427 fi
4428
4429 BUILD_EXEEXT=""
4430 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4431 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4432 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4433 ac_build_exeext=$BUILD_EXEEXT
4434
4435   ac_build_prefix=${build_alias}-
4436   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4437 set dummy ${ac_build_prefix}g++; ac_word=$2
4438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4440 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4441   echo $ECHO_N "(cached) $ECHO_C" >&6
4442 else
4443   if test -n "$BUILD_CXX"; then
4444   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4445 else
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4448 do
4449   IFS=$as_save_IFS
4450   test -z "$as_dir" && as_dir=.
4451   for ac_exec_ext in '' $ac_executable_extensions; do
4452   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4453     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458 done
4459 IFS=$as_save_IFS
4460
4461 fi
4462 fi
4463 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4464 if test -n "$BUILD_CXX"; then
4465   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4466 echo "${ECHO_T}$BUILD_CXX" >&6; }
4467 else
4468   { echo "$as_me:$LINENO: result: no" >&5
4469 echo "${ECHO_T}no" >&6; }
4470 fi
4471
4472
4473   if test -z "$BUILD_CXX"; then
4474      # Extract the first word of "g++", so it can be a program name with args.
4475 set dummy g++; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   if test -n "$BUILD_CXX"; then
4482   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4486 do
4487   IFS=$as_save_IFS
4488   test -z "$as_dir" && as_dir=.
4489   for ac_exec_ext in '' $ac_executable_extensions; do
4490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4491     ac_cv_prog_BUILD_CXX="g++"
4492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493     break 2
4494   fi
4495 done
4496 done
4497 IFS=$as_save_IFS
4498
4499 fi
4500 fi
4501 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4502 if test -n "$BUILD_CXX"; then
4503   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4504 echo "${ECHO_T}$BUILD_CXX" >&6; }
4505 else
4506   { echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6; }
4508 fi
4509
4510
4511      if test -z "$BUILD_CXX"; then
4512        # Extract the first word of "c++", so it can be a program name with args.
4513 set dummy c++; ac_word=$2
4514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4516 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   if test -n "$BUILD_CXX"; then
4520   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4521 else
4522   ac_prog_rejected=no
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4525 do
4526   IFS=$as_save_IFS
4527   test -z "$as_dir" && as_dir=.
4528   for ac_exec_ext in '' $ac_executable_extensions; do
4529   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4530     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4531        ac_prog_rejected=yes
4532        continue
4533      fi
4534     ac_cv_prog_BUILD_CXX="c++"
4535     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4536     break 2
4537   fi
4538 done
4539 done
4540 IFS=$as_save_IFS
4541
4542 if test $ac_prog_rejected = yes; then
4543   # We found a bogon in the path, so make sure we never use it.
4544   set dummy $ac_cv_prog_BUILD_CXX
4545   shift
4546   if test $# != 0; then
4547     # We chose a different compiler from the bogus one.
4548     # However, it has the same basename, so the bogon will be chosen
4549     # first if we set BUILD_CXX to just the basename; use the full file name.
4550     shift
4551     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4552   fi
4553 fi
4554 fi
4555 fi
4556 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4557 if test -n "$BUILD_CXX"; then
4558   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4559 echo "${ECHO_T}$BUILD_CXX" >&6; }
4560 else
4561   { echo "$as_me:$LINENO: result: no" >&5
4562 echo "${ECHO_T}no" >&6; }
4563 fi
4564
4565
4566      fi
4567   fi
4568 else
4569   LLVM_CROSS_COMPILING=0
4570
4571 fi
4572
4573 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4574   cvsbuild="yes"
4575   optimize="no"
4576   CVSBUILD=CVSBUILD=1
4577
4578 else
4579   cvsbuild="no"
4580   optimize="yes"
4581 fi
4582
4583
4584 # Check whether --enable-libcpp was given.
4585 if test "${enable_libcpp+set}" = set; then
4586   enableval=$enable_libcpp;
4587 else
4588   enableval=default
4589 fi
4590
4591 case "$enableval" in
4592   yes) ENABLE_LIBCPP=1
4593  ;;
4594   no)  ENABLE_LIBCPP=0
4595  ;;
4596   default) ENABLE_LIBCPP=0
4597 ;;
4598   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4599 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4600    { (exit 1); exit 1; }; } ;;
4601 esac
4602
4603 # Check whether --enable-compiler-version-checks was given.
4604 if test "${enable_compiler_version_checks+set}" = set; then
4605   enableval=$enable_compiler_version_checks;
4606 else
4607   enableval=default
4608 fi
4609
4610 case "$enableval" in
4611   no)
4612     ;;
4613   yes|default)
4614     ac_ext=cpp
4615 ac_cpp='$CXXCPP $CPPFLAGS'
4616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4619
4620     case "$llvm_cv_cxx_compiler" in
4621     clang)
4622       { echo "$as_me:$LINENO: checking whether Clang is new enough" >&5
4623 echo $ECHO_N "checking whether Clang is new enough... $ECHO_C" >&6; }
4624       cat >conftest.$ac_ext <<_ACEOF
4625 /* confdefs.h.  */
4626 _ACEOF
4627 cat confdefs.h >>conftest.$ac_ext
4628 cat >>conftest.$ac_ext <<_ACEOF
4629 /* end confdefs.h.  */
4630
4631 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 1)
4632 #error This version of Clang is too old to build LLVM
4633 #endif
4634
4635 _ACEOF
4636 rm -f conftest.$ac_objext
4637 if { (ac_try="$ac_compile"
4638 case "(($ac_try" in
4639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640   *) ac_try_echo=$ac_try;;
4641 esac
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643   (eval "$ac_compile") 2>conftest.er1
4644   ac_status=$?
4645   grep -v '^ *+' conftest.er1 >conftest.err
4646   rm -f conftest.er1
4647   cat conftest.err >&5
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); } &&
4650          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4651   { (case "(($ac_try" in
4652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653   *) ac_try_echo=$ac_try;;
4654 esac
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656   (eval "$ac_try") 2>&5
4657   ac_status=$?
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); }; } &&
4660          { ac_try='test -s conftest.$ac_objext'
4661   { (case "(($ac_try" in
4662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663   *) ac_try_echo=$ac_try;;
4664 esac
4665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4666   (eval "$ac_try") 2>&5
4667   ac_status=$?
4668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669   (exit $ac_status); }; }; then
4670   { echo "$as_me:$LINENO: result: yes" >&5
4671 echo "${ECHO_T}yes" >&6; }
4672 else
4673   echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676         { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4678            { { echo "$as_me:$LINENO: error:
4679 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4680 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4681 bypass these sanity checks." >&5
4682 echo "$as_me: error:
4683 The selected Clang compiler is not new enough to build LLVM. Please upgrade to
4684 Clang 3.1. You may pass --disable-compiler-version-checks to configure to
4685 bypass these sanity checks." >&2;}
4686    { (exit 1); exit 1; }; }
4687 fi
4688
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690
4691                                           if test "$ENABLE_LIBCPP" -eq 0 ; then
4692         { echo "$as_me:$LINENO: checking whether Clang will select a modern C++ standard library" >&5
4693 echo $ECHO_N "checking whether Clang will select a modern C++ standard library... $ECHO_C" >&6; }
4694         llvm_cv_old_cxxflags="$CXXFLAGS"
4695         CXXFLAGS="$CXXFLAGS -std=c++0x"
4696         cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h.  */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h.  */
4702
4703 #include <atomic>
4704 std::atomic<float> x(0.0f);
4705 int main() { return (float)x; }
4706
4707 _ACEOF
4708 rm -f conftest.$ac_objext conftest$ac_exeext
4709 if { (ac_try="$ac_link"
4710 case "(($ac_try" in
4711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712   *) ac_try_echo=$ac_try;;
4713 esac
4714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715   (eval "$ac_link") 2>conftest.er1
4716   ac_status=$?
4717   grep -v '^ *+' conftest.er1 >conftest.err
4718   rm -f conftest.er1
4719   cat conftest.err >&5
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); } &&
4722          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4723   { (case "(($ac_try" in
4724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725   *) ac_try_echo=$ac_try;;
4726 esac
4727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4728   (eval "$ac_try") 2>&5
4729   ac_status=$?
4730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731   (exit $ac_status); }; } &&
4732          { ac_try='test -s conftest$ac_exeext'
4733   { (case "(($ac_try" in
4734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735   *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738   (eval "$ac_try") 2>&5
4739   ac_status=$?
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); }; }; then
4742   { echo "$as_me:$LINENO: result: yes" >&5
4743 echo "${ECHO_T}yes" >&6; }
4744 else
4745   echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748         { echo "$as_me:$LINENO: result: no" >&5
4749 echo "${ECHO_T}no" >&6; }
4750              { { echo "$as_me:$LINENO: error:
4751 We detected a missing feature in the standard C++ library that was known to be
4752 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4753 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4754 than 4.7. You will need to update your system and ensure Clang uses the newer
4755 standard library.
4756
4757 If this error is incorrect or you need to force things to work, you may pass
4758 '--disable-compiler-version-checks' to configure to bypass this test." >&5
4759 echo "$as_me: error:
4760 We detected a missing feature in the standard C++ library that was known to be
4761 missing in libstdc++4.6 and implemented in libstdc++4.7. There are numerous
4762 C++11 problems with 4.6's library, and we don't support GCCs or libstdc++ older
4763 than 4.7. You will need to update your system and ensure Clang uses the newer
4764 standard library.
4765
4766 If this error is incorrect or you need to force things to work, you may pass
4767 '--disable-compiler-version-checks' to configure to bypass this test." >&2;}
4768    { (exit 1); exit 1; }; }
4769 fi
4770
4771 rm -f core conftest.err conftest.$ac_objext \
4772       conftest$ac_exeext conftest.$ac_ext
4773         CXXFLAGS="$llvm_cv_old_cxxflags"
4774       fi
4775       ;;
4776     gcc)
4777       { echo "$as_me:$LINENO: checking whether GCC is new enough" >&5
4778 echo $ECHO_N "checking whether GCC is new enough... $ECHO_C" >&6; }
4779       cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h.  */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h.  */
4785
4786 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)
4787 #error This version of GCC is too old to build LLVM
4788 #endif
4789
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (ac_try="$ac_compile"
4793 case "(($ac_try" in
4794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795   *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798   (eval "$ac_compile") 2>conftest.er1
4799   ac_status=$?
4800   grep -v '^ *+' conftest.er1 >conftest.err
4801   rm -f conftest.er1
4802   cat conftest.err >&5
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); } &&
4805          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4806   { (case "(($ac_try" in
4807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808   *) ac_try_echo=$ac_try;;
4809 esac
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811   (eval "$ac_try") 2>&5
4812   ac_status=$?
4813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814   (exit $ac_status); }; } &&
4815          { ac_try='test -s conftest.$ac_objext'
4816   { (case "(($ac_try" in
4817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4818   *) ac_try_echo=$ac_try;;
4819 esac
4820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4821   (eval "$ac_try") 2>&5
4822   ac_status=$?
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); }; }; then
4825   { echo "$as_me:$LINENO: result: yes" >&5
4826 echo "${ECHO_T}yes" >&6; }
4827 else
4828   echo "$as_me: failed program was:" >&5
4829 sed 's/^/| /' conftest.$ac_ext >&5
4830
4831         { echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6; }
4833            { { echo "$as_me:$LINENO: error:
4834 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4835 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4836 bypass these sanity checks." >&5
4837 echo "$as_me: error:
4838 The selected GCC C++ compiler is not new enough to build LLVM. Please upgrade
4839 to GCC 4.7. You may pass --disable-compiler-version-checks to configure to
4840 bypass these sanity checks." >&2;}
4841    { (exit 1); exit 1; }; }
4842 fi
4843
4844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845       ;;
4846     unknown)
4847       ;;
4848     esac
4849     ac_ext=c
4850 ac_cpp='$CPP $CPPFLAGS'
4851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4854
4855     ;;
4856   *)
4857     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&5
4858 echo "$as_me: error: Invalid setting for --enable-compiler-version-checks. Use \"yes\" or \"no\"" >&2;}
4859    { (exit 1); exit 1; }; }
4860     ;;
4861 esac
4862
4863 # Check whether --enable-cxx1y was given.
4864 if test "${enable_cxx1y+set}" = set; then
4865   enableval=$enable_cxx1y;
4866 else
4867   enableval=default
4868 fi
4869
4870 case "$enableval" in
4871   yes) ENABLE_CXX1Y=1
4872  ;;
4873   no)  ENABLE_CXX1Y=0
4874  ;;
4875   default) ENABLE_CXX1Y=0
4876 ;;
4877   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&5
4878 echo "$as_me: error: Invalid setting for --enable-cxx1y. Use \"yes\" or \"no\"" >&2;}
4879    { (exit 1); exit 1; }; } ;;
4880 esac
4881
4882 # Check whether --enable-split-dwarf was given.
4883 if test "${enable_split_dwarf+set}" = set; then
4884   enableval=$enable_split_dwarf;
4885 else
4886   enableval=default
4887 fi
4888
4889 case "$enableval" in
4890   yes) ENABLE_SPLIT_DWARF=1
4891  ;;
4892   no)  ENABLE_SPLIT_DWARF=0
4893  ;;
4894   default) ENABLE_SPLIT_DWARF=0
4895 ;;
4896   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&5
4897 echo "$as_me: error: Invalid setting for --enable-split-dwarf. Use \"yes\" or \"no\"" >&2;}
4898    { (exit 1); exit 1; }; } ;;
4899 esac
4900
4901 clang_arcmt="yes"
4902 # Check whether --enable-clang-arcmt was given.
4903 if test "${enable_clang_arcmt+set}" = set; then
4904   enableval=$enable_clang_arcmt; clang_arcmt="$enableval"
4905 else
4906   enableval="yes"
4907 fi
4908
4909 case "$enableval" in
4910   yes) ENABLE_CLANG_ARCMT=1
4911  ;;
4912   no)  ENABLE_CLANG_ARCMT=0
4913  ;;
4914   default) ENABLE_CLANG_ARCMT=1
4915 ;;
4916   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&5
4917 echo "$as_me: error: Invalid setting for --enable-clang-arcmt. Use \"yes\" or \"no\"" >&2;}
4918    { (exit 1); exit 1; }; } ;;
4919 esac
4920
4921 clang_plugin_support="yes"
4922 # Check whether --enable-clang-plugin-support was given.
4923 if test "${enable_clang_plugin_support+set}" = set; then
4924   enableval=$enable_clang_plugin_support; clang_plugin_support="$enableval"
4925 else
4926   enableval="yes"
4927 fi
4928
4929 case "$enableval" in
4930   yes) CLANG_PLUGIN_SUPPORT=1
4931  ;;
4932   no)  CLANG_PLUGIN_SUPPORT=0
4933  ;;
4934   default) CLANG_PLUGIN_SUPPORT=1
4935 ;;
4936   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&5
4937 echo "$as_me: error: Invalid setting for --enable-clang-plugin-support. Use \"yes\" or \"no\"" >&2;}
4938    { (exit 1); exit 1; }; } ;;
4939 esac
4940
4941 clang_static_analyzer="yes"
4942 # Check whether --enable-clang-static-analyzer was given.
4943 if test "${enable_clang_static_analyzer+set}" = set; then
4944   enableval=$enable_clang_static_analyzer; clang_static_analyzer="$enableval"
4945 else
4946   enableval="yes"
4947 fi
4948
4949 case "$enableval" in
4950   yes) ENABLE_CLANG_STATIC_ANALYZER=1
4951  ;;
4952   no)
4953     if test ${clang_arcmt} != "no" ; then
4954       { { echo "$as_me:$LINENO: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&5
4955 echo "$as_me: error: Cannot enable clang ARC Migration Tool while disabling static analyzer." >&2;}
4956    { (exit 1); exit 1; }; }
4957     fi
4958     ENABLE_CLANG_STATIC_ANALYZER=0
4959
4960     ;;
4961   default) ENABLE_CLANG_STATIC_ANALYZER=1
4962 ;;
4963   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&5
4964 echo "$as_me: error: Invalid setting for --enable-clang-static-analyzer. Use \"yes\" or \"no\"" >&2;}
4965    { (exit 1); exit 1; }; } ;;
4966 esac
4967
4968 # Check whether --enable-optimized was given.
4969 if test "${enable_optimized+set}" = set; then
4970   enableval=$enable_optimized;
4971 else
4972   enableval=$optimize
4973 fi
4974
4975 if test ${enableval} = "no" ; then
4976   ENABLE_OPTIMIZED=
4977
4978 else
4979   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4980
4981 fi
4982
4983 # Check whether --enable-profiling was given.
4984 if test "${enable_profiling+set}" = set; then
4985   enableval=$enable_profiling;
4986 else
4987   enableval="no"
4988 fi
4989
4990 if test ${enableval} = "no" ; then
4991   ENABLE_PROFILING=
4992
4993 else
4994   ENABLE_PROFILING=ENABLE_PROFILING=1
4995
4996 fi
4997
4998 # Check whether --enable-assertions was given.
4999 if test "${enable_assertions+set}" = set; then
5000   enableval=$enable_assertions;
5001 else
5002   enableval="yes"
5003 fi
5004
5005 if test ${enableval} = "yes" ; then
5006   DISABLE_ASSERTIONS=
5007
5008   assertions_enabled="yes"
5009 else
5010   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5011
5012   assertions_enabled="no"
5013 fi
5014
5015 # Check whether --enable-werror was given.
5016 if test "${enable_werror+set}" = set; then
5017   enableval=$enable_werror;
5018 else
5019   enableval="no"
5020 fi
5021
5022 case "$enableval" in
5023   yes) ENABLE_WERROR=1
5024  ;;
5025   no)  ENABLE_WERROR=0
5026  ;;
5027   default) ENABLE_WERROR=0
5028 ;;
5029   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5030 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5031    { (exit 1); exit 1; }; } ;;
5032 esac
5033
5034 # Check whether --enable-expensive-checks was given.
5035 if test "${enable_expensive_checks+set}" = set; then
5036   enableval=$enable_expensive_checks;
5037 else
5038   enableval="no"
5039 fi
5040
5041 if test ${enableval} = "yes" ; then
5042   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5043
5044   EXPENSIVE_CHECKS=yes
5045
5046 else
5047   ENABLE_EXPENSIVE_CHECKS=
5048
5049   EXPENSIVE_CHECKS=no
5050
5051 fi
5052
5053 # Check whether --enable-abi-breaking-checks was given.
5054 if test "${enable_abi_breaking_checks+set}" = set; then
5055   enableval=$enable_abi_breaking_checks;
5056 else
5057   enableval="with-asserts"
5058 fi
5059
5060 case "$enableval" in
5061   with-asserts)  if test ${assertions_enabled} = "yes" ; then
5062
5063 cat >>confdefs.h <<\_ACEOF
5064 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5065 _ACEOF
5066
5067                    ENABLE_ABI_BREAKING_CHECKS=1
5068
5069                  else
5070                    ENABLE_ABI_BREAKING_CHECKS=0
5071
5072                  fi ;;
5073   yes)
5074
5075 cat >>confdefs.h <<\_ACEOF
5076 #define LLVM_ENABLE_ABI_BREAKING_CHECKS 1
5077 _ACEOF
5078
5079                  ENABLE_ABI_BREAKING_CHECKS=1
5080
5081                  ;;
5082   no)
5083                  ENABLE_ABI_BREAKING_CHECKS=0
5084
5085                  ;;
5086   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&5
5087 echo "$as_me: error: Invalid setting for --enable-abi-breaking-checks.  Use \"with-asserts\", \"yes\" or \"no\"" >&2;}
5088    { (exit 1); exit 1; }; }
5089 esac
5090
5091 # Check whether --enable-debug-runtime was given.
5092 if test "${enable_debug_runtime+set}" = set; then
5093   enableval=$enable_debug_runtime;
5094 else
5095   enableval=no
5096 fi
5097
5098 if test ${enableval} = "no" ; then
5099   DEBUG_RUNTIME=
5100
5101 else
5102   DEBUG_RUNTIME=DEBUG_RUNTIME=1
5103
5104 fi
5105
5106 # Check whether --enable-debug-symbols was given.
5107 if test "${enable_debug_symbols+set}" = set; then
5108   enableval=$enable_debug_symbols;
5109 else
5110   enableval=no
5111 fi
5112
5113 if test ${enableval} = "no" ; then
5114   DEBUG_SYMBOLS=
5115
5116 else
5117   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5118
5119 fi
5120
5121 # Check whether --enable-keep-symbols was given.
5122 if test "${enable_keep_symbols+set}" = set; then
5123   enableval=$enable_keep_symbols;
5124 else
5125   enableval=no
5126 fi
5127
5128 if test ${enableval} = "no" ; then
5129   KEEP_SYMBOLS=
5130
5131 else
5132   KEEP_SYMBOLS=KEEP_SYMBOLS=1
5133
5134 fi
5135
5136 # Check whether --enable-jit was given.
5137 if test "${enable_jit+set}" = set; then
5138   enableval=$enable_jit;
5139 else
5140   enableval=default
5141 fi
5142
5143 if test ${enableval} = "no"
5144 then
5145   JIT=
5146
5147 else
5148   case "$llvm_cv_target_arch" in
5149     x86)         TARGET_HAS_JIT=1
5150  ;;
5151     Sparc)       TARGET_HAS_JIT=0
5152  ;;
5153     PowerPC)     TARGET_HAS_JIT=1
5154  ;;
5155     x86_64)      TARGET_HAS_JIT=1
5156  ;;
5157     ARM)         TARGET_HAS_JIT=1
5158  ;;
5159     Mips)        TARGET_HAS_JIT=1
5160  ;;
5161     XCore)       TARGET_HAS_JIT=0
5162  ;;
5163     MSP430)      TARGET_HAS_JIT=0
5164  ;;
5165     Hexagon)     TARGET_HAS_JIT=0
5166  ;;
5167     NVPTX)       TARGET_HAS_JIT=0
5168  ;;
5169     SystemZ)     TARGET_HAS_JIT=1
5170  ;;
5171     *)           TARGET_HAS_JIT=0
5172  ;;
5173   esac
5174 fi
5175
5176 TARGETS_WITH_JIT="ARM AArch64 Mips PowerPC SystemZ X86"
5177 TARGETS_WITH_JIT=$TARGETS_WITH_JIT
5178
5179
5180 # Check whether --enable-docs was given.
5181 if test "${enable_docs+set}" = set; then
5182   enableval=$enable_docs;
5183 else
5184   enableval=default
5185 fi
5186
5187 case "$enableval" in
5188   yes) ENABLE_DOCS=1
5189  ;;
5190   no)  ENABLE_DOCS=0
5191  ;;
5192   default) ENABLE_DOCS=1
5193  ;;
5194   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5195 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5196    { (exit 1); exit 1; }; } ;;
5197 esac
5198
5199 # Check whether --enable-doxygen was given.
5200 if test "${enable_doxygen+set}" = set; then
5201   enableval=$enable_doxygen;
5202 else
5203   enableval=default
5204 fi
5205
5206 case "$enableval" in
5207   yes) ENABLE_DOXYGEN=1
5208  ;;
5209   no|default) ENABLE_DOXYGEN=0
5210  ;;
5211   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5212 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5213    { (exit 1); exit 1; }; } ;;
5214 esac
5215
5216 # Check whether --enable-doxygen-search was given.
5217 if test "${enable_doxygen_search+set}" = set; then
5218   enableval=$enable_doxygen_search;
5219 else
5220   enableval=default
5221 fi
5222
5223 ENABLE_DOXYGEN_SEARCH="$enableval"
5224
5225 case "$enableval" in
5226   yes|no|default) ;;
5227   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5228 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5229    { (exit 1); exit 1; }; } ;;
5230 esac
5231
5232 # Check whether --enable-doxygen-external-search was given.
5233 if test "${enable_doxygen_external_search+set}" = set; then
5234   enableval=$enable_doxygen_external_search;
5235 else
5236   enableval=default
5237 fi
5238
5239 ENABLE_DOXYGEN_EXTERNAL_SEARCH="$enableval"
5240
5241 case "$enableval" in
5242   yes)
5243             case "$ENABLE_DOXYGEN_SEARCH" in
5244       yes|default) ENABLE_DOXYGEN_SEARCH="yes" ;;
5245       no) { { echo "$as_me:$LINENO: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&5
5246 echo "$as_me: error: The option --enable-doxygen-external-search requires --enable-doxygen-search" >&2;}
5247    { (exit 1); exit 1; }; } ;;
5248     esac
5249     ;;
5250   no|default) ;;
5251   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&5
5252 echo "$as_me: error: Invalid setting for --enable-doxygen-external-search. Use \"yes\" or \"no\"" >&2;}
5253    { (exit 1); exit 1; }; } ;;
5254 esac
5255
5256
5257 # Check whether --with-doxygen-search-engine-url was given.
5258 if test "${with_doxygen_search_engine_url+set}" = set; then
5259   withval=$with_doxygen_search_engine_url;
5260 fi
5261
5262 WITH_DOXYGEN_SEARCH_ENGINE_URL="$withval"
5263
5264
5265 # Check whether --with-doxygen-search-mappings was given.
5266 if test "${with_doxygen_search_mappings+set}" = set; then
5267   withval=$with_doxygen_search_mappings;
5268 fi
5269
5270 WITH_DOXYGEN_SEARCH_MAPPINGS="$withval"
5271
5272 case "$ENABLE_DOXYGEN_SEARCH" in
5273   yes)
5274     if test "$ENABLE_DOXYGEN" = "0" ; then
5275       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-search requires --enable-doxygen." >&5
5276 echo "$as_me: error: The option --enable-doxygen-search requires --enable-doxygen." >&2;}
5277    { (exit 1); exit 1; }; }
5278     fi
5279
5280     enable_searchengine=YES
5281
5282
5283     case "$ENABLE_DOXYGEN_EXTERNAL_SEARCH" in
5284       yes)
5285         enable_external_search=YES
5286
5287         enable_server_based_search=YES
5288
5289         searchengine_url="$WITH_DOXYGEN_SEARCH_ENGINE_URL"
5290
5291         extra_search_mappings="$WITH_DOXYGEN_SEARCH_MAPPINGS"
5292
5293         ;;
5294
5295       no|default)
5296         enable_external_search=NO
5297
5298         enable_server_based_search=NO
5299
5300
5301
5302         ;;
5303     esac
5304     ;;
5305
5306   no|default)
5307     enable_searchengine=NO
5308
5309
5310     enable_server_based_search=NO
5311
5312     enable_external_search=NO
5313
5314
5315     ;;
5316
5317   *)
5318     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&5
5319 echo "$as_me: error: Invalid setting for --enable-doxygen-search. Use \"yes\" or \"no\"" >&2;}
5320    { (exit 1); exit 1; }; }
5321     ;;
5322 esac
5323
5324 # Check whether --enable-doxygen-qt-help was given.
5325 if test "${enable_doxygen_qt_help+set}" = set; then
5326   enableval=$enable_doxygen_qt_help;
5327 else
5328   enableval=default
5329 fi
5330
5331 case "$enableval" in
5332   yes)
5333     if test "$ENABLE_DOXYGEN" = "0" ; then
5334       { { echo "$as_me:$LINENO: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&5
5335 echo "$as_me: error: The option --enable-doxygen-qt-help requires --enable-doxygen." >&2;}
5336    { (exit 1); exit 1; }; }
5337     fi
5338
5339     # Extract the first word of "qhelpgenerator", so it can be a program name with args.
5340 set dummy qhelpgenerator; ac_word=$2
5341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5343 if test "${ac_cv_path_QHELPGENERATOR+set}" = set; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   case $QHELPGENERATOR in
5347   [\\/]* | ?:[\\/]*)
5348   ac_cv_path_QHELPGENERATOR="$QHELPGENERATOR" # Let the user override the test with a path.
5349   ;;
5350   *)
5351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5353 do
5354   IFS=$as_save_IFS
5355   test -z "$as_dir" && as_dir=.
5356   for ac_exec_ext in '' $ac_executable_extensions; do
5357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5358     ac_cv_path_QHELPGENERATOR="$as_dir/$ac_word$ac_exec_ext"
5359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360     break 2
5361   fi
5362 done
5363 done
5364 IFS=$as_save_IFS
5365
5366   test -z "$ac_cv_path_QHELPGENERATOR" && ac_cv_path_QHELPGENERATOR="qhelpgenerator"
5367   ;;
5368 esac
5369 fi
5370 QHELPGENERATOR=$ac_cv_path_QHELPGENERATOR
5371 if test -n "$QHELPGENERATOR"; then
5372   { echo "$as_me:$LINENO: result: $QHELPGENERATOR" >&5
5373 echo "${ECHO_T}$QHELPGENERATOR" >&6; }
5374 else
5375   { echo "$as_me:$LINENO: result: no" >&5
5376 echo "${ECHO_T}no" >&6; }
5377 fi
5378
5379
5380
5381         llvm_doxygen_generate_qhp=YES
5382
5383     llvm_doxygen_qch_filename=org.llvm.qch
5384
5385     llvm_doxygen_qhp_namespace=org.llvm
5386
5387     llvm_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5388
5389     llvm_doxygen_qhp_cust_filter_name="$PACKAGE_STRING"
5390
5391     llvm_doxygen_qhp_cust_filter_attrs="$PACKAGE_NAME,$PACKAGE_VERSION"
5392
5393
5394         clang_doxygen_generate_qhp=YES
5395
5396     clang_doxygen_qch_filename=org.llvm.clang.qch
5397
5398     clang_doxygen_qhp_namespace=org.llvm.clang
5399
5400     clang_doxygen_qhelpgenerator_path="$QHELPGENERATOR"
5401
5402     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5403
5404     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5405
5406     ;;
5407
5408   no|default)
5409     llvm_doxygen_generate_qhp=NO
5410
5411
5412
5413
5414
5415
5416
5417     clang_doxygen_generate_qhp=NO
5418
5419
5420
5421
5422     clang_doxygen_qhp_cust_filter_name="Clang $PACKAGE_VERSION"
5423
5424     clang_doxygen_qhp_cust_filter_attrs="Clang,$PACKAGE_VERSION"
5425
5426     ;;
5427
5428   *)
5429     { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&5
5430 echo "$as_me: error: Invalid setting for --enable-doxygen-qt-help. Use \"yes\" or \"no\"" >&2;}
5431    { (exit 1); exit 1; }; } ;;
5432 esac
5433
5434 # Check whether --enable-threads was given.
5435 if test "${enable_threads+set}" = set; then
5436   enableval=$enable_threads;
5437 else
5438   enableval=default
5439 fi
5440
5441 case "$enableval" in
5442   yes) LLVM_ENABLE_THREADS=1
5443  ;;
5444   no)  LLVM_ENABLE_THREADS=0
5445  ;;
5446   default) LLVM_ENABLE_THREADS=1
5447  ;;
5448   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5449 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5450    { (exit 1); exit 1; }; } ;;
5451 esac
5452
5453 cat >>confdefs.h <<_ACEOF
5454 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5455 _ACEOF
5456
5457
5458 # Check whether --enable-pthreads was given.
5459 if test "${enable_pthreads+set}" = set; then
5460   enableval=$enable_pthreads;
5461 else
5462   enableval=default
5463 fi
5464
5465 case "$enableval" in
5466   yes) ENABLE_PTHREADS=1
5467  ;;
5468   no)  ENABLE_PTHREADS=0
5469  ;;
5470   default) ENABLE_PTHREADS=1
5471  ;;
5472   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5473 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5474    { (exit 1); exit 1; }; } ;;
5475 esac
5476
5477 # Check whether --enable-zlib was given.
5478 if test "${enable_zlib+set}" = set; then
5479   enableval=$enable_zlib;
5480 else
5481   enableval=default
5482 fi
5483
5484 case "$enableval" in
5485   yes) LLVM_ENABLE_ZLIB=1
5486  ;;
5487   no)  LLVM_ENABLE_ZLIB=0
5488  ;;
5489   default) LLVM_ENABLE_ZLIB=1
5490  ;;
5491   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&5
5492 echo "$as_me: error: Invalid setting for --enable-zlib. Use \"yes\" or \"no\"" >&2;}
5493    { (exit 1); exit 1; }; } ;;
5494 esac
5495
5496 cat >>confdefs.h <<_ACEOF
5497 #define LLVM_ENABLE_ZLIB $LLVM_ENABLE_ZLIB
5498 _ACEOF
5499
5500
5501 # Check whether --enable-pic was given.
5502 if test "${enable_pic+set}" = set; then
5503   enableval=$enable_pic;
5504 else
5505   enableval=default
5506 fi
5507
5508 case "$enableval" in
5509   yes) ENABLE_PIC=1
5510  ;;
5511   no)  ENABLE_PIC=0
5512  ;;
5513   default) ENABLE_PIC=1
5514  ;;
5515   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5516 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5517    { (exit 1); exit 1; }; } ;;
5518 esac
5519
5520 cat >>confdefs.h <<_ACEOF
5521 #define ENABLE_PIC $ENABLE_PIC
5522 _ACEOF
5523
5524
5525 # Check whether --enable-shared was given.
5526 if test "${enable_shared+set}" = set; then
5527   enableval=$enable_shared;
5528 else
5529   enableval=default
5530 fi
5531
5532 case "$enableval" in
5533   yes) ENABLE_SHARED=1
5534  ;;
5535   no)  ENABLE_SHARED=0
5536  ;;
5537   default) ENABLE_SHARED=0
5538  ;;
5539   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5540 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5541    { (exit 1); exit 1; }; } ;;
5542 esac
5543
5544 # Check whether --enable-embed-stdcxx was given.
5545 if test "${enable_embed_stdcxx+set}" = set; then
5546   enableval=$enable_embed_stdcxx;
5547 else
5548   enableval=default
5549 fi
5550
5551 case "$enableval" in
5552   yes) ENABLE_EMBED_STDCXX=1
5553  ;;
5554   no)  ENABLE_EMBED_STDCXX=0
5555  ;;
5556   default) ENABLE_EMBED_STDCXX=0
5557  ;;
5558   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5559 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5560    { (exit 1); exit 1; }; } ;;
5561 esac
5562
5563 # Check whether --enable-timestamps was given.
5564 if test "${enable_timestamps+set}" = set; then
5565   enableval=$enable_timestamps;
5566 else
5567   enableval=default
5568 fi
5569
5570 case "$enableval" in
5571   yes) ENABLE_TIMESTAMPS=1
5572  ;;
5573   no)  ENABLE_TIMESTAMPS=0
5574  ;;
5575   default) ENABLE_TIMESTAMPS=1
5576  ;;
5577   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5578 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5579    { (exit 1); exit 1; }; } ;;
5580 esac
5581
5582 cat >>confdefs.h <<_ACEOF
5583 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5584 _ACEOF
5585
5586
5587 # Check whether --enable-backtraces was given.
5588 if test "${enable_backtraces+set}" = set; then
5589   enableval=$enable_backtraces; case "$enableval" in
5590     yes) llvm_cv_enable_backtraces="yes" ;;
5591     no)  llvm_cv_enable_backtraces="no"  ;;
5592     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&5
5593 echo "$as_me: error: Invalid setting for --enable-backtraces. Use \"yes\" or \"no\"" >&2;}
5594    { (exit 1); exit 1; }; } ;;
5595   esac
5596 else
5597   llvm_cv_enable_backtraces="yes"
5598 fi
5599
5600 if test "$llvm_cv_enable_backtraces" = "yes" ; then
5601
5602 cat >>confdefs.h <<\_ACEOF
5603 #define ENABLE_BACKTRACES 1
5604 _ACEOF
5605
5606 fi
5607
5608 # Check whether --enable-crash-overrides was given.
5609 if test "${enable_crash_overrides+set}" = set; then
5610   enableval=$enable_crash_overrides; case "$enableval" in
5611     yes) llvm_cv_enable_crash_overrides="yes" ;;
5612     no)  llvm_cv_enable_crash_overrides="no"  ;;
5613     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&5
5614 echo "$as_me: error: Invalid setting for --enable-crash-overrides. Use \"yes\" or \"no\"" >&2;}
5615    { (exit 1); exit 1; }; } ;;
5616   esac
5617 else
5618   llvm_cv_enable_crash_overrides="yes"
5619 fi
5620
5621 if test "$llvm_cv_enable_crash_overrides" = "yes" ; then
5622
5623 cat >>confdefs.h <<\_ACEOF
5624 #define ENABLE_CRASH_OVERRIDES 1
5625 _ACEOF
5626
5627 fi
5628
5629 ALL_TARGETS="X86 Sparc PowerPC ARM AArch64 Mips XCore MSP430 CppBackend NVPTX Hexagon SystemZ R600"
5630 ALL_TARGETS=$ALL_TARGETS
5631
5632
5633 TARGETS_TO_BUILD=""
5634 # Check whether --enable-targets was given.
5635 if test "${enable_targets+set}" = set; then
5636   enableval=$enable_targets;
5637 else
5638   enableval=all
5639 fi
5640
5641 if test "$enableval" = host-only ; then
5642   enableval=host
5643 fi
5644 case "$enableval" in
5645   all) TARGETS_TO_BUILD="$ALL_TARGETS" ;;
5646   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5647       case "$a_target" in
5648         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5649         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5650         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5651         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5652         aarch64)  TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5653         arm64)    TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5654         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5655         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5656         mipsel)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5657         mips64)   TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5658         mips64el) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5659         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5660         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5661         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5662         hexagon)  TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5663         nvptx)    TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5664         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5665         r600)     TARGETS_TO_BUILD="R600 $TARGETS_TO_BUILD" ;;
5666         host) case "$llvm_cv_target_arch" in
5667             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5668             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5669             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5670             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5671             AArch64)     TARGETS_TO_BUILD="AArch64 $TARGETS_TO_BUILD" ;;
5672             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5673             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5674             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5675             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5676             Hexagon)     TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5677             NVPTX)       TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5678             SystemZ)     TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5679             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5680 echo "$as_me: error: Can not set target to build" >&2;}
5681    { (exit 1); exit 1; }; } ;;
5682           esac ;;
5683         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5684 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5685    { (exit 1); exit 1; }; } ;;
5686       esac
5687   done
5688   ;;
5689 esac
5690
5691 # Check whether --enable-experimental-targets was given.
5692 if test "${enable_experimental_targets+set}" = set; then
5693   enableval=$enable_experimental_targets;
5694 else
5695   enableval=disable
5696 fi
5697
5698
5699 if test ${enableval} != "disable"
5700 then
5701   TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5702 fi
5703
5704 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5705
5706
5707 for a_target in $TARGETS_TO_BUILD; do
5708   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5709
5710 cat >>confdefs.h <<_ACEOF
5711 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5712 _ACEOF
5713
5714     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5715     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5716     LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5717     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5718     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5719       LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5720     fi
5721     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5722       LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5723     fi
5724
5725 cat >>confdefs.h <<_ACEOF
5726 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5727 _ACEOF
5728
5729
5730 cat >>confdefs.h <<_ACEOF
5731 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5732 _ACEOF
5733
5734
5735 cat >>confdefs.h <<_ACEOF
5736 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5737 _ACEOF
5738
5739
5740 cat >>confdefs.h <<_ACEOF
5741 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5742 _ACEOF
5743
5744     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5745
5746 cat >>confdefs.h <<_ACEOF
5747 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5748 _ACEOF
5749
5750     fi
5751     if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5752
5753 cat >>confdefs.h <<_ACEOF
5754 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5755 _ACEOF
5756
5757     fi
5758   fi
5759 done
5760
5761 LLVM_ENUM_TARGETS=""
5762 LLVM_ENUM_ASM_PRINTERS=""
5763 LLVM_ENUM_ASM_PARSERS=""
5764 LLVM_ENUM_DISASSEMBLERS=""
5765 for target_to_build in $TARGETS_TO_BUILD; do
5766   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5767   if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5768     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5769   fi
5770   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5771     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5772   fi
5773   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5774     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5775   fi
5776 done
5777
5778
5779
5780
5781
5782
5783 # Check whether --with-optimize-option was given.
5784 if test "${with_optimize_option+set}" = set; then
5785   withval=$with_optimize_option;
5786 else
5787   withval=default
5788 fi
5789
5790 { echo "$as_me:$LINENO: checking optimization flags" >&5
5791 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5792 case "$withval" in
5793   default)
5794     case "$llvm_cv_os_type" in
5795     FreeBSD) optimize_option=-O2 ;;
5796     MingW) optimize_option=-O2 ;;
5797     *)     optimize_option=-O3 ;;
5798     esac ;;
5799   *) optimize_option="$withval" ;;
5800 esac
5801 OPTIMIZE_OPTION=$optimize_option
5802
5803 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5804 echo "${ECHO_T}$optimize_option" >&6; }
5805
5806
5807 # Check whether --with-extra-options was given.
5808 if test "${with_extra_options+set}" = set; then
5809   withval=$with_extra_options;
5810 else
5811   withval=default
5812 fi
5813
5814 case "$withval" in
5815   default) EXTRA_OPTIONS= ;;
5816   *) EXTRA_OPTIONS=$withval ;;
5817 esac
5818 EXTRA_OPTIONS=$EXTRA_OPTIONS
5819
5820
5821
5822 # Check whether --with-extra-ld-options was given.
5823 if test "${with_extra_ld_options+set}" = set; then
5824   withval=$with_extra_ld_options;
5825 else
5826   withval=default
5827 fi
5828
5829 case "$withval" in
5830   default) EXTRA_LD_OPTIONS= ;;
5831   *) EXTRA_LD_OPTIONS=$withval ;;
5832 esac
5833 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5834
5835
5836 # Check whether --enable-bindings was given.
5837 if test "${enable_bindings+set}" = set; then
5838   enableval=$enable_bindings;
5839 else
5840   enableval=default
5841 fi
5842
5843 BINDINGS_TO_BUILD=""
5844 case "$enableval" in
5845   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5846   all ) BINDINGS_TO_BUILD="ocaml" ;;
5847   none | no) BINDINGS_TO_BUILD="" ;;
5848   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5849       case "$a_binding" in
5850         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5851         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5852 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5853    { (exit 1); exit 1; }; } ;;
5854       esac
5855   done
5856   ;;
5857 esac
5858
5859
5860 # Check whether --with-ocaml-libdir was given.
5861 if test "${with_ocaml_libdir+set}" = set; then
5862   withval=$with_ocaml_libdir;
5863 else
5864   withval=auto
5865 fi
5866
5867 case "$withval" in
5868   auto) with_ocaml_libdir="$withval" ;;
5869   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5870   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5871 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5872    { (exit 1); exit 1; }; } ;;
5873 esac
5874
5875
5876 # Check whether --with-clang-srcdir was given.
5877 if test "${with_clang_srcdir+set}" = set; then
5878   withval=$with_clang_srcdir;
5879 else
5880   withval="-"
5881 fi
5882
5883 case "$withval" in
5884   -) clang_src_root="" ;;
5885   /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5886   *) clang_src_root="$ac_pwd/$withval" ;;
5887 esac
5888 CLANG_SRC_ROOT=$clang_src_root
5889
5890
5891
5892 # Check whether --with-clang-resource-dir was given.
5893 if test "${with_clang_resource_dir+set}" = set; then
5894   withval=$with_clang_resource_dir;
5895 else
5896   withval=""
5897 fi
5898
5899
5900 cat >>confdefs.h <<_ACEOF
5901 #define CLANG_RESOURCE_DIR "$withval"
5902 _ACEOF
5903
5904
5905
5906 # Check whether --with-c-include-dirs was given.
5907 if test "${with_c_include_dirs+set}" = set; then
5908   withval=$with_c_include_dirs;
5909 else
5910   withval=""
5911 fi
5912
5913
5914 cat >>confdefs.h <<_ACEOF
5915 #define C_INCLUDE_DIRS "$withval"
5916 _ACEOF
5917
5918
5919 # Clang normally uses the system c++ headers and libraries. With this option,
5920 # clang will use the ones provided by a gcc installation instead. This option should
5921 # be passed the same value that was used with --prefix when configuring gcc.
5922
5923 # Check whether --with-gcc-toolchain was given.
5924 if test "${with_gcc_toolchain+set}" = set; then
5925   withval=$with_gcc_toolchain;
5926 else
5927   withval=""
5928 fi
5929
5930
5931 cat >>confdefs.h <<_ACEOF
5932 #define GCC_INSTALL_PREFIX "$withval"
5933 _ACEOF
5934
5935
5936
5937 # Check whether --with-default-sysroot was given.
5938 if test "${with_default_sysroot+set}" = set; then
5939   withval=$with_default_sysroot;
5940 else
5941   withval=""
5942 fi
5943
5944
5945 cat >>confdefs.h <<_ACEOF
5946 #define DEFAULT_SYSROOT "$withval"
5947 _ACEOF
5948
5949
5950
5951 # Check whether --with-binutils-include was given.
5952 if test "${with_binutils_include+set}" = set; then
5953   withval=$with_binutils_include;
5954 else
5955   withval=default
5956 fi
5957
5958 case "$withval" in
5959   default) WITH_BINUTILS_INCDIR=default ;;
5960   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5961   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5962 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5963    { (exit 1); exit 1; }; } ;;
5964 esac
5965 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5966   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5967
5968   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5969      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5970      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5971 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5972    { (exit 1); exit 1; }; };
5973   fi
5974 fi
5975
5976
5977 # Check whether --with-bug-report-url was given.
5978 if test "${with_bug_report_url+set}" = set; then
5979   withval=$with_bug_report_url;
5980 else
5981   withval="http://llvm.org/bugs/"
5982 fi
5983
5984
5985 cat >>confdefs.h <<_ACEOF
5986 #define BUG_REPORT_URL "$withval"
5987 _ACEOF
5988
5989
5990 # Check whether --enable-terminfo was given.
5991 if test "${enable_terminfo+set}" = set; then
5992   enableval=$enable_terminfo; case "$enableval" in
5993     yes) llvm_cv_enable_terminfo="yes" ;;
5994     no)  llvm_cv_enable_terminfo="no"  ;;
5995     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&5
5996 echo "$as_me: error: Invalid setting for --enable-terminfo. Use \"yes\" or \"no\"" >&2;}
5997    { (exit 1); exit 1; }; } ;;
5998   esac
5999 else
6000   llvm_cv_enable_terminfo="yes"
6001 fi
6002
6003 case "$llvm_cv_enable_terminfo" in
6004   yes) ENABLE_TERMINFO=1
6005  ;;
6006   no)  ENABLE_TERMINFO=0
6007  ;;
6008 esac
6009
6010 # Check whether --enable-libedit was given.
6011 if test "${enable_libedit+set}" = set; then
6012   enableval=$enable_libedit; case "$enableval" in
6013     yes) llvm_cv_enable_libedit="yes" ;;
6014     no)  llvm_cv_enable_libedit="no"  ;;
6015     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&5
6016 echo "$as_me: error: Invalid setting for --enable-libedit. Use \"yes\" or \"no\"" >&2;}
6017    { (exit 1); exit 1; }; } ;;
6018   esac
6019 else
6020   llvm_cv_enable_libedit="yes"
6021 fi
6022
6023
6024 # Check whether --enable-libffi was given.
6025 if test "${enable_libffi+set}" = set; then
6026   enableval=$enable_libffi; case "$enableval" in
6027     yes) llvm_cv_enable_libffi="yes" ;;
6028     no)  llvm_cv_enable_libffi="no"  ;;
6029     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
6030 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
6031    { (exit 1); exit 1; }; } ;;
6032   esac
6033 else
6034   llvm_cv_enable_libffi=no
6035 fi
6036
6037
6038
6039 # Check whether --with-internal-prefix was given.
6040 if test "${with_internal_prefix+set}" = set; then
6041   withval=$with_internal_prefix;
6042 else
6043   withval=""
6044 fi
6045
6046 INTERNAL_PREFIX=$withval
6047
6048
6049
6050 { echo "$as_me:$LINENO: checking for GNU make" >&5
6051 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6052 if test "${llvm_cv_gnu_make_command+set}" = set; then
6053   echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055   llvm_cv_gnu_make_command=''
6056  for a in "$MAKE" make gmake gnumake ; do
6057   if test -z "$a" ; then continue ; fi ;
6058   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6059   then
6060    llvm_cv_gnu_make_command=$a ;
6061    break;
6062   fi
6063  done
6064 fi
6065 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6066 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6067  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6068    ifGNUmake='' ;
6069  else
6070    ifGNUmake='#' ;
6071    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6072 echo "${ECHO_T}\"Not found\"" >&6; };
6073  fi
6074
6075
6076 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6077 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6078 LN_S=$as_ln_s
6079 if test "$LN_S" = "ln -s"; then
6080   { echo "$as_me:$LINENO: result: yes" >&5
6081 echo "${ECHO_T}yes" >&6; }
6082 else
6083   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6084 echo "${ECHO_T}no, using $LN_S" >&6; }
6085 fi
6086
6087 # Extract the first word of "nm", so it can be a program name with args.
6088 set dummy nm; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_path_NM+set}" = set; then
6092   echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094   case $NM in
6095   [\\/]* | ?:[\\/]*)
6096   ac_cv_path_NM="$NM" # Let the user override the test with a path.
6097   ;;
6098   *)
6099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104   for ac_exec_ext in '' $ac_executable_extensions; do
6105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106     ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
6107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111 done
6112 IFS=$as_save_IFS
6113
6114   test -z "$ac_cv_path_NM" && ac_cv_path_NM="nm"
6115   ;;
6116 esac
6117 fi
6118 NM=$ac_cv_path_NM
6119 if test -n "$NM"; then
6120   { echo "$as_me:$LINENO: result: $NM" >&5
6121 echo "${ECHO_T}$NM" >&6; }
6122 else
6123   { echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6; }
6125 fi
6126
6127
6128 # Extract the first word of "cmp", so it can be a program name with args.
6129 set dummy cmp; ac_word=$2
6130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6132 if test "${ac_cv_path_CMP+set}" = set; then
6133   echo $ECHO_N "(cached) $ECHO_C" >&6
6134 else
6135   case $CMP in
6136   [\\/]* | ?:[\\/]*)
6137   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6138   ;;
6139   *)
6140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143   IFS=$as_save_IFS
6144   test -z "$as_dir" && as_dir=.
6145   for ac_exec_ext in '' $ac_executable_extensions; do
6146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6147     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6149     break 2
6150   fi
6151 done
6152 done
6153 IFS=$as_save_IFS
6154
6155   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6156   ;;
6157 esac
6158 fi
6159 CMP=$ac_cv_path_CMP
6160 if test -n "$CMP"; then
6161   { echo "$as_me:$LINENO: result: $CMP" >&5
6162 echo "${ECHO_T}$CMP" >&6; }
6163 else
6164   { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6166 fi
6167
6168
6169 # Extract the first word of "cp", so it can be a program name with args.
6170 set dummy cp; ac_word=$2
6171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6173 if test "${ac_cv_path_CP+set}" = set; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176   case $CP in
6177   [\\/]* | ?:[\\/]*)
6178   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6179   ;;
6180   *)
6181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184   IFS=$as_save_IFS
6185   test -z "$as_dir" && as_dir=.
6186   for ac_exec_ext in '' $ac_executable_extensions; do
6187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6188     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6190     break 2
6191   fi
6192 done
6193 done
6194 IFS=$as_save_IFS
6195
6196   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6197   ;;
6198 esac
6199 fi
6200 CP=$ac_cv_path_CP
6201 if test -n "$CP"; then
6202   { echo "$as_me:$LINENO: result: $CP" >&5
6203 echo "${ECHO_T}$CP" >&6; }
6204 else
6205   { echo "$as_me:$LINENO: result: no" >&5
6206 echo "${ECHO_T}no" >&6; }
6207 fi
6208
6209
6210 # Extract the first word of "date", so it can be a program name with args.
6211 set dummy date; ac_word=$2
6212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6214 if test "${ac_cv_path_DATE+set}" = set; then
6215   echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217   case $DATE in
6218   [\\/]* | ?:[\\/]*)
6219   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6220   ;;
6221   *)
6222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223 for as_dir in $PATH
6224 do
6225   IFS=$as_save_IFS
6226   test -z "$as_dir" && as_dir=.
6227   for ac_exec_ext in '' $ac_executable_extensions; do
6228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6229     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231     break 2
6232   fi
6233 done
6234 done
6235 IFS=$as_save_IFS
6236
6237   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6238   ;;
6239 esac
6240 fi
6241 DATE=$ac_cv_path_DATE
6242 if test -n "$DATE"; then
6243   { echo "$as_me:$LINENO: result: $DATE" >&5
6244 echo "${ECHO_T}$DATE" >&6; }
6245 else
6246   { echo "$as_me:$LINENO: result: no" >&5
6247 echo "${ECHO_T}no" >&6; }
6248 fi
6249
6250
6251 # Extract the first word of "find", so it can be a program name with args.
6252 set dummy find; ac_word=$2
6253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6255 if test "${ac_cv_path_FIND+set}" = set; then
6256   echo $ECHO_N "(cached) $ECHO_C" >&6
6257 else
6258   case $FIND in
6259   [\\/]* | ?:[\\/]*)
6260   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6261   ;;
6262   *)
6263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 for as_dir in $PATH
6265 do
6266   IFS=$as_save_IFS
6267   test -z "$as_dir" && as_dir=.
6268   for ac_exec_ext in '' $ac_executable_extensions; do
6269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6270     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272     break 2
6273   fi
6274 done
6275 done
6276 IFS=$as_save_IFS
6277
6278   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6279   ;;
6280 esac
6281 fi
6282 FIND=$ac_cv_path_FIND
6283 if test -n "$FIND"; then
6284   { echo "$as_me:$LINENO: result: $FIND" >&5
6285 echo "${ECHO_T}$FIND" >&6; }
6286 else
6287   { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6289 fi
6290
6291
6292 # Extract the first word of "grep", so it can be a program name with args.
6293 set dummy grep; ac_word=$2
6294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6296 if test "${ac_cv_path_GREP+set}" = set; then
6297   echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299   case $GREP in
6300   [\\/]* | ?:[\\/]*)
6301   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6302   ;;
6303   *)
6304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307   IFS=$as_save_IFS
6308   test -z "$as_dir" && as_dir=.
6309   for ac_exec_ext in '' $ac_executable_extensions; do
6310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6311     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313     break 2
6314   fi
6315 done
6316 done
6317 IFS=$as_save_IFS
6318
6319   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6320   ;;
6321 esac
6322 fi
6323 GREP=$ac_cv_path_GREP
6324 if test -n "$GREP"; then
6325   { echo "$as_me:$LINENO: result: $GREP" >&5
6326 echo "${ECHO_T}$GREP" >&6; }
6327 else
6328   { echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6; }
6330 fi
6331
6332
6333 # Extract the first word of "mkdir", so it can be a program name with args.
6334 set dummy mkdir; ac_word=$2
6335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6337 if test "${ac_cv_path_MKDIR+set}" = set; then
6338   echo $ECHO_N "(cached) $ECHO_C" >&6
6339 else
6340   case $MKDIR in
6341   [\\/]* | ?:[\\/]*)
6342   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6343   ;;
6344   *)
6345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350   for ac_exec_ext in '' $ac_executable_extensions; do
6351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6352     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6354     break 2
6355   fi
6356 done
6357 done
6358 IFS=$as_save_IFS
6359
6360   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6361   ;;
6362 esac
6363 fi
6364 MKDIR=$ac_cv_path_MKDIR
6365 if test -n "$MKDIR"; then
6366   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6367 echo "${ECHO_T}$MKDIR" >&6; }
6368 else
6369   { echo "$as_me:$LINENO: result: no" >&5
6370 echo "${ECHO_T}no" >&6; }
6371 fi
6372
6373
6374 # Extract the first word of "mv", so it can be a program name with args.
6375 set dummy mv; ac_word=$2
6376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6378 if test "${ac_cv_path_MV+set}" = set; then
6379   echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381   case $MV in
6382   [\\/]* | ?:[\\/]*)
6383   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6384   ;;
6385   *)
6386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389   IFS=$as_save_IFS
6390   test -z "$as_dir" && as_dir=.
6391   for ac_exec_ext in '' $ac_executable_extensions; do
6392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6393     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395     break 2
6396   fi
6397 done
6398 done
6399 IFS=$as_save_IFS
6400
6401   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6402   ;;
6403 esac
6404 fi
6405 MV=$ac_cv_path_MV
6406 if test -n "$MV"; then
6407   { echo "$as_me:$LINENO: result: $MV" >&5
6408 echo "${ECHO_T}$MV" >&6; }
6409 else
6410   { echo "$as_me:$LINENO: result: no" >&5
6411 echo "${ECHO_T}no" >&6; }
6412 fi
6413
6414
6415 if test -n "$ac_tool_prefix"; then
6416   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6417 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6420 if test "${ac_cv_prog_RANLIB+set}" = set; then
6421   echo $ECHO_N "(cached) $ECHO_C" >&6
6422 else
6423   if test -n "$RANLIB"; then
6424   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6425 else
6426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 for as_dir in $PATH
6428 do
6429   IFS=$as_save_IFS
6430   test -z "$as_dir" && as_dir=.
6431   for ac_exec_ext in '' $ac_executable_extensions; do
6432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6433     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6435     break 2
6436   fi
6437 done
6438 done
6439 IFS=$as_save_IFS
6440
6441 fi
6442 fi
6443 RANLIB=$ac_cv_prog_RANLIB
6444 if test -n "$RANLIB"; then
6445   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6446 echo "${ECHO_T}$RANLIB" >&6; }
6447 else
6448   { echo "$as_me:$LINENO: result: no" >&5
6449 echo "${ECHO_T}no" >&6; }
6450 fi
6451
6452
6453 fi
6454 if test -z "$ac_cv_prog_RANLIB"; then
6455   ac_ct_RANLIB=$RANLIB
6456   # Extract the first word of "ranlib", so it can be a program name with args.
6457 set dummy ranlib; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6461   echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463   if test -n "$ac_ct_RANLIB"; then
6464   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6465 else
6466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467 for as_dir in $PATH
6468 do
6469   IFS=$as_save_IFS
6470   test -z "$as_dir" && as_dir=.
6471   for ac_exec_ext in '' $ac_executable_extensions; do
6472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6473     ac_cv_prog_ac_ct_RANLIB="ranlib"
6474     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6475     break 2
6476   fi
6477 done
6478 done
6479 IFS=$as_save_IFS
6480
6481 fi
6482 fi
6483 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6484 if test -n "$ac_ct_RANLIB"; then
6485   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6486 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6487 else
6488   { echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6; }
6490 fi
6491
6492   if test "x$ac_ct_RANLIB" = x; then
6493     RANLIB=":"
6494   else
6495     case $cross_compiling:$ac_tool_warned in
6496 yes:)
6497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6498 whose name does not start with the host triplet.  If you think this
6499 configuration is useful to you, please write to autoconf@gnu.org." >&5
6500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6501 whose name does not start with the host triplet.  If you think this
6502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6503 ac_tool_warned=yes ;;
6504 esac
6505     RANLIB=$ac_ct_RANLIB
6506   fi
6507 else
6508   RANLIB="$ac_cv_prog_RANLIB"
6509 fi
6510
6511 if test -n "$ac_tool_prefix"; then
6512   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6513 set dummy ${ac_tool_prefix}ar; ac_word=$2
6514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6516 if test "${ac_cv_prog_AR+set}" = set; then
6517   echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519   if test -n "$AR"; then
6520   ac_cv_prog_AR="$AR" # Let the user override the test.
6521 else
6522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6523 for as_dir in $PATH
6524 do
6525   IFS=$as_save_IFS
6526   test -z "$as_dir" && as_dir=.
6527   for ac_exec_ext in '' $ac_executable_extensions; do
6528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6529     ac_cv_prog_AR="${ac_tool_prefix}ar"
6530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6531     break 2
6532   fi
6533 done
6534 done
6535 IFS=$as_save_IFS
6536
6537 fi
6538 fi
6539 AR=$ac_cv_prog_AR
6540 if test -n "$AR"; then
6541   { echo "$as_me:$LINENO: result: $AR" >&5
6542 echo "${ECHO_T}$AR" >&6; }
6543 else
6544   { echo "$as_me:$LINENO: result: no" >&5
6545 echo "${ECHO_T}no" >&6; }
6546 fi
6547
6548
6549 fi
6550 if test -z "$ac_cv_prog_AR"; then
6551   ac_ct_AR=$AR
6552   # Extract the first word of "ar", so it can be a program name with args.
6553 set dummy ar; ac_word=$2
6554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6556 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6557   echo $ECHO_N "(cached) $ECHO_C" >&6
6558 else
6559   if test -n "$ac_ct_AR"; then
6560   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6561 else
6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563 for as_dir in $PATH
6564 do
6565   IFS=$as_save_IFS
6566   test -z "$as_dir" && as_dir=.
6567   for ac_exec_ext in '' $ac_executable_extensions; do
6568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6569     ac_cv_prog_ac_ct_AR="ar"
6570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571     break 2
6572   fi
6573 done
6574 done
6575 IFS=$as_save_IFS
6576
6577 fi
6578 fi
6579 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6580 if test -n "$ac_ct_AR"; then
6581   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6582 echo "${ECHO_T}$ac_ct_AR" >&6; }
6583 else
6584   { echo "$as_me:$LINENO: result: no" >&5
6585 echo "${ECHO_T}no" >&6; }
6586 fi
6587
6588   if test "x$ac_ct_AR" = x; then
6589     AR="false"
6590   else
6591     case $cross_compiling:$ac_tool_warned in
6592 yes:)
6593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6594 whose name does not start with the host triplet.  If you think this
6595 configuration is useful to you, please write to autoconf@gnu.org." >&5
6596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6597 whose name does not start with the host triplet.  If you think this
6598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6599 ac_tool_warned=yes ;;
6600 esac
6601     AR=$ac_ct_AR
6602   fi
6603 else
6604   AR="$ac_cv_prog_AR"
6605 fi
6606
6607 # Extract the first word of "rm", so it can be a program name with args.
6608 set dummy rm; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_path_RM+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   case $RM in
6615   [\\/]* | ?:[\\/]*)
6616   ac_cv_path_RM="$RM" # Let the user override the test with a path.
6617   ;;
6618   *)
6619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624   for ac_exec_ext in '' $ac_executable_extensions; do
6625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6626     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631 done
6632 IFS=$as_save_IFS
6633
6634   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6635   ;;
6636 esac
6637 fi
6638 RM=$ac_cv_path_RM
6639 if test -n "$RM"; then
6640   { echo "$as_me:$LINENO: result: $RM" >&5
6641 echo "${ECHO_T}$RM" >&6; }
6642 else
6643   { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6645 fi
6646
6647
6648 # Extract the first word of "sed", so it can be a program name with args.
6649 set dummy sed; ac_word=$2
6650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6652 if test "${ac_cv_path_SED+set}" = set; then
6653   echo $ECHO_N "(cached) $ECHO_C" >&6
6654 else
6655   case $SED in
6656   [\\/]* | ?:[\\/]*)
6657   ac_cv_path_SED="$SED" # Let the user override the test with a path.
6658   ;;
6659   *)
6660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663   IFS=$as_save_IFS
6664   test -z "$as_dir" && as_dir=.
6665   for ac_exec_ext in '' $ac_executable_extensions; do
6666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6667     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669     break 2
6670   fi
6671 done
6672 done
6673 IFS=$as_save_IFS
6674
6675   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6676   ;;
6677 esac
6678 fi
6679 SED=$ac_cv_path_SED
6680 if test -n "$SED"; then
6681   { echo "$as_me:$LINENO: result: $SED" >&5
6682 echo "${ECHO_T}$SED" >&6; }
6683 else
6684   { echo "$as_me:$LINENO: result: no" >&5
6685 echo "${ECHO_T}no" >&6; }
6686 fi
6687
6688
6689 # Extract the first word of "tar", so it can be a program name with args.
6690 set dummy tar; ac_word=$2
6691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6693 if test "${ac_cv_path_TAR+set}" = set; then
6694   echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696   case $TAR in
6697   [\\/]* | ?:[\\/]*)
6698   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6699   ;;
6700   *)
6701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704   IFS=$as_save_IFS
6705   test -z "$as_dir" && as_dir=.
6706   for ac_exec_ext in '' $ac_executable_extensions; do
6707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6708     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6709     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710     break 2
6711   fi
6712 done
6713 done
6714 IFS=$as_save_IFS
6715
6716   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6717   ;;
6718 esac
6719 fi
6720 TAR=$ac_cv_path_TAR
6721 if test -n "$TAR"; then
6722   { echo "$as_me:$LINENO: result: $TAR" >&5
6723 echo "${ECHO_T}$TAR" >&6; }
6724 else
6725   { echo "$as_me:$LINENO: result: no" >&5
6726 echo "${ECHO_T}no" >&6; }
6727 fi
6728
6729
6730 # Extract the first word of "pwd", so it can be a program name with args.
6731 set dummy pwd; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_path_BINPWD+set}" = set; then
6735   echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737   case $BINPWD in
6738   [\\/]* | ?:[\\/]*)
6739   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6740   ;;
6741   *)
6742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745   IFS=$as_save_IFS
6746   test -z "$as_dir" && as_dir=.
6747   for ac_exec_ext in '' $ac_executable_extensions; do
6748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6749     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751     break 2
6752   fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6758   ;;
6759 esac
6760 fi
6761 BINPWD=$ac_cv_path_BINPWD
6762 if test -n "$BINPWD"; then
6763   { echo "$as_me:$LINENO: result: $BINPWD" >&5
6764 echo "${ECHO_T}$BINPWD" >&6; }
6765 else
6766   { echo "$as_me:$LINENO: result: no" >&5
6767 echo "${ECHO_T}no" >&6; }
6768 fi
6769
6770
6771
6772 # Extract the first word of "dot", so it can be a program name with args.
6773 set dummy dot; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_DOT+set}" = set; then
6777   echo $ECHO_N "(cached) $ECHO_C" >&6
6778 else
6779   case $DOT in
6780   [\\/]* | ?:[\\/]*)
6781   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6782   ;;
6783   *)
6784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789   for ac_exec_ext in '' $ac_executable_extensions; do
6790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796 done
6797 IFS=$as_save_IFS
6798
6799   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6800   ;;
6801 esac
6802 fi
6803 DOT=$ac_cv_path_DOT
6804 if test -n "$DOT"; then
6805   { echo "$as_me:$LINENO: result: $DOT" >&5
6806 echo "${ECHO_T}$DOT" >&6; }
6807 else
6808   { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6810 fi
6811
6812
6813 if test "$DOT" != "echo dot" ; then
6814
6815 cat >>confdefs.h <<\_ACEOF
6816 #define HAVE_DOT 1
6817 _ACEOF
6818
6819     if test "$llvm_cv_os_type" = "MingW" ; then
6820     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6821   fi
6822
6823 cat >>confdefs.h <<_ACEOF
6824 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6825 _ACEOF
6826
6827 fi
6828
6829 # Find a good install program.  We prefer a C program (faster),
6830 # so one script is as good as another.  But avoid the broken or
6831 # incompatible versions:
6832 # SysV /etc/install, /usr/sbin/install
6833 # SunOS /usr/etc/install
6834 # IRIX /sbin/install
6835 # AIX /bin/install
6836 # AmigaOS /C/install, which installs bootblocks on floppy discs
6837 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6838 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6839 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6840 # OS/2's system install, which has a completely different semantic
6841 # ./install, which can be erroneously created by make from ./install.sh.
6842 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6843 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6844 if test -z "$INSTALL"; then
6845 if test "${ac_cv_path_install+set}" = set; then
6846   echo $ECHO_N "(cached) $ECHO_C" >&6
6847 else
6848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851   IFS=$as_save_IFS
6852   test -z "$as_dir" && as_dir=.
6853   # Account for people who put trailing slashes in PATH elements.
6854 case $as_dir/ in
6855   ./ | .// | /cC/* | \
6856   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6857   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6858   /usr/ucb/* ) ;;
6859   *)
6860     # OSF1 and SCO ODT 3.0 have their own names for install.
6861     # Don't use installbsd from OSF since it installs stuff as root
6862     # by default.
6863     for ac_prog in ginstall scoinst install; do
6864       for ac_exec_ext in '' $ac_executable_extensions; do
6865         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6866           if test $ac_prog = install &&
6867             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6868             # AIX install.  It has an incompatible calling convention.
6869             :
6870           elif test $ac_prog = install &&
6871             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6872             # program-specific install script used by HP pwplus--don't use.
6873             :
6874           else
6875             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6876             break 3
6877           fi
6878         fi
6879       done
6880     done
6881     ;;
6882 esac
6883 done
6884 IFS=$as_save_IFS
6885
6886
6887 fi
6888   if test "${ac_cv_path_install+set}" = set; then
6889     INSTALL=$ac_cv_path_install
6890   else
6891     # As a last resort, use the slow shell script.  Don't cache a
6892     # value for INSTALL within a source directory, because that will
6893     # break other packages using the cache if that directory is
6894     # removed, or if the value is a relative name.
6895     INSTALL=$ac_install_sh
6896   fi
6897 fi
6898 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6899 echo "${ECHO_T}$INSTALL" >&6; }
6900
6901 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6902 # It thinks the first close brace ends the variable substitution.
6903 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6904
6905 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6906
6907 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6908
6909 case "$INSTALL" in
6910  [\\/$]* | ?:[\\/]* ) ;;
6911  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6912 esac
6913
6914 # Extract the first word of "bzip2", so it can be a program name with args.
6915 set dummy bzip2; ac_word=$2
6916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6918 if test "${ac_cv_path_BZIP2+set}" = set; then
6919   echo $ECHO_N "(cached) $ECHO_C" >&6
6920 else
6921   case $BZIP2 in
6922   [\\/]* | ?:[\\/]*)
6923   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
6924   ;;
6925   *)
6926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6928 do
6929   IFS=$as_save_IFS
6930   test -z "$as_dir" && as_dir=.
6931   for ac_exec_ext in '' $ac_executable_extensions; do
6932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6933     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
6934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6935     break 2
6936   fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941   ;;
6942 esac
6943 fi
6944 BZIP2=$ac_cv_path_BZIP2
6945 if test -n "$BZIP2"; then
6946   { echo "$as_me:$LINENO: result: $BZIP2" >&5
6947 echo "${ECHO_T}$BZIP2" >&6; }
6948 else
6949   { echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6; }
6951 fi
6952
6953
6954 # Extract the first word of "cat", so it can be a program name with args.
6955 set dummy cat; ac_word=$2
6956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6958 if test "${ac_cv_path_CAT+set}" = set; then
6959   echo $ECHO_N "(cached) $ECHO_C" >&6
6960 else
6961   case $CAT in
6962   [\\/]* | ?:[\\/]*)
6963   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
6964   ;;
6965   *)
6966   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969   IFS=$as_save_IFS
6970   test -z "$as_dir" && as_dir=.
6971   for ac_exec_ext in '' $ac_executable_extensions; do
6972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6973     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
6974     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975     break 2
6976   fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6980
6981   ;;
6982 esac
6983 fi
6984 CAT=$ac_cv_path_CAT
6985 if test -n "$CAT"; then
6986   { echo "$as_me:$LINENO: result: $CAT" >&5
6987 echo "${ECHO_T}$CAT" >&6; }
6988 else
6989   { echo "$as_me:$LINENO: result: no" >&5
6990 echo "${ECHO_T}no" >&6; }
6991 fi
6992
6993
6994 # Extract the first word of "doxygen", so it can be a program name with args.
6995 set dummy doxygen; ac_word=$2
6996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6998 if test "${ac_cv_path_DOXYGEN+set}" = set; then
6999   echo $ECHO_N "(cached) $ECHO_C" >&6
7000 else
7001   case $DOXYGEN in
7002   [\\/]* | ?:[\\/]*)
7003   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7004   ;;
7005   *)
7006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011   for ac_exec_ext in '' $ac_executable_extensions; do
7012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7013     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015     break 2
7016   fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021   ;;
7022 esac
7023 fi
7024 DOXYGEN=$ac_cv_path_DOXYGEN
7025 if test -n "$DOXYGEN"; then
7026   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7027 echo "${ECHO_T}$DOXYGEN" >&6; }
7028 else
7029   { echo "$as_me:$LINENO: result: no" >&5
7030 echo "${ECHO_T}no" >&6; }
7031 fi
7032
7033
7034 # Extract the first word of "groff", so it can be a program name with args.
7035 set dummy groff; ac_word=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_path_GROFF+set}" = set; then
7039   echo $ECHO_N "(cached) $ECHO_C" >&6
7040 else
7041   case $GROFF in
7042   [\\/]* | ?:[\\/]*)
7043   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7044   ;;
7045   *)
7046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051   for ac_exec_ext in '' $ac_executable_extensions; do
7052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7053     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058 done
7059 IFS=$as_save_IFS
7060
7061   ;;
7062 esac
7063 fi
7064 GROFF=$ac_cv_path_GROFF
7065 if test -n "$GROFF"; then
7066   { echo "$as_me:$LINENO: result: $GROFF" >&5
7067 echo "${ECHO_T}$GROFF" >&6; }
7068 else
7069   { echo "$as_me:$LINENO: result: no" >&5
7070 echo "${ECHO_T}no" >&6; }
7071 fi
7072
7073
7074 # Extract the first word of "gzip", so it can be a program name with args.
7075 set dummy gzip; ac_word=$2
7076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7079   echo $ECHO_N "(cached) $ECHO_C" >&6
7080 else
7081   case $GZIPBIN in
7082   [\\/]* | ?:[\\/]*)
7083   ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7084   ;;
7085   *)
7086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089   IFS=$as_save_IFS
7090   test -z "$as_dir" && as_dir=.
7091   for ac_exec_ext in '' $ac_executable_extensions; do
7092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7093     ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7095     break 2
7096   fi
7097 done
7098 done
7099 IFS=$as_save_IFS
7100
7101   ;;
7102 esac
7103 fi
7104 GZIPBIN=$ac_cv_path_GZIPBIN
7105 if test -n "$GZIPBIN"; then
7106   { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7107 echo "${ECHO_T}$GZIPBIN" >&6; }
7108 else
7109   { echo "$as_me:$LINENO: result: no" >&5
7110 echo "${ECHO_T}no" >&6; }
7111 fi
7112
7113
7114 # Extract the first word of "pdfroff", so it can be a program name with args.
7115 set dummy pdfroff; ac_word=$2
7116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7118 if test "${ac_cv_path_PDFROFF+set}" = set; then
7119   echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
7121   case $PDFROFF in
7122   [\\/]* | ?:[\\/]*)
7123   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7124   ;;
7125   *)
7126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127 for as_dir in $PATH
7128 do
7129   IFS=$as_save_IFS
7130   test -z "$as_dir" && as_dir=.
7131   for ac_exec_ext in '' $ac_executable_extensions; do
7132   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7133     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7135     break 2
7136   fi
7137 done
7138 done
7139 IFS=$as_save_IFS
7140
7141   ;;
7142 esac
7143 fi
7144 PDFROFF=$ac_cv_path_PDFROFF
7145 if test -n "$PDFROFF"; then
7146   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7147 echo "${ECHO_T}$PDFROFF" >&6; }
7148 else
7149   { echo "$as_me:$LINENO: result: no" >&5
7150 echo "${ECHO_T}no" >&6; }
7151 fi
7152
7153
7154 # Extract the first word of "zip", so it can be a program name with args.
7155 set dummy zip; ac_word=$2
7156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7158 if test "${ac_cv_path_ZIP+set}" = set; then
7159   echo $ECHO_N "(cached) $ECHO_C" >&6
7160 else
7161   case $ZIP in
7162   [\\/]* | ?:[\\/]*)
7163   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7164   ;;
7165   *)
7166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7167 for as_dir in $PATH
7168 do
7169   IFS=$as_save_IFS
7170   test -z "$as_dir" && as_dir=.
7171   for ac_exec_ext in '' $ac_executable_extensions; do
7172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7173     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175     break 2
7176   fi
7177 done
7178 done
7179 IFS=$as_save_IFS
7180
7181   ;;
7182 esac
7183 fi
7184 ZIP=$ac_cv_path_ZIP
7185 if test -n "$ZIP"; then
7186   { echo "$as_me:$LINENO: result: $ZIP" >&5
7187 echo "${ECHO_T}$ZIP" >&6; }
7188 else
7189   { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7191 fi
7192
7193
7194 # Extract the first word of "go", so it can be a program name with args.
7195 set dummy go; ac_word=$2
7196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7198 if test "${ac_cv_path_GO+set}" = set; then
7199   echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201   case $GO in
7202   [\\/]* | ?:[\\/]*)
7203   ac_cv_path_GO="$GO" # Let the user override the test with a path.
7204   ;;
7205   *)
7206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH
7208 do
7209   IFS=$as_save_IFS
7210   test -z "$as_dir" && as_dir=.
7211   for ac_exec_ext in '' $ac_executable_extensions; do
7212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7213     ac_cv_path_GO="$as_dir/$ac_word$ac_exec_ext"
7214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7215     break 2
7216   fi
7217 done
7218 done
7219 IFS=$as_save_IFS
7220
7221   ;;
7222 esac
7223 fi
7224 GO=$ac_cv_path_GO
7225 if test -n "$GO"; then
7226   { echo "$as_me:$LINENO: result: $GO" >&5
7227 echo "${ECHO_T}$GO" >&6; }
7228 else
7229   { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7231 fi
7232
7233
7234 for ac_prog in ocamlfind
7235 do
7236   # Extract the first word of "$ac_prog", so it can be a program name with args.
7237 set dummy $ac_prog; ac_word=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_path_OCAMLFIND+set}" = set; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243   case $OCAMLFIND in
7244   [\\/]* | ?:[\\/]*)
7245   ac_cv_path_OCAMLFIND="$OCAMLFIND" # Let the user override the test with a path.
7246   ;;
7247   *)
7248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251   IFS=$as_save_IFS
7252   test -z "$as_dir" && as_dir=.
7253   for ac_exec_ext in '' $ac_executable_extensions; do
7254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255     ac_cv_path_OCAMLFIND="$as_dir/$ac_word$ac_exec_ext"
7256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257     break 2
7258   fi
7259 done
7260 done
7261 IFS=$as_save_IFS
7262
7263   ;;
7264 esac
7265 fi
7266 OCAMLFIND=$ac_cv_path_OCAMLFIND
7267 if test -n "$OCAMLFIND"; then
7268   { echo "$as_me:$LINENO: result: $OCAMLFIND" >&5
7269 echo "${ECHO_T}$OCAMLFIND" >&6; }
7270 else
7271   { echo "$as_me:$LINENO: result: no" >&5
7272 echo "${ECHO_T}no" >&6; }
7273 fi
7274
7275
7276   test -n "$OCAMLFIND" && break
7277 done
7278
7279 for ac_prog in gas as
7280 do
7281   # Extract the first word of "$ac_prog", so it can be a program name with args.
7282 set dummy $ac_prog; ac_word=$2
7283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7285 if test "${ac_cv_path_GAS+set}" = set; then
7286   echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288   case $GAS in
7289   [\\/]* | ?:[\\/]*)
7290   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7291   ;;
7292   *)
7293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 for as_dir in $PATH
7295 do
7296   IFS=$as_save_IFS
7297   test -z "$as_dir" && as_dir=.
7298   for ac_exec_ext in '' $ac_executable_extensions; do
7299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7300     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302     break 2
7303   fi
7304 done
7305 done
7306 IFS=$as_save_IFS
7307
7308   ;;
7309 esac
7310 fi
7311 GAS=$ac_cv_path_GAS
7312 if test -n "$GAS"; then
7313   { echo "$as_me:$LINENO: result: $GAS" >&5
7314 echo "${ECHO_T}$GAS" >&6; }
7315 else
7316   { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7318 fi
7319
7320
7321   test -n "$GAS" && break
7322 done
7323
7324
7325 { echo "$as_me:$LINENO: checking for linker version" >&5
7326 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7327 if test "${llvm_cv_link_version+set}" = set; then
7328   echo $ECHO_N "(cached) $ECHO_C" >&6
7329 else
7330
7331    version_string="$(${LD:-ld} -v 2>&1 | head -1)"
7332
7333    # Check for ld64.
7334    if (echo "$version_string" | grep -q "ld64"); then
7335      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7336    else
7337      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7338    fi
7339
7340 fi
7341 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7342 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7343
7344 cat >>confdefs.h <<_ACEOF
7345 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7346 _ACEOF
7347
7348
7349
7350
7351 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7352 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7353 if test "${llvm_cv_link_use_r+set}" = set; then
7354   echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356    ac_ext=c
7357 ac_cpp='$CPP $CPPFLAGS'
7358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361
7362   oldcflags="$CFLAGS"
7363   CFLAGS="$CFLAGS -Wl,-R."
7364   cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h.  */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h.  */
7370
7371 int
7372 main ()
7373 {
7374
7375   ;
7376   return 0;
7377 }
7378 _ACEOF
7379 rm -f conftest.$ac_objext conftest$ac_exeext
7380 if { (ac_try="$ac_link"
7381 case "(($ac_try" in
7382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383   *) ac_try_echo=$ac_try;;
7384 esac
7385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386   (eval "$ac_link") 2>conftest.er1
7387   ac_status=$?
7388   grep -v '^ *+' conftest.er1 >conftest.err
7389   rm -f conftest.er1
7390   cat conftest.err >&5
7391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392   (exit $ac_status); } &&
7393          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7394   { (case "(($ac_try" in
7395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396   *) ac_try_echo=$ac_try;;
7397 esac
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399   (eval "$ac_try") 2>&5
7400   ac_status=$?
7401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402   (exit $ac_status); }; } &&
7403          { ac_try='test -s conftest$ac_exeext'
7404   { (case "(($ac_try" in
7405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406   *) ac_try_echo=$ac_try;;
7407 esac
7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409   (eval "$ac_try") 2>&5
7410   ac_status=$?
7411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412   (exit $ac_status); }; }; then
7413   llvm_cv_link_use_r=yes
7414 else
7415   echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7417
7418         llvm_cv_link_use_r=no
7419 fi
7420
7421 rm -f core conftest.err conftest.$ac_objext \
7422       conftest$ac_exeext conftest.$ac_ext
7423   CFLAGS="$oldcflags"
7424   ac_ext=c
7425 ac_cpp='$CPP $CPPFLAGS'
7426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7429
7430
7431 fi
7432 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7433 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7434 if test "$llvm_cv_link_use_r" = yes ; then
7435
7436 cat >>confdefs.h <<\_ACEOF
7437 #define HAVE_LINK_R 1
7438 _ACEOF
7439
7440   fi
7441
7442
7443 { echo "$as_me:$LINENO: checking for compiler -rdynamic option" >&5
7444 echo $ECHO_N "checking for compiler -rdynamic option... $ECHO_C" >&6; }
7445 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448    ac_ext=c
7449 ac_cpp='$CPP $CPPFLAGS'
7450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7453
7454   oldcflags="$CFLAGS"
7455   CFLAGS="$CFLAGS -rdynamic"
7456   cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h.  */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h.  */
7462
7463 int
7464 main ()
7465 {
7466
7467   ;
7468   return 0;
7469 }
7470 _ACEOF
7471 rm -f conftest.$ac_objext conftest$ac_exeext
7472 if { (ac_try="$ac_link"
7473 case "(($ac_try" in
7474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475   *) ac_try_echo=$ac_try;;
7476 esac
7477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478   (eval "$ac_link") 2>conftest.er1
7479   ac_status=$?
7480   grep -v '^ *+' conftest.er1 >conftest.err
7481   rm -f conftest.er1
7482   cat conftest.err >&5
7483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484   (exit $ac_status); } &&
7485          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7486   { (case "(($ac_try" in
7487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7488   *) ac_try_echo=$ac_try;;
7489 esac
7490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7491   (eval "$ac_try") 2>&5
7492   ac_status=$?
7493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494   (exit $ac_status); }; } &&
7495          { ac_try='test -s conftest$ac_exeext'
7496   { (case "(($ac_try" in
7497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498   *) ac_try_echo=$ac_try;;
7499 esac
7500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501   (eval "$ac_try") 2>&5
7502   ac_status=$?
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); }; }; then
7505   llvm_cv_link_use_export_dynamic=yes
7506 else
7507   echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7509
7510         llvm_cv_link_use_export_dynamic=no
7511 fi
7512
7513 rm -f core conftest.err conftest.$ac_objext \
7514       conftest$ac_exeext conftest.$ac_ext
7515   CFLAGS="$oldcflags"
7516   ac_ext=c
7517 ac_cpp='$CPP $CPPFLAGS'
7518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7521
7522
7523 fi
7524 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7525 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7526 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7527
7528 cat >>confdefs.h <<\_ACEOF
7529 #define HAVE_LINK_EXPORT_DYNAMIC 1
7530 _ACEOF
7531
7532   fi
7533
7534
7535 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7536 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7537 if test "${llvm_cv_link_use_version_script+set}" = set; then
7538   echo $ECHO_N "(cached) $ECHO_C" >&6
7539 else
7540    ac_ext=c
7541 ac_cpp='$CPP $CPPFLAGS'
7542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7545
7546   oldcflags="$CFLAGS"
7547
7548   # The following code is from the autoconf manual,
7549   # "11.13: Limitations of Usual Tools".
7550   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7551   # Use mktemp if possible; otherwise fall back on mkdir,
7552   # with $RANDOM to make collisions less likely.
7553   : ${TMPDIR=/tmp}
7554   {
7555     tmp=`
7556       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7557     ` &&
7558     test -n "$tmp" && test -d "$tmp"
7559   } || {
7560     tmp=$TMPDIR/foo$$-$RANDOM
7561     (umask 077 && mkdir "$tmp")
7562   } || exit $?
7563
7564   echo "{" > "$tmp/export.map"
7565   echo "  global: main;" >> "$tmp/export.map"
7566   echo "  local: *;" >> "$tmp/export.map"
7567   echo "};" >> "$tmp/export.map"
7568
7569   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7570   cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h.  */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h.  */
7576
7577 int
7578 main ()
7579 {
7580
7581   ;
7582   return 0;
7583 }
7584 _ACEOF
7585 rm -f conftest.$ac_objext conftest$ac_exeext
7586 if { (ac_try="$ac_link"
7587 case "(($ac_try" in
7588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7589   *) ac_try_echo=$ac_try;;
7590 esac
7591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592   (eval "$ac_link") 2>conftest.er1
7593   ac_status=$?
7594   grep -v '^ *+' conftest.er1 >conftest.err
7595   rm -f conftest.er1
7596   cat conftest.err >&5
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); } &&
7599          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7600   { (case "(($ac_try" in
7601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7602   *) ac_try_echo=$ac_try;;
7603 esac
7604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7605   (eval "$ac_try") 2>&5
7606   ac_status=$?
7607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); }; } &&
7609          { ac_try='test -s conftest$ac_exeext'
7610   { (case "(($ac_try" in
7611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612   *) ac_try_echo=$ac_try;;
7613 esac
7614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615   (eval "$ac_try") 2>&5
7616   ac_status=$?
7617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618   (exit $ac_status); }; }; then
7619   llvm_cv_link_use_version_script=yes
7620 else
7621   echo "$as_me: failed program was:" >&5
7622 sed 's/^/| /' conftest.$ac_ext >&5
7623
7624         llvm_cv_link_use_version_script=no
7625 fi
7626
7627 rm -f core conftest.err conftest.$ac_objext \
7628       conftest$ac_exeext conftest.$ac_ext
7629   rm "$tmp/export.map"
7630   rmdir "$tmp"
7631   CFLAGS="$oldcflags"
7632   ac_ext=c
7633 ac_cpp='$CPP $CPPFLAGS'
7634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7637
7638
7639 fi
7640 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7641 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7642 if test "$llvm_cv_link_use_version_script" = yes ; then
7643   HAVE_LINK_VERSION_SCRIPT=1
7644
7645   fi
7646
7647
7648
7649 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7650 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7651 if test "${ac_cv_path_GREP+set}" = set; then
7652   echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654   # Extract the first word of "grep ggrep" to use in msg output
7655 if test -z "$GREP"; then
7656 set dummy grep ggrep; ac_prog_name=$2
7657 if test "${ac_cv_path_GREP+set}" = set; then
7658   echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660   ac_path_GREP_found=false
7661 # Loop through the user's path and test for each of PROGNAME-LIST
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7664 do
7665   IFS=$as_save_IFS
7666   test -z "$as_dir" && as_dir=.
7667   for ac_prog in grep ggrep; do
7668   for ac_exec_ext in '' $ac_executable_extensions; do
7669     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7670     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7671     # Check for GNU ac_path_GREP and select it if it is found.
7672   # Check for GNU $ac_path_GREP
7673 case `"$ac_path_GREP" --version 2>&1` in
7674 *GNU*)
7675   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7676 *)
7677   ac_count=0
7678   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7679   while :
7680   do
7681     cat "conftest.in" "conftest.in" >"conftest.tmp"
7682     mv "conftest.tmp" "conftest.in"
7683     cp "conftest.in" "conftest.nl"
7684     echo 'GREP' >> "conftest.nl"
7685     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7686     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7687     ac_count=`expr $ac_count + 1`
7688     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7689       # Best one so far, save it but keep looking for a better one
7690       ac_cv_path_GREP="$ac_path_GREP"
7691       ac_path_GREP_max=$ac_count
7692     fi
7693     # 10*(2^10) chars as input seems more than enough
7694     test $ac_count -gt 10 && break
7695   done
7696   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7697 esac
7698
7699
7700     $ac_path_GREP_found && break 3
7701   done
7702 done
7703
7704 done
7705 IFS=$as_save_IFS
7706
7707
7708 fi
7709
7710 GREP="$ac_cv_path_GREP"
7711 if test -z "$GREP"; then
7712   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7713 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7714    { (exit 1); exit 1; }; }
7715 fi
7716
7717 else
7718   ac_cv_path_GREP=$GREP
7719 fi
7720
7721
7722 fi
7723 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7724 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7725  GREP="$ac_cv_path_GREP"
7726
7727
7728 { echo "$as_me:$LINENO: checking for egrep" >&5
7729 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7730 if test "${ac_cv_path_EGREP+set}" = set; then
7731   echo $ECHO_N "(cached) $ECHO_C" >&6
7732 else
7733   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7734    then ac_cv_path_EGREP="$GREP -E"
7735    else
7736      # Extract the first word of "egrep" to use in msg output
7737 if test -z "$EGREP"; then
7738 set dummy egrep; ac_prog_name=$2
7739 if test "${ac_cv_path_EGREP+set}" = set; then
7740   echo $ECHO_N "(cached) $ECHO_C" >&6
7741 else
7742   ac_path_EGREP_found=false
7743 # Loop through the user's path and test for each of PROGNAME-LIST
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7746 do
7747   IFS=$as_save_IFS
7748   test -z "$as_dir" && as_dir=.
7749   for ac_prog in egrep; do
7750   for ac_exec_ext in '' $ac_executable_extensions; do
7751     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7752     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
7753     # Check for GNU ac_path_EGREP and select it if it is found.
7754   # Check for GNU $ac_path_EGREP
7755 case `"$ac_path_EGREP" --version 2>&1` in
7756 *GNU*)
7757   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7758 *)
7759   ac_count=0
7760   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7761   while :
7762   do
7763     cat "conftest.in" "conftest.in" >"conftest.tmp"
7764     mv "conftest.tmp" "conftest.in"
7765     cp "conftest.in" "conftest.nl"
7766     echo 'EGREP' >> "conftest.nl"
7767     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7768     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7769     ac_count=`expr $ac_count + 1`
7770     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7771       # Best one so far, save it but keep looking for a better one
7772       ac_cv_path_EGREP="$ac_path_EGREP"
7773       ac_path_EGREP_max=$ac_count
7774     fi
7775     # 10*(2^10) chars as input seems more than enough
7776     test $ac_count -gt 10 && break
7777   done
7778   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7779 esac
7780
7781
7782     $ac_path_EGREP_found && break 3
7783   done
7784 done
7785
7786 done
7787 IFS=$as_save_IFS
7788
7789
7790 fi
7791
7792 EGREP="$ac_cv_path_EGREP"
7793 if test -z "$EGREP"; then
7794   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7795 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7796    { (exit 1); exit 1; }; }
7797 fi
7798
7799 else
7800   ac_cv_path_EGREP=$EGREP
7801 fi
7802
7803
7804    fi
7805 fi
7806 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7807 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7808  EGREP="$ac_cv_path_EGREP"
7809
7810
7811 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7812 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7813 if test "${ac_cv_header_stdc+set}" = set; then
7814   echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816   cat >conftest.$ac_ext <<_ACEOF
7817 /* confdefs.h.  */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h.  */
7822 #include <stdlib.h>
7823 #include <stdarg.h>
7824 #include <string.h>
7825 #include <float.h>
7826
7827 int
7828 main ()
7829 {
7830
7831   ;
7832   return 0;
7833 }
7834 _ACEOF
7835 rm -f conftest.$ac_objext
7836 if { (ac_try="$ac_compile"
7837 case "(($ac_try" in
7838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839   *) ac_try_echo=$ac_try;;
7840 esac
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842   (eval "$ac_compile") 2>conftest.er1
7843   ac_status=$?
7844   grep -v '^ *+' conftest.er1 >conftest.err
7845   rm -f conftest.er1
7846   cat conftest.err >&5
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); } &&
7849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7850   { (case "(($ac_try" in
7851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7852   *) ac_try_echo=$ac_try;;
7853 esac
7854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7855   (eval "$ac_try") 2>&5
7856   ac_status=$?
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); }; } &&
7859          { ac_try='test -s conftest.$ac_objext'
7860   { (case "(($ac_try" in
7861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862   *) ac_try_echo=$ac_try;;
7863 esac
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865   (eval "$ac_try") 2>&5
7866   ac_status=$?
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); }; }; then
7869   ac_cv_header_stdc=yes
7870 else
7871   echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7873
7874         ac_cv_header_stdc=no
7875 fi
7876
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878
7879 if test $ac_cv_header_stdc = yes; then
7880   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7881   cat >conftest.$ac_ext <<_ACEOF
7882 /* confdefs.h.  */
7883 _ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h.  */
7887 #include <string.h>
7888
7889 _ACEOF
7890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7891   $EGREP "memchr" >/dev/null 2>&1; then
7892   :
7893 else
7894   ac_cv_header_stdc=no
7895 fi
7896 rm -f conftest*
7897
7898 fi
7899
7900 if test $ac_cv_header_stdc = yes; then
7901   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7902   cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h.  */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h.  */
7908 #include <stdlib.h>
7909
7910 _ACEOF
7911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7912   $EGREP "free" >/dev/null 2>&1; then
7913   :
7914 else
7915   ac_cv_header_stdc=no
7916 fi
7917 rm -f conftest*
7918
7919 fi
7920
7921 if test $ac_cv_header_stdc = yes; then
7922   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7923   if test "$cross_compiling" = yes; then
7924   :
7925 else
7926   cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h.  */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h.  */
7932 #include <ctype.h>
7933 #include <stdlib.h>
7934 #if ((' ' & 0x0FF) == 0x020)
7935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7937 #else
7938 # define ISLOWER(c) \
7939                    (('a' <= (c) && (c) <= 'i') \
7940                      || ('j' <= (c) && (c) <= 'r') \
7941                      || ('s' <= (c) && (c) <= 'z'))
7942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7943 #endif
7944
7945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7946 int
7947 main ()
7948 {
7949   int i;
7950   for (i = 0; i < 256; i++)
7951     if (XOR (islower (i), ISLOWER (i))
7952         || toupper (i) != TOUPPER (i))
7953       return 2;
7954   return 0;
7955 }
7956 _ACEOF
7957 rm -f conftest$ac_exeext
7958 if { (ac_try="$ac_link"
7959 case "(($ac_try" in
7960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7961   *) ac_try_echo=$ac_try;;
7962 esac
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964   (eval "$ac_link") 2>&5
7965   ac_status=$?
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7968   { (case "(($ac_try" in
7969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970   *) ac_try_echo=$ac_try;;
7971 esac
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973   (eval "$ac_try") 2>&5
7974   ac_status=$?
7975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976   (exit $ac_status); }; }; then
7977   :
7978 else
7979   echo "$as_me: program exited with status $ac_status" >&5
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983 ( exit $ac_status )
7984 ac_cv_header_stdc=no
7985 fi
7986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7987 fi
7988
7989
7990 fi
7991 fi
7992 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7993 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7994 if test $ac_cv_header_stdc = yes; then
7995
7996 cat >>confdefs.h <<\_ACEOF
7997 #define STDC_HEADERS 1
7998 _ACEOF
7999
8000 fi
8001
8002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8013                   inttypes.h stdint.h unistd.h
8014 do
8015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021   cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h.  */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h.  */
8027 $ac_includes_default
8028
8029 #include <$ac_header>
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8033 case "(($ac_try" in
8034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035   *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038   (eval "$ac_compile") 2>conftest.er1
8039   ac_status=$?
8040   grep -v '^ *+' conftest.er1 >conftest.err
8041   rm -f conftest.er1
8042   cat conftest.err >&5
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); } &&
8045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8046   { (case "(($ac_try" in
8047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048   *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051   (eval "$ac_try") 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; } &&
8055          { ac_try='test -s conftest.$ac_objext'
8056   { (case "(($ac_try" in
8057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058   *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061   (eval "$ac_try") 2>&5
8062   ac_status=$?
8063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064   (exit $ac_status); }; }; then
8065   eval "$as_ac_Header=yes"
8066 else
8067   echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.$ac_ext >&5
8069
8070         eval "$as_ac_Header=no"
8071 fi
8072
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 fi
8075 ac_res=`eval echo '${'$as_ac_Header'}'`
8076                { echo "$as_me:$LINENO: result: $ac_res" >&5
8077 echo "${ECHO_T}$ac_res" >&6; }
8078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8079   cat >>confdefs.h <<_ACEOF
8080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8081 _ACEOF
8082
8083 fi
8084
8085 done
8086
8087
8088
8089 for ac_header in errno.h
8090 do
8091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8093   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8096   echo $ECHO_N "(cached) $ECHO_C" >&6
8097 fi
8098 ac_res=`eval echo '${'$as_ac_Header'}'`
8099                { echo "$as_me:$LINENO: result: $ac_res" >&5
8100 echo "${ECHO_T}$ac_res" >&6; }
8101 else
8102   # Is the header compilable?
8103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8105 cat >conftest.$ac_ext <<_ACEOF
8106 /* confdefs.h.  */
8107 _ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h.  */
8111 $ac_includes_default
8112 #include <$ac_header>
8113 _ACEOF
8114 rm -f conftest.$ac_objext
8115 if { (ac_try="$ac_compile"
8116 case "(($ac_try" in
8117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118   *) ac_try_echo=$ac_try;;
8119 esac
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121   (eval "$ac_compile") 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129   { (case "(($ac_try" in
8130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131   *) ac_try_echo=$ac_try;;
8132 esac
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134   (eval "$ac_try") 2>&5
8135   ac_status=$?
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); }; } &&
8138          { ac_try='test -s conftest.$ac_objext'
8139   { (case "(($ac_try" in
8140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141   *) ac_try_echo=$ac_try;;
8142 esac
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144   (eval "$ac_try") 2>&5
8145   ac_status=$?
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); }; }; then
8148   ac_header_compiler=yes
8149 else
8150   echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153         ac_header_compiler=no
8154 fi
8155
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8158 echo "${ECHO_T}$ac_header_compiler" >&6; }
8159
8160 # Is the header present?
8161 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8162 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8163 cat >conftest.$ac_ext <<_ACEOF
8164 /* confdefs.h.  */
8165 _ACEOF
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h.  */
8169 #include <$ac_header>
8170 _ACEOF
8171 if { (ac_try="$ac_cpp conftest.$ac_ext"
8172 case "(($ac_try" in
8173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174   *) ac_try_echo=$ac_try;;
8175 esac
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8178   ac_status=$?
8179   grep -v '^ *+' conftest.er1 >conftest.err
8180   rm -f conftest.er1
8181   cat conftest.err >&5
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); } >/dev/null; then
8184   if test -s conftest.err; then
8185     ac_cpp_err=$ac_c_preproc_warn_flag
8186     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8187   else
8188     ac_cpp_err=
8189   fi
8190 else
8191   ac_cpp_err=yes
8192 fi
8193 if test -z "$ac_cpp_err"; then
8194   ac_header_preproc=yes
8195 else
8196   echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8198
8199   ac_header_preproc=no
8200 fi
8201
8202 rm -f conftest.err conftest.$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8204 echo "${ECHO_T}$ac_header_preproc" >&6; }
8205
8206 # So?  What about this header?
8207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8208   yes:no: )
8209     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8211     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8213     ac_header_preproc=yes
8214     ;;
8215   no:yes:* )
8216     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8218     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8219 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8220     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8222     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8223 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8224     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8226     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8228     ( cat <<\_ASBOX
8229 ## ------------------------------------ ##
8230 ## Report this to http://llvm.org/bugs/ ##
8231 ## ------------------------------------ ##
8232 _ASBOX
8233      ) | sed "s/^/$as_me: WARNING:     /" >&2
8234     ;;
8235 esac
8236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8239   echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241   eval "$as_ac_Header=\$ac_header_preproc"
8242 fi
8243 ac_res=`eval echo '${'$as_ac_Header'}'`
8244                { echo "$as_me:$LINENO: result: $ac_res" >&5
8245 echo "${ECHO_T}$ac_res" >&6; }
8246
8247 fi
8248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8249   cat >>confdefs.h <<_ACEOF
8250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8251 _ACEOF
8252
8253 fi
8254
8255 done
8256
8257
8258 case "$llvm_cv_os_type" in
8259   Cygwin|MingW|Win32) llvm_shlib_ext=.dll ;;
8260   Darwin) llvm_shlib_ext=.dylib ;;
8261   *) llvm_shlib_ext=.so ;;
8262 esac
8263
8264
8265 cat >>confdefs.h <<_ACEOF
8266 #define LTDL_SHLIB_EXT "$llvm_shlib_ext"
8267 _ACEOF
8268
8269
8270 { echo "$as_me:$LINENO: checking tool compatibility" >&5
8271 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
8272
8273 ICC=no
8274 IXX=no
8275 case $CC in
8276   icc*|icpc*)
8277     ICC=yes
8278     IXX=yes
8279     ;;
8280    *)
8281     ;;
8282 esac
8283
8284 if test "$GCC" != "yes" && test "$ICC" != "yes"
8285 then
8286   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
8287 echo "$as_me: error: gcc|icc required but not found" >&2;}
8288    { (exit 1); exit 1; }; }
8289 fi
8290
8291 if test "$GXX" != "yes" && test "$IXX" != "yes"
8292 then
8293   { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
8294 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
8295    { (exit 1); exit 1; }; }
8296 fi
8297
8298 if test "$GCC" = "yes"
8299 then
8300   cat >conftest.$ac_ext <<_ACEOF
8301
8302   /* confdefs.h.  */
8303 _ACEOF
8304 cat confdefs.h >>conftest.$ac_ext
8305 cat >>conftest.$ac_ext <<_ACEOF
8306 /* end confdefs.h.  */
8307
8308     #if !defined(__GNUC__) || __GNUC__ < 3
8309     #error Unsupported GCC version
8310     #endif
8311
8312
8313 _ACEOF
8314 rm -f conftest.$ac_objext
8315 if { (ac_try="$ac_compile"
8316 case "(($ac_try" in
8317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318   *) ac_try_echo=$ac_try;;
8319 esac
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321   (eval "$ac_compile") 2>conftest.er1
8322   ac_status=$?
8323   grep -v '^ *+' conftest.er1 >conftest.err
8324   rm -f conftest.er1
8325   cat conftest.err >&5
8326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327   (exit $ac_status); } &&
8328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8329   { (case "(($ac_try" in
8330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331   *) ac_try_echo=$ac_try;;
8332 esac
8333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8334   (eval "$ac_try") 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); }; } &&
8338          { ac_try='test -s conftest.$ac_objext'
8339   { (case "(($ac_try" in
8340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8341   *) ac_try_echo=$ac_try;;
8342 esac
8343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8344   (eval "$ac_try") 2>&5
8345   ac_status=$?
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); }; }; then
8348   :
8349 else
8350   echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8352
8353         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
8354 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
8355    { (exit 1); exit 1; }; }
8356 fi
8357
8358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 fi
8360
8361 if test -z "$llvm_cv_gnu_make_command"
8362 then
8363   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
8364 echo "$as_me: error: GNU Make required but not found" >&2;}
8365    { (exit 1); exit 1; }; }
8366 fi
8367
8368 { echo "$as_me:$LINENO: result: ok" >&5
8369 echo "${ECHO_T}ok" >&6; }
8370
8371 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
8372 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
8373 NO_VARIADIC_MACROS=`$CXX -Werror -Wvariadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
8374
8375 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wmissing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
8376
8377 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
8378
8379
8380 NO_UNINITIALIZED=
8381 NO_MAYBE_UNINITIALIZED=
8382 if test "$GXX" = "yes"
8383 then
8384   NO_MAYBE_UNINITIALIZED=`$CXX -Werror -Wmaybe-uninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-maybe-uninitialized`
8385
8386         if test -z "$NO_MAYBE_UNINITIALIZED"
8387   then
8388     NO_UNINITIALIZED=`$CXX -Werror -Wuninitialized -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-uninitialized`
8389
8390   fi
8391 fi
8392
8393 no_comment=
8394 llvm_cv_old_cxxflags="$CXXFLAGS"
8395 CXXFLAGS="$CXXFLAGS -Wcomment -Werror"
8396 cat >conftest.$ac_ext <<_ACEOF
8397
8398   /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403 // Comment \o\
8404 // Another comment
8405 int main() { return 0; }
8406
8407
8408 _ACEOF
8409 rm -f conftest.$ac_objext
8410 if { (ac_try="$ac_compile"
8411 case "(($ac_try" in
8412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413   *) ac_try_echo=$ac_try;;
8414 esac
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416   (eval "$ac_compile") 2>conftest.er1
8417   ac_status=$?
8418   grep -v '^ *+' conftest.er1 >conftest.err
8419   rm -f conftest.er1
8420   cat conftest.err >&5
8421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422   (exit $ac_status); } &&
8423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8424   { (case "(($ac_try" in
8425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426   *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429   (eval "$ac_try") 2>&5
8430   ac_status=$?
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); }; } &&
8433          { ac_try='test -s conftest.$ac_objext'
8434   { (case "(($ac_try" in
8435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436   *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439   (eval "$ac_try") 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; }; then
8443
8444   no_comment=-Wno-comment
8445
8446 else
8447   echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8449
8450
8451 fi
8452
8453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 NO_COMMENT=$no_comment
8455
8456 CXXFLAGS="$llvm_cv_old_cxxflags"
8457
8458 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&5
8459 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT $NO_UNINITIALIZED $NO_MAYBE_UNINITIALIZED $NO_COMMENT" >&6; }
8460
8461
8462 # Check whether --with-python was given.
8463 if test "${with_python+set}" = set; then
8464   withval=$with_python; PYTHON="$withval"
8465 fi
8466
8467
8468 if test -n "$PYTHON" && test -x "$PYTHON" ; then
8469   { echo "$as_me:$LINENO: checking for python" >&5
8470 echo $ECHO_N "checking for python... $ECHO_C" >&6; }
8471   { echo "$as_me:$LINENO: result: user defined: $with_python" >&5
8472 echo "${ECHO_T}user defined: $with_python" >&6; }
8473 else
8474   if test -n "$PYTHON" ; then
8475     { echo "$as_me:$LINENO: WARNING: specified python ($PYTHON) is not usable, searching path" >&5
8476 echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
8477   fi
8478
8479   # Extract the first word of "python python2 python27", so it can be a program name with args.
8480 set dummy python python2 python27; ac_word=$2
8481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8483 if test "${ac_cv_path_PYTHON+set}" = set; then
8484   echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486   case $PYTHON in
8487   [\\/]* | ?:[\\/]*)
8488   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
8489   ;;
8490   *)
8491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8493 do
8494   IFS=$as_save_IFS
8495   test -z "$as_dir" && as_dir=.
8496   for ac_exec_ext in '' $ac_executable_extensions; do
8497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8498     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
8499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8500     break 2
8501   fi
8502 done
8503 done
8504 IFS=$as_save_IFS
8505
8506   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
8507 echo "${ECHO_T}not found" >&6; }
8508                 { { echo "$as_me:$LINENO: error: could not find python 2.7 or higher" >&5
8509 echo "$as_me: error: could not find python 2.7 or higher" >&2;}
8510    { (exit 1); exit 1; }; }"
8511   ;;
8512 esac
8513 fi
8514 PYTHON=$ac_cv_path_PYTHON
8515 if test -n "$PYTHON"; then
8516   { echo "$as_me:$LINENO: result: $PYTHON" >&5
8517 echo "${ECHO_T}$PYTHON" >&6; }
8518 else
8519   { echo "$as_me:$LINENO: result: no" >&5
8520 echo "${ECHO_T}no" >&6; }
8521 fi
8522
8523
8524 fi
8525
8526 { echo "$as_me:$LINENO: checking for python >= 2.7" >&5
8527 echo $ECHO_N "checking for python >= 2.7... $ECHO_C" >&6; }
8528 ac_python_version=`$PYTHON -V 2>&1 | cut -d' ' -f2`
8529 ac_python_version_major=`echo $ac_python_version | cut -d'.' -f1`
8530 ac_python_version_minor=`echo $ac_python_version | cut -d'.' -f2`
8531 ac_python_version_patch=`echo $ac_python_version | cut -d'.' -f3`
8532 if test "$ac_python_version_major" -gt "2" || \
8533    (test "$ac_python_version_major" -eq "2" && \
8534     test "$ac_python_version_minor" -ge "7") ; then
8535   { echo "$as_me:$LINENO: result: $PYTHON ($ac_python_version)" >&5
8536 echo "${ECHO_T}$PYTHON ($ac_python_version)" >&6; }
8537 else
8538   { echo "$as_me:$LINENO: result: not found" >&5
8539 echo "${ECHO_T}not found" >&6; }
8540   { { echo "$as_me:$LINENO: error: found python $ac_python_version ($PYTHON); required >= 2.7
8541 See \`config.log' for more details." >&5
8542 echo "$as_me: error: found python $ac_python_version ($PYTHON); required >= 2.7
8543 See \`config.log' for more details." >&2;}
8544    { (exit 1); exit 1; }; }
8545 fi
8546
8547
8548
8549 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
8550 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
8551 if test "${ac_cv_lib_m_sin+set}" = set; then
8552   echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554   ac_check_lib_save_LIBS=$LIBS
8555 LIBS="-lm  $LIBS"
8556 cat >conftest.$ac_ext <<_ACEOF
8557 /* confdefs.h.  */
8558 _ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h.  */
8562
8563 /* Override any GCC internal prototype to avoid an error.
8564    Use char because int might match the return type of a GCC
8565    builtin and then its argument prototype would still apply.  */
8566 #ifdef __cplusplus
8567 extern "C"
8568 #endif
8569 char sin ();
8570 int
8571 main ()
8572 {
8573 return sin ();
8574   ;
8575   return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext conftest$ac_exeext
8579 if { (ac_try="$ac_link"
8580 case "(($ac_try" in
8581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582   *) ac_try_echo=$ac_try;;
8583 esac
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585   (eval "$ac_link") 2>conftest.er1
8586   ac_status=$?
8587   grep -v '^ *+' conftest.er1 >conftest.err
8588   rm -f conftest.er1
8589   cat conftest.err >&5
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } &&
8592          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8593   { (case "(($ac_try" in
8594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595   *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598   (eval "$ac_try") 2>&5
8599   ac_status=$?
8600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601   (exit $ac_status); }; } &&
8602          { ac_try='test -s conftest$ac_exeext'
8603   { (case "(($ac_try" in
8604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605   *) ac_try_echo=$ac_try;;
8606 esac
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608   (eval "$ac_try") 2>&5
8609   ac_status=$?
8610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611   (exit $ac_status); }; }; then
8612   ac_cv_lib_m_sin=yes
8613 else
8614   echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8616
8617         ac_cv_lib_m_sin=no
8618 fi
8619
8620 rm -f core conftest.err conftest.$ac_objext \
8621       conftest$ac_exeext conftest.$ac_ext
8622 LIBS=$ac_check_lib_save_LIBS
8623 fi
8624 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
8625 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
8626 if test $ac_cv_lib_m_sin = yes; then
8627   cat >>confdefs.h <<_ACEOF
8628 #define HAVE_LIBM 1
8629 _ACEOF
8630
8631   LIBS="-lm $LIBS"
8632
8633 fi
8634
8635 if test "$llvm_cv_os_type" = "MingW" ; then
8636
8637 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
8638 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
8639 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
8640   echo $ECHO_N "(cached) $ECHO_C" >&6
8641 else
8642   ac_check_lib_save_LIBS=$LIBS
8643 LIBS="-limagehlp  $LIBS"
8644 cat >conftest.$ac_ext <<_ACEOF
8645 /* confdefs.h.  */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h.  */
8650
8651
8652 int
8653 main ()
8654 {
8655 return main ();
8656   ;
8657   return 0;
8658 }
8659 _ACEOF
8660 rm -f conftest.$ac_objext conftest$ac_exeext
8661 if { (ac_try="$ac_link"
8662 case "(($ac_try" in
8663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664   *) ac_try_echo=$ac_try;;
8665 esac
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667   (eval "$ac_link") 2>conftest.er1
8668   ac_status=$?
8669   grep -v '^ *+' conftest.er1 >conftest.err
8670   rm -f conftest.er1
8671   cat conftest.err >&5
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); } &&
8674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8675   { (case "(($ac_try" in
8676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677   *) ac_try_echo=$ac_try;;
8678 esac
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680   (eval "$ac_try") 2>&5
8681   ac_status=$?
8682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683   (exit $ac_status); }; } &&
8684          { ac_try='test -s conftest$ac_exeext'
8685   { (case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690   (eval "$ac_try") 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); }; }; then
8694   ac_cv_lib_imagehlp_main=yes
8695 else
8696   echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8698
8699         ac_cv_lib_imagehlp_main=no
8700 fi
8701
8702 rm -f core conftest.err conftest.$ac_objext \
8703       conftest$ac_exeext conftest.$ac_ext
8704 LIBS=$ac_check_lib_save_LIBS
8705 fi
8706 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
8707 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
8708 if test $ac_cv_lib_imagehlp_main = yes; then
8709   cat >>confdefs.h <<_ACEOF
8710 #define HAVE_LIBIMAGEHLP 1
8711 _ACEOF
8712
8713   LIBS="-limagehlp $LIBS"
8714
8715 fi
8716
8717
8718 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
8719 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
8720 if test "${ac_cv_lib_psapi_main+set}" = set; then
8721   echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723   ac_check_lib_save_LIBS=$LIBS
8724 LIBS="-lpsapi  $LIBS"
8725 cat >conftest.$ac_ext <<_ACEOF
8726 /* confdefs.h.  */
8727 _ACEOF
8728 cat confdefs.h >>conftest.$ac_ext
8729 cat >>conftest.$ac_ext <<_ACEOF
8730 /* end confdefs.h.  */
8731
8732
8733 int
8734 main ()
8735 {
8736 return main ();
8737   ;
8738   return 0;
8739 }
8740 _ACEOF
8741 rm -f conftest.$ac_objext conftest$ac_exeext
8742 if { (ac_try="$ac_link"
8743 case "(($ac_try" in
8744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8745   *) ac_try_echo=$ac_try;;
8746 esac
8747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748   (eval "$ac_link") 2>conftest.er1
8749   ac_status=$?
8750   grep -v '^ *+' conftest.er1 >conftest.err
8751   rm -f conftest.er1
8752   cat conftest.err >&5
8753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754   (exit $ac_status); } &&
8755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8756   { (case "(($ac_try" in
8757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758   *) ac_try_echo=$ac_try;;
8759 esac
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761   (eval "$ac_try") 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); }; } &&
8765          { ac_try='test -s conftest$ac_exeext'
8766   { (case "(($ac_try" in
8767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768   *) ac_try_echo=$ac_try;;
8769 esac
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771   (eval "$ac_try") 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); }; }; then
8775   ac_cv_lib_psapi_main=yes
8776 else
8777   echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8779
8780         ac_cv_lib_psapi_main=no
8781 fi
8782
8783 rm -f core conftest.err conftest.$ac_objext \
8784       conftest$ac_exeext conftest.$ac_ext
8785 LIBS=$ac_check_lib_save_LIBS
8786 fi
8787 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
8788 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
8789 if test $ac_cv_lib_psapi_main = yes; then
8790   cat >>confdefs.h <<_ACEOF
8791 #define HAVE_LIBPSAPI 1
8792 _ACEOF
8793
8794   LIBS="-lpsapi $LIBS"
8795
8796 fi
8797
8798
8799 { echo "$as_me:$LINENO: checking for main in -lshell32" >&5
8800 echo $ECHO_N "checking for main in -lshell32... $ECHO_C" >&6; }
8801 if test "${ac_cv_lib_shell32_main+set}" = set; then
8802   echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804   ac_check_lib_save_LIBS=$LIBS
8805 LIBS="-lshell32  $LIBS"
8806 cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h.  */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h.  */
8812
8813
8814 int
8815 main ()
8816 {
8817 return main ();
8818   ;
8819   return 0;
8820 }
8821 _ACEOF
8822 rm -f conftest.$ac_objext conftest$ac_exeext
8823 if { (ac_try="$ac_link"
8824 case "(($ac_try" in
8825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826   *) ac_try_echo=$ac_try;;
8827 esac
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829   (eval "$ac_link") 2>conftest.er1
8830   ac_status=$?
8831   grep -v '^ *+' conftest.er1 >conftest.err
8832   rm -f conftest.er1
8833   cat conftest.err >&5
8834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835   (exit $ac_status); } &&
8836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8837   { (case "(($ac_try" in
8838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839   *) ac_try_echo=$ac_try;;
8840 esac
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842   (eval "$ac_try") 2>&5
8843   ac_status=$?
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); }; } &&
8846          { ac_try='test -s conftest$ac_exeext'
8847   { (case "(($ac_try" in
8848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849   *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852   (eval "$ac_try") 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); }; }; then
8856   ac_cv_lib_shell32_main=yes
8857 else
8858   echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8860
8861         ac_cv_lib_shell32_main=no
8862 fi
8863
8864 rm -f core conftest.err conftest.$ac_objext \
8865       conftest$ac_exeext conftest.$ac_ext
8866 LIBS=$ac_check_lib_save_LIBS
8867 fi
8868 { echo "$as_me:$LINENO: result: $ac_cv_lib_shell32_main" >&5
8869 echo "${ECHO_T}$ac_cv_lib_shell32_main" >&6; }
8870 if test $ac_cv_lib_shell32_main = yes; then
8871   cat >>confdefs.h <<_ACEOF
8872 #define HAVE_LIBSHELL32 1
8873 _ACEOF
8874
8875   LIBS="-lshell32 $LIBS"
8876
8877 fi
8878
8879 fi
8880
8881 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8882 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
8883 if test "${ac_cv_search_dlopen+set}" = set; then
8884   echo $ECHO_N "(cached) $ECHO_C" >&6
8885 else
8886   ac_func_search_save_LIBS=$LIBS
8887 cat >conftest.$ac_ext <<_ACEOF
8888 /* confdefs.h.  */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h.  */
8893
8894 /* Override any GCC internal prototype to avoid an error.
8895    Use char because int might match the return type of a GCC
8896    builtin and then its argument prototype would still apply.  */
8897 #ifdef __cplusplus
8898 extern "C"
8899 #endif
8900 char dlopen ();
8901 int
8902 main ()
8903 {
8904 return dlopen ();
8905   ;
8906   return 0;
8907 }
8908 _ACEOF
8909 for ac_lib in '' dl; do
8910   if test -z "$ac_lib"; then
8911     ac_res="none required"
8912   else
8913     ac_res=-l$ac_lib
8914     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8915   fi
8916   rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8918 case "(($ac_try" in
8919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920   *) ac_try_echo=$ac_try;;
8921 esac
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923   (eval "$ac_link") 2>conftest.er1
8924   ac_status=$?
8925   grep -v '^ *+' conftest.er1 >conftest.err
8926   rm -f conftest.er1
8927   cat conftest.err >&5
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } &&
8930          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8931   { (case "(($ac_try" in
8932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8933   *) ac_try_echo=$ac_try;;
8934 esac
8935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8936   (eval "$ac_try") 2>&5
8937   ac_status=$?
8938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939   (exit $ac_status); }; } &&
8940          { ac_try='test -s conftest$ac_exeext'
8941   { (case "(($ac_try" in
8942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943   *) ac_try_echo=$ac_try;;
8944 esac
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946   (eval "$ac_try") 2>&5
8947   ac_status=$?
8948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949   (exit $ac_status); }; }; then
8950   ac_cv_search_dlopen=$ac_res
8951 else
8952   echo "$as_me: failed program was:" >&5
8953 sed 's/^/| /' conftest.$ac_ext >&5
8954
8955
8956 fi
8957
8958 rm -f core conftest.err conftest.$ac_objext \
8959       conftest$ac_exeext
8960   if test "${ac_cv_search_dlopen+set}" = set; then
8961   break
8962 fi
8963 done
8964 if test "${ac_cv_search_dlopen+set}" = set; then
8965   :
8966 else
8967   ac_cv_search_dlopen=no
8968 fi
8969 rm conftest.$ac_ext
8970 LIBS=$ac_func_search_save_LIBS
8971 fi
8972 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8973 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
8974 ac_res=$ac_cv_search_dlopen
8975 if test "$ac_res" != no; then
8976   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8977
8978
8979 cat >>confdefs.h <<\_ACEOF
8980 #define HAVE_DLOPEN 1
8981 _ACEOF
8982
8983 HAVE_DLOPEN='1'
8984
8985
8986 else
8987   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
8988 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
8989 fi
8990
8991
8992 { echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
8993 echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6; }
8994 if test "${ac_cv_search_clock_gettime+set}" = set; then
8995   echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997   ac_func_search_save_LIBS=$LIBS
8998 cat >conftest.$ac_ext <<_ACEOF
8999 /* confdefs.h.  */
9000 _ACEOF
9001 cat confdefs.h >>conftest.$ac_ext
9002 cat >>conftest.$ac_ext <<_ACEOF
9003 /* end confdefs.h.  */
9004
9005 /* Override any GCC internal prototype to avoid an error.
9006    Use char because int might match the return type of a GCC
9007    builtin and then its argument prototype would still apply.  */
9008 #ifdef __cplusplus
9009 extern "C"
9010 #endif
9011 char clock_gettime ();
9012 int
9013 main ()
9014 {
9015 return clock_gettime ();
9016   ;
9017   return 0;
9018 }
9019 _ACEOF
9020 for ac_lib in '' rt; do
9021   if test -z "$ac_lib"; then
9022     ac_res="none required"
9023   else
9024     ac_res=-l$ac_lib
9025     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9026   fi
9027   rm -f conftest.$ac_objext conftest$ac_exeext
9028 if { (ac_try="$ac_link"
9029 case "(($ac_try" in
9030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031   *) ac_try_echo=$ac_try;;
9032 esac
9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034   (eval "$ac_link") 2>conftest.er1
9035   ac_status=$?
9036   grep -v '^ *+' conftest.er1 >conftest.err
9037   rm -f conftest.er1
9038   cat conftest.err >&5
9039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040   (exit $ac_status); } &&
9041          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9042   { (case "(($ac_try" in
9043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044   *) ac_try_echo=$ac_try;;
9045 esac
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047   (eval "$ac_try") 2>&5
9048   ac_status=$?
9049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050   (exit $ac_status); }; } &&
9051          { ac_try='test -s conftest$ac_exeext'
9052   { (case "(($ac_try" in
9053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054   *) ac_try_echo=$ac_try;;
9055 esac
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057   (eval "$ac_try") 2>&5
9058   ac_status=$?
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); }; }; then
9061   ac_cv_search_clock_gettime=$ac_res
9062 else
9063   echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9065
9066
9067 fi
9068
9069 rm -f core conftest.err conftest.$ac_objext \
9070       conftest$ac_exeext
9071   if test "${ac_cv_search_clock_gettime+set}" = set; then
9072   break
9073 fi
9074 done
9075 if test "${ac_cv_search_clock_gettime+set}" = set; then
9076   :
9077 else
9078   ac_cv_search_clock_gettime=no
9079 fi
9080 rm conftest.$ac_ext
9081 LIBS=$ac_func_search_save_LIBS
9082 fi
9083 { echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
9084 echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6; }
9085 ac_res=$ac_cv_search_clock_gettime
9086 if test "$ac_res" != no; then
9087   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9088
9089 fi
9090
9091
9092 if test "$llvm_cv_enable_terminfo" = "yes" ; then
9093     { echo "$as_me:$LINENO: checking for library containing setupterm" >&5
9094 echo $ECHO_N "checking for library containing setupterm... $ECHO_C" >&6; }
9095 if test "${ac_cv_search_setupterm+set}" = set; then
9096   echo $ECHO_N "(cached) $ECHO_C" >&6
9097 else
9098   ac_func_search_save_LIBS=$LIBS
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h.  */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h.  */
9105
9106 /* Override any GCC internal prototype to avoid an error.
9107    Use char because int might match the return type of a GCC
9108    builtin and then its argument prototype would still apply.  */
9109 #ifdef __cplusplus
9110 extern "C"
9111 #endif
9112 char setupterm ();
9113 int
9114 main ()
9115 {
9116 return setupterm ();
9117   ;
9118   return 0;
9119 }
9120 _ACEOF
9121 for ac_lib in '' tinfo terminfo curses ncurses ncursesw; do
9122   if test -z "$ac_lib"; then
9123     ac_res="none required"
9124   else
9125     ac_res=-l$ac_lib
9126     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9127   fi
9128   rm -f conftest.$ac_objext conftest$ac_exeext
9129 if { (ac_try="$ac_link"
9130 case "(($ac_try" in
9131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132   *) ac_try_echo=$ac_try;;
9133 esac
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135   (eval "$ac_link") 2>conftest.er1
9136   ac_status=$?
9137   grep -v '^ *+' conftest.er1 >conftest.err
9138   rm -f conftest.er1
9139   cat conftest.err >&5
9140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141   (exit $ac_status); } &&
9142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9143   { (case "(($ac_try" in
9144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145   *) ac_try_echo=$ac_try;;
9146 esac
9147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148   (eval "$ac_try") 2>&5
9149   ac_status=$?
9150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151   (exit $ac_status); }; } &&
9152          { ac_try='test -s conftest$ac_exeext'
9153   { (case "(($ac_try" in
9154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9155   *) ac_try_echo=$ac_try;;
9156 esac
9157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9158   (eval "$ac_try") 2>&5
9159   ac_status=$?
9160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9161   (exit $ac_status); }; }; then
9162   ac_cv_search_setupterm=$ac_res
9163 else
9164   echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9166
9167
9168 fi
9169
9170 rm -f core conftest.err conftest.$ac_objext \
9171       conftest$ac_exeext
9172   if test "${ac_cv_search_setupterm+set}" = set; then
9173   break
9174 fi
9175 done
9176 if test "${ac_cv_search_setupterm+set}" = set; then
9177   :
9178 else
9179   ac_cv_search_setupterm=no
9180 fi
9181 rm conftest.$ac_ext
9182 LIBS=$ac_func_search_save_LIBS
9183 fi
9184 { echo "$as_me:$LINENO: result: $ac_cv_search_setupterm" >&5
9185 echo "${ECHO_T}$ac_cv_search_setupterm" >&6; }
9186 ac_res=$ac_cv_search_setupterm
9187 if test "$ac_res" != no; then
9188   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9189
9190
9191 cat >>confdefs.h <<\_ACEOF
9192 #define HAVE_TERMINFO 1
9193 _ACEOF
9194
9195 HAVE_TERMINFO='1'
9196
9197
9198 fi
9199
9200 fi
9201
9202 if test "$llvm_cv_enable_libedit" = "yes" ; then
9203   { echo "$as_me:$LINENO: checking for library containing el_init" >&5
9204 echo $ECHO_N "checking for library containing el_init... $ECHO_C" >&6; }
9205 if test "${ac_cv_search_el_init+set}" = set; then
9206   echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208   ac_func_search_save_LIBS=$LIBS
9209 cat >conftest.$ac_ext <<_ACEOF
9210 /* confdefs.h.  */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h.  */
9215
9216 /* Override any GCC internal prototype to avoid an error.
9217    Use char because int might match the return type of a GCC
9218    builtin and then its argument prototype would still apply.  */
9219 #ifdef __cplusplus
9220 extern "C"
9221 #endif
9222 char el_init ();
9223 int
9224 main ()
9225 {
9226 return el_init ();
9227   ;
9228   return 0;
9229 }
9230 _ACEOF
9231 for ac_lib in '' edit; do
9232   if test -z "$ac_lib"; then
9233     ac_res="none required"
9234   else
9235     ac_res=-l$ac_lib
9236     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9237   fi
9238   rm -f conftest.$ac_objext conftest$ac_exeext
9239 if { (ac_try="$ac_link"
9240 case "(($ac_try" in
9241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242   *) ac_try_echo=$ac_try;;
9243 esac
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245   (eval "$ac_link") 2>conftest.er1
9246   ac_status=$?
9247   grep -v '^ *+' conftest.er1 >conftest.err
9248   rm -f conftest.er1
9249   cat conftest.err >&5
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); } &&
9252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9253   { (case "(($ac_try" in
9254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255   *) ac_try_echo=$ac_try;;
9256 esac
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258   (eval "$ac_try") 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; } &&
9262          { ac_try='test -s conftest$ac_exeext'
9263   { (case "(($ac_try" in
9264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265   *) ac_try_echo=$ac_try;;
9266 esac
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268   (eval "$ac_try") 2>&5
9269   ac_status=$?
9270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271   (exit $ac_status); }; }; then
9272   ac_cv_search_el_init=$ac_res
9273 else
9274   echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9276
9277
9278 fi
9279
9280 rm -f core conftest.err conftest.$ac_objext \
9281       conftest$ac_exeext
9282   if test "${ac_cv_search_el_init+set}" = set; then
9283   break
9284 fi
9285 done
9286 if test "${ac_cv_search_el_init+set}" = set; then
9287   :
9288 else
9289   ac_cv_search_el_init=no
9290 fi
9291 rm conftest.$ac_ext
9292 LIBS=$ac_func_search_save_LIBS
9293 fi
9294 { echo "$as_me:$LINENO: result: $ac_cv_search_el_init" >&5
9295 echo "${ECHO_T}$ac_cv_search_el_init" >&6; }
9296 ac_res=$ac_cv_search_el_init
9297 if test "$ac_res" != no; then
9298   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9299
9300 cat >>confdefs.h <<\_ACEOF
9301 #define HAVE_LIBEDIT 1
9302 _ACEOF
9303
9304 fi
9305
9306 fi
9307
9308 if test "$llvm_cv_enable_libffi" = "yes" ; then
9309   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
9310 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
9311 if test "${ac_cv_search_ffi_call+set}" = set; then
9312   echo $ECHO_N "(cached) $ECHO_C" >&6
9313 else
9314   ac_func_search_save_LIBS=$LIBS
9315 cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h.  */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h.  */
9321
9322 /* Override any GCC internal prototype to avoid an error.
9323    Use char because int might match the return type of a GCC
9324    builtin and then its argument prototype would still apply.  */
9325 #ifdef __cplusplus
9326 extern "C"
9327 #endif
9328 char ffi_call ();
9329 int
9330 main ()
9331 {
9332 return ffi_call ();
9333   ;
9334   return 0;
9335 }
9336 _ACEOF
9337 for ac_lib in '' ffi; do
9338   if test -z "$ac_lib"; then
9339     ac_res="none required"
9340   else
9341     ac_res=-l$ac_lib
9342     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9343   fi
9344   rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (ac_try="$ac_link"
9346 case "(($ac_try" in
9347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348   *) ac_try_echo=$ac_try;;
9349 esac
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351   (eval "$ac_link") 2>conftest.er1
9352   ac_status=$?
9353   grep -v '^ *+' conftest.er1 >conftest.err
9354   rm -f conftest.er1
9355   cat conftest.err >&5
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); } &&
9358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9359   { (case "(($ac_try" in
9360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361   *) ac_try_echo=$ac_try;;
9362 esac
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364   (eval "$ac_try") 2>&5
9365   ac_status=$?
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); }; } &&
9368          { ac_try='test -s conftest$ac_exeext'
9369   { (case "(($ac_try" in
9370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371   *) ac_try_echo=$ac_try;;
9372 esac
9373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374   (eval "$ac_try") 2>&5
9375   ac_status=$?
9376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377   (exit $ac_status); }; }; then
9378   ac_cv_search_ffi_call=$ac_res
9379 else
9380   echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9382
9383
9384 fi
9385
9386 rm -f core conftest.err conftest.$ac_objext \
9387       conftest$ac_exeext
9388   if test "${ac_cv_search_ffi_call+set}" = set; then
9389   break
9390 fi
9391 done
9392 if test "${ac_cv_search_ffi_call+set}" = set; then
9393   :
9394 else
9395   ac_cv_search_ffi_call=no
9396 fi
9397 rm conftest.$ac_ext
9398 LIBS=$ac_func_search_save_LIBS
9399 fi
9400 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
9401 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
9402 ac_res=$ac_cv_search_ffi_call
9403 if test "$ac_res" != no; then
9404   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9405
9406 cat >>confdefs.h <<\_ACEOF
9407 #define HAVE_FFI_CALL 1
9408 _ACEOF
9409
9410 else
9411   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
9412 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
9413    { (exit 1); exit 1; }; }
9414 fi
9415
9416 fi
9417
9418 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
9419 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
9420 if test "${ac_cv_search_mallinfo+set}" = set; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423   ac_func_search_save_LIBS=$LIBS
9424 cat >conftest.$ac_ext <<_ACEOF
9425 /* confdefs.h.  */
9426 _ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h.  */
9430
9431 /* Override any GCC internal prototype to avoid an error.
9432    Use char because int might match the return type of a GCC
9433    builtin and then its argument prototype would still apply.  */
9434 #ifdef __cplusplus
9435 extern "C"
9436 #endif
9437 char mallinfo ();
9438 int
9439 main ()
9440 {
9441 return mallinfo ();
9442   ;
9443   return 0;
9444 }
9445 _ACEOF
9446 for ac_lib in '' malloc; do
9447   if test -z "$ac_lib"; then
9448     ac_res="none required"
9449   else
9450     ac_res=-l$ac_lib
9451     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9452   fi
9453   rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (ac_try="$ac_link"
9455 case "(($ac_try" in
9456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457   *) ac_try_echo=$ac_try;;
9458 esac
9459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460   (eval "$ac_link") 2>conftest.er1
9461   ac_status=$?
9462   grep -v '^ *+' conftest.er1 >conftest.err
9463   rm -f conftest.er1
9464   cat conftest.err >&5
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); } &&
9467          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9468   { (case "(($ac_try" in
9469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470   *) ac_try_echo=$ac_try;;
9471 esac
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473   (eval "$ac_try") 2>&5
9474   ac_status=$?
9475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476   (exit $ac_status); }; } &&
9477          { ac_try='test -s conftest$ac_exeext'
9478   { (case "(($ac_try" in
9479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9480   *) ac_try_echo=$ac_try;;
9481 esac
9482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9483   (eval "$ac_try") 2>&5
9484   ac_status=$?
9485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); }; }; then
9487   ac_cv_search_mallinfo=$ac_res
9488 else
9489   echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9491
9492
9493 fi
9494
9495 rm -f core conftest.err conftest.$ac_objext \
9496       conftest$ac_exeext
9497   if test "${ac_cv_search_mallinfo+set}" = set; then
9498   break
9499 fi
9500 done
9501 if test "${ac_cv_search_mallinfo+set}" = set; then
9502   :
9503 else
9504   ac_cv_search_mallinfo=no
9505 fi
9506 rm conftest.$ac_ext
9507 LIBS=$ac_func_search_save_LIBS
9508 fi
9509 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
9510 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
9511 ac_res=$ac_cv_search_mallinfo
9512 if test "$ac_res" != no; then
9513   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9514
9515 cat >>confdefs.h <<\_ACEOF
9516 #define HAVE_MALLINFO 1
9517 _ACEOF
9518
9519 fi
9520
9521
9522 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
9523
9524 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
9525 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
9526 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
9527   echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529   ac_check_lib_save_LIBS=$LIBS
9530 LIBS="-lpthread  $LIBS"
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h.  */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h.  */
9537
9538 /* Override any GCC internal prototype to avoid an error.
9539    Use char because int might match the return type of a GCC
9540    builtin and then its argument prototype would still apply.  */
9541 #ifdef __cplusplus
9542 extern "C"
9543 #endif
9544 char pthread_mutex_init ();
9545 int
9546 main ()
9547 {
9548 return pthread_mutex_init ();
9549   ;
9550   return 0;
9551 }
9552 _ACEOF
9553 rm -f conftest.$ac_objext conftest$ac_exeext
9554 if { (ac_try="$ac_link"
9555 case "(($ac_try" in
9556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557   *) ac_try_echo=$ac_try;;
9558 esac
9559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560   (eval "$ac_link") 2>conftest.er1
9561   ac_status=$?
9562   grep -v '^ *+' conftest.er1 >conftest.err
9563   rm -f conftest.er1
9564   cat conftest.err >&5
9565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566   (exit $ac_status); } &&
9567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9568   { (case "(($ac_try" in
9569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570   *) ac_try_echo=$ac_try;;
9571 esac
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573   (eval "$ac_try") 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; } &&
9577          { ac_try='test -s conftest$ac_exeext'
9578   { (case "(($ac_try" in
9579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580   *) ac_try_echo=$ac_try;;
9581 esac
9582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583   (eval "$ac_try") 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); }; }; then
9587   ac_cv_lib_pthread_pthread_mutex_init=yes
9588 else
9589   echo "$as_me: failed program was:" >&5
9590 sed 's/^/| /' conftest.$ac_ext >&5
9591
9592         ac_cv_lib_pthread_pthread_mutex_init=no
9593 fi
9594
9595 rm -f core conftest.err conftest.$ac_objext \
9596       conftest$ac_exeext conftest.$ac_ext
9597 LIBS=$ac_check_lib_save_LIBS
9598 fi
9599 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
9600 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
9601 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
9602   cat >>confdefs.h <<_ACEOF
9603 #define HAVE_LIBPTHREAD 1
9604 _ACEOF
9605
9606   LIBS="-lpthread $LIBS"
9607
9608 fi
9609
9610   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
9611 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
9612 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9613   echo $ECHO_N "(cached) $ECHO_C" >&6
9614 else
9615   ac_func_search_save_LIBS=$LIBS
9616 cat >conftest.$ac_ext <<_ACEOF
9617 /* confdefs.h.  */
9618 _ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h.  */
9622
9623 /* Override any GCC internal prototype to avoid an error.
9624    Use char because int might match the return type of a GCC
9625    builtin and then its argument prototype would still apply.  */
9626 #ifdef __cplusplus
9627 extern "C"
9628 #endif
9629 char pthread_mutex_lock ();
9630 int
9631 main ()
9632 {
9633 return pthread_mutex_lock ();
9634   ;
9635   return 0;
9636 }
9637 _ACEOF
9638 for ac_lib in '' pthread; do
9639   if test -z "$ac_lib"; then
9640     ac_res="none required"
9641   else
9642     ac_res=-l$ac_lib
9643     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9644   fi
9645   rm -f conftest.$ac_objext conftest$ac_exeext
9646 if { (ac_try="$ac_link"
9647 case "(($ac_try" in
9648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649   *) ac_try_echo=$ac_try;;
9650 esac
9651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652   (eval "$ac_link") 2>conftest.er1
9653   ac_status=$?
9654   grep -v '^ *+' conftest.er1 >conftest.err
9655   rm -f conftest.er1
9656   cat conftest.err >&5
9657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658   (exit $ac_status); } &&
9659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9660   { (case "(($ac_try" in
9661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662   *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665   (eval "$ac_try") 2>&5
9666   ac_status=$?
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); }; } &&
9669          { ac_try='test -s conftest$ac_exeext'
9670   { (case "(($ac_try" in
9671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672   *) ac_try_echo=$ac_try;;
9673 esac
9674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675   (eval "$ac_try") 2>&5
9676   ac_status=$?
9677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678   (exit $ac_status); }; }; then
9679   ac_cv_search_pthread_mutex_lock=$ac_res
9680 else
9681   echo "$as_me: failed program was:" >&5
9682 sed 's/^/| /' conftest.$ac_ext >&5
9683
9684
9685 fi
9686
9687 rm -f core conftest.err conftest.$ac_objext \
9688       conftest$ac_exeext
9689   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9690   break
9691 fi
9692 done
9693 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
9694   :
9695 else
9696   ac_cv_search_pthread_mutex_lock=no
9697 fi
9698 rm conftest.$ac_ext
9699 LIBS=$ac_func_search_save_LIBS
9700 fi
9701 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
9702 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
9703 ac_res=$ac_cv_search_pthread_mutex_lock
9704 if test "$ac_res" != no; then
9705   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9706
9707 cat >>confdefs.h <<\_ACEOF
9708 #define HAVE_PTHREAD_MUTEX_LOCK 1
9709 _ACEOF
9710
9711 fi
9712
9713   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
9714 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
9715 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9716   echo $ECHO_N "(cached) $ECHO_C" >&6
9717 else
9718   ac_func_search_save_LIBS=$LIBS
9719 cat >conftest.$ac_ext <<_ACEOF
9720 /* confdefs.h.  */
9721 _ACEOF
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h.  */
9725
9726 /* Override any GCC internal prototype to avoid an error.
9727    Use char because int might match the return type of a GCC
9728    builtin and then its argument prototype would still apply.  */
9729 #ifdef __cplusplus
9730 extern "C"
9731 #endif
9732 char pthread_rwlock_init ();
9733 int
9734 main ()
9735 {
9736 return pthread_rwlock_init ();
9737   ;
9738   return 0;
9739 }
9740 _ACEOF
9741 for ac_lib in '' pthread; do
9742   if test -z "$ac_lib"; then
9743     ac_res="none required"
9744   else
9745     ac_res=-l$ac_lib
9746     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9747   fi
9748   rm -f conftest.$ac_objext conftest$ac_exeext
9749 if { (ac_try="$ac_link"
9750 case "(($ac_try" in
9751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752   *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755   (eval "$ac_link") 2>conftest.er1
9756   ac_status=$?
9757   grep -v '^ *+' conftest.er1 >conftest.err
9758   rm -f conftest.er1
9759   cat conftest.err >&5
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); } &&
9762          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9763   { (case "(($ac_try" in
9764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9765   *) ac_try_echo=$ac_try;;
9766 esac
9767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9768   (eval "$ac_try") 2>&5
9769   ac_status=$?
9770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771   (exit $ac_status); }; } &&
9772          { ac_try='test -s conftest$ac_exeext'
9773   { (case "(($ac_try" in
9774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775   *) ac_try_echo=$ac_try;;
9776 esac
9777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778   (eval "$ac_try") 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; }; then
9782   ac_cv_search_pthread_rwlock_init=$ac_res
9783 else
9784   echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9786
9787
9788 fi
9789
9790 rm -f core conftest.err conftest.$ac_objext \
9791       conftest$ac_exeext
9792   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9793   break
9794 fi
9795 done
9796 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
9797   :
9798 else
9799   ac_cv_search_pthread_rwlock_init=no
9800 fi
9801 rm conftest.$ac_ext
9802 LIBS=$ac_func_search_save_LIBS
9803 fi
9804 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
9805 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
9806 ac_res=$ac_cv_search_pthread_rwlock_init
9807 if test "$ac_res" != no; then
9808   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9809
9810 cat >>confdefs.h <<\_ACEOF
9811 #define HAVE_PTHREAD_RWLOCK_INIT 1
9812 _ACEOF
9813
9814 fi
9815
9816   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
9817 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
9818 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9819   echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821   ac_func_search_save_LIBS=$LIBS
9822 cat >conftest.$ac_ext <<_ACEOF
9823 /* confdefs.h.  */
9824 _ACEOF
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h.  */
9828
9829 /* Override any GCC internal prototype to avoid an error.
9830    Use char because int might match the return type of a GCC
9831    builtin and then its argument prototype would still apply.  */
9832 #ifdef __cplusplus
9833 extern "C"
9834 #endif
9835 char pthread_getspecific ();
9836 int
9837 main ()
9838 {
9839 return pthread_getspecific ();
9840   ;
9841   return 0;
9842 }
9843 _ACEOF
9844 for ac_lib in '' pthread; do
9845   if test -z "$ac_lib"; then
9846     ac_res="none required"
9847   else
9848     ac_res=-l$ac_lib
9849     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9850   fi
9851   rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (ac_try="$ac_link"
9853 case "(($ac_try" in
9854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855   *) ac_try_echo=$ac_try;;
9856 esac
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858   (eval "$ac_link") 2>conftest.er1
9859   ac_status=$?
9860   grep -v '^ *+' conftest.er1 >conftest.err
9861   rm -f conftest.er1
9862   cat conftest.err >&5
9863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864   (exit $ac_status); } &&
9865          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9866   { (case "(($ac_try" in
9867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9868   *) ac_try_echo=$ac_try;;
9869 esac
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871   (eval "$ac_try") 2>&5
9872   ac_status=$?
9873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874   (exit $ac_status); }; } &&
9875          { ac_try='test -s conftest$ac_exeext'
9876   { (case "(($ac_try" in
9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878   *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881   (eval "$ac_try") 2>&5
9882   ac_status=$?
9883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884   (exit $ac_status); }; }; then
9885   ac_cv_search_pthread_getspecific=$ac_res
9886 else
9887   echo "$as_me: failed program was:" >&5
9888 sed 's/^/| /' conftest.$ac_ext >&5
9889
9890
9891 fi
9892
9893 rm -f core conftest.err conftest.$ac_objext \
9894       conftest$ac_exeext
9895   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9896   break
9897 fi
9898 done
9899 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
9900   :
9901 else
9902   ac_cv_search_pthread_getspecific=no
9903 fi
9904 rm conftest.$ac_ext
9905 LIBS=$ac_func_search_save_LIBS
9906 fi
9907 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
9908 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
9909 ac_res=$ac_cv_search_pthread_getspecific
9910 if test "$ac_res" != no; then
9911   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9912
9913 cat >>confdefs.h <<\_ACEOF
9914 #define HAVE_PTHREAD_GETSPECIFIC 1
9915 _ACEOF
9916
9917 fi
9918
9919 fi
9920
9921 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
9922
9923 { echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
9924 echo $ECHO_N "checking for compress2 in -lz... $ECHO_C" >&6; }
9925 if test "${ac_cv_lib_z_compress2+set}" = set; then
9926   echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928   ac_check_lib_save_LIBS=$LIBS
9929 LIBS="-lz  $LIBS"
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h.  */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h.  */
9936
9937 /* Override any GCC internal prototype to avoid an error.
9938    Use char because int might match the return type of a GCC
9939    builtin and then its argument prototype would still apply.  */
9940 #ifdef __cplusplus
9941 extern "C"
9942 #endif
9943 char compress2 ();
9944 int
9945 main ()
9946 {
9947 return compress2 ();
9948   ;
9949   return 0;
9950 }
9951 _ACEOF
9952 rm -f conftest.$ac_objext conftest$ac_exeext
9953 if { (ac_try="$ac_link"
9954 case "(($ac_try" in
9955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956   *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959   (eval "$ac_link") 2>conftest.er1
9960   ac_status=$?
9961   grep -v '^ *+' conftest.er1 >conftest.err
9962   rm -f conftest.er1
9963   cat conftest.err >&5
9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965   (exit $ac_status); } &&
9966          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9967   { (case "(($ac_try" in
9968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969   *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972   (eval "$ac_try") 2>&5
9973   ac_status=$?
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); }; } &&
9976          { ac_try='test -s conftest$ac_exeext'
9977   { (case "(($ac_try" in
9978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979   *) ac_try_echo=$ac_try;;
9980 esac
9981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982   (eval "$ac_try") 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; }; then
9986   ac_cv_lib_z_compress2=yes
9987 else
9988   echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991         ac_cv_lib_z_compress2=no
9992 fi
9993
9994 rm -f core conftest.err conftest.$ac_objext \
9995       conftest$ac_exeext conftest.$ac_ext
9996 LIBS=$ac_check_lib_save_LIBS
9997 fi
9998 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
9999 echo "${ECHO_T}$ac_cv_lib_z_compress2" >&6; }
10000 if test $ac_cv_lib_z_compress2 = yes; then
10001   cat >>confdefs.h <<_ACEOF
10002 #define HAVE_LIBZ 1
10003 _ACEOF
10004
10005   LIBS="-lz $LIBS"
10006
10007 fi
10008
10009 fi
10010
10011
10012 # Check whether --with-oprofile was given.
10013 if test "${with_oprofile+set}" = set; then
10014   withval=$with_oprofile;
10015       USE_OPROFILE=1
10016
10017       case "$withval" in
10018         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
10019         no) llvm_cv_oppath=
10020             USE_OPROFILE=0
10021  ;;
10022         *) llvm_cv_oppath="${withval}/lib/oprofile"
10023            CPPFLAGS="-I${withval}/include";;
10024       esac
10025       case $llvm_cv_os_type in
10026         Linux)
10027           if test -n "$llvm_cv_oppath" ; then
10028             LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
10029                                                             { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
10030 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
10031 if test "${ac_cv_search_bfd_init+set}" = set; then
10032   echo $ECHO_N "(cached) $ECHO_C" >&6
10033 else
10034   ac_func_search_save_LIBS=$LIBS
10035 cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041
10042 /* Override any GCC internal prototype to avoid an error.
10043    Use char because int might match the return type of a GCC
10044    builtin and then its argument prototype would still apply.  */
10045 #ifdef __cplusplus
10046 extern "C"
10047 #endif
10048 char bfd_init ();
10049 int
10050 main ()
10051 {
10052 return bfd_init ();
10053   ;
10054   return 0;
10055 }
10056 _ACEOF
10057 for ac_lib in '' bfd; do
10058   if test -z "$ac_lib"; then
10059     ac_res="none required"
10060   else
10061     ac_res=-l$ac_lib
10062     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10063   fi
10064   rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (ac_try="$ac_link"
10066 case "(($ac_try" in
10067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068   *) ac_try_echo=$ac_try;;
10069 esac
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071   (eval "$ac_link") 2>conftest.er1
10072   ac_status=$?
10073   grep -v '^ *+' conftest.er1 >conftest.err
10074   rm -f conftest.er1
10075   cat conftest.err >&5
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); } &&
10078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10079   { (case "(($ac_try" in
10080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081   *) ac_try_echo=$ac_try;;
10082 esac
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084   (eval "$ac_try") 2>&5
10085   ac_status=$?
10086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087   (exit $ac_status); }; } &&
10088          { ac_try='test -s conftest$ac_exeext'
10089   { (case "(($ac_try" in
10090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091   *) ac_try_echo=$ac_try;;
10092 esac
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094   (eval "$ac_try") 2>&5
10095   ac_status=$?
10096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097   (exit $ac_status); }; }; then
10098   ac_cv_search_bfd_init=$ac_res
10099 else
10100   echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10102
10103
10104 fi
10105
10106 rm -f core conftest.err conftest.$ac_objext \
10107       conftest$ac_exeext
10108   if test "${ac_cv_search_bfd_init+set}" = set; then
10109   break
10110 fi
10111 done
10112 if test "${ac_cv_search_bfd_init+set}" = set; then
10113   :
10114 else
10115   ac_cv_search_bfd_init=no
10116 fi
10117 rm conftest.$ac_ext
10118 LIBS=$ac_func_search_save_LIBS
10119 fi
10120 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
10121 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
10122 ac_res=$ac_cv_search_bfd_init
10123 if test "$ac_res" != no; then
10124   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10125
10126 fi
10127
10128             { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
10129 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
10130 if test "${ac_cv_search_op_open_agent+set}" = set; then
10131   echo $ECHO_N "(cached) $ECHO_C" >&6
10132 else
10133   ac_func_search_save_LIBS=$LIBS
10134 cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h.  */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h.  */
10140
10141 /* Override any GCC internal prototype to avoid an error.
10142    Use char because int might match the return type of a GCC
10143    builtin and then its argument prototype would still apply.  */
10144 #ifdef __cplusplus
10145 extern "C"
10146 #endif
10147 char op_open_agent ();
10148 int
10149 main ()
10150 {
10151 return op_open_agent ();
10152   ;
10153   return 0;
10154 }
10155 _ACEOF
10156 for ac_lib in '' opagent; do
10157   if test -z "$ac_lib"; then
10158     ac_res="none required"
10159   else
10160     ac_res=-l$ac_lib
10161     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10162   fi
10163   rm -f conftest.$ac_objext conftest$ac_exeext
10164 if { (ac_try="$ac_link"
10165 case "(($ac_try" in
10166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167   *) ac_try_echo=$ac_try;;
10168 esac
10169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170   (eval "$ac_link") 2>conftest.er1
10171   ac_status=$?
10172   grep -v '^ *+' conftest.er1 >conftest.err
10173   rm -f conftest.er1
10174   cat conftest.err >&5
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); } &&
10177          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10178   { (case "(($ac_try" in
10179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180   *) ac_try_echo=$ac_try;;
10181 esac
10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183   (eval "$ac_try") 2>&5
10184   ac_status=$?
10185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186   (exit $ac_status); }; } &&
10187          { ac_try='test -s conftest$ac_exeext'
10188   { (case "(($ac_try" in
10189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190   *) ac_try_echo=$ac_try;;
10191 esac
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193   (eval "$ac_try") 2>&5
10194   ac_status=$?
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); }; }; then
10197   ac_cv_search_op_open_agent=$ac_res
10198 else
10199   echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202
10203 fi
10204
10205 rm -f core conftest.err conftest.$ac_objext \
10206       conftest$ac_exeext
10207   if test "${ac_cv_search_op_open_agent+set}" = set; then
10208   break
10209 fi
10210 done
10211 if test "${ac_cv_search_op_open_agent+set}" = set; then
10212   :
10213 else
10214   ac_cv_search_op_open_agent=no
10215 fi
10216 rm conftest.$ac_ext
10217 LIBS=$ac_func_search_save_LIBS
10218 fi
10219 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
10220 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
10221 ac_res=$ac_cv_search_op_open_agent
10222 if test "$ac_res" != no; then
10223   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10224
10225 else
10226
10227               echo "Error! You need to have libopagent around."
10228               exit 1
10229
10230 fi
10231
10232             if test "${ac_cv_header_opagent_h+set}" = set; then
10233   { echo "$as_me:$LINENO: checking for opagent.h" >&5
10234 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10235 if test "${ac_cv_header_opagent_h+set}" = set; then
10236   echo $ECHO_N "(cached) $ECHO_C" >&6
10237 fi
10238 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10239 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10240 else
10241   # Is the header compilable?
10242 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
10243 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
10244 cat >conftest.$ac_ext <<_ACEOF
10245 /* confdefs.h.  */
10246 _ACEOF
10247 cat confdefs.h >>conftest.$ac_ext
10248 cat >>conftest.$ac_ext <<_ACEOF
10249 /* end confdefs.h.  */
10250 $ac_includes_default
10251 #include <opagent.h>
10252 _ACEOF
10253 rm -f conftest.$ac_objext
10254 if { (ac_try="$ac_compile"
10255 case "(($ac_try" in
10256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257   *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260   (eval "$ac_compile") 2>conftest.er1
10261   ac_status=$?
10262   grep -v '^ *+' conftest.er1 >conftest.err
10263   rm -f conftest.er1
10264   cat conftest.err >&5
10265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266   (exit $ac_status); } &&
10267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10268   { (case "(($ac_try" in
10269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10270   *) ac_try_echo=$ac_try;;
10271 esac
10272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10273   (eval "$ac_try") 2>&5
10274   ac_status=$?
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); }; } &&
10277          { ac_try='test -s conftest.$ac_objext'
10278   { (case "(($ac_try" in
10279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280   *) ac_try_echo=$ac_try;;
10281 esac
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283   (eval "$ac_try") 2>&5
10284   ac_status=$?
10285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286   (exit $ac_status); }; }; then
10287   ac_header_compiler=yes
10288 else
10289   echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10291
10292         ac_header_compiler=no
10293 fi
10294
10295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10297 echo "${ECHO_T}$ac_header_compiler" >&6; }
10298
10299 # Is the header present?
10300 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
10301 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
10302 cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h.  */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h.  */
10308 #include <opagent.h>
10309 _ACEOF
10310 if { (ac_try="$ac_cpp conftest.$ac_ext"
10311 case "(($ac_try" in
10312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313   *) ac_try_echo=$ac_try;;
10314 esac
10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10317   ac_status=$?
10318   grep -v '^ *+' conftest.er1 >conftest.err
10319   rm -f conftest.er1
10320   cat conftest.err >&5
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); } >/dev/null; then
10323   if test -s conftest.err; then
10324     ac_cpp_err=$ac_c_preproc_warn_flag
10325     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10326   else
10327     ac_cpp_err=
10328   fi
10329 else
10330   ac_cpp_err=yes
10331 fi
10332 if test -z "$ac_cpp_err"; then
10333   ac_header_preproc=yes
10334 else
10335   echo "$as_me: failed program was:" >&5
10336 sed 's/^/| /' conftest.$ac_ext >&5
10337
10338   ac_header_preproc=no
10339 fi
10340
10341 rm -f conftest.err conftest.$ac_ext
10342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10343 echo "${ECHO_T}$ac_header_preproc" >&6; }
10344
10345 # So?  What about this header?
10346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10347   yes:no: )
10348     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10349 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10350     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
10351 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
10352     ac_header_preproc=yes
10353     ;;
10354   no:yes:* )
10355     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
10356 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
10357     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
10358 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
10359     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
10360 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
10361     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
10362 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10363     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
10364 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
10365     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
10366 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
10367     ( cat <<\_ASBOX
10368 ## ------------------------------------ ##
10369 ## Report this to http://llvm.org/bugs/ ##
10370 ## ------------------------------------ ##
10371 _ASBOX
10372      ) | sed "s/^/$as_me: WARNING:     /" >&2
10373     ;;
10374 esac
10375 { echo "$as_me:$LINENO: checking for opagent.h" >&5
10376 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
10377 if test "${ac_cv_header_opagent_h+set}" = set; then
10378   echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380   ac_cv_header_opagent_h=$ac_header_preproc
10381 fi
10382 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
10383 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
10384
10385 fi
10386 if test $ac_cv_header_opagent_h = yes; then
10387   :
10388 else
10389
10390               echo "Error! You need to have opagent.h around."
10391               exit 1
10392
10393 fi
10394
10395
10396           fi ;;
10397         *)
10398           { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
10399 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
10400    { (exit 1); exit 1; }; } ;;
10401       esac
10402
10403 else
10404
10405       USE_OPROFILE=0
10406
10407
10408 fi
10409
10410
10411 cat >>confdefs.h <<_ACEOF
10412 #define LLVM_USE_OPROFILE $USE_OPROFILE
10413 _ACEOF
10414
10415
10416
10417 # Check whether --with-intel-jitevents was given.
10418 if test "${with_intel_jitevents+set}" = set; then
10419   withval=$with_intel_jitevents;
10420        case "$withval" in
10421           yes) USE_INTEL_JITEVENTS=1
10422 ;;
10423           no)  USE_INTEL_JITEVENTS=0
10424 ;;
10425           *) { { echo "$as_me:$LINENO: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&5
10426 echo "$as_me: error: Invalid setting for --with-intel-jitevents. Use \"yes\" or \"no\"" >&2;}
10427    { (exit 1); exit 1; }; };;
10428        esac
10429
10430       case $llvm_cv_os_type in
10431         Linux|Win32|Cygwin|MingW) ;;
10432         *) { { echo "$as_me:$LINENO: error: Intel JIT API support is available on Linux and Windows only." >&5
10433 echo "$as_me: error: Intel JIT API support is available on Linux and Windows only." >&2;}
10434    { (exit 1); exit 1; }; };;
10435       esac
10436
10437       case "$llvm_cv_target_arch" in
10438         x86|x86_64) ;;
10439         *) { { echo "$as_me:$LINENO: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&5
10440 echo "$as_me: error: Target architecture $llvm_cv_target_arch does not support Intel JIT Events API." >&2;}
10441    { (exit 1); exit 1; }; };;
10442       esac
10443
10444 else
10445
10446       USE_INTEL_JITEVENTS=0
10447
10448
10449 fi
10450
10451
10452 cat >>confdefs.h <<_ACEOF
10453 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
10454 _ACEOF
10455
10456
10457 for ac_prog in xml2-config
10458 do
10459   # Extract the first word of "$ac_prog", so it can be a program name with args.
10460 set dummy $ac_prog; ac_word=$2
10461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10463 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
10464   echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466   if test -n "$XML2CONFIG"; then
10467   ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
10468 else
10469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10470 for as_dir in $PATH
10471 do
10472   IFS=$as_save_IFS
10473   test -z "$as_dir" && as_dir=.
10474   for ac_exec_ext in '' $ac_executable_extensions; do
10475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10476     ac_cv_prog_XML2CONFIG="$ac_prog"
10477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10478     break 2
10479   fi
10480 done
10481 done
10482 IFS=$as_save_IFS
10483
10484 fi
10485 fi
10486 XML2CONFIG=$ac_cv_prog_XML2CONFIG
10487 if test -n "$XML2CONFIG"; then
10488   { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
10489 echo "${ECHO_T}$XML2CONFIG" >&6; }
10490 else
10491   { echo "$as_me:$LINENO: result: no" >&5
10492 echo "${ECHO_T}no" >&6; }
10493 fi
10494
10495
10496   test -n "$XML2CONFIG" && break
10497 done
10498
10499
10500 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
10501 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
10502 if test "x$XML2CONFIG" = "x"; then
10503  { echo "$as_me:$LINENO: result: xml2-config not found" >&5
10504 echo "${ECHO_T}xml2-config not found" >&6; }
10505 else
10506  LIBXML2_INC=`$XML2CONFIG --cflags`
10507  { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
10508 echo "${ECHO_T}$LIBXML2_INC" >&6; }
10509  { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
10510 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
10511 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
10512   echo $ECHO_N "(cached) $ECHO_C" >&6
10513 else
10514   ac_check_lib_save_LIBS=$LIBS
10515 LIBS="-lxml2  $LIBS"
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h.  */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h.  */
10522
10523 /* Override any GCC internal prototype to avoid an error.
10524    Use char because int might match the return type of a GCC
10525    builtin and then its argument prototype would still apply.  */
10526 #ifdef __cplusplus
10527 extern "C"
10528 #endif
10529 char xmlReadFile ();
10530 int
10531 main ()
10532 {
10533 return xmlReadFile ();
10534   ;
10535   return 0;
10536 }
10537 _ACEOF
10538 rm -f conftest.$ac_objext conftest$ac_exeext
10539 if { (ac_try="$ac_link"
10540 case "(($ac_try" in
10541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542   *) ac_try_echo=$ac_try;;
10543 esac
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545   (eval "$ac_link") 2>conftest.er1
10546   ac_status=$?
10547   grep -v '^ *+' conftest.er1 >conftest.err
10548   rm -f conftest.er1
10549   cat conftest.err >&5
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); } &&
10552          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10553   { (case "(($ac_try" in
10554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555   *) ac_try_echo=$ac_try;;
10556 esac
10557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558   (eval "$ac_try") 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); }; } &&
10562          { ac_try='test -s conftest$ac_exeext'
10563   { (case "(($ac_try" in
10564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565   *) ac_try_echo=$ac_try;;
10566 esac
10567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568   (eval "$ac_try") 2>&5
10569   ac_status=$?
10570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571   (exit $ac_status); }; }; then
10572   ac_cv_lib_xml2_xmlReadFile=yes
10573 else
10574   echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577         ac_cv_lib_xml2_xmlReadFile=no
10578 fi
10579
10580 rm -f core conftest.err conftest.$ac_objext \
10581       conftest$ac_exeext conftest.$ac_ext
10582 LIBS=$ac_check_lib_save_LIBS
10583 fi
10584 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
10585 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
10586 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
10587
10588 cat >>confdefs.h <<\_ACEOF
10589 #define CLANG_HAVE_LIBXML 1
10590 _ACEOF
10591
10592                                 LIBXML2_LIBS="-lxml2"
10593 fi
10594
10595 fi
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605 ac_header_dirent=no
10606 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10607   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10608 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10609 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
10610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10611   echo $ECHO_N "(cached) $ECHO_C" >&6
10612 else
10613   cat >conftest.$ac_ext <<_ACEOF
10614 /* confdefs.h.  */
10615 _ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h.  */
10619 #include <sys/types.h>
10620 #include <$ac_hdr>
10621
10622 int
10623 main ()
10624 {
10625 if ((DIR *) 0)
10626 return 0;
10627   ;
10628   return 0;
10629 }
10630 _ACEOF
10631 rm -f conftest.$ac_objext
10632 if { (ac_try="$ac_compile"
10633 case "(($ac_try" in
10634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635   *) ac_try_echo=$ac_try;;
10636 esac
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638   (eval "$ac_compile") 2>conftest.er1
10639   ac_status=$?
10640   grep -v '^ *+' conftest.er1 >conftest.err
10641   rm -f conftest.er1
10642   cat conftest.err >&5
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); } &&
10645          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10646   { (case "(($ac_try" in
10647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648   *) ac_try_echo=$ac_try;;
10649 esac
10650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651   (eval "$ac_try") 2>&5
10652   ac_status=$?
10653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654   (exit $ac_status); }; } &&
10655          { ac_try='test -s conftest.$ac_objext'
10656   { (case "(($ac_try" in
10657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658   *) ac_try_echo=$ac_try;;
10659 esac
10660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10661   (eval "$ac_try") 2>&5
10662   ac_status=$?
10663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664   (exit $ac_status); }; }; then
10665   eval "$as_ac_Header=yes"
10666 else
10667   echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10669
10670         eval "$as_ac_Header=no"
10671 fi
10672
10673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10674 fi
10675 ac_res=`eval echo '${'$as_ac_Header'}'`
10676                { echo "$as_me:$LINENO: result: $ac_res" >&5
10677 echo "${ECHO_T}$ac_res" >&6; }
10678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10679   cat >>confdefs.h <<_ACEOF
10680 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10681 _ACEOF
10682
10683 ac_header_dirent=$ac_hdr; break
10684 fi
10685
10686 done
10687 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10688 if test $ac_header_dirent = dirent.h; then
10689   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10690 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10691 if test "${ac_cv_search_opendir+set}" = set; then
10692   echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694   ac_func_search_save_LIBS=$LIBS
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h.  */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h.  */
10701
10702 /* Override any GCC internal prototype to avoid an error.
10703    Use char because int might match the return type of a GCC
10704    builtin and then its argument prototype would still apply.  */
10705 #ifdef __cplusplus
10706 extern "C"
10707 #endif
10708 char opendir ();
10709 int
10710 main ()
10711 {
10712 return opendir ();
10713   ;
10714   return 0;
10715 }
10716 _ACEOF
10717 for ac_lib in '' dir; do
10718   if test -z "$ac_lib"; then
10719     ac_res="none required"
10720   else
10721     ac_res=-l$ac_lib
10722     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10723   fi
10724   rm -f conftest.$ac_objext conftest$ac_exeext
10725 if { (ac_try="$ac_link"
10726 case "(($ac_try" in
10727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728   *) ac_try_echo=$ac_try;;
10729 esac
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731   (eval "$ac_link") 2>conftest.er1
10732   ac_status=$?
10733   grep -v '^ *+' conftest.er1 >conftest.err
10734   rm -f conftest.er1
10735   cat conftest.err >&5
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); } &&
10738          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10739   { (case "(($ac_try" in
10740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741   *) ac_try_echo=$ac_try;;
10742 esac
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744   (eval "$ac_try") 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); }; } &&
10748          { ac_try='test -s conftest$ac_exeext'
10749   { (case "(($ac_try" in
10750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751   *) ac_try_echo=$ac_try;;
10752 esac
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754   (eval "$ac_try") 2>&5
10755   ac_status=$?
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); }; }; then
10758   ac_cv_search_opendir=$ac_res
10759 else
10760   echo "$as_me: failed program was:" >&5
10761 sed 's/^/| /' conftest.$ac_ext >&5
10762
10763
10764 fi
10765
10766 rm -f core conftest.err conftest.$ac_objext \
10767       conftest$ac_exeext
10768   if test "${ac_cv_search_opendir+set}" = set; then
10769   break
10770 fi
10771 done
10772 if test "${ac_cv_search_opendir+set}" = set; then
10773   :
10774 else
10775   ac_cv_search_opendir=no
10776 fi
10777 rm conftest.$ac_ext
10778 LIBS=$ac_func_search_save_LIBS
10779 fi
10780 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10781 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10782 ac_res=$ac_cv_search_opendir
10783 if test "$ac_res" != no; then
10784   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10785
10786 fi
10787
10788 else
10789   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
10790 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
10791 if test "${ac_cv_search_opendir+set}" = set; then
10792   echo $ECHO_N "(cached) $ECHO_C" >&6
10793 else
10794   ac_func_search_save_LIBS=$LIBS
10795 cat >conftest.$ac_ext <<_ACEOF
10796 /* confdefs.h.  */
10797 _ACEOF
10798 cat confdefs.h >>conftest.$ac_ext
10799 cat >>conftest.$ac_ext <<_ACEOF
10800 /* end confdefs.h.  */
10801
10802 /* Override any GCC internal prototype to avoid an error.
10803    Use char because int might match the return type of a GCC
10804    builtin and then its argument prototype would still apply.  */
10805 #ifdef __cplusplus
10806 extern "C"
10807 #endif
10808 char opendir ();
10809 int
10810 main ()
10811 {
10812 return opendir ();
10813   ;
10814   return 0;
10815 }
10816 _ACEOF
10817 for ac_lib in '' x; do
10818   if test -z "$ac_lib"; then
10819     ac_res="none required"
10820   else
10821     ac_res=-l$ac_lib
10822     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10823   fi
10824   rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (ac_try="$ac_link"
10826 case "(($ac_try" in
10827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10828   *) ac_try_echo=$ac_try;;
10829 esac
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831   (eval "$ac_link") 2>conftest.er1
10832   ac_status=$?
10833   grep -v '^ *+' conftest.er1 >conftest.err
10834   rm -f conftest.er1
10835   cat conftest.err >&5
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); } &&
10838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10839   { (case "(($ac_try" in
10840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841   *) ac_try_echo=$ac_try;;
10842 esac
10843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844   (eval "$ac_try") 2>&5
10845   ac_status=$?
10846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847   (exit $ac_status); }; } &&
10848          { ac_try='test -s conftest$ac_exeext'
10849   { (case "(($ac_try" in
10850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851   *) ac_try_echo=$ac_try;;
10852 esac
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854   (eval "$ac_try") 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); }; }; then
10858   ac_cv_search_opendir=$ac_res
10859 else
10860   echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10862
10863
10864 fi
10865
10866 rm -f core conftest.err conftest.$ac_objext \
10867       conftest$ac_exeext
10868   if test "${ac_cv_search_opendir+set}" = set; then
10869   break
10870 fi
10871 done
10872 if test "${ac_cv_search_opendir+set}" = set; then
10873   :
10874 else
10875   ac_cv_search_opendir=no
10876 fi
10877 rm conftest.$ac_ext
10878 LIBS=$ac_func_search_save_LIBS
10879 fi
10880 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10881 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
10882 ac_res=$ac_cv_search_opendir
10883 if test "$ac_res" != no; then
10884   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10885
10886 fi
10887
10888 fi
10889
10890 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
10891 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
10892 if test "${ac_cv_header_mmap_anon+set}" = set; then
10893   echo $ECHO_N "(cached) $ECHO_C" >&6
10894 else
10895    ac_ext=c
10896 ac_cpp='$CPP $CPPFLAGS'
10897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10900
10901   cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h.  */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h.  */
10907 #include <sys/mman.h>
10908 #include <unistd.h>
10909 #include <fcntl.h>
10910 int
10911 main ()
10912 {
10913 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
10914   ;
10915   return 0;
10916 }
10917 _ACEOF
10918 rm -f conftest.$ac_objext
10919 if { (ac_try="$ac_compile"
10920 case "(($ac_try" in
10921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922   *) ac_try_echo=$ac_try;;
10923 esac
10924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925   (eval "$ac_compile") 2>conftest.er1
10926   ac_status=$?
10927   grep -v '^ *+' conftest.er1 >conftest.err
10928   rm -f conftest.er1
10929   cat conftest.err >&5
10930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931   (exit $ac_status); } &&
10932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10933   { (case "(($ac_try" in
10934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935   *) ac_try_echo=$ac_try;;
10936 esac
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938   (eval "$ac_try") 2>&5
10939   ac_status=$?
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); }; } &&
10942          { ac_try='test -s conftest.$ac_objext'
10943   { (case "(($ac_try" in
10944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945   *) ac_try_echo=$ac_try;;
10946 esac
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948   (eval "$ac_try") 2>&5
10949   ac_status=$?
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); }; }; then
10952   ac_cv_header_mmap_anon=yes
10953 else
10954   echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10956
10957         ac_cv_header_mmap_anon=no
10958 fi
10959
10960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961   ac_ext=c
10962 ac_cpp='$CPP $CPPFLAGS'
10963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10966
10967
10968 fi
10969 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
10970 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
10971 if test "$ac_cv_header_mmap_anon" = yes; then
10972
10973 cat >>confdefs.h <<\_ACEOF
10974 #define HAVE_MMAP_ANONYMOUS 1
10975 _ACEOF
10976
10977 fi
10978
10979 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10980 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
10981 if test "${ac_cv_header_stat_broken+set}" = set; then
10982   echo $ECHO_N "(cached) $ECHO_C" >&6
10983 else
10984   cat >conftest.$ac_ext <<_ACEOF
10985 /* confdefs.h.  */
10986 _ACEOF
10987 cat confdefs.h >>conftest.$ac_ext
10988 cat >>conftest.$ac_ext <<_ACEOF
10989 /* end confdefs.h.  */
10990 #include <sys/types.h>
10991 #include <sys/stat.h>
10992
10993 #if defined S_ISBLK && defined S_IFDIR
10994 # if S_ISBLK (S_IFDIR)
10995 You lose.
10996 # endif
10997 #endif
10998
10999 #if defined S_ISBLK && defined S_IFCHR
11000 # if S_ISBLK (S_IFCHR)
11001 You lose.
11002 # endif
11003 #endif
11004
11005 #if defined S_ISLNK && defined S_IFREG
11006 # if S_ISLNK (S_IFREG)
11007 You lose.
11008 # endif
11009 #endif
11010
11011 #if defined S_ISSOCK && defined S_IFREG
11012 # if S_ISSOCK (S_IFREG)
11013 You lose.
11014 # endif
11015 #endif
11016
11017 _ACEOF
11018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11019   $EGREP "You lose" >/dev/null 2>&1; then
11020   ac_cv_header_stat_broken=yes
11021 else
11022   ac_cv_header_stat_broken=no
11023 fi
11024 rm -f conftest*
11025
11026 fi
11027 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11028 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
11029 if test $ac_cv_header_stat_broken = yes; then
11030
11031 cat >>confdefs.h <<\_ACEOF
11032 #define STAT_MACROS_BROKEN 1
11033 _ACEOF
11034
11035 fi
11036
11037 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11038 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
11039 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11040   echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042   cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h.  */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h.  */
11048 #include <sys/types.h>
11049 #include <sys/wait.h>
11050 #ifndef WEXITSTATUS
11051 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11052 #endif
11053 #ifndef WIFEXITED
11054 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11055 #endif
11056
11057 int
11058 main ()
11059 {
11060   int s;
11061   wait (&s);
11062   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11063   ;
11064   return 0;
11065 }
11066 _ACEOF
11067 rm -f conftest.$ac_objext
11068 if { (ac_try="$ac_compile"
11069 case "(($ac_try" in
11070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071   *) ac_try_echo=$ac_try;;
11072 esac
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074   (eval "$ac_compile") 2>conftest.er1
11075   ac_status=$?
11076   grep -v '^ *+' conftest.er1 >conftest.err
11077   rm -f conftest.er1
11078   cat conftest.err >&5
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); } &&
11081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11082   { (case "(($ac_try" in
11083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084   *) ac_try_echo=$ac_try;;
11085 esac
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087   (eval "$ac_try") 2>&5
11088   ac_status=$?
11089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090   (exit $ac_status); }; } &&
11091          { ac_try='test -s conftest.$ac_objext'
11092   { (case "(($ac_try" in
11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094   *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097   (eval "$ac_try") 2>&5
11098   ac_status=$?
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); }; }; then
11101   ac_cv_header_sys_wait_h=yes
11102 else
11103   echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11105
11106         ac_cv_header_sys_wait_h=no
11107 fi
11108
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11110 fi
11111 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11112 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
11113 if test $ac_cv_header_sys_wait_h = yes; then
11114
11115 cat >>confdefs.h <<\_ACEOF
11116 #define HAVE_SYS_WAIT_H 1
11117 _ACEOF
11118
11119 fi
11120
11121 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11122 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
11123 if test "${ac_cv_header_time+set}" = set; then
11124   echo $ECHO_N "(cached) $ECHO_C" >&6
11125 else
11126   cat >conftest.$ac_ext <<_ACEOF
11127 /* confdefs.h.  */
11128 _ACEOF
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h.  */
11132 #include <sys/types.h>
11133 #include <sys/time.h>
11134 #include <time.h>
11135
11136 int
11137 main ()
11138 {
11139 if ((struct tm *) 0)
11140 return 0;
11141   ;
11142   return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest.$ac_objext
11146 if { (ac_try="$ac_compile"
11147 case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_compile") 2>conftest.er1
11153   ac_status=$?
11154   grep -v '^ *+' conftest.er1 >conftest.err
11155   rm -f conftest.er1
11156   cat conftest.err >&5
11157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158   (exit $ac_status); } &&
11159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11160   { (case "(($ac_try" in
11161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11162   *) ac_try_echo=$ac_try;;
11163 esac
11164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11165   (eval "$ac_try") 2>&5
11166   ac_status=$?
11167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168   (exit $ac_status); }; } &&
11169          { ac_try='test -s conftest.$ac_objext'
11170   { (case "(($ac_try" in
11171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11172   *) ac_try_echo=$ac_try;;
11173 esac
11174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11175   (eval "$ac_try") 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; }; then
11179   ac_cv_header_time=yes
11180 else
11181   echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11183
11184         ac_cv_header_time=no
11185 fi
11186
11187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11188 fi
11189 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11190 echo "${ECHO_T}$ac_cv_header_time" >&6; }
11191 if test $ac_cv_header_time = yes; then
11192
11193 cat >>confdefs.h <<\_ACEOF
11194 #define TIME_WITH_SYS_TIME 1
11195 _ACEOF
11196
11197 fi
11198
11199
11200 ac_ext=cpp
11201 ac_cpp='$CXXCPP $CPPFLAGS'
11202 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11203 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11204 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11205
11206
11207 for ac_header in cxxabi.h
11208 do
11209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11210 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11211 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11213   echo $ECHO_N "(cached) $ECHO_C" >&6
11214 else
11215   cat >conftest.$ac_ext <<_ACEOF
11216 /* confdefs.h.  */
11217 _ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h.  */
11221 #include <stddef.h>
11222
11223
11224 #include <$ac_header>
11225 _ACEOF
11226 rm -f conftest.$ac_objext
11227 if { (ac_try="$ac_compile"
11228 case "(($ac_try" in
11229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230   *) ac_try_echo=$ac_try;;
11231 esac
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233   (eval "$ac_compile") 2>conftest.er1
11234   ac_status=$?
11235   grep -v '^ *+' conftest.er1 >conftest.err
11236   rm -f conftest.er1
11237   cat conftest.err >&5
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); } &&
11240          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11241   { (case "(($ac_try" in
11242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243   *) ac_try_echo=$ac_try;;
11244 esac
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246   (eval "$ac_try") 2>&5
11247   ac_status=$?
11248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249   (exit $ac_status); }; } &&
11250          { ac_try='test -s conftest.$ac_objext'
11251   { (case "(($ac_try" in
11252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253   *) ac_try_echo=$ac_try;;
11254 esac
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256   (eval "$ac_try") 2>&5
11257   ac_status=$?
11258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259   (exit $ac_status); }; }; then
11260   eval "$as_ac_Header=yes"
11261 else
11262   echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265         eval "$as_ac_Header=no"
11266 fi
11267
11268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11269 fi
11270 ac_res=`eval echo '${'$as_ac_Header'}'`
11271                { echo "$as_me:$LINENO: result: $ac_res" >&5
11272 echo "${ECHO_T}$ac_res" >&6; }
11273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11274   cat >>confdefs.h <<_ACEOF
11275 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11276 _ACEOF
11277
11278 fi
11279
11280 done
11281
11282 ac_ext=c
11283 ac_cpp='$CPP $CPPFLAGS'
11284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11287
11288
11289
11290
11291
11292
11293
11294 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h link.h
11295 do
11296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11298   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11301   echo $ECHO_N "(cached) $ECHO_C" >&6
11302 fi
11303 ac_res=`eval echo '${'$as_ac_Header'}'`
11304                { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11306 else
11307   # Is the header compilable?
11308 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11309 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11310 cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h.  */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h.  */
11316 $ac_includes_default
11317 #include <$ac_header>
11318 _ACEOF
11319 rm -f conftest.$ac_objext
11320 if { (ac_try="$ac_compile"
11321 case "(($ac_try" in
11322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323   *) ac_try_echo=$ac_try;;
11324 esac
11325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326   (eval "$ac_compile") 2>conftest.er1
11327   ac_status=$?
11328   grep -v '^ *+' conftest.er1 >conftest.err
11329   rm -f conftest.er1
11330   cat conftest.err >&5
11331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332   (exit $ac_status); } &&
11333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11334   { (case "(($ac_try" in
11335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11336   *) ac_try_echo=$ac_try;;
11337 esac
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339   (eval "$ac_try") 2>&5
11340   ac_status=$?
11341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342   (exit $ac_status); }; } &&
11343          { ac_try='test -s conftest.$ac_objext'
11344   { (case "(($ac_try" in
11345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346   *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349   (eval "$ac_try") 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; }; then
11353   ac_header_compiler=yes
11354 else
11355   echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11357
11358         ac_header_compiler=no
11359 fi
11360
11361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11363 echo "${ECHO_T}$ac_header_compiler" >&6; }
11364
11365 # Is the header present?
11366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11368 cat >conftest.$ac_ext <<_ACEOF
11369 /* confdefs.h.  */
11370 _ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h.  */
11374 #include <$ac_header>
11375 _ACEOF
11376 if { (ac_try="$ac_cpp conftest.$ac_ext"
11377 case "(($ac_try" in
11378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379   *) ac_try_echo=$ac_try;;
11380 esac
11381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11383   ac_status=$?
11384   grep -v '^ *+' conftest.er1 >conftest.err
11385   rm -f conftest.er1
11386   cat conftest.err >&5
11387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11388   (exit $ac_status); } >/dev/null; then
11389   if test -s conftest.err; then
11390     ac_cpp_err=$ac_c_preproc_warn_flag
11391     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11392   else
11393     ac_cpp_err=
11394   fi
11395 else
11396   ac_cpp_err=yes
11397 fi
11398 if test -z "$ac_cpp_err"; then
11399   ac_header_preproc=yes
11400 else
11401   echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11403
11404   ac_header_preproc=no
11405 fi
11406
11407 rm -f conftest.err conftest.$ac_ext
11408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11409 echo "${ECHO_T}$ac_header_preproc" >&6; }
11410
11411 # So?  What about this header?
11412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11413   yes:no: )
11414     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11418     ac_header_preproc=yes
11419     ;;
11420   no:yes:* )
11421     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11423     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11424 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11425     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11427     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11428 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11431     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11433     ( cat <<\_ASBOX
11434 ## ------------------------------------ ##
11435 ## Report this to http://llvm.org/bugs/ ##
11436 ## ------------------------------------ ##
11437 _ASBOX
11438      ) | sed "s/^/$as_me: WARNING:     /" >&2
11439     ;;
11440 esac
11441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11444   echo $ECHO_N "(cached) $ECHO_C" >&6
11445 else
11446   eval "$as_ac_Header=\$ac_header_preproc"
11447 fi
11448 ac_res=`eval echo '${'$as_ac_Header'}'`
11449                { echo "$as_me:$LINENO: result: $ac_res" >&5
11450 echo "${ECHO_T}$ac_res" >&6; }
11451
11452 fi
11453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11454   cat >>confdefs.h <<_ACEOF
11455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11456 _ACEOF
11457
11458 fi
11459
11460 done
11461
11462
11463
11464
11465
11466
11467
11468 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11469 do
11470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11475   echo $ECHO_N "(cached) $ECHO_C" >&6
11476 fi
11477 ac_res=`eval echo '${'$as_ac_Header'}'`
11478                { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11480 else
11481   # Is the header compilable?
11482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11484 cat >conftest.$ac_ext <<_ACEOF
11485 /* confdefs.h.  */
11486 _ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h.  */
11490 $ac_includes_default
11491 #include <$ac_header>
11492 _ACEOF
11493 rm -f conftest.$ac_objext
11494 if { (ac_try="$ac_compile"
11495 case "(($ac_try" in
11496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497   *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500   (eval "$ac_compile") 2>conftest.er1
11501   ac_status=$?
11502   grep -v '^ *+' conftest.er1 >conftest.err
11503   rm -f conftest.er1
11504   cat conftest.err >&5
11505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506   (exit $ac_status); } &&
11507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11508   { (case "(($ac_try" in
11509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510   *) ac_try_echo=$ac_try;;
11511 esac
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513   (eval "$ac_try") 2>&5
11514   ac_status=$?
11515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516   (exit $ac_status); }; } &&
11517          { ac_try='test -s conftest.$ac_objext'
11518   { (case "(($ac_try" in
11519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520   *) ac_try_echo=$ac_try;;
11521 esac
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523   (eval "$ac_try") 2>&5
11524   ac_status=$?
11525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526   (exit $ac_status); }; }; then
11527   ac_header_compiler=yes
11528 else
11529   echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11531
11532         ac_header_compiler=no
11533 fi
11534
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11537 echo "${ECHO_T}$ac_header_compiler" >&6; }
11538
11539 # Is the header present?
11540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h.  */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h.  */
11548 #include <$ac_header>
11549 _ACEOF
11550 if { (ac_try="$ac_cpp conftest.$ac_ext"
11551 case "(($ac_try" in
11552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553   *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11557   ac_status=$?
11558   grep -v '^ *+' conftest.er1 >conftest.err
11559   rm -f conftest.er1
11560   cat conftest.err >&5
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); } >/dev/null; then
11563   if test -s conftest.err; then
11564     ac_cpp_err=$ac_c_preproc_warn_flag
11565     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11566   else
11567     ac_cpp_err=
11568   fi
11569 else
11570   ac_cpp_err=yes
11571 fi
11572 if test -z "$ac_cpp_err"; then
11573   ac_header_preproc=yes
11574 else
11575   echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11577
11578   ac_header_preproc=no
11579 fi
11580
11581 rm -f conftest.err conftest.$ac_ext
11582 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11583 echo "${ECHO_T}$ac_header_preproc" >&6; }
11584
11585 # So?  What about this header?
11586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11587   yes:no: )
11588     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11589 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11592     ac_header_preproc=yes
11593     ;;
11594   no:yes:* )
11595     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11596 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11597     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11598 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11599     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11600 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11601     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11602 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11603     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11605     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11606 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11607     ( cat <<\_ASBOX
11608 ## ------------------------------------ ##
11609 ## Report this to http://llvm.org/bugs/ ##
11610 ## ------------------------------------ ##
11611 _ASBOX
11612      ) | sed "s/^/$as_me: WARNING:     /" >&2
11613     ;;
11614 esac
11615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11618   echo $ECHO_N "(cached) $ECHO_C" >&6
11619 else
11620   eval "$as_ac_Header=\$ac_header_preproc"
11621 fi
11622 ac_res=`eval echo '${'$as_ac_Header'}'`
11623                { echo "$as_me:$LINENO: result: $ac_res" >&5
11624 echo "${ECHO_T}$ac_res" >&6; }
11625
11626 fi
11627 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11628   cat >>confdefs.h <<_ACEOF
11629 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11630 _ACEOF
11631
11632 fi
11633
11634 done
11635
11636
11637 for ac_header in utime.h
11638 do
11639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11641   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11644   echo $ECHO_N "(cached) $ECHO_C" >&6
11645 fi
11646 ac_res=`eval echo '${'$as_ac_Header'}'`
11647                { echo "$as_me:$LINENO: result: $ac_res" >&5
11648 echo "${ECHO_T}$ac_res" >&6; }
11649 else
11650   # Is the header compilable?
11651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11653 cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659 $ac_includes_default
11660 #include <$ac_header>
11661 _ACEOF
11662 rm -f conftest.$ac_objext
11663 if { (ac_try="$ac_compile"
11664 case "(($ac_try" in
11665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666   *) ac_try_echo=$ac_try;;
11667 esac
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669   (eval "$ac_compile") 2>conftest.er1
11670   ac_status=$?
11671   grep -v '^ *+' conftest.er1 >conftest.err
11672   rm -f conftest.er1
11673   cat conftest.err >&5
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); } &&
11676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11677   { (case "(($ac_try" in
11678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679   *) ac_try_echo=$ac_try;;
11680 esac
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682   (eval "$ac_try") 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; } &&
11686          { ac_try='test -s conftest.$ac_objext'
11687   { (case "(($ac_try" in
11688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689   *) ac_try_echo=$ac_try;;
11690 esac
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692   (eval "$ac_try") 2>&5
11693   ac_status=$?
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); }; }; then
11696   ac_header_compiler=yes
11697 else
11698   echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11700
11701         ac_header_compiler=no
11702 fi
11703
11704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11706 echo "${ECHO_T}$ac_header_compiler" >&6; }
11707
11708 # Is the header present?
11709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11711 cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717 #include <$ac_header>
11718 _ACEOF
11719 if { (ac_try="$ac_cpp conftest.$ac_ext"
11720 case "(($ac_try" in
11721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722   *) ac_try_echo=$ac_try;;
11723 esac
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11726   ac_status=$?
11727   grep -v '^ *+' conftest.er1 >conftest.err
11728   rm -f conftest.er1
11729   cat conftest.err >&5
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); } >/dev/null; then
11732   if test -s conftest.err; then
11733     ac_cpp_err=$ac_c_preproc_warn_flag
11734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11735   else
11736     ac_cpp_err=
11737   fi
11738 else
11739   ac_cpp_err=yes
11740 fi
11741 if test -z "$ac_cpp_err"; then
11742   ac_header_preproc=yes
11743 else
11744   echo "$as_me: failed program was:" >&5
11745 sed 's/^/| /' conftest.$ac_ext >&5
11746
11747   ac_header_preproc=no
11748 fi
11749
11750 rm -f conftest.err conftest.$ac_ext
11751 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11752 echo "${ECHO_T}$ac_header_preproc" >&6; }
11753
11754 # So?  What about this header?
11755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11756   yes:no: )
11757     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11759     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11761     ac_header_preproc=yes
11762     ;;
11763   no:yes:* )
11764     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11766     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11767 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11768     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11770     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11771 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11772     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11774     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11776     ( cat <<\_ASBOX
11777 ## ------------------------------------ ##
11778 ## Report this to http://llvm.org/bugs/ ##
11779 ## ------------------------------------ ##
11780 _ASBOX
11781      ) | sed "s/^/$as_me: WARNING:     /" >&2
11782     ;;
11783 esac
11784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11787   echo $ECHO_N "(cached) $ECHO_C" >&6
11788 else
11789   eval "$as_ac_Header=\$ac_header_preproc"
11790 fi
11791 ac_res=`eval echo '${'$as_ac_Header'}'`
11792                { echo "$as_me:$LINENO: result: $ac_res" >&5
11793 echo "${ECHO_T}$ac_res" >&6; }
11794
11795 fi
11796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11797   cat >>confdefs.h <<_ACEOF
11798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11799 _ACEOF
11800
11801 fi
11802
11803 done
11804
11805
11806
11807
11808
11809
11810 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
11811 do
11812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11814   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11817   echo $ECHO_N "(cached) $ECHO_C" >&6
11818 fi
11819 ac_res=`eval echo '${'$as_ac_Header'}'`
11820                { echo "$as_me:$LINENO: result: $ac_res" >&5
11821 echo "${ECHO_T}$ac_res" >&6; }
11822 else
11823   # Is the header compilable?
11824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11826 cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h.  */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h.  */
11832 $ac_includes_default
11833 #include <$ac_header>
11834 _ACEOF
11835 rm -f conftest.$ac_objext
11836 if { (ac_try="$ac_compile"
11837 case "(($ac_try" in
11838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839   *) ac_try_echo=$ac_try;;
11840 esac
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842   (eval "$ac_compile") 2>conftest.er1
11843   ac_status=$?
11844   grep -v '^ *+' conftest.er1 >conftest.err
11845   rm -f conftest.er1
11846   cat conftest.err >&5
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); } &&
11849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11850   { (case "(($ac_try" in
11851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852   *) ac_try_echo=$ac_try;;
11853 esac
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855   (eval "$ac_try") 2>&5
11856   ac_status=$?
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); }; } &&
11859          { ac_try='test -s conftest.$ac_objext'
11860   { (case "(($ac_try" in
11861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862   *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865   (eval "$ac_try") 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; }; then
11869   ac_header_compiler=yes
11870 else
11871   echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11873
11874         ac_header_compiler=no
11875 fi
11876
11877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11879 echo "${ECHO_T}$ac_header_compiler" >&6; }
11880
11881 # Is the header present?
11882 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11883 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11884 cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h.  */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h.  */
11890 #include <$ac_header>
11891 _ACEOF
11892 if { (ac_try="$ac_cpp conftest.$ac_ext"
11893 case "(($ac_try" in
11894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895   *) ac_try_echo=$ac_try;;
11896 esac
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11899   ac_status=$?
11900   grep -v '^ *+' conftest.er1 >conftest.err
11901   rm -f conftest.er1
11902   cat conftest.err >&5
11903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904   (exit $ac_status); } >/dev/null; then
11905   if test -s conftest.err; then
11906     ac_cpp_err=$ac_c_preproc_warn_flag
11907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11908   else
11909     ac_cpp_err=
11910   fi
11911 else
11912   ac_cpp_err=yes
11913 fi
11914 if test -z "$ac_cpp_err"; then
11915   ac_header_preproc=yes
11916 else
11917   echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11919
11920   ac_header_preproc=no
11921 fi
11922
11923 rm -f conftest.err conftest.$ac_ext
11924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11925 echo "${ECHO_T}$ac_header_preproc" >&6; }
11926
11927 # So?  What about this header?
11928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11929   yes:no: )
11930     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11934     ac_header_preproc=yes
11935     ;;
11936   no:yes:* )
11937     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11939     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11940 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11941     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11943     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11944 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11945     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11947     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11949     ( cat <<\_ASBOX
11950 ## ------------------------------------ ##
11951 ## Report this to http://llvm.org/bugs/ ##
11952 ## ------------------------------------ ##
11953 _ASBOX
11954      ) | sed "s/^/$as_me: WARNING:     /" >&2
11955     ;;
11956 esac
11957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11960   echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962   eval "$as_ac_Header=\$ac_header_preproc"
11963 fi
11964 ac_res=`eval echo '${'$as_ac_Header'}'`
11965                { echo "$as_me:$LINENO: result: $ac_res" >&5
11966 echo "${ECHO_T}$ac_res" >&6; }
11967
11968 fi
11969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11970   cat >>confdefs.h <<_ACEOF
11971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11972 _ACEOF
11973
11974 fi
11975
11976 done
11977
11978
11979
11980
11981 for ac_header in sys/ioctl.h malloc/malloc.h mach/mach.h
11982 do
11983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11985   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11988   echo $ECHO_N "(cached) $ECHO_C" >&6
11989 fi
11990 ac_res=`eval echo '${'$as_ac_Header'}'`
11991                { echo "$as_me:$LINENO: result: $ac_res" >&5
11992 echo "${ECHO_T}$ac_res" >&6; }
11993 else
11994   # Is the header compilable?
11995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11997 cat >conftest.$ac_ext <<_ACEOF
11998 /* confdefs.h.  */
11999 _ACEOF
12000 cat confdefs.h >>conftest.$ac_ext
12001 cat >>conftest.$ac_ext <<_ACEOF
12002 /* end confdefs.h.  */
12003 $ac_includes_default
12004 #include <$ac_header>
12005 _ACEOF
12006 rm -f conftest.$ac_objext
12007 if { (ac_try="$ac_compile"
12008 case "(($ac_try" in
12009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010   *) ac_try_echo=$ac_try;;
12011 esac
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013   (eval "$ac_compile") 2>conftest.er1
12014   ac_status=$?
12015   grep -v '^ *+' conftest.er1 >conftest.err
12016   rm -f conftest.er1
12017   cat conftest.err >&5
12018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019   (exit $ac_status); } &&
12020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12021   { (case "(($ac_try" in
12022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023   *) ac_try_echo=$ac_try;;
12024 esac
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026   (eval "$ac_try") 2>&5
12027   ac_status=$?
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); }; } &&
12030          { ac_try='test -s conftest.$ac_objext'
12031   { (case "(($ac_try" in
12032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033   *) ac_try_echo=$ac_try;;
12034 esac
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036   (eval "$ac_try") 2>&5
12037   ac_status=$?
12038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039   (exit $ac_status); }; }; then
12040   ac_header_compiler=yes
12041 else
12042   echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12044
12045         ac_header_compiler=no
12046 fi
12047
12048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12050 echo "${ECHO_T}$ac_header_compiler" >&6; }
12051
12052 # Is the header present?
12053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12055 cat >conftest.$ac_ext <<_ACEOF
12056 /* confdefs.h.  */
12057 _ACEOF
12058 cat confdefs.h >>conftest.$ac_ext
12059 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h.  */
12061 #include <$ac_header>
12062 _ACEOF
12063 if { (ac_try="$ac_cpp conftest.$ac_ext"
12064 case "(($ac_try" in
12065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066   *) ac_try_echo=$ac_try;;
12067 esac
12068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12069   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12070   ac_status=$?
12071   grep -v '^ *+' conftest.er1 >conftest.err
12072   rm -f conftest.er1
12073   cat conftest.err >&5
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); } >/dev/null; then
12076   if test -s conftest.err; then
12077     ac_cpp_err=$ac_c_preproc_warn_flag
12078     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12079   else
12080     ac_cpp_err=
12081   fi
12082 else
12083   ac_cpp_err=yes
12084 fi
12085 if test -z "$ac_cpp_err"; then
12086   ac_header_preproc=yes
12087 else
12088   echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12090
12091   ac_header_preproc=no
12092 fi
12093
12094 rm -f conftest.err conftest.$ac_ext
12095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12096 echo "${ECHO_T}$ac_header_preproc" >&6; }
12097
12098 # So?  What about this header?
12099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12100   yes:no: )
12101     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12103     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12105     ac_header_preproc=yes
12106     ;;
12107   no:yes:* )
12108     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12110     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12111 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12112     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12114     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12115 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12116     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12118     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12120     ( cat <<\_ASBOX
12121 ## ------------------------------------ ##
12122 ## Report this to http://llvm.org/bugs/ ##
12123 ## ------------------------------------ ##
12124 _ASBOX
12125      ) | sed "s/^/$as_me: WARNING:     /" >&2
12126     ;;
12127 esac
12128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12131   echo $ECHO_N "(cached) $ECHO_C" >&6
12132 else
12133   eval "$as_ac_Header=\$ac_header_preproc"
12134 fi
12135 ac_res=`eval echo '${'$as_ac_Header'}'`
12136                { echo "$as_me:$LINENO: result: $ac_res" >&5
12137 echo "${ECHO_T}$ac_res" >&6; }
12138
12139 fi
12140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12141   cat >>confdefs.h <<_ACEOF
12142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12143 _ACEOF
12144
12145 fi
12146
12147 done
12148
12149
12150 for ac_header in valgrind/valgrind.h
12151 do
12152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12154   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12157   echo $ECHO_N "(cached) $ECHO_C" >&6
12158 fi
12159 ac_res=`eval echo '${'$as_ac_Header'}'`
12160                { echo "$as_me:$LINENO: result: $ac_res" >&5
12161 echo "${ECHO_T}$ac_res" >&6; }
12162 else
12163   # Is the header compilable?
12164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12166 cat >conftest.$ac_ext <<_ACEOF
12167 /* confdefs.h.  */
12168 _ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h.  */
12172 $ac_includes_default
12173 #include <$ac_header>
12174 _ACEOF
12175 rm -f conftest.$ac_objext
12176 if { (ac_try="$ac_compile"
12177 case "(($ac_try" in
12178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179   *) ac_try_echo=$ac_try;;
12180 esac
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182   (eval "$ac_compile") 2>conftest.er1
12183   ac_status=$?
12184   grep -v '^ *+' conftest.er1 >conftest.err
12185   rm -f conftest.er1
12186   cat conftest.err >&5
12187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188   (exit $ac_status); } &&
12189          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12190   { (case "(($ac_try" in
12191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192   *) ac_try_echo=$ac_try;;
12193 esac
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195   (eval "$ac_try") 2>&5
12196   ac_status=$?
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); }; } &&
12199          { ac_try='test -s conftest.$ac_objext'
12200   { (case "(($ac_try" in
12201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202   *) ac_try_echo=$ac_try;;
12203 esac
12204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12205   (eval "$ac_try") 2>&5
12206   ac_status=$?
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); }; }; then
12209   ac_header_compiler=yes
12210 else
12211   echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12213
12214         ac_header_compiler=no
12215 fi
12216
12217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12219 echo "${ECHO_T}$ac_header_compiler" >&6; }
12220
12221 # Is the header present?
12222 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12223 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12224 cat >conftest.$ac_ext <<_ACEOF
12225 /* confdefs.h.  */
12226 _ACEOF
12227 cat confdefs.h >>conftest.$ac_ext
12228 cat >>conftest.$ac_ext <<_ACEOF
12229 /* end confdefs.h.  */
12230 #include <$ac_header>
12231 _ACEOF
12232 if { (ac_try="$ac_cpp conftest.$ac_ext"
12233 case "(($ac_try" in
12234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235   *) ac_try_echo=$ac_try;;
12236 esac
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12239   ac_status=$?
12240   grep -v '^ *+' conftest.er1 >conftest.err
12241   rm -f conftest.er1
12242   cat conftest.err >&5
12243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244   (exit $ac_status); } >/dev/null; then
12245   if test -s conftest.err; then
12246     ac_cpp_err=$ac_c_preproc_warn_flag
12247     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12248   else
12249     ac_cpp_err=
12250   fi
12251 else
12252   ac_cpp_err=yes
12253 fi
12254 if test -z "$ac_cpp_err"; then
12255   ac_header_preproc=yes
12256 else
12257   echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12259
12260   ac_header_preproc=no
12261 fi
12262
12263 rm -f conftest.err conftest.$ac_ext
12264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12265 echo "${ECHO_T}$ac_header_preproc" >&6; }
12266
12267 # So?  What about this header?
12268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12269   yes:no: )
12270     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12274     ac_header_preproc=yes
12275     ;;
12276   no:yes:* )
12277     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12279     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12280 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12281     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12283     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12284 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12287     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12289     ( cat <<\_ASBOX
12290 ## ------------------------------------ ##
12291 ## Report this to http://llvm.org/bugs/ ##
12292 ## ------------------------------------ ##
12293 _ASBOX
12294      ) | sed "s/^/$as_me: WARNING:     /" >&2
12295     ;;
12296 esac
12297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12300   echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302   eval "$as_ac_Header=\$ac_header_preproc"
12303 fi
12304 ac_res=`eval echo '${'$as_ac_Header'}'`
12305                { echo "$as_me:$LINENO: result: $ac_res" >&5
12306 echo "${ECHO_T}$ac_res" >&6; }
12307
12308 fi
12309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12310   cat >>confdefs.h <<_ACEOF
12311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12312 _ACEOF
12313
12314 fi
12315
12316 done
12317
12318
12319 for ac_header in fenv.h
12320 do
12321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12323   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12326   echo $ECHO_N "(cached) $ECHO_C" >&6
12327 fi
12328 ac_res=`eval echo '${'$as_ac_Header'}'`
12329                { echo "$as_me:$LINENO: result: $ac_res" >&5
12330 echo "${ECHO_T}$ac_res" >&6; }
12331 else
12332   # Is the header compilable?
12333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12335 cat >conftest.$ac_ext <<_ACEOF
12336 /* confdefs.h.  */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h.  */
12341 $ac_includes_default
12342 #include <$ac_header>
12343 _ACEOF
12344 rm -f conftest.$ac_objext
12345 if { (ac_try="$ac_compile"
12346 case "(($ac_try" in
12347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348   *) ac_try_echo=$ac_try;;
12349 esac
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351   (eval "$ac_compile") 2>conftest.er1
12352   ac_status=$?
12353   grep -v '^ *+' conftest.er1 >conftest.err
12354   rm -f conftest.er1
12355   cat conftest.err >&5
12356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357   (exit $ac_status); } &&
12358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12359   { (case "(($ac_try" in
12360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361   *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364   (eval "$ac_try") 2>&5
12365   ac_status=$?
12366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); }; } &&
12368          { ac_try='test -s conftest.$ac_objext'
12369   { (case "(($ac_try" in
12370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12371   *) ac_try_echo=$ac_try;;
12372 esac
12373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12374   (eval "$ac_try") 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); }; }; then
12378   ac_header_compiler=yes
12379 else
12380   echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12382
12383         ac_header_compiler=no
12384 fi
12385
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12388 echo "${ECHO_T}$ac_header_compiler" >&6; }
12389
12390 # Is the header present?
12391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12393 cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h.  */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h.  */
12399 #include <$ac_header>
12400 _ACEOF
12401 if { (ac_try="$ac_cpp conftest.$ac_ext"
12402 case "(($ac_try" in
12403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12404   *) ac_try_echo=$ac_try;;
12405 esac
12406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12408   ac_status=$?
12409   grep -v '^ *+' conftest.er1 >conftest.err
12410   rm -f conftest.er1
12411   cat conftest.err >&5
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); } >/dev/null; then
12414   if test -s conftest.err; then
12415     ac_cpp_err=$ac_c_preproc_warn_flag
12416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12417   else
12418     ac_cpp_err=
12419   fi
12420 else
12421   ac_cpp_err=yes
12422 fi
12423 if test -z "$ac_cpp_err"; then
12424   ac_header_preproc=yes
12425 else
12426   echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12428
12429   ac_header_preproc=no
12430 fi
12431
12432 rm -f conftest.err conftest.$ac_ext
12433 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12434 echo "${ECHO_T}$ac_header_preproc" >&6; }
12435
12436 # So?  What about this header?
12437 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12438   yes:no: )
12439     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12440 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12442 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12443     ac_header_preproc=yes
12444     ;;
12445   no:yes:* )
12446     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12447 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12448     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12449 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12450     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12451 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12452     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12453 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12455 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12456     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12457 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12458     ( cat <<\_ASBOX
12459 ## ------------------------------------ ##
12460 ## Report this to http://llvm.org/bugs/ ##
12461 ## ------------------------------------ ##
12462 _ASBOX
12463      ) | sed "s/^/$as_me: WARNING:     /" >&2
12464     ;;
12465 esac
12466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12469   echo $ECHO_N "(cached) $ECHO_C" >&6
12470 else
12471   eval "$as_ac_Header=\$ac_header_preproc"
12472 fi
12473 ac_res=`eval echo '${'$as_ac_Header'}'`
12474                { echo "$as_me:$LINENO: result: $ac_res" >&5
12475 echo "${ECHO_T}$ac_res" >&6; }
12476
12477 fi
12478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12479   cat >>confdefs.h <<_ACEOF
12480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12481 _ACEOF
12482
12483 fi
12484
12485 done
12486
12487 { echo "$as_me:$LINENO: checking whether FE_ALL_EXCEPT is declared" >&5
12488 echo $ECHO_N "checking whether FE_ALL_EXCEPT is declared... $ECHO_C" >&6; }
12489 if test "${ac_cv_have_decl_FE_ALL_EXCEPT+set}" = set; then
12490   echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492   cat >conftest.$ac_ext <<_ACEOF
12493 /* confdefs.h.  */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h.  */
12498 #include <fenv.h>
12499
12500 int
12501 main ()
12502 {
12503 #ifndef FE_ALL_EXCEPT
12504   char *p = (char *) FE_ALL_EXCEPT;
12505   return !p;
12506 #endif
12507
12508   ;
12509   return 0;
12510 }
12511 _ACEOF
12512 rm -f conftest.$ac_objext
12513 if { (ac_try="$ac_compile"
12514 case "(($ac_try" in
12515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516   *) ac_try_echo=$ac_try;;
12517 esac
12518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519   (eval "$ac_compile") 2>conftest.er1
12520   ac_status=$?
12521   grep -v '^ *+' conftest.er1 >conftest.err
12522   rm -f conftest.er1
12523   cat conftest.err >&5
12524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525   (exit $ac_status); } &&
12526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12527   { (case "(($ac_try" in
12528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12529   *) ac_try_echo=$ac_try;;
12530 esac
12531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12532   (eval "$ac_try") 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; } &&
12536          { ac_try='test -s conftest.$ac_objext'
12537   { (case "(($ac_try" in
12538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539   *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542   (eval "$ac_try") 2>&5
12543   ac_status=$?
12544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545   (exit $ac_status); }; }; then
12546   ac_cv_have_decl_FE_ALL_EXCEPT=yes
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551         ac_cv_have_decl_FE_ALL_EXCEPT=no
12552 fi
12553
12554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555 fi
12556 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_ALL_EXCEPT" >&5
12557 echo "${ECHO_T}$ac_cv_have_decl_FE_ALL_EXCEPT" >&6; }
12558 if test $ac_cv_have_decl_FE_ALL_EXCEPT = yes; then
12559
12560 cat >>confdefs.h <<_ACEOF
12561 #define HAVE_DECL_FE_ALL_EXCEPT 1
12562 _ACEOF
12563
12564
12565 else
12566   cat >>confdefs.h <<_ACEOF
12567 #define HAVE_DECL_FE_ALL_EXCEPT 0
12568 _ACEOF
12569
12570
12571 fi
12572 { echo "$as_me:$LINENO: checking whether FE_INEXACT is declared" >&5
12573 echo $ECHO_N "checking whether FE_INEXACT is declared... $ECHO_C" >&6; }
12574 if test "${ac_cv_have_decl_FE_INEXACT+set}" = set; then
12575   echo $ECHO_N "(cached) $ECHO_C" >&6
12576 else
12577   cat >conftest.$ac_ext <<_ACEOF
12578 /* confdefs.h.  */
12579 _ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h.  */
12583 #include <fenv.h>
12584
12585 int
12586 main ()
12587 {
12588 #ifndef FE_INEXACT
12589   char *p = (char *) FE_INEXACT;
12590   return !p;
12591 #endif
12592
12593   ;
12594   return 0;
12595 }
12596 _ACEOF
12597 rm -f conftest.$ac_objext
12598 if { (ac_try="$ac_compile"
12599 case "(($ac_try" in
12600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601   *) ac_try_echo=$ac_try;;
12602 esac
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604   (eval "$ac_compile") 2>conftest.er1
12605   ac_status=$?
12606   grep -v '^ *+' conftest.er1 >conftest.err
12607   rm -f conftest.er1
12608   cat conftest.err >&5
12609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610   (exit $ac_status); } &&
12611          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12612   { (case "(($ac_try" in
12613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614   *) ac_try_echo=$ac_try;;
12615 esac
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617   (eval "$ac_try") 2>&5
12618   ac_status=$?
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); }; } &&
12621          { ac_try='test -s conftest.$ac_objext'
12622   { (case "(($ac_try" in
12623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624   *) ac_try_echo=$ac_try;;
12625 esac
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627   (eval "$ac_try") 2>&5
12628   ac_status=$?
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); }; }; then
12631   ac_cv_have_decl_FE_INEXACT=yes
12632 else
12633   echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12635
12636         ac_cv_have_decl_FE_INEXACT=no
12637 fi
12638
12639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12640 fi
12641 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_FE_INEXACT" >&5
12642 echo "${ECHO_T}$ac_cv_have_decl_FE_INEXACT" >&6; }
12643 if test $ac_cv_have_decl_FE_INEXACT = yes; then
12644
12645 cat >>confdefs.h <<_ACEOF
12646 #define HAVE_DECL_FE_INEXACT 1
12647 _ACEOF
12648
12649
12650 else
12651   cat >>confdefs.h <<_ACEOF
12652 #define HAVE_DECL_FE_INEXACT 0
12653 _ACEOF
12654
12655
12656 fi
12657
12658
12659 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12660
12661 for ac_header in pthread.h
12662 do
12663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12665   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12668   echo $ECHO_N "(cached) $ECHO_C" >&6
12669 fi
12670 ac_res=`eval echo '${'$as_ac_Header'}'`
12671                { echo "$as_me:$LINENO: result: $ac_res" >&5
12672 echo "${ECHO_T}$ac_res" >&6; }
12673 else
12674   # Is the header compilable?
12675 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12677 cat >conftest.$ac_ext <<_ACEOF
12678 /* confdefs.h.  */
12679 _ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h.  */
12683 $ac_includes_default
12684 #include <$ac_header>
12685 _ACEOF
12686 rm -f conftest.$ac_objext
12687 if { (ac_try="$ac_compile"
12688 case "(($ac_try" in
12689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690   *) ac_try_echo=$ac_try;;
12691 esac
12692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12693   (eval "$ac_compile") 2>conftest.er1
12694   ac_status=$?
12695   grep -v '^ *+' conftest.er1 >conftest.err
12696   rm -f conftest.er1
12697   cat conftest.err >&5
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); } &&
12700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12701   { (case "(($ac_try" in
12702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703   *) ac_try_echo=$ac_try;;
12704 esac
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706   (eval "$ac_try") 2>&5
12707   ac_status=$?
12708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709   (exit $ac_status); }; } &&
12710          { ac_try='test -s conftest.$ac_objext'
12711   { (case "(($ac_try" in
12712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713   *) ac_try_echo=$ac_try;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716   (eval "$ac_try") 2>&5
12717   ac_status=$?
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); }; }; then
12720   ac_header_compiler=yes
12721 else
12722   echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12724
12725         ac_header_compiler=no
12726 fi
12727
12728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12730 echo "${ECHO_T}$ac_header_compiler" >&6; }
12731
12732 # Is the header present?
12733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12735 cat >conftest.$ac_ext <<_ACEOF
12736 /* confdefs.h.  */
12737 _ACEOF
12738 cat confdefs.h >>conftest.$ac_ext
12739 cat >>conftest.$ac_ext <<_ACEOF
12740 /* end confdefs.h.  */
12741 #include <$ac_header>
12742 _ACEOF
12743 if { (ac_try="$ac_cpp conftest.$ac_ext"
12744 case "(($ac_try" in
12745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746   *) ac_try_echo=$ac_try;;
12747 esac
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12750   ac_status=$?
12751   grep -v '^ *+' conftest.er1 >conftest.err
12752   rm -f conftest.er1
12753   cat conftest.err >&5
12754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755   (exit $ac_status); } >/dev/null; then
12756   if test -s conftest.err; then
12757     ac_cpp_err=$ac_c_preproc_warn_flag
12758     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12759   else
12760     ac_cpp_err=
12761   fi
12762 else
12763   ac_cpp_err=yes
12764 fi
12765 if test -z "$ac_cpp_err"; then
12766   ac_header_preproc=yes
12767 else
12768   echo "$as_me: failed program was:" >&5
12769 sed 's/^/| /' conftest.$ac_ext >&5
12770
12771   ac_header_preproc=no
12772 fi
12773
12774 rm -f conftest.err conftest.$ac_ext
12775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12776 echo "${ECHO_T}$ac_header_preproc" >&6; }
12777
12778 # So?  What about this header?
12779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12780   yes:no: )
12781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12785     ac_header_preproc=yes
12786     ;;
12787   no:yes:* )
12788     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12790     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12791 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12792     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12794     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12795 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12798     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12800     ( cat <<\_ASBOX
12801 ## ------------------------------------ ##
12802 ## Report this to http://llvm.org/bugs/ ##
12803 ## ------------------------------------ ##
12804 _ASBOX
12805      ) | sed "s/^/$as_me: WARNING:     /" >&2
12806     ;;
12807 esac
12808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12811   echo $ECHO_N "(cached) $ECHO_C" >&6
12812 else
12813   eval "$as_ac_Header=\$ac_header_preproc"
12814 fi
12815 ac_res=`eval echo '${'$as_ac_Header'}'`
12816                { echo "$as_me:$LINENO: result: $ac_res" >&5
12817 echo "${ECHO_T}$ac_res" >&6; }
12818
12819 fi
12820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12821   cat >>confdefs.h <<_ACEOF
12822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12823 _ACEOF
12824  HAVE_PTHREAD=1
12825
12826 else
12827   HAVE_PTHREAD=0
12828
12829 fi
12830
12831 done
12832
12833 else
12834   HAVE_PTHREAD=0
12835
12836 fi
12837 if test "$LLVM_ENABLE_ZLIB" -eq 1 ; then
12838
12839 for ac_header in zlib.h
12840 do
12841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12843   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12846   echo $ECHO_N "(cached) $ECHO_C" >&6
12847 fi
12848 ac_res=`eval echo '${'$as_ac_Header'}'`
12849                { echo "$as_me:$LINENO: result: $ac_res" >&5
12850 echo "${ECHO_T}$ac_res" >&6; }
12851 else
12852   # Is the header compilable?
12853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12855 cat >conftest.$ac_ext <<_ACEOF
12856 /* confdefs.h.  */
12857 _ACEOF
12858 cat confdefs.h >>conftest.$ac_ext
12859 cat >>conftest.$ac_ext <<_ACEOF
12860 /* end confdefs.h.  */
12861 $ac_includes_default
12862 #include <$ac_header>
12863 _ACEOF
12864 rm -f conftest.$ac_objext
12865 if { (ac_try="$ac_compile"
12866 case "(($ac_try" in
12867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12868   *) ac_try_echo=$ac_try;;
12869 esac
12870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12871   (eval "$ac_compile") 2>conftest.er1
12872   ac_status=$?
12873   grep -v '^ *+' conftest.er1 >conftest.err
12874   rm -f conftest.er1
12875   cat conftest.err >&5
12876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12877   (exit $ac_status); } &&
12878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12879   { (case "(($ac_try" in
12880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12881   *) ac_try_echo=$ac_try;;
12882 esac
12883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12884   (eval "$ac_try") 2>&5
12885   ac_status=$?
12886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887   (exit $ac_status); }; } &&
12888          { ac_try='test -s conftest.$ac_objext'
12889   { (case "(($ac_try" in
12890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12891   *) ac_try_echo=$ac_try;;
12892 esac
12893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894   (eval "$ac_try") 2>&5
12895   ac_status=$?
12896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897   (exit $ac_status); }; }; then
12898   ac_header_compiler=yes
12899 else
12900   echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.$ac_ext >&5
12902
12903         ac_header_compiler=no
12904 fi
12905
12906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12908 echo "${ECHO_T}$ac_header_compiler" >&6; }
12909
12910 # Is the header present?
12911 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12913 cat >conftest.$ac_ext <<_ACEOF
12914 /* confdefs.h.  */
12915 _ACEOF
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h.  */
12919 #include <$ac_header>
12920 _ACEOF
12921 if { (ac_try="$ac_cpp conftest.$ac_ext"
12922 case "(($ac_try" in
12923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924   *) ac_try_echo=$ac_try;;
12925 esac
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12928   ac_status=$?
12929   grep -v '^ *+' conftest.er1 >conftest.err
12930   rm -f conftest.er1
12931   cat conftest.err >&5
12932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933   (exit $ac_status); } >/dev/null; then
12934   if test -s conftest.err; then
12935     ac_cpp_err=$ac_c_preproc_warn_flag
12936     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12937   else
12938     ac_cpp_err=
12939   fi
12940 else
12941   ac_cpp_err=yes
12942 fi
12943 if test -z "$ac_cpp_err"; then
12944   ac_header_preproc=yes
12945 else
12946   echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12948
12949   ac_header_preproc=no
12950 fi
12951
12952 rm -f conftest.err conftest.$ac_ext
12953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12954 echo "${ECHO_T}$ac_header_preproc" >&6; }
12955
12956 # So?  What about this header?
12957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12958   yes:no: )
12959     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12961     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12963     ac_header_preproc=yes
12964     ;;
12965   no:yes:* )
12966     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12968     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12969 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12970     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12972     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12973 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12974     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12976     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12978     ( cat <<\_ASBOX
12979 ## ------------------------------------ ##
12980 ## Report this to http://llvm.org/bugs/ ##
12981 ## ------------------------------------ ##
12982 _ASBOX
12983      ) | sed "s/^/$as_me: WARNING:     /" >&2
12984     ;;
12985 esac
12986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12989   echo $ECHO_N "(cached) $ECHO_C" >&6
12990 else
12991   eval "$as_ac_Header=\$ac_header_preproc"
12992 fi
12993 ac_res=`eval echo '${'$as_ac_Header'}'`
12994                { echo "$as_me:$LINENO: result: $ac_res" >&5
12995 echo "${ECHO_T}$ac_res" >&6; }
12996
12997 fi
12998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12999   cat >>confdefs.h <<_ACEOF
13000 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13001 _ACEOF
13002  HAVE_LIBZ=1
13003
13004 else
13005   HAVE_LIBZ=0
13006
13007 fi
13008
13009 done
13010
13011 else
13012   HAVE_LIBZ=0
13013
13014 fi
13015
13016 if test "$llvm_cv_enable_libffi" = "yes" ; then
13017
13018
13019 for ac_header in ffi.h ffi/ffi.h
13020 do
13021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13023   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13026   echo $ECHO_N "(cached) $ECHO_C" >&6
13027 fi
13028 ac_res=`eval echo '${'$as_ac_Header'}'`
13029                { echo "$as_me:$LINENO: result: $ac_res" >&5
13030 echo "${ECHO_T}$ac_res" >&6; }
13031 else
13032   # Is the header compilable?
13033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13035 cat >conftest.$ac_ext <<_ACEOF
13036 /* confdefs.h.  */
13037 _ACEOF
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h.  */
13041 $ac_includes_default
13042 #include <$ac_header>
13043 _ACEOF
13044 rm -f conftest.$ac_objext
13045 if { (ac_try="$ac_compile"
13046 case "(($ac_try" in
13047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048   *) ac_try_echo=$ac_try;;
13049 esac
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051   (eval "$ac_compile") 2>conftest.er1
13052   ac_status=$?
13053   grep -v '^ *+' conftest.er1 >conftest.err
13054   rm -f conftest.er1
13055   cat conftest.err >&5
13056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057   (exit $ac_status); } &&
13058          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13059   { (case "(($ac_try" in
13060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061   *) ac_try_echo=$ac_try;;
13062 esac
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064   (eval "$ac_try") 2>&5
13065   ac_status=$?
13066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067   (exit $ac_status); }; } &&
13068          { ac_try='test -s conftest.$ac_objext'
13069   { (case "(($ac_try" in
13070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071   *) ac_try_echo=$ac_try;;
13072 esac
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074   (eval "$ac_try") 2>&5
13075   ac_status=$?
13076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077   (exit $ac_status); }; }; then
13078   ac_header_compiler=yes
13079 else
13080   echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13082
13083         ac_header_compiler=no
13084 fi
13085
13086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13088 echo "${ECHO_T}$ac_header_compiler" >&6; }
13089
13090 # Is the header present?
13091 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13093 cat >conftest.$ac_ext <<_ACEOF
13094 /* confdefs.h.  */
13095 _ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h.  */
13099 #include <$ac_header>
13100 _ACEOF
13101 if { (ac_try="$ac_cpp conftest.$ac_ext"
13102 case "(($ac_try" in
13103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104   *) ac_try_echo=$ac_try;;
13105 esac
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13108   ac_status=$?
13109   grep -v '^ *+' conftest.er1 >conftest.err
13110   rm -f conftest.er1
13111   cat conftest.err >&5
13112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113   (exit $ac_status); } >/dev/null; then
13114   if test -s conftest.err; then
13115     ac_cpp_err=$ac_c_preproc_warn_flag
13116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13117   else
13118     ac_cpp_err=
13119   fi
13120 else
13121   ac_cpp_err=yes
13122 fi
13123 if test -z "$ac_cpp_err"; then
13124   ac_header_preproc=yes
13125 else
13126   echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13128
13129   ac_header_preproc=no
13130 fi
13131
13132 rm -f conftest.err conftest.$ac_ext
13133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13134 echo "${ECHO_T}$ac_header_preproc" >&6; }
13135
13136 # So?  What about this header?
13137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13138   yes:no: )
13139     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13141     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13143     ac_header_preproc=yes
13144     ;;
13145   no:yes:* )
13146     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13148     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13149 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13150     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13152     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13153 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13156     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13158     ( cat <<\_ASBOX
13159 ## ------------------------------------ ##
13160 ## Report this to http://llvm.org/bugs/ ##
13161 ## ------------------------------------ ##
13162 _ASBOX
13163      ) | sed "s/^/$as_me: WARNING:     /" >&2
13164     ;;
13165 esac
13166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13169   echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171   eval "$as_ac_Header=\$ac_header_preproc"
13172 fi
13173 ac_res=`eval echo '${'$as_ac_Header'}'`
13174                { echo "$as_me:$LINENO: result: $ac_res" >&5
13175 echo "${ECHO_T}$ac_res" >&6; }
13176
13177 fi
13178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13179   cat >>confdefs.h <<_ACEOF
13180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13181 _ACEOF
13182
13183 fi
13184
13185 done
13186
13187 fi
13188
13189
13190 for ac_header in CrashReporterClient.h
13191 do
13192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13194   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13197   echo $ECHO_N "(cached) $ECHO_C" >&6
13198 fi
13199 ac_res=`eval echo '${'$as_ac_Header'}'`
13200                { echo "$as_me:$LINENO: result: $ac_res" >&5
13201 echo "${ECHO_T}$ac_res" >&6; }
13202 else
13203   # Is the header compilable?
13204 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13206 cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h.  */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h.  */
13212 $ac_includes_default
13213 #include <$ac_header>
13214 _ACEOF
13215 rm -f conftest.$ac_objext
13216 if { (ac_try="$ac_compile"
13217 case "(($ac_try" in
13218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13219   *) ac_try_echo=$ac_try;;
13220 esac
13221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13222   (eval "$ac_compile") 2>conftest.er1
13223   ac_status=$?
13224   grep -v '^ *+' conftest.er1 >conftest.err
13225   rm -f conftest.er1
13226   cat conftest.err >&5
13227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228   (exit $ac_status); } &&
13229          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13230   { (case "(($ac_try" in
13231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13232   *) ac_try_echo=$ac_try;;
13233 esac
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235   (eval "$ac_try") 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); }; } &&
13239          { ac_try='test -s conftest.$ac_objext'
13240   { (case "(($ac_try" in
13241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242   *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245   (eval "$ac_try") 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); }; }; then
13249   ac_header_compiler=yes
13250 else
13251   echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13253
13254         ac_header_compiler=no
13255 fi
13256
13257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13259 echo "${ECHO_T}$ac_header_compiler" >&6; }
13260
13261 # Is the header present?
13262 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13263 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13264 cat >conftest.$ac_ext <<_ACEOF
13265 /* confdefs.h.  */
13266 _ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h.  */
13270 #include <$ac_header>
13271 _ACEOF
13272 if { (ac_try="$ac_cpp conftest.$ac_ext"
13273 case "(($ac_try" in
13274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275   *) ac_try_echo=$ac_try;;
13276 esac
13277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13279   ac_status=$?
13280   grep -v '^ *+' conftest.er1 >conftest.err
13281   rm -f conftest.er1
13282   cat conftest.err >&5
13283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); } >/dev/null; then
13285   if test -s conftest.err; then
13286     ac_cpp_err=$ac_c_preproc_warn_flag
13287     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13288   else
13289     ac_cpp_err=
13290   fi
13291 else
13292   ac_cpp_err=yes
13293 fi
13294 if test -z "$ac_cpp_err"; then
13295   ac_header_preproc=yes
13296 else
13297   echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13299
13300   ac_header_preproc=no
13301 fi
13302
13303 rm -f conftest.err conftest.$ac_ext
13304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13305 echo "${ECHO_T}$ac_header_preproc" >&6; }
13306
13307 # So?  What about this header?
13308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13309   yes:no: )
13310     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13311 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13312     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13313 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13314     ac_header_preproc=yes
13315     ;;
13316   no:yes:* )
13317     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13318 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13319     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13320 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13321     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13322 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13323     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13324 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13327     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13328 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13329     ( cat <<\_ASBOX
13330 ## ------------------------------------ ##
13331 ## Report this to http://llvm.org/bugs/ ##
13332 ## ------------------------------------ ##
13333 _ASBOX
13334      ) | sed "s/^/$as_me: WARNING:     /" >&2
13335     ;;
13336 esac
13337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13340   echo $ECHO_N "(cached) $ECHO_C" >&6
13341 else
13342   eval "$as_ac_Header=\$ac_header_preproc"
13343 fi
13344 ac_res=`eval echo '${'$as_ac_Header'}'`
13345                { echo "$as_me:$LINENO: result: $ac_res" >&5
13346 echo "${ECHO_T}$ac_res" >&6; }
13347
13348 fi
13349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13350   cat >>confdefs.h <<_ACEOF
13351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13352 _ACEOF
13353
13354 fi
13355
13356 done
13357
13358
13359 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
13360 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
13361 cat >conftest.$ac_ext <<_ACEOF
13362
13363   /* confdefs.h.  */
13364 _ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h.  */
13368
13369     extern const char *__crashreporter_info__;
13370     int main() {
13371       __crashreporter_info__ = "test";
13372       return 0;
13373     }
13374
13375
13376 _ACEOF
13377 rm -f conftest.$ac_objext conftest$ac_exeext
13378 if { (ac_try="$ac_link"
13379 case "(($ac_try" in
13380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381   *) ac_try_echo=$ac_try;;
13382 esac
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384   (eval "$ac_link") 2>conftest.er1
13385   ac_status=$?
13386   grep -v '^ *+' conftest.er1 >conftest.err
13387   rm -f conftest.er1
13388   cat conftest.err >&5
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); } &&
13391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13392   { (case "(($ac_try" in
13393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13394   *) ac_try_echo=$ac_try;;
13395 esac
13396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13397   (eval "$ac_try") 2>&5
13398   ac_status=$?
13399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400   (exit $ac_status); }; } &&
13401          { ac_try='test -s conftest$ac_exeext'
13402   { (case "(($ac_try" in
13403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404   *) ac_try_echo=$ac_try;;
13405 esac
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407   (eval "$ac_try") 2>&5
13408   ac_status=$?
13409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410   (exit $ac_status); }; }; then
13411
13412   { echo "$as_me:$LINENO: result: yes" >&5
13413 echo "${ECHO_T}yes" >&6; }
13414
13415 cat >>confdefs.h <<\_ACEOF
13416 #define HAVE_CRASHREPORTER_INFO 1
13417 _ACEOF
13418
13419
13420 else
13421   echo "$as_me: failed program was:" >&5
13422 sed 's/^/| /' conftest.$ac_ext >&5
13423
13424
13425   { echo "$as_me:$LINENO: result: no" >&5
13426 echo "${ECHO_T}no" >&6; }
13427
13428 cat >>confdefs.h <<\_ACEOF
13429 #define HAVE_CRASHREPORTER_INFO 0
13430 _ACEOF
13431
13432
13433 fi
13434
13435 rm -f core conftest.err conftest.$ac_objext \
13436       conftest$ac_exeext conftest.$ac_ext
13437
13438
13439
13440   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
13441 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
13442 if test "${ac_cv_huge_val_sanity+set}" = set; then
13443   echo $ECHO_N "(cached) $ECHO_C" >&6
13444 else
13445
13446     ac_ext=cpp
13447 ac_cpp='$CXXCPP $CPPFLAGS'
13448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13451
13452     ac_save_CXXFLAGS=$CXXFLAGS
13453     CXXFLAGS="$CXXFLAGS -pedantic"
13454     if test "$cross_compiling" = yes; then
13455   ac_cv_huge_val_sanity=yes
13456 else
13457   cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h.  */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h.  */
13463 #include <math.h>
13464 int
13465 main ()
13466 {
13467 double x = HUGE_VAL; return x != x;
13468   ;
13469   return 0;
13470 }
13471 _ACEOF
13472 rm -f conftest$ac_exeext
13473 if { (ac_try="$ac_link"
13474 case "(($ac_try" in
13475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476   *) ac_try_echo=$ac_try;;
13477 esac
13478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479   (eval "$ac_link") 2>&5
13480   ac_status=$?
13481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13483   { (case "(($ac_try" in
13484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485   *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488   (eval "$ac_try") 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }; }; then
13492   ac_cv_huge_val_sanity=yes
13493 else
13494   echo "$as_me: program exited with status $ac_status" >&5
13495 echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13497
13498 ( exit $ac_status )
13499 ac_cv_huge_val_sanity=no
13500 fi
13501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13502 fi
13503
13504
13505     CXXFLAGS=$ac_save_CXXFLAGS
13506     ac_ext=c
13507 ac_cpp='$CPP $CPPFLAGS'
13508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13511
13512
13513 fi
13514 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
13515 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
13516   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
13517
13518
13519 { echo "$as_me:$LINENO: checking for pid_t" >&5
13520 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
13521 if test "${ac_cv_type_pid_t+set}" = set; then
13522   echo $ECHO_N "(cached) $ECHO_C" >&6
13523 else
13524   cat >conftest.$ac_ext <<_ACEOF
13525 /* confdefs.h.  */
13526 _ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h.  */
13530 $ac_includes_default
13531 typedef pid_t ac__type_new_;
13532 int
13533 main ()
13534 {
13535 if ((ac__type_new_ *) 0)
13536   return 0;
13537 if (sizeof (ac__type_new_))
13538   return 0;
13539   ;
13540   return 0;
13541 }
13542 _ACEOF
13543 rm -f conftest.$ac_objext
13544 if { (ac_try="$ac_compile"
13545 case "(($ac_try" in
13546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13547   *) ac_try_echo=$ac_try;;
13548 esac
13549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13550   (eval "$ac_compile") 2>conftest.er1
13551   ac_status=$?
13552   grep -v '^ *+' conftest.er1 >conftest.err
13553   rm -f conftest.er1
13554   cat conftest.err >&5
13555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556   (exit $ac_status); } &&
13557          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13558   { (case "(($ac_try" in
13559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560   *) ac_try_echo=$ac_try;;
13561 esac
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563   (eval "$ac_try") 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; } &&
13567          { ac_try='test -s conftest.$ac_objext'
13568   { (case "(($ac_try" in
13569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570   *) ac_try_echo=$ac_try;;
13571 esac
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573   (eval "$ac_try") 2>&5
13574   ac_status=$?
13575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576   (exit $ac_status); }; }; then
13577   ac_cv_type_pid_t=yes
13578 else
13579   echo "$as_me: failed program was:" >&5
13580 sed 's/^/| /' conftest.$ac_ext >&5
13581
13582         ac_cv_type_pid_t=no
13583 fi
13584
13585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13586 fi
13587 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13588 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
13589 if test $ac_cv_type_pid_t = yes; then
13590   :
13591 else
13592
13593 cat >>confdefs.h <<_ACEOF
13594 #define pid_t int
13595 _ACEOF
13596
13597 fi
13598
13599 { echo "$as_me:$LINENO: checking for size_t" >&5
13600 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
13601 if test "${ac_cv_type_size_t+set}" = set; then
13602   echo $ECHO_N "(cached) $ECHO_C" >&6
13603 else
13604   cat >conftest.$ac_ext <<_ACEOF
13605 /* confdefs.h.  */
13606 _ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h.  */
13610 $ac_includes_default
13611 typedef size_t ac__type_new_;
13612 int
13613 main ()
13614 {
13615 if ((ac__type_new_ *) 0)
13616   return 0;
13617 if (sizeof (ac__type_new_))
13618   return 0;
13619   ;
13620   return 0;
13621 }
13622 _ACEOF
13623 rm -f conftest.$ac_objext
13624 if { (ac_try="$ac_compile"
13625 case "(($ac_try" in
13626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627   *) ac_try_echo=$ac_try;;
13628 esac
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630   (eval "$ac_compile") 2>conftest.er1
13631   ac_status=$?
13632   grep -v '^ *+' conftest.er1 >conftest.err
13633   rm -f conftest.er1
13634   cat conftest.err >&5
13635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636   (exit $ac_status); } &&
13637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13638   { (case "(($ac_try" in
13639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13640   *) ac_try_echo=$ac_try;;
13641 esac
13642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13643   (eval "$ac_try") 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); }; } &&
13647          { ac_try='test -s conftest.$ac_objext'
13648   { (case "(($ac_try" in
13649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650   *) ac_try_echo=$ac_try;;
13651 esac
13652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653   (eval "$ac_try") 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }; }; then
13657   ac_cv_type_size_t=yes
13658 else
13659   echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13661
13662         ac_cv_type_size_t=no
13663 fi
13664
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 fi
13667 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13668 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
13669 if test $ac_cv_type_size_t = yes; then
13670   :
13671 else
13672
13673 cat >>confdefs.h <<_ACEOF
13674 #define size_t unsigned int
13675 _ACEOF
13676
13677 fi
13678
13679
13680 cat >>confdefs.h <<_ACEOF
13681 #define RETSIGTYPE void
13682 _ACEOF
13683
13684 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13685 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13686 if test "${ac_cv_struct_tm+set}" = set; then
13687   echo $ECHO_N "(cached) $ECHO_C" >&6
13688 else
13689   cat >conftest.$ac_ext <<_ACEOF
13690 /* confdefs.h.  */
13691 _ACEOF
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h.  */
13695 #include <sys/types.h>
13696 #include <time.h>
13697
13698 int
13699 main ()
13700 {
13701 struct tm *tp; tp->tm_sec;
13702   ;
13703   return 0;
13704 }
13705 _ACEOF
13706 rm -f conftest.$ac_objext
13707 if { (ac_try="$ac_compile"
13708 case "(($ac_try" in
13709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710   *) ac_try_echo=$ac_try;;
13711 esac
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713   (eval "$ac_compile") 2>conftest.er1
13714   ac_status=$?
13715   grep -v '^ *+' conftest.er1 >conftest.err
13716   rm -f conftest.er1
13717   cat conftest.err >&5
13718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719   (exit $ac_status); } &&
13720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13721   { (case "(($ac_try" in
13722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723   *) ac_try_echo=$ac_try;;
13724 esac
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726   (eval "$ac_try") 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; } &&
13730          { ac_try='test -s conftest.$ac_objext'
13731   { (case "(($ac_try" in
13732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733   *) ac_try_echo=$ac_try;;
13734 esac
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736   (eval "$ac_try") 2>&5
13737   ac_status=$?
13738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739   (exit $ac_status); }; }; then
13740   ac_cv_struct_tm=time.h
13741 else
13742   echo "$as_me: failed program was:" >&5
13743 sed 's/^/| /' conftest.$ac_ext >&5
13744
13745         ac_cv_struct_tm=sys/time.h
13746 fi
13747
13748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13749 fi
13750 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13751 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13752 if test $ac_cv_struct_tm = sys/time.h; then
13753
13754 cat >>confdefs.h <<\_ACEOF
13755 #define TM_IN_SYS_TIME 1
13756 _ACEOF
13757
13758 fi
13759
13760 { echo "$as_me:$LINENO: checking for int64_t" >&5
13761 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
13762 if test "${ac_cv_type_int64_t+set}" = set; then
13763   echo $ECHO_N "(cached) $ECHO_C" >&6
13764 else
13765   cat >conftest.$ac_ext <<_ACEOF
13766 /* confdefs.h.  */
13767 _ACEOF
13768 cat confdefs.h >>conftest.$ac_ext
13769 cat >>conftest.$ac_ext <<_ACEOF
13770 /* end confdefs.h.  */
13771 $ac_includes_default
13772 typedef int64_t ac__type_new_;
13773 int
13774 main ()
13775 {
13776 if ((ac__type_new_ *) 0)
13777   return 0;
13778 if (sizeof (ac__type_new_))
13779   return 0;
13780   ;
13781   return 0;
13782 }
13783 _ACEOF
13784 rm -f conftest.$ac_objext
13785 if { (ac_try="$ac_compile"
13786 case "(($ac_try" in
13787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788   *) ac_try_echo=$ac_try;;
13789 esac
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791   (eval "$ac_compile") 2>conftest.er1
13792   ac_status=$?
13793   grep -v '^ *+' conftest.er1 >conftest.err
13794   rm -f conftest.er1
13795   cat conftest.err >&5
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); } &&
13798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13799   { (case "(($ac_try" in
13800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13801   *) ac_try_echo=$ac_try;;
13802 esac
13803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13804   (eval "$ac_try") 2>&5
13805   ac_status=$?
13806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807   (exit $ac_status); }; } &&
13808          { ac_try='test -s conftest.$ac_objext'
13809   { (case "(($ac_try" in
13810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811   *) ac_try_echo=$ac_try;;
13812 esac
13813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13814   (eval "$ac_try") 2>&5
13815   ac_status=$?
13816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817   (exit $ac_status); }; }; then
13818   ac_cv_type_int64_t=yes
13819 else
13820   echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13822
13823         ac_cv_type_int64_t=no
13824 fi
13825
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827 fi
13828 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
13829 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
13830 if test $ac_cv_type_int64_t = yes; then
13831
13832 cat >>confdefs.h <<_ACEOF
13833 #define HAVE_INT64_T 1
13834 _ACEOF
13835
13836
13837 else
13838   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
13839 echo "$as_me: error: Type int64_t required but not found" >&2;}
13840    { (exit 1); exit 1; }; }
13841 fi
13842
13843 { echo "$as_me:$LINENO: checking for uint64_t" >&5
13844 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
13845 if test "${ac_cv_type_uint64_t+set}" = set; then
13846   echo $ECHO_N "(cached) $ECHO_C" >&6
13847 else
13848   cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h.  */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h.  */
13854 $ac_includes_default
13855 typedef uint64_t ac__type_new_;
13856 int
13857 main ()
13858 {
13859 if ((ac__type_new_ *) 0)
13860   return 0;
13861 if (sizeof (ac__type_new_))
13862   return 0;
13863   ;
13864   return 0;
13865 }
13866 _ACEOF
13867 rm -f conftest.$ac_objext
13868 if { (ac_try="$ac_compile"
13869 case "(($ac_try" in
13870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871   *) ac_try_echo=$ac_try;;
13872 esac
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874   (eval "$ac_compile") 2>conftest.er1
13875   ac_status=$?
13876   grep -v '^ *+' conftest.er1 >conftest.err
13877   rm -f conftest.er1
13878   cat conftest.err >&5
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); } &&
13881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13882   { (case "(($ac_try" in
13883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13884   *) ac_try_echo=$ac_try;;
13885 esac
13886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13887   (eval "$ac_try") 2>&5
13888   ac_status=$?
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); }; } &&
13891          { ac_try='test -s conftest.$ac_objext'
13892   { (case "(($ac_try" in
13893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894   *) ac_try_echo=$ac_try;;
13895 esac
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897   (eval "$ac_try") 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; }; then
13901   ac_cv_type_uint64_t=yes
13902 else
13903   echo "$as_me: failed program was:" >&5
13904 sed 's/^/| /' conftest.$ac_ext >&5
13905
13906         ac_cv_type_uint64_t=no
13907 fi
13908
13909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13910 fi
13911 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
13912 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
13913 if test $ac_cv_type_uint64_t = yes; then
13914
13915 cat >>confdefs.h <<_ACEOF
13916 #define HAVE_UINT64_T 1
13917 _ACEOF
13918
13919
13920 else
13921   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
13922 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
13923 if test "${ac_cv_type_u_int64_t+set}" = set; then
13924   echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926   cat >conftest.$ac_ext <<_ACEOF
13927 /* confdefs.h.  */
13928 _ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h.  */
13932 $ac_includes_default
13933 typedef u_int64_t ac__type_new_;
13934 int
13935 main ()
13936 {
13937 if ((ac__type_new_ *) 0)
13938   return 0;
13939 if (sizeof (ac__type_new_))
13940   return 0;
13941   ;
13942   return 0;
13943 }
13944 _ACEOF
13945 rm -f conftest.$ac_objext
13946 if { (ac_try="$ac_compile"
13947 case "(($ac_try" in
13948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949   *) ac_try_echo=$ac_try;;
13950 esac
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952   (eval "$ac_compile") 2>conftest.er1
13953   ac_status=$?
13954   grep -v '^ *+' conftest.er1 >conftest.err
13955   rm -f conftest.er1
13956   cat conftest.err >&5
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); } &&
13959          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13960   { (case "(($ac_try" in
13961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962   *) ac_try_echo=$ac_try;;
13963 esac
13964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965   (eval "$ac_try") 2>&5
13966   ac_status=$?
13967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); }; } &&
13969          { ac_try='test -s conftest.$ac_objext'
13970   { (case "(($ac_try" in
13971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972   *) ac_try_echo=$ac_try;;
13973 esac
13974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975   (eval "$ac_try") 2>&5
13976   ac_status=$?
13977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978   (exit $ac_status); }; }; then
13979   ac_cv_type_u_int64_t=yes
13980 else
13981   echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.$ac_ext >&5
13983
13984         ac_cv_type_u_int64_t=no
13985 fi
13986
13987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13988 fi
13989 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
13990 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
13991 if test $ac_cv_type_u_int64_t = yes; then
13992
13993 cat >>confdefs.h <<_ACEOF
13994 #define HAVE_U_INT64_T 1
13995 _ACEOF
13996
13997
13998 else
13999   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
14000 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
14001    { (exit 1); exit 1; }; }
14002 fi
14003
14004 fi
14005
14006
14007
14008
14009
14010 for ac_func in backtrace getcwd
14011 do
14012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14016   echo $ECHO_N "(cached) $ECHO_C" >&6
14017 else
14018   cat >conftest.$ac_ext <<_ACEOF
14019 /* confdefs.h.  */
14020 _ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h.  */
14024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14025    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14026 #define $ac_func innocuous_$ac_func
14027
14028 /* System header to define __stub macros and hopefully few prototypes,
14029     which can conflict with char $ac_func (); below.
14030     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14031     <limits.h> exists even on freestanding compilers.  */
14032
14033 #ifdef __STDC__
14034 # include <limits.h>
14035 #else
14036 # include <assert.h>
14037 #endif
14038
14039 #undef $ac_func
14040
14041 /* Override any GCC internal prototype to avoid an error.
14042    Use char because int might match the return type of a GCC
14043    builtin and then its argument prototype would still apply.  */
14044 #ifdef __cplusplus
14045 extern "C"
14046 #endif
14047 char $ac_func ();
14048 /* The GNU C library defines this for functions which it implements
14049     to always fail with ENOSYS.  Some functions are actually named
14050     something starting with __ and the normal name is an alias.  */
14051 #if defined __stub_$ac_func || defined __stub___$ac_func
14052 choke me
14053 #endif
14054
14055 int
14056 main ()
14057 {
14058 return $ac_func ();
14059   ;
14060   return 0;
14061 }
14062 _ACEOF
14063 rm -f conftest.$ac_objext conftest$ac_exeext
14064 if { (ac_try="$ac_link"
14065 case "(($ac_try" in
14066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067   *) ac_try_echo=$ac_try;;
14068 esac
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070   (eval "$ac_link") 2>conftest.er1
14071   ac_status=$?
14072   grep -v '^ *+' conftest.er1 >conftest.err
14073   rm -f conftest.er1
14074   cat conftest.err >&5
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); } &&
14077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14078   { (case "(($ac_try" in
14079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080   *) ac_try_echo=$ac_try;;
14081 esac
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083   (eval "$ac_try") 2>&5
14084   ac_status=$?
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); }; } &&
14087          { ac_try='test -s conftest$ac_exeext'
14088   { (case "(($ac_try" in
14089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090   *) ac_try_echo=$ac_try;;
14091 esac
14092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14093   (eval "$ac_try") 2>&5
14094   ac_status=$?
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); }; }; then
14097   eval "$as_ac_var=yes"
14098 else
14099   echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14101
14102         eval "$as_ac_var=no"
14103 fi
14104
14105 rm -f core conftest.err conftest.$ac_objext \
14106       conftest$ac_exeext conftest.$ac_ext
14107 fi
14108 ac_res=`eval echo '${'$as_ac_var'}'`
14109                { echo "$as_me:$LINENO: result: $ac_res" >&5
14110 echo "${ECHO_T}$ac_res" >&6; }
14111 if test `eval echo '${'$as_ac_var'}'` = yes; then
14112   cat >>confdefs.h <<_ACEOF
14113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14114 _ACEOF
14115
14116 fi
14117 done
14118
14119
14120
14121
14122
14123
14124 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
14125 do
14126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14130   echo $ECHO_N "(cached) $ECHO_C" >&6
14131 else
14132   cat >conftest.$ac_ext <<_ACEOF
14133 /* confdefs.h.  */
14134 _ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h.  */
14138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14140 #define $ac_func innocuous_$ac_func
14141
14142 /* System header to define __stub macros and hopefully few prototypes,
14143     which can conflict with char $ac_func (); below.
14144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14145     <limits.h> exists even on freestanding compilers.  */
14146
14147 #ifdef __STDC__
14148 # include <limits.h>
14149 #else
14150 # include <assert.h>
14151 #endif
14152
14153 #undef $ac_func
14154
14155 /* Override any GCC internal prototype to avoid an error.
14156    Use char because int might match the return type of a GCC
14157    builtin and then its argument prototype would still apply.  */
14158 #ifdef __cplusplus
14159 extern "C"
14160 #endif
14161 char $ac_func ();
14162 /* The GNU C library defines this for functions which it implements
14163     to always fail with ENOSYS.  Some functions are actually named
14164     something starting with __ and the normal name is an alias.  */
14165 #if defined __stub_$ac_func || defined __stub___$ac_func
14166 choke me
14167 #endif
14168
14169 int
14170 main ()
14171 {
14172 return $ac_func ();
14173   ;
14174   return 0;
14175 }
14176 _ACEOF
14177 rm -f conftest.$ac_objext conftest$ac_exeext
14178 if { (ac_try="$ac_link"
14179 case "(($ac_try" in
14180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181   *) ac_try_echo=$ac_try;;
14182 esac
14183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184   (eval "$ac_link") 2>conftest.er1
14185   ac_status=$?
14186   grep -v '^ *+' conftest.er1 >conftest.err
14187   rm -f conftest.er1
14188   cat conftest.err >&5
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); } &&
14191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14192   { (case "(($ac_try" in
14193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194   *) ac_try_echo=$ac_try;;
14195 esac
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197   (eval "$ac_try") 2>&5
14198   ac_status=$?
14199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200   (exit $ac_status); }; } &&
14201          { ac_try='test -s conftest$ac_exeext'
14202   { (case "(($ac_try" in
14203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204   *) ac_try_echo=$ac_try;;
14205 esac
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207   (eval "$ac_try") 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }; }; then
14211   eval "$as_ac_var=yes"
14212 else
14213   echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14215
14216         eval "$as_ac_var=no"
14217 fi
14218
14219 rm -f core conftest.err conftest.$ac_objext \
14220       conftest$ac_exeext conftest.$ac_ext
14221 fi
14222 ac_res=`eval echo '${'$as_ac_var'}'`
14223                { echo "$as_me:$LINENO: result: $ac_res" >&5
14224 echo "${ECHO_T}$ac_res" >&6; }
14225 if test `eval echo '${'$as_ac_var'}'` = yes; then
14226   cat >>confdefs.h <<_ACEOF
14227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14228 _ACEOF
14229
14230 fi
14231 done
14232
14233
14234
14235
14236 for ac_func in isatty mkdtemp mkstemp
14237 do
14238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14239 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14241 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14242   echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244   cat >conftest.$ac_ext <<_ACEOF
14245 /* confdefs.h.  */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h.  */
14250 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14251    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14252 #define $ac_func innocuous_$ac_func
14253
14254 /* System header to define __stub macros and hopefully few prototypes,
14255     which can conflict with char $ac_func (); below.
14256     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14257     <limits.h> exists even on freestanding compilers.  */
14258
14259 #ifdef __STDC__
14260 # include <limits.h>
14261 #else
14262 # include <assert.h>
14263 #endif
14264
14265 #undef $ac_func
14266
14267 /* Override any GCC internal prototype to avoid an error.
14268    Use char because int might match the return type of a GCC
14269    builtin and then its argument prototype would still apply.  */
14270 #ifdef __cplusplus
14271 extern "C"
14272 #endif
14273 char $ac_func ();
14274 /* The GNU C library defines this for functions which it implements
14275     to always fail with ENOSYS.  Some functions are actually named
14276     something starting with __ and the normal name is an alias.  */
14277 #if defined __stub_$ac_func || defined __stub___$ac_func
14278 choke me
14279 #endif
14280
14281 int
14282 main ()
14283 {
14284 return $ac_func ();
14285   ;
14286   return 0;
14287 }
14288 _ACEOF
14289 rm -f conftest.$ac_objext conftest$ac_exeext
14290 if { (ac_try="$ac_link"
14291 case "(($ac_try" in
14292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293   *) ac_try_echo=$ac_try;;
14294 esac
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296   (eval "$ac_link") 2>conftest.er1
14297   ac_status=$?
14298   grep -v '^ *+' conftest.er1 >conftest.err
14299   rm -f conftest.er1
14300   cat conftest.err >&5
14301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302   (exit $ac_status); } &&
14303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14304   { (case "(($ac_try" in
14305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306   *) ac_try_echo=$ac_try;;
14307 esac
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309   (eval "$ac_try") 2>&5
14310   ac_status=$?
14311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312   (exit $ac_status); }; } &&
14313          { ac_try='test -s conftest$ac_exeext'
14314   { (case "(($ac_try" in
14315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14316   *) ac_try_echo=$ac_try;;
14317 esac
14318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14319   (eval "$ac_try") 2>&5
14320   ac_status=$?
14321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322   (exit $ac_status); }; }; then
14323   eval "$as_ac_var=yes"
14324 else
14325   echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14327
14328         eval "$as_ac_var=no"
14329 fi
14330
14331 rm -f core conftest.err conftest.$ac_objext \
14332       conftest$ac_exeext conftest.$ac_ext
14333 fi
14334 ac_res=`eval echo '${'$as_ac_var'}'`
14335                { echo "$as_me:$LINENO: result: $ac_res" >&5
14336 echo "${ECHO_T}$ac_res" >&6; }
14337 if test `eval echo '${'$as_ac_var'}'` = yes; then
14338   cat >>confdefs.h <<_ACEOF
14339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14340 _ACEOF
14341
14342 fi
14343 done
14344
14345
14346
14347
14348
14349
14350
14351 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit
14352 do
14353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14357   echo $ECHO_N "(cached) $ECHO_C" >&6
14358 else
14359   cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h.  */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h.  */
14365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14367 #define $ac_func innocuous_$ac_func
14368
14369 /* System header to define __stub macros and hopefully few prototypes,
14370     which can conflict with char $ac_func (); below.
14371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14372     <limits.h> exists even on freestanding compilers.  */
14373
14374 #ifdef __STDC__
14375 # include <limits.h>
14376 #else
14377 # include <assert.h>
14378 #endif
14379
14380 #undef $ac_func
14381
14382 /* Override any GCC internal prototype to avoid an error.
14383    Use char because int might match the return type of a GCC
14384    builtin and then its argument prototype would still apply.  */
14385 #ifdef __cplusplus
14386 extern "C"
14387 #endif
14388 char $ac_func ();
14389 /* The GNU C library defines this for functions which it implements
14390     to always fail with ENOSYS.  Some functions are actually named
14391     something starting with __ and the normal name is an alias.  */
14392 #if defined __stub_$ac_func || defined __stub___$ac_func
14393 choke me
14394 #endif
14395
14396 int
14397 main ()
14398 {
14399 return $ac_func ();
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (ac_try="$ac_link"
14406 case "(($ac_try" in
14407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408   *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411   (eval "$ac_link") 2>conftest.er1
14412   ac_status=$?
14413   grep -v '^ *+' conftest.er1 >conftest.err
14414   rm -f conftest.er1
14415   cat conftest.err >&5
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); } &&
14418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14419   { (case "(($ac_try" in
14420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14421   *) ac_try_echo=$ac_try;;
14422 esac
14423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14424   (eval "$ac_try") 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; } &&
14428          { ac_try='test -s conftest$ac_exeext'
14429   { (case "(($ac_try" in
14430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431   *) ac_try_echo=$ac_try;;
14432 esac
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434   (eval "$ac_try") 2>&5
14435   ac_status=$?
14436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437   (exit $ac_status); }; }; then
14438   eval "$as_ac_var=yes"
14439 else
14440   echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14442
14443         eval "$as_ac_var=no"
14444 fi
14445
14446 rm -f core conftest.err conftest.$ac_objext \
14447       conftest$ac_exeext conftest.$ac_ext
14448 fi
14449 ac_res=`eval echo '${'$as_ac_var'}'`
14450                { echo "$as_me:$LINENO: result: $ac_res" >&5
14451 echo "${ECHO_T}$ac_res" >&6; }
14452 if test `eval echo '${'$as_ac_var'}'` = yes; then
14453   cat >>confdefs.h <<_ACEOF
14454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14455 _ACEOF
14456
14457 fi
14458 done
14459
14460
14461
14462
14463 for ac_func in strerror strerror_r setenv
14464 do
14465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14469   echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471   cat >conftest.$ac_ext <<_ACEOF
14472 /* confdefs.h.  */
14473 _ACEOF
14474 cat confdefs.h >>conftest.$ac_ext
14475 cat >>conftest.$ac_ext <<_ACEOF
14476 /* end confdefs.h.  */
14477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14479 #define $ac_func innocuous_$ac_func
14480
14481 /* System header to define __stub macros and hopefully few prototypes,
14482     which can conflict with char $ac_func (); below.
14483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14484     <limits.h> exists even on freestanding compilers.  */
14485
14486 #ifdef __STDC__
14487 # include <limits.h>
14488 #else
14489 # include <assert.h>
14490 #endif
14491
14492 #undef $ac_func
14493
14494 /* Override any GCC internal prototype to avoid an error.
14495    Use char because int might match the return type of a GCC
14496    builtin and then its argument prototype would still apply.  */
14497 #ifdef __cplusplus
14498 extern "C"
14499 #endif
14500 char $ac_func ();
14501 /* The GNU C library defines this for functions which it implements
14502     to always fail with ENOSYS.  Some functions are actually named
14503     something starting with __ and the normal name is an alias.  */
14504 #if defined __stub_$ac_func || defined __stub___$ac_func
14505 choke me
14506 #endif
14507
14508 int
14509 main ()
14510 {
14511 return $ac_func ();
14512   ;
14513   return 0;
14514 }
14515 _ACEOF
14516 rm -f conftest.$ac_objext conftest$ac_exeext
14517 if { (ac_try="$ac_link"
14518 case "(($ac_try" in
14519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520   *) ac_try_echo=$ac_try;;
14521 esac
14522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14523   (eval "$ac_link") 2>conftest.er1
14524   ac_status=$?
14525   grep -v '^ *+' conftest.er1 >conftest.err
14526   rm -f conftest.er1
14527   cat conftest.err >&5
14528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529   (exit $ac_status); } &&
14530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14531   { (case "(($ac_try" in
14532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533   *) ac_try_echo=$ac_try;;
14534 esac
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536   (eval "$ac_try") 2>&5
14537   ac_status=$?
14538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539   (exit $ac_status); }; } &&
14540          { ac_try='test -s conftest$ac_exeext'
14541   { (case "(($ac_try" in
14542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543   *) ac_try_echo=$ac_try;;
14544 esac
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546   (eval "$ac_try") 2>&5
14547   ac_status=$?
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); }; }; then
14550   eval "$as_ac_var=yes"
14551 else
14552   echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14554
14555         eval "$as_ac_var=no"
14556 fi
14557
14558 rm -f core conftest.err conftest.$ac_objext \
14559       conftest$ac_exeext conftest.$ac_ext
14560 fi
14561 ac_res=`eval echo '${'$as_ac_var'}'`
14562                { echo "$as_me:$LINENO: result: $ac_res" >&5
14563 echo "${ECHO_T}$ac_res" >&6; }
14564 if test `eval echo '${'$as_ac_var'}'` = yes; then
14565   cat >>confdefs.h <<_ACEOF
14566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14567 _ACEOF
14568
14569 fi
14570 done
14571
14572
14573
14574
14575
14576 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
14577 do
14578 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14579 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14580 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14582   echo $ECHO_N "(cached) $ECHO_C" >&6
14583 else
14584   cat >conftest.$ac_ext <<_ACEOF
14585 /* confdefs.h.  */
14586 _ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h.  */
14590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14592 #define $ac_func innocuous_$ac_func
14593
14594 /* System header to define __stub macros and hopefully few prototypes,
14595     which can conflict with char $ac_func (); below.
14596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14597     <limits.h> exists even on freestanding compilers.  */
14598
14599 #ifdef __STDC__
14600 # include <limits.h>
14601 #else
14602 # include <assert.h>
14603 #endif
14604
14605 #undef $ac_func
14606
14607 /* Override any GCC internal prototype to avoid an error.
14608    Use char because int might match the return type of a GCC
14609    builtin and then its argument prototype would still apply.  */
14610 #ifdef __cplusplus
14611 extern "C"
14612 #endif
14613 char $ac_func ();
14614 /* The GNU C library defines this for functions which it implements
14615     to always fail with ENOSYS.  Some functions are actually named
14616     something starting with __ and the normal name is an alias.  */
14617 #if defined __stub_$ac_func || defined __stub___$ac_func
14618 choke me
14619 #endif
14620
14621 int
14622 main ()
14623 {
14624 return $ac_func ();
14625   ;
14626   return 0;
14627 }
14628 _ACEOF
14629 rm -f conftest.$ac_objext conftest$ac_exeext
14630 if { (ac_try="$ac_link"
14631 case "(($ac_try" in
14632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14633   *) ac_try_echo=$ac_try;;
14634 esac
14635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14636   (eval "$ac_link") 2>conftest.er1
14637   ac_status=$?
14638   grep -v '^ *+' conftest.er1 >conftest.err
14639   rm -f conftest.er1
14640   cat conftest.err >&5
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); } &&
14643          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14644   { (case "(($ac_try" in
14645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646   *) ac_try_echo=$ac_try;;
14647 esac
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649   (eval "$ac_try") 2>&5
14650   ac_status=$?
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); }; } &&
14653          { ac_try='test -s conftest$ac_exeext'
14654   { (case "(($ac_try" in
14655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14656   *) ac_try_echo=$ac_try;;
14657 esac
14658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14659   (eval "$ac_try") 2>&5
14660   ac_status=$?
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); }; }; then
14663   eval "$as_ac_var=yes"
14664 else
14665   echo "$as_me: failed program was:" >&5
14666 sed 's/^/| /' conftest.$ac_ext >&5
14667
14668         eval "$as_ac_var=no"
14669 fi
14670
14671 rm -f core conftest.err conftest.$ac_objext \
14672       conftest$ac_exeext conftest.$ac_ext
14673 fi
14674 ac_res=`eval echo '${'$as_ac_var'}'`
14675                { echo "$as_me:$LINENO: result: $ac_res" >&5
14676 echo "${ECHO_T}$ac_res" >&6; }
14677 if test `eval echo '${'$as_ac_var'}'` = yes; then
14678   cat >>confdefs.h <<_ACEOF
14679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14680 _ACEOF
14681
14682 fi
14683 done
14684
14685
14686
14687
14688
14689
14690 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
14691 do
14692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14696   echo $ECHO_N "(cached) $ECHO_C" >&6
14697 else
14698   cat >conftest.$ac_ext <<_ACEOF
14699 /* confdefs.h.  */
14700 _ACEOF
14701 cat confdefs.h >>conftest.$ac_ext
14702 cat >>conftest.$ac_ext <<_ACEOF
14703 /* end confdefs.h.  */
14704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14706 #define $ac_func innocuous_$ac_func
14707
14708 /* System header to define __stub macros and hopefully few prototypes,
14709     which can conflict with char $ac_func (); below.
14710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14711     <limits.h> exists even on freestanding compilers.  */
14712
14713 #ifdef __STDC__
14714 # include <limits.h>
14715 #else
14716 # include <assert.h>
14717 #endif
14718
14719 #undef $ac_func
14720
14721 /* Override any GCC internal prototype to avoid an error.
14722    Use char because int might match the return type of a GCC
14723    builtin and then its argument prototype would still apply.  */
14724 #ifdef __cplusplus
14725 extern "C"
14726 #endif
14727 char $ac_func ();
14728 /* The GNU C library defines this for functions which it implements
14729     to always fail with ENOSYS.  Some functions are actually named
14730     something starting with __ and the normal name is an alias.  */
14731 #if defined __stub_$ac_func || defined __stub___$ac_func
14732 choke me
14733 #endif
14734
14735 int
14736 main ()
14737 {
14738 return $ac_func ();
14739   ;
14740   return 0;
14741 }
14742 _ACEOF
14743 rm -f conftest.$ac_objext conftest$ac_exeext
14744 if { (ac_try="$ac_link"
14745 case "(($ac_try" in
14746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747   *) ac_try_echo=$ac_try;;
14748 esac
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750   (eval "$ac_link") 2>conftest.er1
14751   ac_status=$?
14752   grep -v '^ *+' conftest.er1 >conftest.err
14753   rm -f conftest.er1
14754   cat conftest.err >&5
14755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756   (exit $ac_status); } &&
14757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14758   { (case "(($ac_try" in
14759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760   *) ac_try_echo=$ac_try;;
14761 esac
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763   (eval "$ac_try") 2>&5
14764   ac_status=$?
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); }; } &&
14767          { ac_try='test -s conftest$ac_exeext'
14768   { (case "(($ac_try" in
14769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770   *) ac_try_echo=$ac_try;;
14771 esac
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773   (eval "$ac_try") 2>&5
14774   ac_status=$?
14775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776   (exit $ac_status); }; }; then
14777   eval "$as_ac_var=yes"
14778 else
14779   echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14781
14782         eval "$as_ac_var=no"
14783 fi
14784
14785 rm -f core conftest.err conftest.$ac_objext \
14786       conftest$ac_exeext conftest.$ac_ext
14787 fi
14788 ac_res=`eval echo '${'$as_ac_var'}'`
14789                { echo "$as_me:$LINENO: result: $ac_res" >&5
14790 echo "${ECHO_T}$ac_res" >&6; }
14791 if test `eval echo '${'$as_ac_var'}'` = yes; then
14792   cat >>confdefs.h <<_ACEOF
14793 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14794 _ACEOF
14795
14796 fi
14797 done
14798
14799
14800
14801 for ac_func in futimes futimens
14802 do
14803 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14804 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14805 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14806 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14807   echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809   cat >conftest.$ac_ext <<_ACEOF
14810 /* confdefs.h.  */
14811 _ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h.  */
14815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14817 #define $ac_func innocuous_$ac_func
14818
14819 /* System header to define __stub macros and hopefully few prototypes,
14820     which can conflict with char $ac_func (); below.
14821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14822     <limits.h> exists even on freestanding compilers.  */
14823
14824 #ifdef __STDC__
14825 # include <limits.h>
14826 #else
14827 # include <assert.h>
14828 #endif
14829
14830 #undef $ac_func
14831
14832 /* Override any GCC internal prototype to avoid an error.
14833    Use char because int might match the return type of a GCC
14834    builtin and then its argument prototype would still apply.  */
14835 #ifdef __cplusplus
14836 extern "C"
14837 #endif
14838 char $ac_func ();
14839 /* The GNU C library defines this for functions which it implements
14840     to always fail with ENOSYS.  Some functions are actually named
14841     something starting with __ and the normal name is an alias.  */
14842 #if defined __stub_$ac_func || defined __stub___$ac_func
14843 choke me
14844 #endif
14845
14846 int
14847 main ()
14848 {
14849 return $ac_func ();
14850   ;
14851   return 0;
14852 }
14853 _ACEOF
14854 rm -f conftest.$ac_objext conftest$ac_exeext
14855 if { (ac_try="$ac_link"
14856 case "(($ac_try" in
14857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858   *) ac_try_echo=$ac_try;;
14859 esac
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861   (eval "$ac_link") 2>conftest.er1
14862   ac_status=$?
14863   grep -v '^ *+' conftest.er1 >conftest.err
14864   rm -f conftest.er1
14865   cat conftest.err >&5
14866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867   (exit $ac_status); } &&
14868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14869   { (case "(($ac_try" in
14870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871   *) ac_try_echo=$ac_try;;
14872 esac
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874   (eval "$ac_try") 2>&5
14875   ac_status=$?
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); }; } &&
14878          { ac_try='test -s conftest$ac_exeext'
14879   { (case "(($ac_try" in
14880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881   *) ac_try_echo=$ac_try;;
14882 esac
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884   (eval "$ac_try") 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); }; }; then
14888   eval "$as_ac_var=yes"
14889 else
14890   echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893         eval "$as_ac_var=no"
14894 fi
14895
14896 rm -f core conftest.err conftest.$ac_objext \
14897       conftest$ac_exeext conftest.$ac_ext
14898 fi
14899 ac_res=`eval echo '${'$as_ac_var'}'`
14900                { echo "$as_me:$LINENO: result: $ac_res" >&5
14901 echo "${ECHO_T}$ac_res" >&6; }
14902 if test `eval echo '${'$as_ac_var'}'` = yes; then
14903   cat >>confdefs.h <<_ACEOF
14904 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14905 _ACEOF
14906
14907 fi
14908 done
14909
14910 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
14911 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
14912 if test "${llvm_cv_c_printf_a+set}" = set; then
14913   echo $ECHO_N "(cached) $ECHO_C" >&6
14914 else
14915   ac_ext=c
14916 ac_cpp='$CPP $CPPFLAGS'
14917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14920
14921  if test "$cross_compiling" = yes; then
14922   llvmac_cv_c_printf_a=no
14923 else
14924   cat >conftest.$ac_ext <<_ACEOF
14925
14926   /* confdefs.h.  */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h.  */
14931
14932 #include <stdio.h>
14933 #include <stdlib.h>
14934
14935 int
14936 main ()
14937 {
14938
14939 volatile double A, B;
14940 char Buffer[100];
14941 A = 1;
14942 A /= 10.0;
14943 sprintf(Buffer, "%a", A);
14944 B = atof(Buffer);
14945 if (A != B)
14946   return (1);
14947 if (A != 0x1.999999999999ap-4)
14948   return (1);
14949 return (0);
14950   ;
14951   return 0;
14952 }
14953 _ACEOF
14954 rm -f conftest$ac_exeext
14955 if { (ac_try="$ac_link"
14956 case "(($ac_try" in
14957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14958   *) ac_try_echo=$ac_try;;
14959 esac
14960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14961   (eval "$ac_link") 2>&5
14962   ac_status=$?
14963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14965   { (case "(($ac_try" in
14966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967   *) ac_try_echo=$ac_try;;
14968 esac
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970   (eval "$ac_try") 2>&5
14971   ac_status=$?
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); }; }; then
14974   llvm_cv_c_printf_a=yes
14975 else
14976   echo "$as_me: program exited with status $ac_status" >&5
14977 echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14979
14980 ( exit $ac_status )
14981 llvmac_cv_c_printf_a=no
14982 fi
14983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14984 fi
14985
14986
14987  ac_ext=c
14988 ac_cpp='$CPP $CPPFLAGS'
14989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14992
14993 fi
14994 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
14995 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
14996  if test "$llvm_cv_c_printf_a" = "yes"; then
14997
14998 cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_PRINTF_A 1
15000 _ACEOF
15001
15002  fi
15003
15004
15005
15006   { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
15007 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
15008 if test "${ac_cv_func_rand48+set}" = set; then
15009   echo $ECHO_N "(cached) $ECHO_C" >&6
15010 else
15011
15012     ac_ext=cpp
15013 ac_cpp='$CXXCPP $CPPFLAGS'
15014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15017
15018     cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024 #include <stdlib.h>
15025 int
15026 main ()
15027 {
15028 srand48(0);lrand48();drand48();
15029   ;
15030   return 0;
15031 }
15032 _ACEOF
15033 rm -f conftest.$ac_objext
15034 if { (ac_try="$ac_compile"
15035 case "(($ac_try" in
15036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037   *) ac_try_echo=$ac_try;;
15038 esac
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040   (eval "$ac_compile") 2>conftest.er1
15041   ac_status=$?
15042   grep -v '^ *+' conftest.er1 >conftest.err
15043   rm -f conftest.er1
15044   cat conftest.err >&5
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); } &&
15047          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
15048   { (case "(($ac_try" in
15049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050   *) ac_try_echo=$ac_try;;
15051 esac
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053   (eval "$ac_try") 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }; } &&
15057          { ac_try='test -s conftest.$ac_objext'
15058   { (case "(($ac_try" in
15059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060   *) ac_try_echo=$ac_try;;
15061 esac
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063   (eval "$ac_try") 2>&5
15064   ac_status=$?
15065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066   (exit $ac_status); }; }; then
15067   ac_cv_func_rand48=yes
15068 else
15069   echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072         ac_cv_func_rand48=no
15073 fi
15074
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076     ac_ext=c
15077 ac_cpp='$CPP $CPPFLAGS'
15078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15081
15082
15083 fi
15084 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
15085 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
15086
15087 if test "$ac_cv_func_rand48" = "yes" ; then
15088
15089 cat >>confdefs.h <<\_ACEOF
15090 #define HAVE_RAND48 1
15091 _ACEOF
15092
15093 fi
15094
15095
15096 { echo "$as_me:$LINENO: checking whether arc4random is declared" >&5
15097 echo $ECHO_N "checking whether arc4random is declared... $ECHO_C" >&6; }
15098 if test "${ac_cv_have_decl_arc4random+set}" = set; then
15099   echo $ECHO_N "(cached) $ECHO_C" >&6
15100 else
15101   cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h.  */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h.  */
15107 $ac_includes_default
15108 int
15109 main ()
15110 {
15111 #ifndef arc4random
15112   char *p = (char *) arc4random;
15113   return !p;
15114 #endif
15115
15116   ;
15117   return 0;
15118 }
15119 _ACEOF
15120 rm -f conftest.$ac_objext
15121 if { (ac_try="$ac_compile"
15122 case "(($ac_try" in
15123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15124   *) ac_try_echo=$ac_try;;
15125 esac
15126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15127   (eval "$ac_compile") 2>conftest.er1
15128   ac_status=$?
15129   grep -v '^ *+' conftest.er1 >conftest.err
15130   rm -f conftest.er1
15131   cat conftest.err >&5
15132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15133   (exit $ac_status); } &&
15134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15135   { (case "(($ac_try" in
15136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137   *) ac_try_echo=$ac_try;;
15138 esac
15139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140   (eval "$ac_try") 2>&5
15141   ac_status=$?
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); }; } &&
15144          { ac_try='test -s conftest.$ac_objext'
15145   { (case "(($ac_try" in
15146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147   *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150   (eval "$ac_try") 2>&5
15151   ac_status=$?
15152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153   (exit $ac_status); }; }; then
15154   ac_cv_have_decl_arc4random=yes
15155 else
15156   echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15158
15159         ac_cv_have_decl_arc4random=no
15160 fi
15161
15162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15163 fi
15164 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_arc4random" >&5
15165 echo "${ECHO_T}$ac_cv_have_decl_arc4random" >&6; }
15166 if test $ac_cv_have_decl_arc4random = yes; then
15167
15168 cat >>confdefs.h <<_ACEOF
15169 #define HAVE_DECL_ARC4RANDOM 1
15170 _ACEOF
15171
15172
15173 else
15174   cat >>confdefs.h <<_ACEOF
15175 #define HAVE_DECL_ARC4RANDOM 0
15176 _ACEOF
15177
15178
15179 fi
15180
15181
15182
15183 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
15184 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
15185 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
15186   echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188   cat >conftest.$ac_ext <<_ACEOF
15189 /* confdefs.h.  */
15190 _ACEOF
15191 cat confdefs.h >>conftest.$ac_ext
15192 cat >>conftest.$ac_ext <<_ACEOF
15193 /* end confdefs.h.  */
15194 $ac_includes_default
15195 int
15196 main ()
15197 {
15198 #ifndef strerror_s
15199   char *p = (char *) strerror_s;
15200   return !p;
15201 #endif
15202
15203   ;
15204   return 0;
15205 }
15206 _ACEOF
15207 rm -f conftest.$ac_objext
15208 if { (ac_try="$ac_compile"
15209 case "(($ac_try" in
15210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15211   *) ac_try_echo=$ac_try;;
15212 esac
15213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15214   (eval "$ac_compile") 2>conftest.er1
15215   ac_status=$?
15216   grep -v '^ *+' conftest.er1 >conftest.err
15217   rm -f conftest.er1
15218   cat conftest.err >&5
15219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220   (exit $ac_status); } &&
15221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15222   { (case "(($ac_try" in
15223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224   *) ac_try_echo=$ac_try;;
15225 esac
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227   (eval "$ac_try") 2>&5
15228   ac_status=$?
15229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230   (exit $ac_status); }; } &&
15231          { ac_try='test -s conftest.$ac_objext'
15232   { (case "(($ac_try" in
15233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234   *) ac_try_echo=$ac_try;;
15235 esac
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237   (eval "$ac_try") 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); }; }; then
15241   ac_cv_have_decl_strerror_s=yes
15242 else
15243   echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15245
15246         ac_cv_have_decl_strerror_s=no
15247 fi
15248
15249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15250 fi
15251 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
15252 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
15253 if test $ac_cv_have_decl_strerror_s = yes; then
15254
15255 cat >>confdefs.h <<_ACEOF
15256 #define HAVE_DECL_STRERROR_S 1
15257 _ACEOF
15258
15259
15260 else
15261   cat >>confdefs.h <<_ACEOF
15262 #define HAVE_DECL_STRERROR_S 0
15263 _ACEOF
15264
15265
15266 fi
15267
15268
15269
15270 if test "$llvm_cv_os_type" = "MingW" ; then
15271   { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
15272 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
15273 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
15274   echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276   ac_check_lib_save_LIBS=$LIBS
15277 LIBS="-lgcc  $LIBS"
15278 cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h.  */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h.  */
15284
15285 /* Override any GCC internal prototype to avoid an error.
15286    Use char because int might match the return type of a GCC
15287    builtin and then its argument prototype would still apply.  */
15288 #ifdef __cplusplus
15289 extern "C"
15290 #endif
15291 char _alloca ();
15292 int
15293 main ()
15294 {
15295 return _alloca ();
15296   ;
15297   return 0;
15298 }
15299 _ACEOF
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (ac_try="$ac_link"
15302 case "(($ac_try" in
15303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304   *) ac_try_echo=$ac_try;;
15305 esac
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307   (eval "$ac_link") 2>conftest.er1
15308   ac_status=$?
15309   grep -v '^ *+' conftest.er1 >conftest.err
15310   rm -f conftest.er1
15311   cat conftest.err >&5
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); } &&
15314          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15315   { (case "(($ac_try" in
15316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317   *) ac_try_echo=$ac_try;;
15318 esac
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320   (eval "$ac_try") 2>&5
15321   ac_status=$?
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); }; } &&
15324          { ac_try='test -s conftest$ac_exeext'
15325   { (case "(($ac_try" in
15326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327   *) ac_try_echo=$ac_try;;
15328 esac
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330   (eval "$ac_try") 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); }; }; then
15334   ac_cv_lib_gcc__alloca=yes
15335 else
15336   echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15338
15339         ac_cv_lib_gcc__alloca=no
15340 fi
15341
15342 rm -f core conftest.err conftest.$ac_objext \
15343       conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15345 fi
15346 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
15347 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
15348 if test $ac_cv_lib_gcc__alloca = yes; then
15349
15350 cat >>confdefs.h <<\_ACEOF
15351 #define HAVE__ALLOCA 1
15352 _ACEOF
15353
15354 fi
15355
15356   { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
15357 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
15358 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
15359   echo $ECHO_N "(cached) $ECHO_C" >&6
15360 else
15361   ac_check_lib_save_LIBS=$LIBS
15362 LIBS="-lgcc  $LIBS"
15363 cat >conftest.$ac_ext <<_ACEOF
15364 /* confdefs.h.  */
15365 _ACEOF
15366 cat confdefs.h >>conftest.$ac_ext
15367 cat >>conftest.$ac_ext <<_ACEOF
15368 /* end confdefs.h.  */
15369
15370 /* Override any GCC internal prototype to avoid an error.
15371    Use char because int might match the return type of a GCC
15372    builtin and then its argument prototype would still apply.  */
15373 #ifdef __cplusplus
15374 extern "C"
15375 #endif
15376 char __alloca ();
15377 int
15378 main ()
15379 {
15380 return __alloca ();
15381   ;
15382   return 0;
15383 }
15384 _ACEOF
15385 rm -f conftest.$ac_objext conftest$ac_exeext
15386 if { (ac_try="$ac_link"
15387 case "(($ac_try" in
15388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15389   *) ac_try_echo=$ac_try;;
15390 esac
15391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15392   (eval "$ac_link") 2>conftest.er1
15393   ac_status=$?
15394   grep -v '^ *+' conftest.er1 >conftest.err
15395   rm -f conftest.er1
15396   cat conftest.err >&5
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); } &&
15399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15400   { (case "(($ac_try" in
15401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402   *) ac_try_echo=$ac_try;;
15403 esac
15404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405   (eval "$ac_try") 2>&5
15406   ac_status=$?
15407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408   (exit $ac_status); }; } &&
15409          { ac_try='test -s conftest$ac_exeext'
15410   { (case "(($ac_try" in
15411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412   *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415   (eval "$ac_try") 2>&5
15416   ac_status=$?
15417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418   (exit $ac_status); }; }; then
15419   ac_cv_lib_gcc___alloca=yes
15420 else
15421   echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15423
15424         ac_cv_lib_gcc___alloca=no
15425 fi
15426
15427 rm -f core conftest.err conftest.$ac_objext \
15428       conftest$ac_exeext conftest.$ac_ext
15429 LIBS=$ac_check_lib_save_LIBS
15430 fi
15431 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
15432 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
15433 if test $ac_cv_lib_gcc___alloca = yes; then
15434
15435 cat >>confdefs.h <<\_ACEOF
15436 #define HAVE___ALLOCA 1
15437 _ACEOF
15438
15439 fi
15440
15441   { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
15442 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
15443 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
15444   echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446   ac_check_lib_save_LIBS=$LIBS
15447 LIBS="-lgcc  $LIBS"
15448 cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h.  */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h.  */
15454
15455 /* Override any GCC internal prototype to avoid an error.
15456    Use char because int might match the return type of a GCC
15457    builtin and then its argument prototype would still apply.  */
15458 #ifdef __cplusplus
15459 extern "C"
15460 #endif
15461 char __chkstk ();
15462 int
15463 main ()
15464 {
15465 return __chkstk ();
15466   ;
15467   return 0;
15468 }
15469 _ACEOF
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (ac_try="$ac_link"
15472 case "(($ac_try" in
15473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474   *) ac_try_echo=$ac_try;;
15475 esac
15476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477   (eval "$ac_link") 2>conftest.er1
15478   ac_status=$?
15479   grep -v '^ *+' conftest.er1 >conftest.err
15480   rm -f conftest.er1
15481   cat conftest.err >&5
15482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15483   (exit $ac_status); } &&
15484          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15485   { (case "(($ac_try" in
15486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487   *) ac_try_echo=$ac_try;;
15488 esac
15489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490   (eval "$ac_try") 2>&5
15491   ac_status=$?
15492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493   (exit $ac_status); }; } &&
15494          { ac_try='test -s conftest$ac_exeext'
15495   { (case "(($ac_try" in
15496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497   *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500   (eval "$ac_try") 2>&5
15501   ac_status=$?
15502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503   (exit $ac_status); }; }; then
15504   ac_cv_lib_gcc___chkstk=yes
15505 else
15506   echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15508
15509         ac_cv_lib_gcc___chkstk=no
15510 fi
15511
15512 rm -f core conftest.err conftest.$ac_objext \
15513       conftest$ac_exeext conftest.$ac_ext
15514 LIBS=$ac_check_lib_save_LIBS
15515 fi
15516 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
15517 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
15518 if test $ac_cv_lib_gcc___chkstk = yes; then
15519
15520 cat >>confdefs.h <<\_ACEOF
15521 #define HAVE___CHKSTK 1
15522 _ACEOF
15523
15524 fi
15525
15526   { echo "$as_me:$LINENO: checking for __chkstk_ms in -lgcc" >&5
15527 echo $ECHO_N "checking for __chkstk_ms in -lgcc... $ECHO_C" >&6; }
15528 if test "${ac_cv_lib_gcc___chkstk_ms+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   ac_check_lib_save_LIBS=$LIBS
15532 LIBS="-lgcc  $LIBS"
15533 cat >conftest.$ac_ext <<_ACEOF
15534 /* confdefs.h.  */
15535 _ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h.  */
15539
15540 /* Override any GCC internal prototype to avoid an error.
15541    Use char because int might match the return type of a GCC
15542    builtin and then its argument prototype would still apply.  */
15543 #ifdef __cplusplus
15544 extern "C"
15545 #endif
15546 char __chkstk_ms ();
15547 int
15548 main ()
15549 {
15550 return __chkstk_ms ();
15551   ;
15552   return 0;
15553 }
15554 _ACEOF
15555 rm -f conftest.$ac_objext conftest$ac_exeext
15556 if { (ac_try="$ac_link"
15557 case "(($ac_try" in
15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559   *) ac_try_echo=$ac_try;;
15560 esac
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562   (eval "$ac_link") 2>conftest.er1
15563   ac_status=$?
15564   grep -v '^ *+' conftest.er1 >conftest.err
15565   rm -f conftest.er1
15566   cat conftest.err >&5
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); } &&
15569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15570   { (case "(($ac_try" in
15571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15572   *) ac_try_echo=$ac_try;;
15573 esac
15574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15575   (eval "$ac_try") 2>&5
15576   ac_status=$?
15577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); }; } &&
15579          { ac_try='test -s conftest$ac_exeext'
15580   { (case "(($ac_try" in
15581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582   *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585   (eval "$ac_try") 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; }; then
15589   ac_cv_lib_gcc___chkstk_ms=yes
15590 else
15591   echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15593
15594         ac_cv_lib_gcc___chkstk_ms=no
15595 fi
15596
15597 rm -f core conftest.err conftest.$ac_objext \
15598       conftest$ac_exeext conftest.$ac_ext
15599 LIBS=$ac_check_lib_save_LIBS
15600 fi
15601 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk_ms" >&5
15602 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk_ms" >&6; }
15603 if test $ac_cv_lib_gcc___chkstk_ms = yes; then
15604
15605 cat >>confdefs.h <<\_ACEOF
15606 #define HAVE___CHKSTK_MS 1
15607 _ACEOF
15608
15609 fi
15610
15611   { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
15612 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
15613 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
15614   echo $ECHO_N "(cached) $ECHO_C" >&6
15615 else
15616   ac_check_lib_save_LIBS=$LIBS
15617 LIBS="-lgcc  $LIBS"
15618 cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h.  */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h.  */
15624
15625 /* Override any GCC internal prototype to avoid an error.
15626    Use char because int might match the return type of a GCC
15627    builtin and then its argument prototype would still apply.  */
15628 #ifdef __cplusplus
15629 extern "C"
15630 #endif
15631 char ___chkstk ();
15632 int
15633 main ()
15634 {
15635 return ___chkstk ();
15636   ;
15637   return 0;
15638 }
15639 _ACEOF
15640 rm -f conftest.$ac_objext conftest$ac_exeext
15641 if { (ac_try="$ac_link"
15642 case "(($ac_try" in
15643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644   *) ac_try_echo=$ac_try;;
15645 esac
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647   (eval "$ac_link") 2>conftest.er1
15648   ac_status=$?
15649   grep -v '^ *+' conftest.er1 >conftest.err
15650   rm -f conftest.er1
15651   cat conftest.err >&5
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } &&
15654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15655   { (case "(($ac_try" in
15656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657   *) ac_try_echo=$ac_try;;
15658 esac
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660   (eval "$ac_try") 2>&5
15661   ac_status=$?
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); }; } &&
15664          { ac_try='test -s conftest$ac_exeext'
15665   { (case "(($ac_try" in
15666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667   *) ac_try_echo=$ac_try;;
15668 esac
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670   (eval "$ac_try") 2>&5
15671   ac_status=$?
15672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); }; }; then
15674   ac_cv_lib_gcc____chkstk=yes
15675 else
15676   echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15678
15679         ac_cv_lib_gcc____chkstk=no
15680 fi
15681
15682 rm -f core conftest.err conftest.$ac_objext \
15683       conftest$ac_exeext conftest.$ac_ext
15684 LIBS=$ac_check_lib_save_LIBS
15685 fi
15686 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
15687 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
15688 if test $ac_cv_lib_gcc____chkstk = yes; then
15689
15690 cat >>confdefs.h <<\_ACEOF
15691 #define HAVE____CHKSTK 1
15692 _ACEOF
15693
15694 fi
15695
15696   { echo "$as_me:$LINENO: checking for ___chkstk_ms in -lgcc" >&5
15697 echo $ECHO_N "checking for ___chkstk_ms in -lgcc... $ECHO_C" >&6; }
15698 if test "${ac_cv_lib_gcc____chkstk_ms+set}" = set; then
15699   echo $ECHO_N "(cached) $ECHO_C" >&6
15700 else
15701   ac_check_lib_save_LIBS=$LIBS
15702 LIBS="-lgcc  $LIBS"
15703 cat >conftest.$ac_ext <<_ACEOF
15704 /* confdefs.h.  */
15705 _ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h.  */
15709
15710 /* Override any GCC internal prototype to avoid an error.
15711    Use char because int might match the return type of a GCC
15712    builtin and then its argument prototype would still apply.  */
15713 #ifdef __cplusplus
15714 extern "C"
15715 #endif
15716 char ___chkstk_ms ();
15717 int
15718 main ()
15719 {
15720 return ___chkstk_ms ();
15721   ;
15722   return 0;
15723 }
15724 _ACEOF
15725 rm -f conftest.$ac_objext conftest$ac_exeext
15726 if { (ac_try="$ac_link"
15727 case "(($ac_try" in
15728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729   *) ac_try_echo=$ac_try;;
15730 esac
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732   (eval "$ac_link") 2>conftest.er1
15733   ac_status=$?
15734   grep -v '^ *+' conftest.er1 >conftest.err
15735   rm -f conftest.er1
15736   cat conftest.err >&5
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); } &&
15739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15740   { (case "(($ac_try" in
15741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15742   *) ac_try_echo=$ac_try;;
15743 esac
15744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15745   (eval "$ac_try") 2>&5
15746   ac_status=$?
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); }; } &&
15749          { ac_try='test -s conftest$ac_exeext'
15750   { (case "(($ac_try" in
15751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752   *) ac_try_echo=$ac_try;;
15753 esac
15754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15755   (eval "$ac_try") 2>&5
15756   ac_status=$?
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); }; }; then
15759   ac_cv_lib_gcc____chkstk_ms=yes
15760 else
15761   echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15763
15764         ac_cv_lib_gcc____chkstk_ms=no
15765 fi
15766
15767 rm -f core conftest.err conftest.$ac_objext \
15768       conftest$ac_exeext conftest.$ac_ext
15769 LIBS=$ac_check_lib_save_LIBS
15770 fi
15771 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk_ms" >&5
15772 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk_ms" >&6; }
15773 if test $ac_cv_lib_gcc____chkstk_ms = yes; then
15774
15775 cat >>confdefs.h <<\_ACEOF
15776 #define HAVE____CHKSTK_MS 1
15777 _ACEOF
15778
15779 fi
15780
15781
15782   { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
15783 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
15784 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
15785   echo $ECHO_N "(cached) $ECHO_C" >&6
15786 else
15787   ac_check_lib_save_LIBS=$LIBS
15788 LIBS="-lgcc  $LIBS"
15789 cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h.  */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h.  */
15795
15796 /* Override any GCC internal prototype to avoid an error.
15797    Use char because int might match the return type of a GCC
15798    builtin and then its argument prototype would still apply.  */
15799 #ifdef __cplusplus
15800 extern "C"
15801 #endif
15802 char __ashldi3 ();
15803 int
15804 main ()
15805 {
15806 return __ashldi3 ();
15807   ;
15808   return 0;
15809 }
15810 _ACEOF
15811 rm -f conftest.$ac_objext conftest$ac_exeext
15812 if { (ac_try="$ac_link"
15813 case "(($ac_try" in
15814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815   *) ac_try_echo=$ac_try;;
15816 esac
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818   (eval "$ac_link") 2>conftest.er1
15819   ac_status=$?
15820   grep -v '^ *+' conftest.er1 >conftest.err
15821   rm -f conftest.er1
15822   cat conftest.err >&5
15823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); } &&
15825          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15826   { (case "(($ac_try" in
15827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828   *) ac_try_echo=$ac_try;;
15829 esac
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831   (eval "$ac_try") 2>&5
15832   ac_status=$?
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); }; } &&
15835          { ac_try='test -s conftest$ac_exeext'
15836   { (case "(($ac_try" in
15837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838   *) ac_try_echo=$ac_try;;
15839 esac
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841   (eval "$ac_try") 2>&5
15842   ac_status=$?
15843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844   (exit $ac_status); }; }; then
15845   ac_cv_lib_gcc___ashldi3=yes
15846 else
15847   echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15849
15850         ac_cv_lib_gcc___ashldi3=no
15851 fi
15852
15853 rm -f core conftest.err conftest.$ac_objext \
15854       conftest$ac_exeext conftest.$ac_ext
15855 LIBS=$ac_check_lib_save_LIBS
15856 fi
15857 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
15858 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
15859 if test $ac_cv_lib_gcc___ashldi3 = yes; then
15860
15861 cat >>confdefs.h <<\_ACEOF
15862 #define HAVE___ASHLDI3 1
15863 _ACEOF
15864
15865 fi
15866
15867   { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
15868 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
15869 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
15870   echo $ECHO_N "(cached) $ECHO_C" >&6
15871 else
15872   ac_check_lib_save_LIBS=$LIBS
15873 LIBS="-lgcc  $LIBS"
15874 cat >conftest.$ac_ext <<_ACEOF
15875 /* confdefs.h.  */
15876 _ACEOF
15877 cat confdefs.h >>conftest.$ac_ext
15878 cat >>conftest.$ac_ext <<_ACEOF
15879 /* end confdefs.h.  */
15880
15881 /* Override any GCC internal prototype to avoid an error.
15882    Use char because int might match the return type of a GCC
15883    builtin and then its argument prototype would still apply.  */
15884 #ifdef __cplusplus
15885 extern "C"
15886 #endif
15887 char __ashrdi3 ();
15888 int
15889 main ()
15890 {
15891 return __ashrdi3 ();
15892   ;
15893   return 0;
15894 }
15895 _ACEOF
15896 rm -f conftest.$ac_objext conftest$ac_exeext
15897 if { (ac_try="$ac_link"
15898 case "(($ac_try" in
15899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15900   *) ac_try_echo=$ac_try;;
15901 esac
15902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15903   (eval "$ac_link") 2>conftest.er1
15904   ac_status=$?
15905   grep -v '^ *+' conftest.er1 >conftest.err
15906   rm -f conftest.er1
15907   cat conftest.err >&5
15908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909   (exit $ac_status); } &&
15910          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15911   { (case "(($ac_try" in
15912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913   *) ac_try_echo=$ac_try;;
15914 esac
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916   (eval "$ac_try") 2>&5
15917   ac_status=$?
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); }; } &&
15920          { ac_try='test -s conftest$ac_exeext'
15921   { (case "(($ac_try" in
15922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923   *) ac_try_echo=$ac_try;;
15924 esac
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926   (eval "$ac_try") 2>&5
15927   ac_status=$?
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); }; }; then
15930   ac_cv_lib_gcc___ashrdi3=yes
15931 else
15932   echo "$as_me: failed program was:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15934
15935         ac_cv_lib_gcc___ashrdi3=no
15936 fi
15937
15938 rm -f core conftest.err conftest.$ac_objext \
15939       conftest$ac_exeext conftest.$ac_ext
15940 LIBS=$ac_check_lib_save_LIBS
15941 fi
15942 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
15943 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
15944 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
15945
15946 cat >>confdefs.h <<\_ACEOF
15947 #define HAVE___ASHRDI3 1
15948 _ACEOF
15949
15950 fi
15951
15952   { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
15953 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
15954 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
15955   echo $ECHO_N "(cached) $ECHO_C" >&6
15956 else
15957   ac_check_lib_save_LIBS=$LIBS
15958 LIBS="-lgcc  $LIBS"
15959 cat >conftest.$ac_ext <<_ACEOF
15960 /* confdefs.h.  */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h.  */
15965
15966 /* Override any GCC internal prototype to avoid an error.
15967    Use char because int might match the return type of a GCC
15968    builtin and then its argument prototype would still apply.  */
15969 #ifdef __cplusplus
15970 extern "C"
15971 #endif
15972 char __divdi3 ();
15973 int
15974 main ()
15975 {
15976 return __divdi3 ();
15977   ;
15978   return 0;
15979 }
15980 _ACEOF
15981 rm -f conftest.$ac_objext conftest$ac_exeext
15982 if { (ac_try="$ac_link"
15983 case "(($ac_try" in
15984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15985   *) ac_try_echo=$ac_try;;
15986 esac
15987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15988   (eval "$ac_link") 2>conftest.er1
15989   ac_status=$?
15990   grep -v '^ *+' conftest.er1 >conftest.err
15991   rm -f conftest.er1
15992   cat conftest.err >&5
15993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994   (exit $ac_status); } &&
15995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15996   { (case "(($ac_try" in
15997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998   *) ac_try_echo=$ac_try;;
15999 esac
16000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16001   (eval "$ac_try") 2>&5
16002   ac_status=$?
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); }; } &&
16005          { ac_try='test -s conftest$ac_exeext'
16006   { (case "(($ac_try" in
16007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16008   *) ac_try_echo=$ac_try;;
16009 esac
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011   (eval "$ac_try") 2>&5
16012   ac_status=$?
16013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014   (exit $ac_status); }; }; then
16015   ac_cv_lib_gcc___divdi3=yes
16016 else
16017   echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16019
16020         ac_cv_lib_gcc___divdi3=no
16021 fi
16022
16023 rm -f core conftest.err conftest.$ac_objext \
16024       conftest$ac_exeext conftest.$ac_ext
16025 LIBS=$ac_check_lib_save_LIBS
16026 fi
16027 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
16028 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
16029 if test $ac_cv_lib_gcc___divdi3 = yes; then
16030
16031 cat >>confdefs.h <<\_ACEOF
16032 #define HAVE___DIVDI3 1
16033 _ACEOF
16034
16035 fi
16036
16037   { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
16038 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
16039 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
16040   echo $ECHO_N "(cached) $ECHO_C" >&6
16041 else
16042   ac_check_lib_save_LIBS=$LIBS
16043 LIBS="-lgcc  $LIBS"
16044 cat >conftest.$ac_ext <<_ACEOF
16045 /* confdefs.h.  */
16046 _ACEOF
16047 cat confdefs.h >>conftest.$ac_ext
16048 cat >>conftest.$ac_ext <<_ACEOF
16049 /* end confdefs.h.  */
16050
16051 /* Override any GCC internal prototype to avoid an error.
16052    Use char because int might match the return type of a GCC
16053    builtin and then its argument prototype would still apply.  */
16054 #ifdef __cplusplus
16055 extern "C"
16056 #endif
16057 char __fixdfdi ();
16058 int
16059 main ()
16060 {
16061 return __fixdfdi ();
16062   ;
16063   return 0;
16064 }
16065 _ACEOF
16066 rm -f conftest.$ac_objext conftest$ac_exeext
16067 if { (ac_try="$ac_link"
16068 case "(($ac_try" in
16069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070   *) ac_try_echo=$ac_try;;
16071 esac
16072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16073   (eval "$ac_link") 2>conftest.er1
16074   ac_status=$?
16075   grep -v '^ *+' conftest.er1 >conftest.err
16076   rm -f conftest.er1
16077   cat conftest.err >&5
16078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079   (exit $ac_status); } &&
16080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16081   { (case "(($ac_try" in
16082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16083   *) ac_try_echo=$ac_try;;
16084 esac
16085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16086   (eval "$ac_try") 2>&5
16087   ac_status=$?
16088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089   (exit $ac_status); }; } &&
16090          { ac_try='test -s conftest$ac_exeext'
16091   { (case "(($ac_try" in
16092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093   *) ac_try_echo=$ac_try;;
16094 esac
16095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096   (eval "$ac_try") 2>&5
16097   ac_status=$?
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); }; }; then
16100   ac_cv_lib_gcc___fixdfdi=yes
16101 else
16102   echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105         ac_cv_lib_gcc___fixdfdi=no
16106 fi
16107
16108 rm -f core conftest.err conftest.$ac_objext \
16109       conftest$ac_exeext conftest.$ac_ext
16110 LIBS=$ac_check_lib_save_LIBS
16111 fi
16112 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
16113 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
16114 if test $ac_cv_lib_gcc___fixdfdi = yes; then
16115
16116 cat >>confdefs.h <<\_ACEOF
16117 #define HAVE___FIXDFDI 1
16118 _ACEOF
16119
16120 fi
16121
16122   { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
16123 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
16124 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
16125   echo $ECHO_N "(cached) $ECHO_C" >&6
16126 else
16127   ac_check_lib_save_LIBS=$LIBS
16128 LIBS="-lgcc  $LIBS"
16129 cat >conftest.$ac_ext <<_ACEOF
16130 /* confdefs.h.  */
16131 _ACEOF
16132 cat confdefs.h >>conftest.$ac_ext
16133 cat >>conftest.$ac_ext <<_ACEOF
16134 /* end confdefs.h.  */
16135
16136 /* Override any GCC internal prototype to avoid an error.
16137    Use char because int might match the return type of a GCC
16138    builtin and then its argument prototype would still apply.  */
16139 #ifdef __cplusplus
16140 extern "C"
16141 #endif
16142 char __fixsfdi ();
16143 int
16144 main ()
16145 {
16146 return __fixsfdi ();
16147   ;
16148   return 0;
16149 }
16150 _ACEOF
16151 rm -f conftest.$ac_objext conftest$ac_exeext
16152 if { (ac_try="$ac_link"
16153 case "(($ac_try" in
16154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155   *) ac_try_echo=$ac_try;;
16156 esac
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158   (eval "$ac_link") 2>conftest.er1
16159   ac_status=$?
16160   grep -v '^ *+' conftest.er1 >conftest.err
16161   rm -f conftest.er1
16162   cat conftest.err >&5
16163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164   (exit $ac_status); } &&
16165          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16166   { (case "(($ac_try" in
16167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168   *) ac_try_echo=$ac_try;;
16169 esac
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171   (eval "$ac_try") 2>&5
16172   ac_status=$?
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); }; } &&
16175          { ac_try='test -s conftest$ac_exeext'
16176   { (case "(($ac_try" in
16177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178   *) ac_try_echo=$ac_try;;
16179 esac
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181   (eval "$ac_try") 2>&5
16182   ac_status=$?
16183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184   (exit $ac_status); }; }; then
16185   ac_cv_lib_gcc___fixsfdi=yes
16186 else
16187   echo "$as_me: failed program was:" >&5
16188 sed 's/^/| /' conftest.$ac_ext >&5
16189
16190         ac_cv_lib_gcc___fixsfdi=no
16191 fi
16192
16193 rm -f core conftest.err conftest.$ac_objext \
16194       conftest$ac_exeext conftest.$ac_ext
16195 LIBS=$ac_check_lib_save_LIBS
16196 fi
16197 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
16198 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
16199 if test $ac_cv_lib_gcc___fixsfdi = yes; then
16200
16201 cat >>confdefs.h <<\_ACEOF
16202 #define HAVE___FIXSFDI 1
16203 _ACEOF
16204
16205 fi
16206
16207   { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
16208 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
16209 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
16210   echo $ECHO_N "(cached) $ECHO_C" >&6
16211 else
16212   ac_check_lib_save_LIBS=$LIBS
16213 LIBS="-lgcc  $LIBS"
16214 cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h.  */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h.  */
16220
16221 /* Override any GCC internal prototype to avoid an error.
16222    Use char because int might match the return type of a GCC
16223    builtin and then its argument prototype would still apply.  */
16224 #ifdef __cplusplus
16225 extern "C"
16226 #endif
16227 char __floatdidf ();
16228 int
16229 main ()
16230 {
16231 return __floatdidf ();
16232   ;
16233   return 0;
16234 }
16235 _ACEOF
16236 rm -f conftest.$ac_objext conftest$ac_exeext
16237 if { (ac_try="$ac_link"
16238 case "(($ac_try" in
16239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240   *) ac_try_echo=$ac_try;;
16241 esac
16242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16243   (eval "$ac_link") 2>conftest.er1
16244   ac_status=$?
16245   grep -v '^ *+' conftest.er1 >conftest.err
16246   rm -f conftest.er1
16247   cat conftest.err >&5
16248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249   (exit $ac_status); } &&
16250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16251   { (case "(($ac_try" in
16252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253   *) ac_try_echo=$ac_try;;
16254 esac
16255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16256   (eval "$ac_try") 2>&5
16257   ac_status=$?
16258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259   (exit $ac_status); }; } &&
16260          { ac_try='test -s conftest$ac_exeext'
16261   { (case "(($ac_try" in
16262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263   *) ac_try_echo=$ac_try;;
16264 esac
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266   (eval "$ac_try") 2>&5
16267   ac_status=$?
16268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269   (exit $ac_status); }; }; then
16270   ac_cv_lib_gcc___floatdidf=yes
16271 else
16272   echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16274
16275         ac_cv_lib_gcc___floatdidf=no
16276 fi
16277
16278 rm -f core conftest.err conftest.$ac_objext \
16279       conftest$ac_exeext conftest.$ac_ext
16280 LIBS=$ac_check_lib_save_LIBS
16281 fi
16282 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
16283 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
16284 if test $ac_cv_lib_gcc___floatdidf = yes; then
16285
16286 cat >>confdefs.h <<\_ACEOF
16287 #define HAVE___FLOATDIDF 1
16288 _ACEOF
16289
16290 fi
16291
16292   { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
16293 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
16294 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
16295   echo $ECHO_N "(cached) $ECHO_C" >&6
16296 else
16297   ac_check_lib_save_LIBS=$LIBS
16298 LIBS="-lgcc  $LIBS"
16299 cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h.  */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h.  */
16305
16306 /* Override any GCC internal prototype to avoid an error.
16307    Use char because int might match the return type of a GCC
16308    builtin and then its argument prototype would still apply.  */
16309 #ifdef __cplusplus
16310 extern "C"
16311 #endif
16312 char __lshrdi3 ();
16313 int
16314 main ()
16315 {
16316 return __lshrdi3 ();
16317   ;
16318   return 0;
16319 }
16320 _ACEOF
16321 rm -f conftest.$ac_objext conftest$ac_exeext
16322 if { (ac_try="$ac_link"
16323 case "(($ac_try" in
16324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16325   *) ac_try_echo=$ac_try;;
16326 esac
16327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16328   (eval "$ac_link") 2>conftest.er1
16329   ac_status=$?
16330   grep -v '^ *+' conftest.er1 >conftest.err
16331   rm -f conftest.er1
16332   cat conftest.err >&5
16333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334   (exit $ac_status); } &&
16335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16336   { (case "(($ac_try" in
16337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338   *) ac_try_echo=$ac_try;;
16339 esac
16340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341   (eval "$ac_try") 2>&5
16342   ac_status=$?
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); }; } &&
16345          { ac_try='test -s conftest$ac_exeext'
16346   { (case "(($ac_try" in
16347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16348   *) ac_try_echo=$ac_try;;
16349 esac
16350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16351   (eval "$ac_try") 2>&5
16352   ac_status=$?
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); }; }; then
16355   ac_cv_lib_gcc___lshrdi3=yes
16356 else
16357   echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16359
16360         ac_cv_lib_gcc___lshrdi3=no
16361 fi
16362
16363 rm -f core conftest.err conftest.$ac_objext \
16364       conftest$ac_exeext conftest.$ac_ext
16365 LIBS=$ac_check_lib_save_LIBS
16366 fi
16367 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
16368 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
16369 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
16370
16371 cat >>confdefs.h <<\_ACEOF
16372 #define HAVE___LSHRDI3 1
16373 _ACEOF
16374
16375 fi
16376
16377   { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
16378 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
16379 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
16380   echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382   ac_check_lib_save_LIBS=$LIBS
16383 LIBS="-lgcc  $LIBS"
16384 cat >conftest.$ac_ext <<_ACEOF
16385 /* confdefs.h.  */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h.  */
16390
16391 /* Override any GCC internal prototype to avoid an error.
16392    Use char because int might match the return type of a GCC
16393    builtin and then its argument prototype would still apply.  */
16394 #ifdef __cplusplus
16395 extern "C"
16396 #endif
16397 char __moddi3 ();
16398 int
16399 main ()
16400 {
16401 return __moddi3 ();
16402   ;
16403   return 0;
16404 }
16405 _ACEOF
16406 rm -f conftest.$ac_objext conftest$ac_exeext
16407 if { (ac_try="$ac_link"
16408 case "(($ac_try" in
16409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410   *) ac_try_echo=$ac_try;;
16411 esac
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413   (eval "$ac_link") 2>conftest.er1
16414   ac_status=$?
16415   grep -v '^ *+' conftest.er1 >conftest.err
16416   rm -f conftest.er1
16417   cat conftest.err >&5
16418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419   (exit $ac_status); } &&
16420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16421   { (case "(($ac_try" in
16422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423   *) ac_try_echo=$ac_try;;
16424 esac
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426   (eval "$ac_try") 2>&5
16427   ac_status=$?
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); }; } &&
16430          { ac_try='test -s conftest$ac_exeext'
16431   { (case "(($ac_try" in
16432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433   *) ac_try_echo=$ac_try;;
16434 esac
16435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16436   (eval "$ac_try") 2>&5
16437   ac_status=$?
16438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); }; }; then
16440   ac_cv_lib_gcc___moddi3=yes
16441 else
16442   echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16444
16445         ac_cv_lib_gcc___moddi3=no
16446 fi
16447
16448 rm -f core conftest.err conftest.$ac_objext \
16449       conftest$ac_exeext conftest.$ac_ext
16450 LIBS=$ac_check_lib_save_LIBS
16451 fi
16452 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
16453 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
16454 if test $ac_cv_lib_gcc___moddi3 = yes; then
16455
16456 cat >>confdefs.h <<\_ACEOF
16457 #define HAVE___MODDI3 1
16458 _ACEOF
16459
16460 fi
16461
16462   { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
16463 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
16464 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
16465   echo $ECHO_N "(cached) $ECHO_C" >&6
16466 else
16467   ac_check_lib_save_LIBS=$LIBS
16468 LIBS="-lgcc  $LIBS"
16469 cat >conftest.$ac_ext <<_ACEOF
16470 /* confdefs.h.  */
16471 _ACEOF
16472 cat confdefs.h >>conftest.$ac_ext
16473 cat >>conftest.$ac_ext <<_ACEOF
16474 /* end confdefs.h.  */
16475
16476 /* Override any GCC internal prototype to avoid an error.
16477    Use char because int might match the return type of a GCC
16478    builtin and then its argument prototype would still apply.  */
16479 #ifdef __cplusplus
16480 extern "C"
16481 #endif
16482 char __udivdi3 ();
16483 int
16484 main ()
16485 {
16486 return __udivdi3 ();
16487   ;
16488   return 0;
16489 }
16490 _ACEOF
16491 rm -f conftest.$ac_objext conftest$ac_exeext
16492 if { (ac_try="$ac_link"
16493 case "(($ac_try" in
16494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16495   *) ac_try_echo=$ac_try;;
16496 esac
16497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16498   (eval "$ac_link") 2>conftest.er1
16499   ac_status=$?
16500   grep -v '^ *+' conftest.er1 >conftest.err
16501   rm -f conftest.er1
16502   cat conftest.err >&5
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); } &&
16505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16506   { (case "(($ac_try" in
16507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508   *) ac_try_echo=$ac_try;;
16509 esac
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511   (eval "$ac_try") 2>&5
16512   ac_status=$?
16513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514   (exit $ac_status); }; } &&
16515          { ac_try='test -s conftest$ac_exeext'
16516   { (case "(($ac_try" in
16517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518   *) ac_try_echo=$ac_try;;
16519 esac
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521   (eval "$ac_try") 2>&5
16522   ac_status=$?
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); }; }; then
16525   ac_cv_lib_gcc___udivdi3=yes
16526 else
16527   echo "$as_me: failed program was:" >&5
16528 sed 's/^/| /' conftest.$ac_ext >&5
16529
16530         ac_cv_lib_gcc___udivdi3=no
16531 fi
16532
16533 rm -f core conftest.err conftest.$ac_objext \
16534       conftest$ac_exeext conftest.$ac_ext
16535 LIBS=$ac_check_lib_save_LIBS
16536 fi
16537 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
16538 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
16539 if test $ac_cv_lib_gcc___udivdi3 = yes; then
16540
16541 cat >>confdefs.h <<\_ACEOF
16542 #define HAVE___UDIVDI3 1
16543 _ACEOF
16544
16545 fi
16546
16547   { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
16548 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
16549 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
16550   echo $ECHO_N "(cached) $ECHO_C" >&6
16551 else
16552   ac_check_lib_save_LIBS=$LIBS
16553 LIBS="-lgcc  $LIBS"
16554 cat >conftest.$ac_ext <<_ACEOF
16555 /* confdefs.h.  */
16556 _ACEOF
16557 cat confdefs.h >>conftest.$ac_ext
16558 cat >>conftest.$ac_ext <<_ACEOF
16559 /* end confdefs.h.  */
16560
16561 /* Override any GCC internal prototype to avoid an error.
16562    Use char because int might match the return type of a GCC
16563    builtin and then its argument prototype would still apply.  */
16564 #ifdef __cplusplus
16565 extern "C"
16566 #endif
16567 char __umoddi3 ();
16568 int
16569 main ()
16570 {
16571 return __umoddi3 ();
16572   ;
16573   return 0;
16574 }
16575 _ACEOF
16576 rm -f conftest.$ac_objext conftest$ac_exeext
16577 if { (ac_try="$ac_link"
16578 case "(($ac_try" in
16579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580   *) ac_try_echo=$ac_try;;
16581 esac
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583   (eval "$ac_link") 2>conftest.er1
16584   ac_status=$?
16585   grep -v '^ *+' conftest.er1 >conftest.err
16586   rm -f conftest.er1
16587   cat conftest.err >&5
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); } &&
16590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16591   { (case "(($ac_try" in
16592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16593   *) ac_try_echo=$ac_try;;
16594 esac
16595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16596   (eval "$ac_try") 2>&5
16597   ac_status=$?
16598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599   (exit $ac_status); }; } &&
16600          { ac_try='test -s conftest$ac_exeext'
16601   { (case "(($ac_try" in
16602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603   *) ac_try_echo=$ac_try;;
16604 esac
16605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606   (eval "$ac_try") 2>&5
16607   ac_status=$?
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); }; }; then
16610   ac_cv_lib_gcc___umoddi3=yes
16611 else
16612   echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16614
16615         ac_cv_lib_gcc___umoddi3=no
16616 fi
16617
16618 rm -f core conftest.err conftest.$ac_objext \
16619       conftest$ac_exeext conftest.$ac_ext
16620 LIBS=$ac_check_lib_save_LIBS
16621 fi
16622 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
16623 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
16624 if test $ac_cv_lib_gcc___umoddi3 = yes; then
16625
16626 cat >>confdefs.h <<\_ACEOF
16627 #define HAVE___UMODDI3 1
16628 _ACEOF
16629
16630 fi
16631
16632
16633   { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
16634 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
16635 if test "${ac_cv_lib_gcc___main+set}" = set; then
16636   echo $ECHO_N "(cached) $ECHO_C" >&6
16637 else
16638   ac_check_lib_save_LIBS=$LIBS
16639 LIBS="-lgcc  $LIBS"
16640 cat >conftest.$ac_ext <<_ACEOF
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646
16647 /* Override any GCC internal prototype to avoid an error.
16648    Use char because int might match the return type of a GCC
16649    builtin and then its argument prototype would still apply.  */
16650 #ifdef __cplusplus
16651 extern "C"
16652 #endif
16653 char __main ();
16654 int
16655 main ()
16656 {
16657 return __main ();
16658   ;
16659   return 0;
16660 }
16661 _ACEOF
16662 rm -f conftest.$ac_objext conftest$ac_exeext
16663 if { (ac_try="$ac_link"
16664 case "(($ac_try" in
16665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666   *) ac_try_echo=$ac_try;;
16667 esac
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669   (eval "$ac_link") 2>conftest.er1
16670   ac_status=$?
16671   grep -v '^ *+' conftest.er1 >conftest.err
16672   rm -f conftest.er1
16673   cat conftest.err >&5
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } &&
16676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16677   { (case "(($ac_try" in
16678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679   *) ac_try_echo=$ac_try;;
16680 esac
16681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16682   (eval "$ac_try") 2>&5
16683   ac_status=$?
16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685   (exit $ac_status); }; } &&
16686          { ac_try='test -s conftest$ac_exeext'
16687   { (case "(($ac_try" in
16688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689   *) ac_try_echo=$ac_try;;
16690 esac
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692   (eval "$ac_try") 2>&5
16693   ac_status=$?
16694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); }; }; then
16696   ac_cv_lib_gcc___main=yes
16697 else
16698   echo "$as_me: failed program was:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16700
16701         ac_cv_lib_gcc___main=no
16702 fi
16703
16704 rm -f core conftest.err conftest.$ac_objext \
16705       conftest$ac_exeext conftest.$ac_ext
16706 LIBS=$ac_check_lib_save_LIBS
16707 fi
16708 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
16709 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
16710 if test $ac_cv_lib_gcc___main = yes; then
16711
16712 cat >>confdefs.h <<\_ACEOF
16713 #define HAVE___MAIN 1
16714 _ACEOF
16715
16716 fi
16717
16718   { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
16719 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
16720 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
16721   echo $ECHO_N "(cached) $ECHO_C" >&6
16722 else
16723   ac_check_lib_save_LIBS=$LIBS
16724 LIBS="-lgcc  $LIBS"
16725 cat >conftest.$ac_ext <<_ACEOF
16726 /* confdefs.h.  */
16727 _ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h.  */
16731
16732 /* Override any GCC internal prototype to avoid an error.
16733    Use char because int might match the return type of a GCC
16734    builtin and then its argument prototype would still apply.  */
16735 #ifdef __cplusplus
16736 extern "C"
16737 #endif
16738 char __cmpdi2 ();
16739 int
16740 main ()
16741 {
16742 return __cmpdi2 ();
16743   ;
16744   return 0;
16745 }
16746 _ACEOF
16747 rm -f conftest.$ac_objext conftest$ac_exeext
16748 if { (ac_try="$ac_link"
16749 case "(($ac_try" in
16750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751   *) ac_try_echo=$ac_try;;
16752 esac
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754   (eval "$ac_link") 2>conftest.er1
16755   ac_status=$?
16756   grep -v '^ *+' conftest.er1 >conftest.err
16757   rm -f conftest.er1
16758   cat conftest.err >&5
16759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760   (exit $ac_status); } &&
16761          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16762   { (case "(($ac_try" in
16763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764   *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767   (eval "$ac_try") 2>&5
16768   ac_status=$?
16769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770   (exit $ac_status); }; } &&
16771          { ac_try='test -s conftest$ac_exeext'
16772   { (case "(($ac_try" in
16773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774   *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777   (eval "$ac_try") 2>&5
16778   ac_status=$?
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); }; }; then
16781   ac_cv_lib_gcc___cmpdi2=yes
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786         ac_cv_lib_gcc___cmpdi2=no
16787 fi
16788
16789 rm -f core conftest.err conftest.$ac_objext \
16790       conftest$ac_exeext conftest.$ac_ext
16791 LIBS=$ac_check_lib_save_LIBS
16792 fi
16793 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
16794 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
16795 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
16796
16797 cat >>confdefs.h <<\_ACEOF
16798 #define HAVE___CMPDI2 1
16799 _ACEOF
16800
16801 fi
16802
16803 fi
16804
16805 if test "$llvm_cv_os_type" = "MingW" ; then
16806   { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
16807 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
16808   cat >conftest.$ac_ext <<_ACEOF
16809
16810   /* confdefs.h.  */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h.  */
16815
16816     #include <windows.h>
16817     #include <imagehlp.h>
16818     extern void foo(PENUMLOADED_MODULES_CALLBACK);
16819     extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
16820
16821
16822 _ACEOF
16823 rm -f conftest.$ac_objext
16824 if { (ac_try="$ac_compile"
16825 case "(($ac_try" in
16826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827   *) ac_try_echo=$ac_try;;
16828 esac
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830   (eval "$ac_compile") 2>conftest.er1
16831   ac_status=$?
16832   grep -v '^ *+' conftest.er1 >conftest.err
16833   rm -f conftest.er1
16834   cat conftest.err >&5
16835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836   (exit $ac_status); } &&
16837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16838   { (case "(($ac_try" in
16839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16840   *) ac_try_echo=$ac_try;;
16841 esac
16842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16843   (eval "$ac_try") 2>&5
16844   ac_status=$?
16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846   (exit $ac_status); }; } &&
16847          { ac_try='test -s conftest.$ac_objext'
16848   { (case "(($ac_try" in
16849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850   *) ac_try_echo=$ac_try;;
16851 esac
16852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16853   (eval "$ac_try") 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); }; }; then
16857
16858   { echo "$as_me:$LINENO: result: yes" >&5
16859 echo "${ECHO_T}yes" >&6; }
16860   llvm_cv_win32_elmcb_pcstr="PCSTR"
16861
16862 else
16863   echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16865
16866
16867   { echo "$as_me:$LINENO: result: no" >&5
16868 echo "${ECHO_T}no" >&6; }
16869   llvm_cv_win32_elmcb_pcstr="PSTR"
16870
16871 fi
16872
16873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16874
16875 cat >>confdefs.h <<_ACEOF
16876 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
16877 _ACEOF
16878
16879 fi
16880
16881 if test "$llvm_cv_platform_type" = "Unix" ; then
16882
16883
16884 for ac_header in stdlib.h unistd.h
16885 do
16886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16888   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16891   echo $ECHO_N "(cached) $ECHO_C" >&6
16892 fi
16893 ac_res=`eval echo '${'$as_ac_Header'}'`
16894                { echo "$as_me:$LINENO: result: $ac_res" >&5
16895 echo "${ECHO_T}$ac_res" >&6; }
16896 else
16897   # Is the header compilable?
16898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16900 cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h.  */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h.  */
16906 $ac_includes_default
16907 #include <$ac_header>
16908 _ACEOF
16909 rm -f conftest.$ac_objext
16910 if { (ac_try="$ac_compile"
16911 case "(($ac_try" in
16912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913   *) ac_try_echo=$ac_try;;
16914 esac
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916   (eval "$ac_compile") 2>conftest.er1
16917   ac_status=$?
16918   grep -v '^ *+' conftest.er1 >conftest.err
16919   rm -f conftest.er1
16920   cat conftest.err >&5
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); } &&
16923          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16924   { (case "(($ac_try" in
16925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16926   *) ac_try_echo=$ac_try;;
16927 esac
16928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16929   (eval "$ac_try") 2>&5
16930   ac_status=$?
16931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932   (exit $ac_status); }; } &&
16933          { ac_try='test -s conftest.$ac_objext'
16934   { (case "(($ac_try" in
16935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936   *) ac_try_echo=$ac_try;;
16937 esac
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939   (eval "$ac_try") 2>&5
16940   ac_status=$?
16941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942   (exit $ac_status); }; }; then
16943   ac_header_compiler=yes
16944 else
16945   echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16947
16948         ac_header_compiler=no
16949 fi
16950
16951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16953 echo "${ECHO_T}$ac_header_compiler" >&6; }
16954
16955 # Is the header present?
16956 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16958 cat >conftest.$ac_ext <<_ACEOF
16959 /* confdefs.h.  */
16960 _ACEOF
16961 cat confdefs.h >>conftest.$ac_ext
16962 cat >>conftest.$ac_ext <<_ACEOF
16963 /* end confdefs.h.  */
16964 #include <$ac_header>
16965 _ACEOF
16966 if { (ac_try="$ac_cpp conftest.$ac_ext"
16967 case "(($ac_try" in
16968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16969   *) ac_try_echo=$ac_try;;
16970 esac
16971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16973   ac_status=$?
16974   grep -v '^ *+' conftest.er1 >conftest.err
16975   rm -f conftest.er1
16976   cat conftest.err >&5
16977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978   (exit $ac_status); } >/dev/null; then
16979   if test -s conftest.err; then
16980     ac_cpp_err=$ac_c_preproc_warn_flag
16981     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16982   else
16983     ac_cpp_err=
16984   fi
16985 else
16986   ac_cpp_err=yes
16987 fi
16988 if test -z "$ac_cpp_err"; then
16989   ac_header_preproc=yes
16990 else
16991   echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16993
16994   ac_header_preproc=no
16995 fi
16996
16997 rm -f conftest.err conftest.$ac_ext
16998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16999 echo "${ECHO_T}$ac_header_preproc" >&6; }
17000
17001 # So?  What about this header?
17002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17003   yes:no: )
17004     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17005 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17007 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17008     ac_header_preproc=yes
17009     ;;
17010   no:yes:* )
17011     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17013     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17014 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17015     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17016 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17017     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17018 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17020 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17021     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17022 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17023     ( cat <<\_ASBOX
17024 ## ------------------------------------ ##
17025 ## Report this to http://llvm.org/bugs/ ##
17026 ## ------------------------------------ ##
17027 _ASBOX
17028      ) | sed "s/^/$as_me: WARNING:     /" >&2
17029     ;;
17030 esac
17031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17034   echo $ECHO_N "(cached) $ECHO_C" >&6
17035 else
17036   eval "$as_ac_Header=\$ac_header_preproc"
17037 fi
17038 ac_res=`eval echo '${'$as_ac_Header'}'`
17039                { echo "$as_me:$LINENO: result: $ac_res" >&5
17040 echo "${ECHO_T}$ac_res" >&6; }
17041
17042 fi
17043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17044   cat >>confdefs.h <<_ACEOF
17045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17046 _ACEOF
17047
17048 fi
17049
17050 done
17051
17052
17053 for ac_func in getpagesize
17054 do
17055 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17056 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17057 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17058 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17059   echo $ECHO_N "(cached) $ECHO_C" >&6
17060 else
17061   cat >conftest.$ac_ext <<_ACEOF
17062 /* confdefs.h.  */
17063 _ACEOF
17064 cat confdefs.h >>conftest.$ac_ext
17065 cat >>conftest.$ac_ext <<_ACEOF
17066 /* end confdefs.h.  */
17067 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17069 #define $ac_func innocuous_$ac_func
17070
17071 /* System header to define __stub macros and hopefully few prototypes,
17072     which can conflict with char $ac_func (); below.
17073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17074     <limits.h> exists even on freestanding compilers.  */
17075
17076 #ifdef __STDC__
17077 # include <limits.h>
17078 #else
17079 # include <assert.h>
17080 #endif
17081
17082 #undef $ac_func
17083
17084 /* Override any GCC internal prototype to avoid an error.
17085    Use char because int might match the return type of a GCC
17086    builtin and then its argument prototype would still apply.  */
17087 #ifdef __cplusplus
17088 extern "C"
17089 #endif
17090 char $ac_func ();
17091 /* The GNU C library defines this for functions which it implements
17092     to always fail with ENOSYS.  Some functions are actually named
17093     something starting with __ and the normal name is an alias.  */
17094 #if defined __stub_$ac_func || defined __stub___$ac_func
17095 choke me
17096 #endif
17097
17098 int
17099 main ()
17100 {
17101 return $ac_func ();
17102   ;
17103   return 0;
17104 }
17105 _ACEOF
17106 rm -f conftest.$ac_objext conftest$ac_exeext
17107 if { (ac_try="$ac_link"
17108 case "(($ac_try" in
17109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110   *) ac_try_echo=$ac_try;;
17111 esac
17112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113   (eval "$ac_link") 2>conftest.er1
17114   ac_status=$?
17115   grep -v '^ *+' conftest.er1 >conftest.err
17116   rm -f conftest.er1
17117   cat conftest.err >&5
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   (exit $ac_status); } &&
17120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17121   { (case "(($ac_try" in
17122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123   *) ac_try_echo=$ac_try;;
17124 esac
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126   (eval "$ac_try") 2>&5
17127   ac_status=$?
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); }; } &&
17130          { ac_try='test -s conftest$ac_exeext'
17131   { (case "(($ac_try" in
17132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17133   *) ac_try_echo=$ac_try;;
17134 esac
17135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17136   (eval "$ac_try") 2>&5
17137   ac_status=$?
17138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17139   (exit $ac_status); }; }; then
17140   eval "$as_ac_var=yes"
17141 else
17142   echo "$as_me: failed program was:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17144
17145         eval "$as_ac_var=no"
17146 fi
17147
17148 rm -f core conftest.err conftest.$ac_objext \
17149       conftest$ac_exeext conftest.$ac_ext
17150 fi
17151 ac_res=`eval echo '${'$as_ac_var'}'`
17152                { echo "$as_me:$LINENO: result: $ac_res" >&5
17153 echo "${ECHO_T}$ac_res" >&6; }
17154 if test `eval echo '${'$as_ac_var'}'` = yes; then
17155   cat >>confdefs.h <<_ACEOF
17156 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17157 _ACEOF
17158
17159 fi
17160 done
17161
17162 { echo "$as_me:$LINENO: checking for working mmap" >&5
17163 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
17164 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
17165   echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167   if test "$cross_compiling" = yes; then
17168   ac_cv_func_mmap_fixed_mapped=no
17169 else
17170   cat >conftest.$ac_ext <<_ACEOF
17171 /* confdefs.h.  */
17172 _ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h.  */
17176 $ac_includes_default
17177 /* malloc might have been renamed as rpl_malloc. */
17178 #undef malloc
17179
17180 /* Thanks to Mike Haertel and Jim Avera for this test.
17181    Here is a matrix of mmap possibilities:
17182         mmap private not fixed
17183         mmap private fixed at somewhere currently unmapped
17184         mmap private fixed at somewhere already mapped
17185         mmap shared not fixed
17186         mmap shared fixed at somewhere currently unmapped
17187         mmap shared fixed at somewhere already mapped
17188    For private mappings, we should verify that changes cannot be read()
17189    back from the file, nor mmap's back from the file at a different
17190    address.  (There have been systems where private was not correctly
17191    implemented like the infamous i386 svr4.0, and systems where the
17192    VM page cache was not coherent with the file system buffer cache
17193    like early versions of FreeBSD and possibly contemporary NetBSD.)
17194    For shared mappings, we should conversely verify that changes get
17195    propagated back to all the places they're supposed to be.
17196
17197    Grep wants private fixed already mapped.
17198    The main things grep needs to know about mmap are:
17199    * does it exist and is it safe to write into the mmap'd area
17200    * how to use it (BSD variants)  */
17201
17202 #include <fcntl.h>
17203 #include <sys/mman.h>
17204
17205 #if !STDC_HEADERS && !HAVE_STDLIB_H
17206 char *malloc ();
17207 #endif
17208
17209 /* This mess was copied from the GNU getpagesize.h.  */
17210 #if !HAVE_GETPAGESIZE
17211 /* Assume that all systems that can run configure have sys/param.h.  */
17212 # if !HAVE_SYS_PARAM_H
17213 #  define HAVE_SYS_PARAM_H 1
17214 # endif
17215
17216 # ifdef _SC_PAGESIZE
17217 #  define getpagesize() sysconf(_SC_PAGESIZE)
17218 # else /* no _SC_PAGESIZE */
17219 #  if HAVE_SYS_PARAM_H
17220 #   include <sys/param.h>
17221 #   ifdef EXEC_PAGESIZE
17222 #    define getpagesize() EXEC_PAGESIZE
17223 #   else /* no EXEC_PAGESIZE */
17224 #    ifdef NBPG
17225 #     define getpagesize() NBPG * CLSIZE
17226 #     ifndef CLSIZE
17227 #      define CLSIZE 1
17228 #     endif /* no CLSIZE */
17229 #    else /* no NBPG */
17230 #     ifdef NBPC
17231 #      define getpagesize() NBPC
17232 #     else /* no NBPC */
17233 #      ifdef PAGESIZE
17234 #       define getpagesize() PAGESIZE
17235 #      endif /* PAGESIZE */
17236 #     endif /* no NBPC */
17237 #    endif /* no NBPG */
17238 #   endif /* no EXEC_PAGESIZE */
17239 #  else /* no HAVE_SYS_PARAM_H */
17240 #   define getpagesize() 8192   /* punt totally */
17241 #  endif /* no HAVE_SYS_PARAM_H */
17242 # endif /* no _SC_PAGESIZE */
17243
17244 #endif /* no HAVE_GETPAGESIZE */
17245
17246 int
17247 main ()
17248 {
17249   char *data, *data2, *data3;
17250   int i, pagesize;
17251   int fd;
17252
17253   pagesize = getpagesize ();
17254
17255   /* First, make a file with some known garbage in it. */
17256   data = (char *) malloc (pagesize);
17257   if (!data)
17258     return 1;
17259   for (i = 0; i < pagesize; ++i)
17260     *(data + i) = rand ();
17261   umask (0);
17262   fd = creat ("conftest.mmap", 0600);
17263   if (fd < 0)
17264     return 1;
17265   if (write (fd, data, pagesize) != pagesize)
17266     return 1;
17267   close (fd);
17268
17269   /* Next, try to mmap the file at a fixed address which already has
17270      something else allocated at it.  If we can, also make sure that
17271      we see the same garbage.  */
17272   fd = open ("conftest.mmap", O_RDWR);
17273   if (fd < 0)
17274     return 1;
17275   data2 = (char *) malloc (2 * pagesize);
17276   if (!data2)
17277     return 1;
17278   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
17279   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
17280                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
17281     return 1;
17282   for (i = 0; i < pagesize; ++i)
17283     if (*(data + i) != *(data2 + i))
17284       return 1;
17285
17286   /* Finally, make sure that changes to the mapped area do not
17287      percolate back to the file as seen by read().  (This is a bug on
17288      some variants of i386 svr4.0.)  */
17289   for (i = 0; i < pagesize; ++i)
17290     *(data2 + i) = *(data2 + i) + 1;
17291   data3 = (char *) malloc (pagesize);
17292   if (!data3)
17293     return 1;
17294   if (read (fd, data3, pagesize) != pagesize)
17295     return 1;
17296   for (i = 0; i < pagesize; ++i)
17297     if (*(data + i) != *(data3 + i))
17298       return 1;
17299   close (fd);
17300   return 0;
17301 }
17302 _ACEOF
17303 rm -f conftest$ac_exeext
17304 if { (ac_try="$ac_link"
17305 case "(($ac_try" in
17306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17307   *) ac_try_echo=$ac_try;;
17308 esac
17309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17310   (eval "$ac_link") 2>&5
17311   ac_status=$?
17312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17314   { (case "(($ac_try" in
17315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316   *) ac_try_echo=$ac_try;;
17317 esac
17318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319   (eval "$ac_try") 2>&5
17320   ac_status=$?
17321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322   (exit $ac_status); }; }; then
17323   ac_cv_func_mmap_fixed_mapped=yes
17324 else
17325   echo "$as_me: program exited with status $ac_status" >&5
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17328
17329 ( exit $ac_status )
17330 ac_cv_func_mmap_fixed_mapped=no
17331 fi
17332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17333 fi
17334
17335
17336 fi
17337 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
17338 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
17339 if test $ac_cv_func_mmap_fixed_mapped = yes; then
17340
17341 cat >>confdefs.h <<\_ACEOF
17342 #define HAVE_MMAP 1
17343 _ACEOF
17344
17345 fi
17346 rm -f conftest.mmap
17347
17348   { echo "$as_me:$LINENO: checking for mmap of files" >&5
17349 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
17350 if test "${ac_cv_func_mmap_file+set}" = set; then
17351   echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353    ac_ext=c
17354 ac_cpp='$CPP $CPPFLAGS'
17355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17358
17359   if test "$cross_compiling" = yes; then
17360   ac_cv_func_mmap_file=no
17361 else
17362   cat >conftest.$ac_ext <<_ACEOF
17363
17364     /* confdefs.h.  */
17365 _ACEOF
17366 cat confdefs.h >>conftest.$ac_ext
17367 cat >>conftest.$ac_ext <<_ACEOF
17368 /* end confdefs.h.  */
17369
17370 #include <sys/types.h>
17371 #include <sys/mman.h>
17372 #include <fcntl.h>
17373
17374 int
17375 main ()
17376 {
17377
17378   int fd;
17379   fd = creat ("foo",0777);
17380   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
17381   unlink ("foo");
17382   return (fd != (int) MAP_FAILED);
17383   ;
17384   return 0;
17385 }
17386 _ACEOF
17387 rm -f conftest$ac_exeext
17388 if { (ac_try="$ac_link"
17389 case "(($ac_try" in
17390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17391   *) ac_try_echo=$ac_try;;
17392 esac
17393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17394   (eval "$ac_link") 2>&5
17395   ac_status=$?
17396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17398   { (case "(($ac_try" in
17399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17400   *) ac_try_echo=$ac_try;;
17401 esac
17402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17403   (eval "$ac_try") 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); }; }; then
17407   ac_cv_func_mmap_file=yes
17408 else
17409   echo "$as_me: program exited with status $ac_status" >&5
17410 echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17412
17413 ( exit $ac_status )
17414 ac_cv_func_mmap_file=no
17415 fi
17416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17417 fi
17418
17419
17420   ac_ext=c
17421 ac_cpp='$CPP $CPPFLAGS'
17422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17425
17426
17427 fi
17428 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
17429 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
17430 if test "$ac_cv_func_mmap_file" = yes; then
17431
17432 cat >>confdefs.h <<\_ACEOF
17433 #define HAVE_MMAP_FILE
17434 _ACEOF
17435
17436    MMAP_FILE=yes
17437
17438 fi
17439
17440   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
17441 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
17442 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
17443   echo $ECHO_N "(cached) $ECHO_C" >&6
17444 else
17445   if test "$llvm_cv_os_type" = "Interix" ; then
17446    ac_cv_need_dev_zero_for_mmap=yes
17447  else
17448    ac_cv_need_dev_zero_for_mmap=no
17449  fi
17450
17451 fi
17452 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
17453 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
17454 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
17455
17456 cat >>confdefs.h <<\_ACEOF
17457 #define NEED_DEV_ZERO_FOR_MMAP 1
17458 _ACEOF
17459
17460 fi
17461
17462   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
17463   then
17464     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
17465 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
17466   fi
17467   if test "$ac_cv_func_mmap_file" = "no"
17468   then
17469     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
17470 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
17471   fi
17472 fi
17473
17474 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
17475 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
17476 ac_ext=cpp
17477 ac_cpp='$CXXCPP $CPPFLAGS'
17478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17481
17482 cat >conftest.$ac_ext <<_ACEOF
17483
17484   /* confdefs.h.  */
17485 _ACEOF
17486 cat confdefs.h >>conftest.$ac_ext
17487 cat >>conftest.$ac_ext <<_ACEOF
17488 /* end confdefs.h.  */
17489
17490     int main() {
17491       volatile unsigned long val = 1;
17492       __sync_synchronize();
17493       __sync_val_compare_and_swap(&val, 1, 0);
17494       __sync_add_and_fetch(&val, 1);
17495       __sync_sub_and_fetch(&val, 1);
17496       return 0;
17497     }
17498
17499
17500 _ACEOF
17501 rm -f conftest.$ac_objext conftest$ac_exeext
17502 if { (ac_try="$ac_link"
17503 case "(($ac_try" in
17504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505   *) ac_try_echo=$ac_try;;
17506 esac
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508   (eval "$ac_link") 2>conftest.er1
17509   ac_status=$?
17510   grep -v '^ *+' conftest.er1 >conftest.err
17511   rm -f conftest.er1
17512   cat conftest.err >&5
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); } &&
17515          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17516   { (case "(($ac_try" in
17517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17518   *) ac_try_echo=$ac_try;;
17519 esac
17520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17521   (eval "$ac_try") 2>&5
17522   ac_status=$?
17523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524   (exit $ac_status); }; } &&
17525          { ac_try='test -s conftest$ac_exeext'
17526   { (case "(($ac_try" in
17527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528   *) ac_try_echo=$ac_try;;
17529 esac
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531   (eval "$ac_try") 2>&5
17532   ac_status=$?
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); }; }; then
17535
17536   { echo "$as_me:$LINENO: result: yes" >&5
17537 echo "${ECHO_T}yes" >&6; }
17538
17539 cat >>confdefs.h <<\_ACEOF
17540 #define LLVM_HAS_ATOMICS 1
17541 _ACEOF
17542
17543
17544 else
17545   echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17547
17548
17549   { echo "$as_me:$LINENO: result: no" >&5
17550 echo "${ECHO_T}no" >&6; }
17551
17552 cat >>confdefs.h <<\_ACEOF
17553 #define LLVM_HAS_ATOMICS 0
17554 _ACEOF
17555
17556   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
17557 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
17558
17559 fi
17560
17561 rm -f core conftest.err conftest.$ac_objext \
17562       conftest$ac_exeext conftest.$ac_ext
17563 ac_ext=c
17564 ac_cpp='$CPP $CPPFLAGS'
17565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17568
17569
17570
17571 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
17572   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
17573 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
17574 if test "${llvm_cv_linux_mixed+set}" = set; then
17575   echo $ECHO_N "(cached) $ECHO_C" >&6
17576 else
17577    ac_ext=c
17578 ac_cpp='$CPP $CPPFLAGS'
17579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17582
17583   cat >conftest.$ac_ext <<_ACEOF
17584 /* confdefs.h.  */
17585 _ACEOF
17586 cat confdefs.h >>conftest.$ac_ext
17587 cat >>conftest.$ac_ext <<_ACEOF
17588 /* end confdefs.h.  */
17589 #ifndef __x86_64__
17590        error: Not x86-64 even if uname says so!
17591       #endif
17592
17593 int
17594 main ()
17595 {
17596
17597   ;
17598   return 0;
17599 }
17600 _ACEOF
17601 rm -f conftest.$ac_objext
17602 if { (ac_try="$ac_compile"
17603 case "(($ac_try" in
17604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605   *) ac_try_echo=$ac_try;;
17606 esac
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608   (eval "$ac_compile") 2>conftest.er1
17609   ac_status=$?
17610   grep -v '^ *+' conftest.er1 >conftest.err
17611   rm -f conftest.er1
17612   cat conftest.err >&5
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); } &&
17615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17616   { (case "(($ac_try" in
17617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618   *) ac_try_echo=$ac_try;;
17619 esac
17620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17621   (eval "$ac_try") 2>&5
17622   ac_status=$?
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); }; } &&
17625          { ac_try='test -s conftest.$ac_objext'
17626   { (case "(($ac_try" in
17627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628   *) ac_try_echo=$ac_try;;
17629 esac
17630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17631   (eval "$ac_try") 2>&5
17632   ac_status=$?
17633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634   (exit $ac_status); }; }; then
17635   llvm_cv_linux_mixed=no
17636 else
17637   echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17639
17640         llvm_cv_linux_mixed=yes
17641 fi
17642
17643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17644   ac_ext=c
17645 ac_cpp='$CPP $CPPFLAGS'
17646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17649
17650
17651 fi
17652 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
17653 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
17654
17655   if test "$llvm_cv_linux_mixed" = "yes"; then
17656     llvm_cv_target_arch="x86"
17657     ARCH="x86"
17658   fi
17659 fi
17660
17661
17662 for ac_func in __dso_handle
17663 do
17664 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17665 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17666 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17667 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17668   echo $ECHO_N "(cached) $ECHO_C" >&6
17669 else
17670   cat >conftest.$ac_ext <<_ACEOF
17671 /* confdefs.h.  */
17672 _ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h.  */
17676 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17677    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17678 #define $ac_func innocuous_$ac_func
17679
17680 /* System header to define __stub macros and hopefully few prototypes,
17681     which can conflict with char $ac_func (); below.
17682     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17683     <limits.h> exists even on freestanding compilers.  */
17684
17685 #ifdef __STDC__
17686 # include <limits.h>
17687 #else
17688 # include <assert.h>
17689 #endif
17690
17691 #undef $ac_func
17692
17693 /* Override any GCC internal prototype to avoid an error.
17694    Use char because int might match the return type of a GCC
17695    builtin and then its argument prototype would still apply.  */
17696 #ifdef __cplusplus
17697 extern "C"
17698 #endif
17699 char $ac_func ();
17700 /* The GNU C library defines this for functions which it implements
17701     to always fail with ENOSYS.  Some functions are actually named
17702     something starting with __ and the normal name is an alias.  */
17703 #if defined __stub_$ac_func || defined __stub___$ac_func
17704 choke me
17705 #endif
17706
17707 int
17708 main ()
17709 {
17710 return $ac_func ();
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 rm -f conftest.$ac_objext conftest$ac_exeext
17716 if { (ac_try="$ac_link"
17717 case "(($ac_try" in
17718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719   *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722   (eval "$ac_link") 2>conftest.er1
17723   ac_status=$?
17724   grep -v '^ *+' conftest.er1 >conftest.err
17725   rm -f conftest.er1
17726   cat conftest.err >&5
17727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728   (exit $ac_status); } &&
17729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17730   { (case "(($ac_try" in
17731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732   *) ac_try_echo=$ac_try;;
17733 esac
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735   (eval "$ac_try") 2>&5
17736   ac_status=$?
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); }; } &&
17739          { ac_try='test -s conftest$ac_exeext'
17740   { (case "(($ac_try" in
17741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742   *) ac_try_echo=$ac_try;;
17743 esac
17744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17745   (eval "$ac_try") 2>&5
17746   ac_status=$?
17747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748   (exit $ac_status); }; }; then
17749   eval "$as_ac_var=yes"
17750 else
17751   echo "$as_me: failed program was:" >&5
17752 sed 's/^/| /' conftest.$ac_ext >&5
17753
17754         eval "$as_ac_var=no"
17755 fi
17756
17757 rm -f core conftest.err conftest.$ac_objext \
17758       conftest$ac_exeext conftest.$ac_ext
17759 fi
17760 ac_res=`eval echo '${'$as_ac_var'}'`
17761                { echo "$as_me:$LINENO: result: $ac_res" >&5
17762 echo "${ECHO_T}$ac_res" >&6; }
17763 if test `eval echo '${'$as_ac_var'}'` = yes; then
17764   cat >>confdefs.h <<_ACEOF
17765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17766 _ACEOF
17767
17768 fi
17769 done
17770
17771
17772 SHLIBEXT=$llvm_shlib_ext
17773
17774
17775 if test "${prefix}" = "NONE" ; then
17776   prefix="/usr/local"
17777 fi
17778 eval LLVM_PREFIX="${prefix}";
17779 eval LLVM_BINDIR="${prefix}/bin";
17780 eval LLVM_DATADIR="${prefix}/share/llvm";
17781 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
17782 eval LLVM_ETCDIR="${prefix}/etc/llvm";
17783 eval LLVM_INCLUDEDIR="${prefix}/include";
17784 eval LLVM_INFODIR="${prefix}/info";
17785 eval LLVM_MANDIR="${prefix}/man";
17786 LLVM_CONFIGTIME=`date`
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797 if test "${ENABLE_TIMESTAMPS}" = "0"; then
17798   LLVM_CONFIGTIME="(timestamp not enabled)"
17799 fi
17800
17801
17802 cat >>confdefs.h <<_ACEOF
17803 #define LLVM_PREFIX "$LLVM_PREFIX"
17804 _ACEOF
17805
17806
17807 cat >>confdefs.h <<_ACEOF
17808 #define LLVM_BINDIR "$LLVM_BINDIR"
17809 _ACEOF
17810
17811
17812 cat >>confdefs.h <<_ACEOF
17813 #define LLVM_DATADIR "$LLVM_DATADIR"
17814 _ACEOF
17815
17816
17817 cat >>confdefs.h <<_ACEOF
17818 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
17819 _ACEOF
17820
17821
17822 cat >>confdefs.h <<_ACEOF
17823 #define LLVM_ETCDIR "$LLVM_ETCDIR"
17824 _ACEOF
17825
17826
17827 cat >>confdefs.h <<_ACEOF
17828 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
17829 _ACEOF
17830
17831
17832 cat >>confdefs.h <<_ACEOF
17833 #define LLVM_INFODIR "$LLVM_INFODIR"
17834 _ACEOF
17835
17836
17837 cat >>confdefs.h <<_ACEOF
17838 #define LLVM_MANDIR "$LLVM_MANDIR"
17839 _ACEOF
17840
17841
17842 cat >>confdefs.h <<_ACEOF
17843 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
17844 _ACEOF
17845
17846
17847 cat >>confdefs.h <<_ACEOF
17848 #define LLVM_HOST_TRIPLE "$host"
17849 _ACEOF
17850
17851
17852 cat >>confdefs.h <<_ACEOF
17853 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
17854 _ACEOF
17855
17856
17857 if test "$BINDINGS_TO_BUILD" = auto ; then
17858   BINDINGS_TO_BUILD=""
17859   if test "x$OCAMLFIND" != x ; then
17860     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
17861   fi
17862   if test "x$GO" != x ; then
17863     if $GO run ${srcdir}/bindings/go/conftest.go ; then
17864       BINDINGS_TO_BUILD="go $BINDINGS_TO_BUILD"
17865     fi
17866   fi
17867 fi
17868 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
17869
17870
17871 binding_prereqs_failed=0
17872 for a_binding in $BINDINGS_TO_BUILD ; do
17873   case "$a_binding" in
17874   ocaml)
17875     if test "x$OCAMLFIND" = x ; then
17876       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&5
17877 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlfind not found. Try configure OCAMLFIND=/path/to/ocamlfind" >&2;}
17878       binding_prereqs_failed=1
17879     fi
17880
17881     if $OCAMLFIND opt -version >/dev/null 2>/dev/null ; then
17882       HAVE_OCAMLOPT=1
17883     else
17884       HAVE_OCAMLOPT=0
17885     fi
17886
17887
17888     if ! $OCAMLFIND query ctypes >/dev/null 2>/dev/null; then
17889       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&5
17890 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ctypes is not installed" >&2;}
17891       binding_prereqs_failed=1
17892     fi
17893
17894     if $OCAMLFIND query oUnit >/dev/null 2>/dev/null; then
17895       HAVE_OCAML_OUNIT=1
17896     else
17897       HAVE_OCAML_OUNIT=0
17898       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&5
17899 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but OUnit 2 is not installed. Tests will not run" >&2;}
17900           fi
17901
17902
17903     if test "x$with_ocaml_libdir" != xauto ; then
17904       OCAML_LIBDIR=$with_ocaml_libdir
17905
17906     else
17907       ocaml_stdlib="`"$OCAMLFIND" ocamlc -where`"
17908       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
17909       then
17910         # ocaml stdlib is beneath our prefix; use stdlib
17911         OCAML_LIBDIR=$ocaml_stdlib
17912
17913       else
17914         # ocaml stdlib is outside our prefix; use libdir/ocaml
17915         OCAML_LIBDIR=${prefix}/lib/ocaml
17916
17917       fi
17918     fi
17919     ;;
17920   go)
17921     if test "x$GO" = x ; then
17922       { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&5
17923 echo "$as_me: WARNING: --enable-bindings=go specified, but go not found. Try configure GO=/path/to/go" >&2;}
17924       binding_prereqs_failed=1
17925     else
17926       if $GO run ${srcdir}/bindings/go/conftest.go ; then
17927         :
17928       else
17929         { echo "$as_me:$LINENO: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&5
17930 echo "$as_me: WARNING: --enable-bindings=go specified, but need at least Go 1.2. Try configure GO=/path/to/go" >&2;}
17931         binding_prereqs_failed=1
17932       fi
17933     fi
17934     ;;
17935   esac
17936 done
17937 if test "$binding_prereqs_failed" = 1 ; then
17938   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
17939 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
17940    { (exit 1); exit 1; }; }
17941 fi
17942
17943 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
17944 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
17945 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
17946   echo $ECHO_N "(cached) $ECHO_C" >&6
17947 else
17948    ac_ext=cpp
17949 ac_cpp='$CXXCPP $CPPFLAGS'
17950 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17951 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17952 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17953
17954   oldcxxflags="$CXXFLAGS"
17955   CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
17956   cat >conftest.$ac_ext <<_ACEOF
17957 /* confdefs.h.  */
17958 _ACEOF
17959 cat confdefs.h >>conftest.$ac_ext
17960 cat >>conftest.$ac_ext <<_ACEOF
17961 /* end confdefs.h.  */
17962 template <typename T> struct X { void __attribute__((noinline)) f() {} };
17963 int
17964 main ()
17965 {
17966 X<int>().f();
17967   ;
17968   return 0;
17969 }
17970 _ACEOF
17971 rm -f conftest.$ac_objext
17972 if { (ac_try="$ac_compile"
17973 case "(($ac_try" in
17974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975   *) ac_try_echo=$ac_try;;
17976 esac
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978   (eval "$ac_compile") 2>conftest.er1
17979   ac_status=$?
17980   grep -v '^ *+' conftest.er1 >conftest.err
17981   rm -f conftest.er1
17982   cat conftest.err >&5
17983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984   (exit $ac_status); } &&
17985          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17986   { (case "(($ac_try" in
17987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988   *) ac_try_echo=$ac_try;;
17989 esac
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991   (eval "$ac_try") 2>&5
17992   ac_status=$?
17993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994   (exit $ac_status); }; } &&
17995          { ac_try='test -s conftest.$ac_objext'
17996   { (case "(($ac_try" in
17997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998   *) ac_try_echo=$ac_try;;
17999 esac
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001   (eval "$ac_try") 2>&5
18002   ac_status=$?
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); }; }; then
18005   llvm_cv_cxx_visibility_inlines_hidden=yes
18006 else
18007   echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18009
18010         llvm_cv_cxx_visibility_inlines_hidden=no
18011 fi
18012
18013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18014   CXXFLAGS="$oldcxxflags"
18015   ac_ext=c
18016 ac_cpp='$CPP $CPPFLAGS'
18017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18020
18021
18022 fi
18023 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
18024 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
18025 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
18026   ENABLE_VISIBILITY_INLINES_HIDDEN=1
18027
18028 else
18029   ENABLE_VISIBILITY_INLINES_HIDDEN=0
18030
18031 fi
18032
18033
18034 if test "$llvm_cv_link_use_r" = "yes" ; then
18035   RPATH="-Wl,-R"
18036 else
18037   RPATH="-Wl,-rpath"
18038 fi
18039
18040
18041 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
18042   RDYNAMIC="-rdynamic"
18043 else
18044   RDYNAMIC=""
18045 fi
18046
18047
18048
18049 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
18050
18051
18052
18053
18054
18055
18056 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
18057
18058 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
18059
18060 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
18061
18062 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
18063
18064 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
18065
18066
18067 ac_config_files="$ac_config_files Makefile.config"
18068
18069
18070 ac_config_files="$ac_config_files llvm.spec"
18071
18072
18073 ac_config_files="$ac_config_files docs/doxygen.cfg"
18074
18075
18076 if test "${clang_src_root}" = ""; then
18077   clang_src_root="$srcdir/tools/clang"
18078 fi
18079 if test -f ${clang_src_root}/README.txt; then
18080
18081 cat >>confdefs.h <<_ACEOF
18082 #define CLANG_LIBDIR_SUFFIX ""
18083 _ACEOF
18084
18085
18086     configh="include/clang/Config/config.h"
18087   doxy="docs/doxygen.cfg"
18088   ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
18089
18090   ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
18091
18092 fi
18093
18094 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
18095
18096
18097 test "x$program_prefix" = "xNONE" && program_prefix=""
18098
18099
18100
18101 ac_config_commands="$ac_config_commands setup"
18102
18103 ac_config_commands="$ac_config_commands Makefile"
18104
18105
18106 ac_config_commands="$ac_config_commands Makefile.common"
18107
18108
18109 ac_config_commands="$ac_config_commands examples/Makefile"
18110
18111
18112 ac_config_commands="$ac_config_commands lib/Makefile"
18113
18114
18115 ac_config_commands="$ac_config_commands test/Makefile"
18116
18117
18118 ac_config_commands="$ac_config_commands test/Makefile.tests"
18119
18120
18121 ac_config_commands="$ac_config_commands unittests/Makefile"
18122
18123
18124 ac_config_commands="$ac_config_commands tools/Makefile"
18125
18126
18127 ac_config_commands="$ac_config_commands utils/Makefile"
18128
18129
18130 ac_config_commands="$ac_config_commands projects/Makefile"
18131
18132
18133 ac_config_commands="$ac_config_commands bindings/Makefile"
18134
18135
18136 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
18137
18138
18139
18140 cat >confcache <<\_ACEOF
18141 # This file is a shell script that caches the results of configure
18142 # tests run on this system so they can be shared between configure
18143 # scripts and configure runs, see configure's option --config-cache.
18144 # It is not useful on other systems.  If it contains results you don't
18145 # want to keep, you may remove or edit it.
18146 #
18147 # config.status only pays attention to the cache file if you give it
18148 # the --recheck option to rerun configure.
18149 #
18150 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18151 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18152 # following values.
18153
18154 _ACEOF
18155
18156 # The following way of writing the cache mishandles newlines in values,
18157 # but we know of no workaround that is simple, portable, and efficient.
18158 # So, we kill variables containing newlines.
18159 # Ultrix sh set writes to stderr and can't be redirected directly,
18160 # and sets the high bit in the cache file unless we assign to the vars.
18161 (
18162   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18163     eval ac_val=\$$ac_var
18164     case $ac_val in #(
18165     *${as_nl}*)
18166       case $ac_var in #(
18167       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
18168 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
18169       esac
18170       case $ac_var in #(
18171       _ | IFS | as_nl) ;; #(
18172       *) $as_unset $ac_var ;;
18173       esac ;;
18174     esac
18175   done
18176
18177   (set) 2>&1 |
18178     case $as_nl`(ac_space=' '; set) 2>&1` in #(
18179     *${as_nl}ac_space=\ *)
18180       # `set' does not quote correctly, so add quotes (double-quote
18181       # substitution turns \\\\ into \\, and sed turns \\ into \).
18182       sed -n \
18183         "s/'/'\\\\''/g;
18184           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18185       ;; #(
18186     *)
18187       # `set' quotes correctly as required by POSIX, so do not add quotes.
18188       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18189       ;;
18190     esac |
18191     sort
18192 ) |
18193   sed '
18194      /^ac_cv_env_/b end
18195      t clear
18196      :clear
18197      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18198      t end
18199      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18200      :end' >>confcache
18201 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18202   if test -w "$cache_file"; then
18203     test "x$cache_file" != "x/dev/null" &&
18204       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
18205 echo "$as_me: updating cache $cache_file" >&6;}
18206     cat confcache >$cache_file
18207   else
18208     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18209 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18210   fi
18211 fi
18212 rm -f confcache
18213
18214 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18215 # Let make expand exec_prefix.
18216 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18217
18218 DEFS=-DHAVE_CONFIG_H
18219
18220 ac_libobjs=
18221 ac_ltlibobjs=
18222 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18223   # 1. Remove the extension, and $U if already installed.
18224   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18225   ac_i=`echo "$ac_i" | sed "$ac_script"`
18226   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
18227   #    will be set to the directory where LIBOBJS objects are built.
18228   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18229   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18230 done
18231 LIBOBJS=$ac_libobjs
18232
18233 LTLIBOBJS=$ac_ltlibobjs
18234
18235
18236
18237 : ${CONFIG_STATUS=./config.status}
18238 ac_clean_files_save=$ac_clean_files
18239 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18240 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18241 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18242 cat >$CONFIG_STATUS <<_ACEOF
18243 #! $SHELL
18244 # Generated by $as_me.
18245 # Run this file to recreate the current configuration.
18246 # Compiler output produced by configure, useful for debugging
18247 # configure, is in config.log if it exists.
18248
18249 debug=false
18250 ac_cs_recheck=false
18251 ac_cs_silent=false
18252 SHELL=\${CONFIG_SHELL-$SHELL}
18253 _ACEOF
18254
18255 cat >>$CONFIG_STATUS <<\_ACEOF
18256 ## --------------------- ##
18257 ## M4sh Initialization.  ##
18258 ## --------------------- ##
18259
18260 # Be Bourne compatible
18261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18262   emulate sh
18263   NULLCMD=:
18264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18265   # is contrary to our usage.  Disable this feature.
18266   alias -g '${1+"$@"}'='"$@"'
18267   setopt NO_GLOB_SUBST
18268 else
18269   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
18270 fi
18271 BIN_SH=xpg4; export BIN_SH # for Tru64
18272 DUALCASE=1; export DUALCASE # for MKS sh
18273
18274
18275 # PATH needs CR
18276 # Avoid depending upon Character Ranges.
18277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18280 as_cr_digits='0123456789'
18281 as_cr_alnum=$as_cr_Letters$as_cr_digits
18282
18283 # The user is always right.
18284 if test "${PATH_SEPARATOR+set}" != set; then
18285   echo "#! /bin/sh" >conf$$.sh
18286   echo  "exit 0"   >>conf$$.sh
18287   chmod +x conf$$.sh
18288   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18289     PATH_SEPARATOR=';'
18290   else
18291     PATH_SEPARATOR=:
18292   fi
18293   rm -f conf$$.sh
18294 fi
18295
18296 # Support unset when possible.
18297 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18298   as_unset=unset
18299 else
18300   as_unset=false
18301 fi
18302
18303
18304 # IFS
18305 # We need space, tab and new line, in precisely that order.  Quoting is
18306 # there to prevent editors from complaining about space-tab.
18307 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18308 # splitting by setting IFS to empty value.)
18309 as_nl='
18310 '
18311 IFS=" ""        $as_nl"
18312
18313 # Find who we are.  Look in the path if we contain no directory separator.
18314 case $0 in
18315   *[\\/]* ) as_myself=$0 ;;
18316   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18317 for as_dir in $PATH
18318 do
18319   IFS=$as_save_IFS
18320   test -z "$as_dir" && as_dir=.
18321   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18322 done
18323 IFS=$as_save_IFS
18324
18325      ;;
18326 esac
18327 # We did not find ourselves, most probably we were run as `sh COMMAND'
18328 # in which case we are not to be found in the path.
18329 if test "x$as_myself" = x; then
18330   as_myself=$0
18331 fi
18332 if test ! -f "$as_myself"; then
18333   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18334   { (exit 1); exit 1; }
18335 fi
18336
18337 # Work around bugs in pre-3.0 UWIN ksh.
18338 for as_var in ENV MAIL MAILPATH
18339 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18340 done
18341 PS1='$ '
18342 PS2='> '
18343 PS4='+ '
18344
18345 # NLS nuisances.
18346 for as_var in \
18347   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18348   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18349   LC_TELEPHONE LC_TIME
18350 do
18351   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18352     eval $as_var=C; export $as_var
18353   else
18354     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18355   fi
18356 done
18357
18358 # Required to use basename.
18359 if expr a : '\(a\)' >/dev/null 2>&1 &&
18360    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18361   as_expr=expr
18362 else
18363   as_expr=false
18364 fi
18365
18366 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18367   as_basename=basename
18368 else
18369   as_basename=false
18370 fi
18371
18372
18373 # Name of the executable.
18374 as_me=`$as_basename -- "$0" ||
18375 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18376          X"$0" : 'X\(//\)$' \| \
18377          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18378 echo X/"$0" |
18379     sed '/^.*\/\([^/][^/]*\)\/*$/{
18380             s//\1/
18381             q
18382           }
18383           /^X\/\(\/\/\)$/{
18384             s//\1/
18385             q
18386           }
18387           /^X\/\(\/\).*/{
18388             s//\1/
18389             q
18390           }
18391           s/.*/./; q'`
18392
18393 # CDPATH.
18394 $as_unset CDPATH
18395
18396
18397
18398   as_lineno_1=$LINENO
18399   as_lineno_2=$LINENO
18400   test "x$as_lineno_1" != "x$as_lineno_2" &&
18401   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18402
18403   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18404   # uniformly replaced by the line number.  The first 'sed' inserts a
18405   # line-number line after each line using $LINENO; the second 'sed'
18406   # does the real work.  The second script uses 'N' to pair each
18407   # line-number line with the line containing $LINENO, and appends
18408   # trailing '-' during substitution so that $LINENO is not a special
18409   # case at line end.
18410   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18411   # scripts with optimization help from Paolo Bonzini.  Blame Lee
18412   # E. McMahon (1931-1989) for sed's syntax.  :-)
18413   sed -n '
18414     p
18415     /[$]LINENO/=
18416   ' <$as_myself |
18417     sed '
18418       s/[$]LINENO.*/&-/
18419       t lineno
18420       b
18421       :lineno
18422       N
18423       :loop
18424       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18425       t loop
18426       s/-\n.*//
18427     ' >$as_me.lineno &&
18428   chmod +x "$as_me.lineno" ||
18429     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18430    { (exit 1); exit 1; }; }
18431
18432   # Don't try to exec as it changes $[0], causing all sort of problems
18433   # (the dirname of $[0] is not the place where we might find the
18434   # original and so on.  Autoconf is especially sensitive to this).
18435   . "./$as_me.lineno"
18436   # Exit status is that of the last command.
18437   exit
18438 }
18439
18440
18441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18442   as_dirname=dirname
18443 else
18444   as_dirname=false
18445 fi
18446
18447 ECHO_C= ECHO_N= ECHO_T=
18448 case `echo -n x` in
18449 -n*)
18450   case `echo 'x\c'` in
18451   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18452   *)   ECHO_C='\c';;
18453   esac;;
18454 *)
18455   ECHO_N='-n';;
18456 esac
18457
18458 if expr a : '\(a\)' >/dev/null 2>&1 &&
18459    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18460   as_expr=expr
18461 else
18462   as_expr=false
18463 fi
18464
18465 rm -f conf$$ conf$$.exe conf$$.file
18466 if test -d conf$$.dir; then
18467   rm -f conf$$.dir/conf$$.file
18468 else
18469   rm -f conf$$.dir
18470   mkdir conf$$.dir
18471 fi
18472 echo >conf$$.file
18473 if ln -s conf$$.file conf$$ 2>/dev/null; then
18474   as_ln_s='ln -s'
18475   # ... but there are two gotchas:
18476   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18477   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18478   # In both cases, we have to default to `cp -p'.
18479   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18480     as_ln_s='cp -p'
18481 elif ln conf$$.file conf$$ 2>/dev/null; then
18482   as_ln_s=ln
18483 else
18484   as_ln_s='cp -p'
18485 fi
18486 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18487 rmdir conf$$.dir 2>/dev/null
18488
18489 if mkdir -p . 2>/dev/null; then
18490   as_mkdir_p=:
18491 else
18492   test -d ./-p && rmdir ./-p
18493   as_mkdir_p=false
18494 fi
18495
18496 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
18497 # systems may use methods other than mode bits to determine executability.
18498 cat >conf$$.file <<_ASEOF
18499 #! /bin/sh
18500 exit 0
18501 _ASEOF
18502 chmod +x conf$$.file
18503 if test -x conf$$.file >/dev/null 2>&1; then
18504   as_executable_p="test -x"
18505 else
18506   as_executable_p=:
18507 fi
18508 rm -f conf$$.file
18509
18510 # Sed expression to map a string onto a valid CPP name.
18511 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18512
18513 # Sed expression to map a string onto a valid variable name.
18514 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18515
18516
18517 exec 6>&1
18518
18519 # Save the log message, to keep $[0] and so on meaningful, and to
18520 # report actual input values of CONFIG_FILES etc. instead of their
18521 # values after options handling.
18522 ac_log="
18523 This file was extended by LLVM $as_me 3.7.0svn, which was
18524 generated by GNU Autoconf 2.60.  Invocation command line was
18525
18526   CONFIG_FILES    = $CONFIG_FILES
18527   CONFIG_HEADERS  = $CONFIG_HEADERS
18528   CONFIG_LINKS    = $CONFIG_LINKS
18529   CONFIG_COMMANDS = $CONFIG_COMMANDS
18530   $ $0 $@
18531
18532 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18533 "
18534
18535 _ACEOF
18536
18537 cat >>$CONFIG_STATUS <<_ACEOF
18538 # Files that config.status was made for.
18539 config_files="$ac_config_files"
18540 config_headers="$ac_config_headers"
18541 config_commands="$ac_config_commands"
18542
18543 _ACEOF
18544
18545 cat >>$CONFIG_STATUS <<\_ACEOF
18546 ac_cs_usage="\
18547 \`$as_me' instantiates files from templates according to the
18548 current configuration.
18549
18550 Usage: $0 [OPTIONS] [FILE]...
18551
18552   -h, --help       print this help, then exit
18553   -V, --version    print version number, then exit
18554   -q, --quiet      do not print progress messages
18555   -d, --debug      don't remove temporary files
18556       --recheck    update $as_me by reconfiguring in the same conditions
18557   --file=FILE[:TEMPLATE]
18558                    instantiate the configuration file FILE
18559   --header=FILE[:TEMPLATE]
18560                    instantiate the configuration header FILE
18561
18562 Configuration files:
18563 $config_files
18564
18565 Configuration headers:
18566 $config_headers
18567
18568 Configuration commands:
18569 $config_commands
18570
18571 Report bugs to <bug-autoconf@gnu.org>."
18572
18573 _ACEOF
18574 cat >>$CONFIG_STATUS <<_ACEOF
18575 ac_cs_version="\\
18576 LLVM config.status 3.7.0svn
18577 configured by $0, generated by GNU Autoconf 2.60,
18578   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18579
18580 Copyright (C) 2006 Free Software Foundation, Inc.
18581 This config.status script is free software; the Free Software Foundation
18582 gives unlimited permission to copy, distribute and modify it."
18583
18584 ac_pwd='$ac_pwd'
18585 srcdir='$srcdir'
18586 INSTALL='$INSTALL'
18587 _ACEOF
18588
18589 cat >>$CONFIG_STATUS <<\_ACEOF
18590 # If no file are specified by the user, then we need to provide default
18591 # value.  By we need to know if files were specified by the user.
18592 ac_need_defaults=:
18593 while test $# != 0
18594 do
18595   case $1 in
18596   --*=*)
18597     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18598     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18599     ac_shift=:
18600     ;;
18601   *)
18602     ac_option=$1
18603     ac_optarg=$2
18604     ac_shift=shift
18605     ;;
18606   esac
18607
18608   case $ac_option in
18609   # Handling of the options.
18610   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18611     ac_cs_recheck=: ;;
18612   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18613     echo "$ac_cs_version"; exit ;;
18614   --debug | --debu | --deb | --de | --d | -d )
18615     debug=: ;;
18616   --file | --fil | --fi | --f )
18617     $ac_shift
18618     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18619     ac_need_defaults=false;;
18620   --header | --heade | --head | --hea )
18621     $ac_shift
18622     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18623     ac_need_defaults=false;;
18624   --he | --h)
18625     # Conflict between --help and --header
18626     { echo "$as_me: error: ambiguous option: $1
18627 Try \`$0 --help' for more information." >&2
18628    { (exit 1); exit 1; }; };;
18629   --help | --hel | -h )
18630     echo "$ac_cs_usage"; exit ;;
18631   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18632   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18633     ac_cs_silent=: ;;
18634
18635   # This is an error.
18636   -*) { echo "$as_me: error: unrecognized option: $1
18637 Try \`$0 --help' for more information." >&2
18638    { (exit 1); exit 1; }; } ;;
18639
18640   *) ac_config_targets="$ac_config_targets $1"
18641      ac_need_defaults=false ;;
18642
18643   esac
18644   shift
18645 done
18646
18647 ac_configure_extra_args=
18648
18649 if $ac_cs_silent; then
18650   exec 6>/dev/null
18651   ac_configure_extra_args="$ac_configure_extra_args --silent"
18652 fi
18653
18654 _ACEOF
18655 cat >>$CONFIG_STATUS <<_ACEOF
18656 if \$ac_cs_recheck; then
18657   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18658   CONFIG_SHELL=$SHELL
18659   export CONFIG_SHELL
18660   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18661 fi
18662
18663 _ACEOF
18664 cat >>$CONFIG_STATUS <<\_ACEOF
18665 exec 5>>config.log
18666 {
18667   echo
18668   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18669 ## Running $as_me. ##
18670 _ASBOX
18671   echo "$ac_log"
18672 } >&5
18673
18674 _ACEOF
18675 cat >>$CONFIG_STATUS <<_ACEOF
18676 #
18677 # INIT-COMMANDS
18678 #
18679 llvm_src="${srcdir}"
18680
18681 _ACEOF
18682
18683 cat >>$CONFIG_STATUS <<\_ACEOF
18684
18685 # Handling of arguments.
18686 for ac_config_target in $ac_config_targets
18687 do
18688   case $ac_config_target in
18689     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
18690     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
18691     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
18692     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
18693     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
18694     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
18695     "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
18696     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
18697     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
18698     "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
18699     "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
18700     "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
18701     "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
18702     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
18703     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
18704     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
18705     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
18706     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
18707     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
18708     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
18709     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
18710     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
18711     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
18712     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
18713     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
18714     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
18715
18716   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18717 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18718    { (exit 1); exit 1; }; };;
18719   esac
18720 done
18721
18722
18723 # If the user did not use the arguments to specify the items to instantiate,
18724 # then the envvar interface is used.  Set only those that are not.
18725 # We use the long form for the default assignment because of an extremely
18726 # bizarre bug on SunOS 4.1.3.
18727 if $ac_need_defaults; then
18728   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18729   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18730   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18731 fi
18732
18733 # Have a temporary directory for convenience.  Make it in the build tree
18734 # simply because there is no reason against having it here, and in addition,
18735 # creating and moving files from /tmp can sometimes cause problems.
18736 # Hook for its removal unless debugging.
18737 # Note that there is a small window in which the directory will not be cleaned:
18738 # after its creation but before its name has been assigned to `$tmp'.
18739 $debug ||
18740 {
18741   tmp=
18742   trap 'exit_status=$?
18743   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18744 ' 0
18745   trap '{ (exit 1); exit 1; }' 1 2 13 15
18746 }
18747 # Create a (secure) tmp directory for tmp files.
18748
18749 {
18750   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18751   test -n "$tmp" && test -d "$tmp"
18752 }  ||
18753 {
18754   tmp=./conf$$-$RANDOM
18755   (umask 077 && mkdir "$tmp")
18756 } ||
18757 {
18758    echo "$me: cannot create a temporary directory in ." >&2
18759    { (exit 1); exit 1; }
18760 }
18761
18762 #
18763 # Set up the sed scripts for CONFIG_FILES section.
18764 #
18765
18766 # No need to generate the scripts if there are no CONFIG_FILES.
18767 # This happens for instance when ./config.status config.h
18768 if test -n "$CONFIG_FILES"; then
18769
18770 _ACEOF
18771
18772
18773
18774 ac_delim='%!_!# '
18775 for ac_last_try in false false false false false :; do
18776   cat >conf$$subs.sed <<_ACEOF
18777 SHELL!$SHELL$ac_delim
18778 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18779 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18780 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18781 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18782 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18783 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18784 exec_prefix!$exec_prefix$ac_delim
18785 prefix!$prefix$ac_delim
18786 program_transform_name!$program_transform_name$ac_delim
18787 bindir!$bindir$ac_delim
18788 sbindir!$sbindir$ac_delim
18789 libexecdir!$libexecdir$ac_delim
18790 datarootdir!$datarootdir$ac_delim
18791 datadir!$datadir$ac_delim
18792 sysconfdir!$sysconfdir$ac_delim
18793 sharedstatedir!$sharedstatedir$ac_delim
18794 localstatedir!$localstatedir$ac_delim
18795 includedir!$includedir$ac_delim
18796 oldincludedir!$oldincludedir$ac_delim
18797 docdir!$docdir$ac_delim
18798 infodir!$infodir$ac_delim
18799 htmldir!$htmldir$ac_delim
18800 dvidir!$dvidir$ac_delim
18801 pdfdir!$pdfdir$ac_delim
18802 psdir!$psdir$ac_delim
18803 libdir!$libdir$ac_delim
18804 localedir!$localedir$ac_delim
18805 mandir!$mandir$ac_delim
18806 DEFS!$DEFS$ac_delim
18807 ECHO_C!$ECHO_C$ac_delim
18808 ECHO_N!$ECHO_N$ac_delim
18809 ECHO_T!$ECHO_T$ac_delim
18810 LIBS!$LIBS$ac_delim
18811 build_alias!$build_alias$ac_delim
18812 host_alias!$host_alias$ac_delim
18813 target_alias!$target_alias$ac_delim
18814 LLVM_VERSION_MAJOR!$LLVM_VERSION_MAJOR$ac_delim
18815 LLVM_VERSION_MINOR!$LLVM_VERSION_MINOR$ac_delim
18816 LLVM_VERSION_PATCH!$LLVM_VERSION_PATCH$ac_delim
18817 LLVM_VERSION_SUFFIX!$LLVM_VERSION_SUFFIX$ac_delim
18818 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
18819 CC!$CC$ac_delim
18820 CFLAGS!$CFLAGS$ac_delim
18821 LDFLAGS!$LDFLAGS$ac_delim
18822 CPPFLAGS!$CPPFLAGS$ac_delim
18823 ac_ct_CC!$ac_ct_CC$ac_delim
18824 EXEEXT!$EXEEXT$ac_delim
18825 OBJEXT!$OBJEXT$ac_delim
18826 CXX!$CXX$ac_delim
18827 CXXFLAGS!$CXXFLAGS$ac_delim
18828 ac_ct_CXX!$ac_ct_CXX$ac_delim
18829 CPP!$CPP$ac_delim
18830 subdirs!$subdirs$ac_delim
18831 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
18832 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
18833 build!$build$ac_delim
18834 build_cpu!$build_cpu$ac_delim
18835 build_vendor!$build_vendor$ac_delim
18836 build_os!$build_os$ac_delim
18837 host!$host$ac_delim
18838 host_cpu!$host_cpu$ac_delim
18839 host_vendor!$host_vendor$ac_delim
18840 host_os!$host_os$ac_delim
18841 target!$target$ac_delim
18842 target_cpu!$target_cpu$ac_delim
18843 target_vendor!$target_vendor$ac_delim
18844 target_os!$target_os$ac_delim
18845 OS!$OS$ac_delim
18846 HOST_OS!$HOST_OS$ac_delim
18847 TARGET_OS!$TARGET_OS$ac_delim
18848 LINKALL!$LINKALL$ac_delim
18849 NOLINKALL!$NOLINKALL$ac_delim
18850 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
18851 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
18852 ARCH!$ARCH$ac_delim
18853 LLVM_NATIVE_ARCH!$LLVM_NATIVE_ARCH$ac_delim
18854 HOST_ARCH!$HOST_ARCH$ac_delim
18855 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
18856 BUILD_CC!$BUILD_CC$ac_delim
18857 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
18858 BUILD_CXX!$BUILD_CXX$ac_delim
18859 CVSBUILD!$CVSBUILD$ac_delim
18860 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
18861 ENABLE_CXX1Y!$ENABLE_CXX1Y$ac_delim
18862 ENABLE_SPLIT_DWARF!$ENABLE_SPLIT_DWARF$ac_delim
18863 ENABLE_CLANG_ARCMT!$ENABLE_CLANG_ARCMT$ac_delim
18864 CLANG_PLUGIN_SUPPORT!$CLANG_PLUGIN_SUPPORT$ac_delim
18865 ENABLE_CLANG_STATIC_ANALYZER!$ENABLE_CLANG_STATIC_ANALYZER$ac_delim
18866 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
18867 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
18868 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
18869 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
18870 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
18871 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
18872 ENABLE_ABI_BREAKING_CHECKS!$ENABLE_ABI_BREAKING_CHECKS$ac_delim
18873 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
18874 _ACEOF
18875
18876   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
18877     break
18878   elif $ac_last_try; then
18879     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18880 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18881    { (exit 1); exit 1; }; }
18882   else
18883     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18884   fi
18885 done
18886
18887 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
18888 if test -n "$ac_eof"; then
18889   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
18890   ac_eof=`expr $ac_eof + 1`
18891 fi
18892
18893 cat >>$CONFIG_STATUS <<_ACEOF
18894 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18895 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18896 _ACEOF
18897 sed '
18898 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18899 s/^/s,@/; s/!/@,|#_!!_#|/
18900 :n
18901 t n
18902 s/'"$ac_delim"'$/,g/; t
18903 s/$/\\/; p
18904 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18905 ' >>$CONFIG_STATUS <conf$$subs.sed
18906 rm -f conf$$subs.sed
18907 cat >>$CONFIG_STATUS <<_ACEOF
18908 CEOF$ac_eof
18909 _ACEOF
18910
18911
18912 ac_delim='%!_!# '
18913 for ac_last_try in false false false false false :; do
18914   cat >conf$$subs.sed <<_ACEOF
18915 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
18916 KEEP_SYMBOLS!$KEEP_SYMBOLS$ac_delim
18917 JIT!$JIT$ac_delim
18918 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
18919 TARGETS_WITH_JIT!$TARGETS_WITH_JIT$ac_delim
18920 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
18921 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
18922 enable_searchengine!$enable_searchengine$ac_delim
18923 enable_external_search!$enable_external_search$ac_delim
18924 enable_server_based_search!$enable_server_based_search$ac_delim
18925 searchengine_url!$searchengine_url$ac_delim
18926 extra_search_mappings!$extra_search_mappings$ac_delim
18927 QHELPGENERATOR!$QHELPGENERATOR$ac_delim
18928 llvm_doxygen_generate_qhp!$llvm_doxygen_generate_qhp$ac_delim
18929 llvm_doxygen_qch_filename!$llvm_doxygen_qch_filename$ac_delim
18930 llvm_doxygen_qhp_namespace!$llvm_doxygen_qhp_namespace$ac_delim
18931 llvm_doxygen_qhelpgenerator_path!$llvm_doxygen_qhelpgenerator_path$ac_delim
18932 llvm_doxygen_qhp_cust_filter_name!$llvm_doxygen_qhp_cust_filter_name$ac_delim
18933 llvm_doxygen_qhp_cust_filter_attrs!$llvm_doxygen_qhp_cust_filter_attrs$ac_delim
18934 clang_doxygen_generate_qhp!$clang_doxygen_generate_qhp$ac_delim
18935 clang_doxygen_qch_filename!$clang_doxygen_qch_filename$ac_delim
18936 clang_doxygen_qhp_namespace!$clang_doxygen_qhp_namespace$ac_delim
18937 clang_doxygen_qhelpgenerator_path!$clang_doxygen_qhelpgenerator_path$ac_delim
18938 clang_doxygen_qhp_cust_filter_name!$clang_doxygen_qhp_cust_filter_name$ac_delim
18939 clang_doxygen_qhp_cust_filter_attrs!$clang_doxygen_qhp_cust_filter_attrs$ac_delim
18940 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
18941 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
18942 LLVM_ENABLE_ZLIB!$LLVM_ENABLE_ZLIB$ac_delim
18943 ENABLE_PIC!$ENABLE_PIC$ac_delim
18944 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
18945 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
18946 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
18947 ALL_TARGETS!$ALL_TARGETS$ac_delim
18948 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
18949 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
18950 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
18951 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
18952 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
18953 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
18954 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
18955 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
18956 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
18957 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
18958 ENABLE_TERMINFO!$ENABLE_TERMINFO$ac_delim
18959 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
18960 ifGNUmake!$ifGNUmake$ac_delim
18961 LN_S!$LN_S$ac_delim
18962 NM!$NM$ac_delim
18963 CMP!$CMP$ac_delim
18964 CP!$CP$ac_delim
18965 DATE!$DATE$ac_delim
18966 FIND!$FIND$ac_delim
18967 GREP!$GREP$ac_delim
18968 MKDIR!$MKDIR$ac_delim
18969 MV!$MV$ac_delim
18970 RANLIB!$RANLIB$ac_delim
18971 AR!$AR$ac_delim
18972 RM!$RM$ac_delim
18973 SED!$SED$ac_delim
18974 TAR!$TAR$ac_delim
18975 BINPWD!$BINPWD$ac_delim
18976 DOT!$DOT$ac_delim
18977 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18978 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18979 INSTALL_DATA!$INSTALL_DATA$ac_delim
18980 BZIP2!$BZIP2$ac_delim
18981 CAT!$CAT$ac_delim
18982 DOXYGEN!$DOXYGEN$ac_delim
18983 GROFF!$GROFF$ac_delim
18984 GZIPBIN!$GZIPBIN$ac_delim
18985 PDFROFF!$PDFROFF$ac_delim
18986 ZIP!$ZIP$ac_delim
18987 GO!$GO$ac_delim
18988 OCAMLFIND!$OCAMLFIND$ac_delim
18989 GAS!$GAS$ac_delim
18990 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
18991 EGREP!$EGREP$ac_delim
18992 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
18993 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
18994 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
18995 NO_MAYBE_UNINITIALIZED!$NO_MAYBE_UNINITIALIZED$ac_delim
18996 NO_UNINITIALIZED!$NO_UNINITIALIZED$ac_delim
18997 NO_COMMENT!$NO_COMMENT$ac_delim
18998 PYTHON!$PYTHON$ac_delim
18999 HAVE_DLOPEN!$HAVE_DLOPEN$ac_delim
19000 HAVE_TERMINFO!$HAVE_TERMINFO$ac_delim
19001 USE_OPROFILE!$USE_OPROFILE$ac_delim
19002 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
19003 XML2CONFIG!$XML2CONFIG$ac_delim
19004 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
19005 LIBXML2_INC!$LIBXML2_INC$ac_delim
19006 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
19007 HAVE_LIBZ!$HAVE_LIBZ$ac_delim
19008 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
19009 MMAP_FILE!$MMAP_FILE$ac_delim
19010 SHLIBEXT!$SHLIBEXT$ac_delim
19011 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
19012 _ACEOF
19013
19014   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19015     break
19016   elif $ac_last_try; then
19017     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19018 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19019    { (exit 1); exit 1; }; }
19020   else
19021     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19022   fi
19023 done
19024
19025 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19026 if test -n "$ac_eof"; then
19027   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19028   ac_eof=`expr $ac_eof + 1`
19029 fi
19030
19031 cat >>$CONFIG_STATUS <<_ACEOF
19032 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19034 _ACEOF
19035 sed '
19036 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19037 s/^/s,@/; s/!/@,|#_!!_#|/
19038 :n
19039 t n
19040 s/'"$ac_delim"'$/,g/; t
19041 s/$/\\/; p
19042 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19043 ' >>$CONFIG_STATUS <conf$$subs.sed
19044 rm -f conf$$subs.sed
19045 cat >>$CONFIG_STATUS <<_ACEOF
19046 CEOF$ac_eof
19047 _ACEOF
19048
19049
19050 ac_delim='%!_!# '
19051 for ac_last_try in false false false false false :; do
19052   cat >conf$$subs.sed <<_ACEOF
19053 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
19054 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
19055 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
19056 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
19057 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
19058 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
19059 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
19060 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
19061 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
19062 HAVE_OCAMLOPT!$HAVE_OCAMLOPT$ac_delim
19063 HAVE_OCAML_OUNIT!$HAVE_OCAML_OUNIT$ac_delim
19064 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
19065 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
19066 RPATH!$RPATH$ac_delim
19067 RDYNAMIC!$RDYNAMIC$ac_delim
19068 program_prefix!$program_prefix$ac_delim
19069 LIBOBJS!$LIBOBJS$ac_delim
19070 LTLIBOBJS!$LTLIBOBJS$ac_delim
19071 _ACEOF
19072
19073   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
19074     break
19075   elif $ac_last_try; then
19076     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19077 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19078    { (exit 1); exit 1; }; }
19079   else
19080     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19081   fi
19082 done
19083
19084 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19085 if test -n "$ac_eof"; then
19086   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19087   ac_eof=`expr $ac_eof + 1`
19088 fi
19089
19090 cat >>$CONFIG_STATUS <<_ACEOF
19091 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
19092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19093 _ACEOF
19094 sed '
19095 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19096 s/^/s,@/; s/!/@,|#_!!_#|/
19097 :n
19098 t n
19099 s/'"$ac_delim"'$/,g/; t
19100 s/$/\\/; p
19101 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19102 ' >>$CONFIG_STATUS <conf$$subs.sed
19103 rm -f conf$$subs.sed
19104 cat >>$CONFIG_STATUS <<_ACEOF
19105 :end
19106 s/|#_!!_#|//g
19107 CEOF$ac_eof
19108 _ACEOF
19109
19110
19111 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19112 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19113 # trailing colons and then remove the whole line if VPATH becomes empty
19114 # (actually we leave an empty line to preserve line numbers).
19115 if test "x$srcdir" = x.; then
19116   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19117 s/:*\$(srcdir):*/:/
19118 s/:*\${srcdir}:*/:/
19119 s/:*@srcdir@:*/:/
19120 s/^\([^=]*=[     ]*\):*/\1/
19121 s/:*$//
19122 s/^[^=]*=[       ]*$//
19123 }'
19124 fi
19125
19126 cat >>$CONFIG_STATUS <<\_ACEOF
19127 fi # test -n "$CONFIG_FILES"
19128
19129
19130 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
19131 do
19132   case $ac_tag in
19133   :[FHLC]) ac_mode=$ac_tag; continue;;
19134   esac
19135   case $ac_mode$ac_tag in
19136   :[FHL]*:*);;
19137   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19138 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19139    { (exit 1); exit 1; }; };;
19140   :[FH]-) ac_tag=-:-;;
19141   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19142   esac
19143   ac_save_IFS=$IFS
19144   IFS=:
19145   set x $ac_tag
19146   IFS=$ac_save_IFS
19147   shift
19148   ac_file=$1
19149   shift
19150
19151   case $ac_mode in
19152   :L) ac_source=$1;;
19153   :[FH])
19154     ac_file_inputs=
19155     for ac_f
19156     do
19157       case $ac_f in
19158       -) ac_f="$tmp/stdin";;
19159       *) # Look for the file first in the build tree, then in the source tree
19160          # (if the path is not absolute).  The absolute path cannot be DOS-style,
19161          # because $ac_f cannot contain `:'.
19162          test -f "$ac_f" ||
19163            case $ac_f in
19164            [\\/$]*) false;;
19165            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19166            esac ||
19167            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19168 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19169    { (exit 1); exit 1; }; };;
19170       esac
19171       ac_file_inputs="$ac_file_inputs $ac_f"
19172     done
19173
19174     # Let's still pretend it is `configure' which instantiates (i.e., don't
19175     # use $as_me), people would be surprised to read:
19176     #    /* config.h.  Generated by config.status.  */
19177     configure_input="Generated from "`IFS=:
19178           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19179     if test x"$ac_file" != x-; then
19180       configure_input="$ac_file.  $configure_input"
19181       { echo "$as_me:$LINENO: creating $ac_file" >&5
19182 echo "$as_me: creating $ac_file" >&6;}
19183     fi
19184
19185     case $ac_tag in
19186     *:-:* | *:-) cat >"$tmp/stdin";;
19187     esac
19188     ;;
19189   esac
19190
19191   ac_dir=`$as_dirname -- "$ac_file" ||
19192 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19193          X"$ac_file" : 'X\(//\)[^/]' \| \
19194          X"$ac_file" : 'X\(//\)$' \| \
19195          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19196 echo X"$ac_file" |
19197     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19198             s//\1/
19199             q
19200           }
19201           /^X\(\/\/\)[^/].*/{
19202             s//\1/
19203             q
19204           }
19205           /^X\(\/\/\)$/{
19206             s//\1/
19207             q
19208           }
19209           /^X\(\/\).*/{
19210             s//\1/
19211             q
19212           }
19213           s/.*/./; q'`
19214   { as_dir="$ac_dir"
19215   case $as_dir in #(
19216   -*) as_dir=./$as_dir;;
19217   esac
19218   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19219     as_dirs=
19220     while :; do
19221       case $as_dir in #(
19222       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19223       *) as_qdir=$as_dir;;
19224       esac
19225       as_dirs="'$as_qdir' $as_dirs"
19226       as_dir=`$as_dirname -- "$as_dir" ||
19227 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19228          X"$as_dir" : 'X\(//\)[^/]' \| \
19229          X"$as_dir" : 'X\(//\)$' \| \
19230          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19231 echo X"$as_dir" |
19232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19233             s//\1/
19234             q
19235           }
19236           /^X\(\/\/\)[^/].*/{
19237             s//\1/
19238             q
19239           }
19240           /^X\(\/\/\)$/{
19241             s//\1/
19242             q
19243           }
19244           /^X\(\/\).*/{
19245             s//\1/
19246             q
19247           }
19248           s/.*/./; q'`
19249       test -d "$as_dir" && break
19250     done
19251     test -z "$as_dirs" || eval "mkdir $as_dirs"
19252   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19253 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19254    { (exit 1); exit 1; }; }; }
19255   ac_builddir=.
19256
19257 case "$ac_dir" in
19258 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19259 *)
19260   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19261   # A ".." for each directory in $ac_dir_suffix.
19262   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19263   case $ac_top_builddir_sub in
19264   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19265   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19266   esac ;;
19267 esac
19268 ac_abs_top_builddir=$ac_pwd
19269 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19270 # for backward compatibility:
19271 ac_top_builddir=$ac_top_build_prefix
19272
19273 case $srcdir in
19274   .)  # We are building in place.
19275     ac_srcdir=.
19276     ac_top_srcdir=$ac_top_builddir_sub
19277     ac_abs_top_srcdir=$ac_pwd ;;
19278   [\\/]* | ?:[\\/]* )  # Absolute name.
19279     ac_srcdir=$srcdir$ac_dir_suffix;
19280     ac_top_srcdir=$srcdir
19281     ac_abs_top_srcdir=$srcdir ;;
19282   *) # Relative name.
19283     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19284     ac_top_srcdir=$ac_top_build_prefix$srcdir
19285     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19286 esac
19287 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19288
19289
19290   case $ac_mode in
19291   :F)
19292   #
19293   # CONFIG_FILE
19294   #
19295
19296   case $INSTALL in
19297   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19298   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19299   esac
19300 _ACEOF
19301
19302 cat >>$CONFIG_STATUS <<\_ACEOF
19303 # If the template does not know about datarootdir, expand it.
19304 # FIXME: This hack should be removed a few years after 2.60.
19305 ac_datarootdir_hack=; ac_datarootdir_seen=
19306
19307 case `sed -n '/datarootdir/ {
19308   p
19309   q
19310 }
19311 /@datadir@/p
19312 /@docdir@/p
19313 /@infodir@/p
19314 /@localedir@/p
19315 /@mandir@/p
19316 ' $ac_file_inputs` in
19317 *datarootdir*) ac_datarootdir_seen=yes;;
19318 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19319   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19320 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19321 _ACEOF
19322 cat >>$CONFIG_STATUS <<_ACEOF
19323   ac_datarootdir_hack='
19324   s&@datadir@&$datadir&g
19325   s&@docdir@&$docdir&g
19326   s&@infodir@&$infodir&g
19327   s&@localedir@&$localedir&g
19328   s&@mandir@&$mandir&g
19329     s&\\\${datarootdir}&$datarootdir&g' ;;
19330 esac
19331 _ACEOF
19332
19333 # Neutralize VPATH when `$srcdir' = `.'.
19334 # Shell code in configure.ac might set extrasub.
19335 # FIXME: do we really want to maintain this feature?
19336 cat >>$CONFIG_STATUS <<_ACEOF
19337   sed "$ac_vpsub
19338 $extrasub
19339 _ACEOF
19340 cat >>$CONFIG_STATUS <<\_ACEOF
19341 :t
19342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19343 s&@configure_input@&$configure_input&;t t
19344 s&@top_builddir@&$ac_top_builddir_sub&;t t
19345 s&@srcdir@&$ac_srcdir&;t t
19346 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19347 s&@top_srcdir@&$ac_top_srcdir&;t t
19348 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19349 s&@builddir@&$ac_builddir&;t t
19350 s&@abs_builddir@&$ac_abs_builddir&;t t
19351 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19352 s&@INSTALL@&$ac_INSTALL&;t t
19353 $ac_datarootdir_hack
19354 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19355
19356 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19357   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19358   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19359   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19360 which seems to be undefined.  Please make sure it is defined." >&5
19361 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19362 which seems to be undefined.  Please make sure it is defined." >&2;}
19363
19364   rm -f "$tmp/stdin"
19365   case $ac_file in
19366   -) cat "$tmp/out"; rm -f "$tmp/out";;
19367   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19368   esac
19369  ;;
19370   :H)
19371   #
19372   # CONFIG_HEADER
19373   #
19374 _ACEOF
19375
19376 # Transform confdefs.h into a sed script `conftest.defines', that
19377 # substitutes the proper values into config.h.in to produce config.h.
19378 rm -f conftest.defines conftest.tail
19379 # First, append a space to every undef/define line, to ease matching.
19380 echo 's/$/ /' >conftest.defines
19381 # Then, protect against being on the right side of a sed subst, or in
19382 # an unquoted here document, in config.status.  If some macros were
19383 # called several times there might be several #defines for the same
19384 # symbol, which is useless.  But do not sort them, since the last
19385 # AC_DEFINE must be honored.
19386 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19387 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19388 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19389 # PARAMS is the parameter list in the macro definition--in most cases, it's
19390 # just an empty string.
19391 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
19392 ac_dB='\\)[      (].*,\\1define\\2'
19393 ac_dC=' '
19394 ac_dD=' ,'
19395
19396 uniq confdefs.h |
19397   sed -n '
19398         t rset
19399         :rset
19400         s/^[     ]*#[    ]*define[       ][      ]*//
19401         t ok
19402         d
19403         :ok
19404         s/[\\&,]/\\&/g
19405         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19406         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19407   ' >>conftest.defines
19408
19409 # Remove the space that was appended to ease matching.
19410 # Then replace #undef with comments.  This is necessary, for
19411 # example, in the case of _POSIX_SOURCE, which is predefined and required
19412 # on some systems where configure will not decide to define it.
19413 # (The regexp can be short, since the line contains either #define or #undef.)
19414 echo 's/ $//
19415 s,^[     #]*u.*,/* & */,' >>conftest.defines
19416
19417 # Break up conftest.defines:
19418 ac_max_sed_lines=50
19419
19420 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19421 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19422 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19423 # et cetera.
19424 ac_in='$ac_file_inputs'
19425 ac_out='"$tmp/out1"'
19426 ac_nxt='"$tmp/out2"'
19427
19428 while :
19429 do
19430   # Write a here document:
19431     cat >>$CONFIG_STATUS <<_ACEOF
19432     # First, check the format of the line:
19433     cat >"\$tmp/defines.sed" <<\\CEOF
19434 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
19435 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
19436 b
19437 :def
19438 _ACEOF
19439   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19440   echo 'CEOF
19441     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19442   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19443   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19444   grep . conftest.tail >/dev/null || break
19445   rm -f conftest.defines
19446   mv conftest.tail conftest.defines
19447 done
19448 rm -f conftest.defines conftest.tail
19449
19450 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19451 cat >>$CONFIG_STATUS <<\_ACEOF
19452   if test x"$ac_file" != x-; then
19453     echo "/* $configure_input  */" >"$tmp/config.h"
19454     cat "$ac_result" >>"$tmp/config.h"
19455     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19456       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19457 echo "$as_me: $ac_file is unchanged" >&6;}
19458     else
19459       rm -f $ac_file
19460       mv "$tmp/config.h" $ac_file
19461     fi
19462   else
19463     echo "/* $configure_input  */"
19464     cat "$ac_result"
19465   fi
19466   rm -f "$tmp/out12"
19467  ;;
19468
19469   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19470 echo "$as_me: executing $ac_file commands" >&6;}
19471  ;;
19472   esac
19473
19474
19475   case $ac_file$ac_mode in
19476     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
19477    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
19478     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
19479    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
19480     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
19481    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
19482     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
19483    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
19484     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
19485    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
19486     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
19487    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
19488     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
19489    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
19490     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
19491    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
19492     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
19493    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
19494     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
19495    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
19496     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
19497    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
19498     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
19499    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
19500
19501   esac
19502 done # for ac_tag
19503
19504
19505 { (exit 0); exit 0; }
19506 _ACEOF
19507 chmod +x $CONFIG_STATUS
19508 ac_clean_files=$ac_clean_files_save
19509
19510
19511 # configure is writing to config.log, and then calls config.status.
19512 # config.status does its own redirection, appending to config.log.
19513 # Unfortunately, on DOS this fails, as config.log is still kept open
19514 # by configure, so config.status won't be able to write to it; its
19515 # output is simply discarded.  So we exec the FD to /dev/null,
19516 # effectively closing config.log, so it can be properly (re)opened and
19517 # appended to by config.status.  When coming back to configure, we
19518 # need to make the FD available again.
19519 if test "$no_create" != yes; then
19520   ac_cs_success=:
19521   ac_config_status_args=
19522   test "$silent" = yes &&
19523     ac_config_status_args="$ac_config_status_args --quiet"
19524   exec 5>/dev/null
19525   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19526   exec 5>>config.log
19527   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19528   # would make configure fail if this is the last instruction.
19529   $ac_cs_success || { (exit 1); exit 1; }
19530 fi
19531
19532 #
19533 # CONFIG_SUBDIRS section.
19534 #
19535 if test "$no_recursion" != yes; then
19536
19537   # Remove --cache-file and --srcdir arguments so they do not pile up.
19538   ac_sub_configure_args=
19539   ac_prev=
19540   eval "set x $ac_configure_args"
19541   shift
19542   for ac_arg
19543   do
19544     if test -n "$ac_prev"; then
19545       ac_prev=
19546       continue
19547     fi
19548     case $ac_arg in
19549     -cache-file | --cache-file | --cache-fil | --cache-fi \
19550     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19551       ac_prev=cache_file ;;
19552     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19553     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19554     | --c=*)
19555       ;;
19556     --config-cache | -C)
19557       ;;
19558     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19559       ac_prev=srcdir ;;
19560     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19561       ;;
19562     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19563       ac_prev=prefix ;;
19564     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19565       ;;
19566     *)
19567       case $ac_arg in
19568       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19569       esac
19570       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19571     esac
19572   done
19573
19574   # Always prepend --prefix to ensure using the same prefix
19575   # in subdir configurations.
19576   ac_arg="--prefix=$prefix"
19577   case $ac_arg in
19578   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19579   esac
19580   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
19581
19582   ac_popdir=`pwd`
19583   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19584
19585     # Do not complain, so a configure script can configure whichever
19586     # parts of a large source tree are present.
19587     test -d "$srcdir/$ac_dir" || continue
19588
19589     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19590     echo "$as_me:$LINENO: $ac_msg" >&5
19591     echo "$ac_msg" >&6
19592     { as_dir="$ac_dir"
19593   case $as_dir in #(
19594   -*) as_dir=./$as_dir;;
19595   esac
19596   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19597     as_dirs=
19598     while :; do
19599       case $as_dir in #(
19600       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19601       *) as_qdir=$as_dir;;
19602       esac
19603       as_dirs="'$as_qdir' $as_dirs"
19604       as_dir=`$as_dirname -- "$as_dir" ||
19605 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19606          X"$as_dir" : 'X\(//\)[^/]' \| \
19607          X"$as_dir" : 'X\(//\)$' \| \
19608          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19609 echo X"$as_dir" |
19610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19611             s//\1/
19612             q
19613           }
19614           /^X\(\/\/\)[^/].*/{
19615             s//\1/
19616             q
19617           }
19618           /^X\(\/\/\)$/{
19619             s//\1/
19620             q
19621           }
19622           /^X\(\/\).*/{
19623             s//\1/
19624             q
19625           }
19626           s/.*/./; q'`
19627       test -d "$as_dir" && break
19628     done
19629     test -z "$as_dirs" || eval "mkdir $as_dirs"
19630   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19631 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19632    { (exit 1); exit 1; }; }; }
19633     ac_builddir=.
19634
19635 case "$ac_dir" in
19636 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19637 *)
19638   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19639   # A ".." for each directory in $ac_dir_suffix.
19640   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19641   case $ac_top_builddir_sub in
19642   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19643   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19644   esac ;;
19645 esac
19646 ac_abs_top_builddir=$ac_pwd
19647 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19648 # for backward compatibility:
19649 ac_top_builddir=$ac_top_build_prefix
19650
19651 case $srcdir in
19652   .)  # We are building in place.
19653     ac_srcdir=.
19654     ac_top_srcdir=$ac_top_builddir_sub
19655     ac_abs_top_srcdir=$ac_pwd ;;
19656   [\\/]* | ?:[\\/]* )  # Absolute name.
19657     ac_srcdir=$srcdir$ac_dir_suffix;
19658     ac_top_srcdir=$srcdir
19659     ac_abs_top_srcdir=$srcdir ;;
19660   *) # Relative name.
19661     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19662     ac_top_srcdir=$ac_top_build_prefix$srcdir
19663     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19664 esac
19665 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19666
19667
19668     cd "$ac_dir"
19669
19670     # Check for guested configure; otherwise get Cygnus style configure.
19671     if test -f "$ac_srcdir/configure.gnu"; then
19672       ac_sub_configure=$ac_srcdir/configure.gnu
19673     elif test -f "$ac_srcdir/configure"; then
19674       ac_sub_configure=$ac_srcdir/configure
19675     elif test -f "$ac_srcdir/configure.in"; then
19676       # This should be Cygnus configure.
19677       ac_sub_configure=$ac_aux_dir/configure
19678     else
19679       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19680 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19681       ac_sub_configure=
19682     fi
19683
19684     # The recursion is here.
19685     if test -n "$ac_sub_configure"; then
19686       # Make the cache file name correct relative to the subdirectory.
19687       case $cache_file in
19688       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19689       *) # Relative name.
19690         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19691       esac
19692
19693       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19694 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19695       # The eval makes quoting arguments work.
19696       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19697            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19698         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19699 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19700    { (exit 1); exit 1; }; }
19701     fi
19702
19703     cd "$ac_popdir"
19704   done
19705 fi
19706